File size: 2,748 Bytes
c6ac168
fec5466
 
 
 
 
 
c6ac168
 
 
 
fec5466
 
 
 
 
 
 
 
 
 
 
 
bbb4486
fec5466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbb4486
 
fec5466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a994814
 
 
 
fec5466
a994814
 
fec5466
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
library_name: monai
tags:
- classification
- medical
- neuroscience
- alzheimer
license: mit
metrics:
- accuracy
pipeline_tag: image-classification
datasets:
- ADNI
---
---

### Model Description
A machine learning model for waste classification

- **Developed by:** rootstrap
- **Model type:** image-classifier
- **License:** mit

## Alzheimer Classifier Model
The aim is to build a model for MRI classification that identifies among the different classes:

- Alzheimer's
- Mild Cognitive Impairment
- Control

This machine learning model will help medical staff get a second opinion on whether a pacient MRI indicates the presence of Alzheimer's desease 


The model was built using **Monai** MONAI is a freely available, community-supported, PyTorch-based framework for deep learning in healthcare imaging.

It has two main design goals:

To be approachable and rapidly productive
To be also configurable.

### Model Sources 

- **Repository:** [https://github.com/rootstrap/MRI-classifier](https://github.com/rootstrap/MRI-classifier)

## Uses

This model was created in the spirit of combining the interesting worlds of neuroscience and machine learning.
It can be used to quickly detect Alzheimer's or a Mild Cognitive Impairment in a pacients MRI and hence help medical staff.

### Direct Use

```bash
model = nets.DenseNet121(spatial_dims=3, in_channels=1, out_channels=3)
checkpoint = torch.load("86_acc_model.pth")
model.load_state_dict(checkpoint)
model.predict()

```

## Bias, Risks, and Limitations

This model has an 86% of accuracy. Although it is an outstanding result, his means that 13% of times the prediction is wrong.
This is why its important to understand that this tool is not a real medical opinion and can not be used as a final diagnosis by any means.
This project does not aim to replace medical staff in diagnosing Alzheimer's desease, instead it is a tool to help them to get a quick and accurate second opinion. 

## Training Details

### Training Data

The MRI data was gathered from the Alzheimer’s Desease Neuroimaging Initiative (ADNI) Database.
Afterwards, the data was splitted into one folder for each class.

The full dataset used consisted of 1614 NIfTI files and the model has been trained to classify MRI into 3 classes:
- 328 Alzheimer's Desease
- 799 Mild Cognitive Impairment
- 487 Control

Split into train/test
The data was then splitted using the 60% for training, 20% for validation and 20% for testing

### Training Procedure

You can find the code for training at [train.ipynb](https://github.com/rootstrap/MRI-classifier/blob/main/train.ipynb)
Training the model using DenseNet121 adapted for 3D images.

## Evaluation and Results

After 100 epochs, the model reached an accuracy of 85.76%