You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copyright (c) 2025, The MathWorks, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
2
+
3
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
4
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
5
+
3. In all cases, the software is, and all modifications and derivatives of the software shall be, licensed to you solely for use in conjunction with MathWorks products and service offerings. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
[](https://matlab.mathworks.com/open/github/v1?repo=MathWorks-Teaching-Resources/Brain-MRI-Age-Classification-using-Deep-Learning)
2
+
3
+
# **Brain MRI Age Classification using Deep Learning (Course Integration Version)**
4
+
5
+
This exercise has been modified from the [original example](https://www.mathworks.com/matlabcentral/fileexchange/74941-brain-mri-age-classification-using-deep-learning) in order to be able to integrate it into course/s at higher education institutions.
6
+
7
+
It shows how to work with an MRI brain image dataset and how to use transfer learning to modify and retrain ResNet-18, a pretrained convolutional neural network, to perform image classification on that dataset. The MRI scans used in this example were obtained during a study [1] of social brain development conducted by researchers at the Massachusetts Institute of Technology (MIT), and are available for download via the OpenNEURO platform: https://openneuro.org/datasets/ds000228/versions/1.1.0
8
+
9
+
10
+
## Concept covered
11
+
- Teaching end-to-end AI workflow for image classification
12
+
- Applying transfer learning to a real-world data
13
+
- Modifying a pre-trained network interactively and programmatically
14
+
- Training the modified network to classify MRI images
15
+
- Evaluating the model
16
+
- Understanding network predictions using occlusion sensitivity maps
17
+
18
+
## Suggested Audience
19
+
Instructors teaching any course in neuroscience and/or bio-medical disciplines which uses MRI data. The exercises can be used with students who have very little programming knowledge (use DND version) or with students who are familiar with programming (use non-DND version).
20
+
21
+
## Time
22
+
The exercise can be run within 30-45 minutes.
23
+
24
+
## How to Use
25
+
The package contains an interactive, app-based exercise (using Deep Network Designer=DND). it consist of a working exercise where parts of the code have to be filled by students. The exercise is self-explanatory and contain all information required to execute it.
26
+
the app-based workflowis suitable even if students have very little programming knowledge. The programmatic workflow is also included for ease of understanding.
27
+
28
+
The exercise can be used as part of a course/module/lecture or as self-directed and self-paced exercise/homework/assignment.
29
+
30
+
The package contains a small subset of the original dataset. Using the original dataset (20+GB) would result in longer run times.
31
+
32
+
The solution files are available upon instructor request. If you would like to request solutions or have a question, contact the <ahref="mailto:[email protected]">MathWorks online teaching team.</a>
\[1\] Richardson, H., Lisandrelli, G., Riobueno-Naylor, A., & Saxe, R. (2018). Development of the social brain from age three to twelve years. Nature Communications, 9(1), 1027. https://doi.org/10.1038/s41467-018-03399-2
0 commit comments