Background

Autism spectrum disorder (ASD) represents a cluster of relatively common developing disorders that faces social communication difficulties, social determination, and limited repetitive-behavioral patterns. Autism is one of the major problems in children, and it has recently been shown that approximately 1 out of 68 children deals with it [1]. Traditionally, these disorders have been diagnosed using interview-based methods, such as the Autism Diagnostic Survey [2] and the revised Autism Diagnostic Interview [3]. Although these methods are flawed and also unable to assess any biological cause behind the observed behavioral symptoms, they can be useful for treatment and even for prevention. To overcome these problems, brain-based imaging techniques are being considered as an alternative diagnostic tool. Magnetic resonance imaging (MRI) is an important brain imaging technique that provides high-resolution information about the structure, composition, and function of the brain. Some studies have attempted to extract features that show differences in brain structures and use machine learning techniques to classify autistic people from control people.

Singh et al. separated an autistic group from controls using structural magnetic resonance imaging. This was done using a new algorithm and only by examining the cerebral cortex and achieved a high classification accuracy of 90% using the LPboost algorithm [4]. Ecker et al. used whole-brain structural magnetic resonance imaging to classify autistic children from the control group. SVM was used for classification and achieved the highest sensitivity and specificity of 90% and 80% [5]. Jiao et al. developed a model for predicting ASD based on cortical thickness in different areas of the brain. The study achieved a log accuracy of 87% using the Logistic Model Tree Classifier (LMT) [6]. Katuwal et al. predicted the ability of structural MRI to diagnose ASD. Finally, this study achieved the highest accuracy of 67% in ASD detection [7]. Ismail et al. introduced a new computer-aided diagnosis system based on shape using structural MRI to identify autism at various stages of life. The system is designed using the ABIDE database and showed 93% accuracy [8]. Xiao et al. developed a model for diagnosing ASD using features extracted from structural MRI using machine learning. The model was designed using the RF classification and with the help of the cortical thickness feature of the average area of the brain, and it achieved 88% accuracy [9]. Khalil et al. designed a computer system to diagnose ASD using shape features extracted from structural MRI and using ABIDE database images and a multilevel deep network. They achieved an accuracy of 93% [10].

The purpose of this study is automatic detection of autism spectrum disorder (ASD) in children using features extracted from structural images. In order to achieve higher accuracy in diagnosing autism, surface and volume features are used simultaneously for classification.

Method

The steps of the proposed method are shown in Fig. 1.

Fig. 1
figure 1

Steps performed in the study. (The proposed method)

Subjects

In this study, structural data from magnetic resonance images from the Autism Brain Imaging Data Exchange (ABIDII) were used. We used structural magnetic resonance imaging from the Langone Medical Center, NYU: site 1 model (NYU). Image data in this study is achieved from 26 autistic subject and 26 healthy control aged 5 to 10 years. The demographic for the participants is proven in Table 1.

Table 1 Demographics for the participants

MRI acquisition

Magnetic resonance images were acquired using a Siemens 3T scanner in the Neuroimaging Information Technology Initiative (NIFTI) format with the following protocol: repetition time and echo time = 3.25 ms, rotation angle = 7°, plane resolution = 1.3 mm × 1 mm, 1.3 mm slice thickness in 0.665 mm gap, 128 slices, 256 mm × 256 mm field of view, and acquisition time = 8:07 min.

Preprocessing and segmentation

The CAT12 and SPM12 toolkits in MATLAB R2019a software version are used for structural brain imaging. We performed preprocessing and segmentation steps using the CAT12 toolbox with appropriate default settings. Nonlinear record is corrected for displacement field uniformity and then images segmented into GM, WM, and CSF components [11]. We used the Diffeomorphic Anatomical Registration Algorithm via Exponential Lie Algebra (DARTEL) to normalize the segmented scans to the standard MNI space [12]. The image of the main stages of preprocessing is shown in Fig. 2, and the segmented image into white matter, gray matter, and cerebrospinal fluid is also shown in Fig. 3.

Fig. 2
figure 2

Stages of preprocessing of structural images of the brain. A Initial image. B Image after intensity normalization. C Segmented image with skull removal. D Image after spatial normalization in DARTEL-modified space based on MNI. (The image of the main stages of preprocessing)

Fig. 3
figure 3

Segmented images. A Original image. B White matter of the brain. C Gray matter of the brain. (The segmented image into white matter, gray matter, and cerebrospinal fluid)

Brain reconstruction

Surface reconstruction steps are performed using CAT12 toolbox in MATLAB R2019a software. We use a fully automated method that allows for the measurement of cortical thickness and reconstructions of the central surface in one step. It uses a tissue segmentation to estimate the white matter (WM) distance and then projects the local maxima (which is equal to the cortical thickness) to other gray matter voxels by using a neighbor relationship described by the WM distance [13]. Then topological correction is performed with the aim of repairing topological defects using a method containing spherical harmonics that allows direct correction of defects on the brain surface mesh [14]. The spherical map is used to create a common coordinate system. The reconstructed surface in the CAT12 toolbox is shown in Fig. 4.

Fig. 4
figure 4

Reconstructed surface by CAT12 toolbox. A Reconstruction of internal surface of right hemisphere surface of the brain. B Reconstruction of external surface of left hemisphere surface of the brain. (The reconstructed surface in the CAT12 toolbox)

Feature extraction

Extraction of structural magnetic resonance image features using CAT12 toolbox is done in two steps:

  1. 1)

    Extraction of volume-related features: Volume-related features include volumetric measurement of brain tissue (white matter, gray matter, and cerebrospinal fluid), absolute intracranial volume, and volumetric measurement of white matter and gray matter of the brain in 68 Hammers atlas regions.

  2. 2)

    Extraction of surface-related features: Surface-related features include average and standard deviation of cerebral cortex thickness and calculation of cerebral cortex thickness parameters, surface complexity (fractal dimension), sulcus depth, and gyrification index in 68 Desikan-Killiany (DK) atlas regions.

The volume and surface features extracted from the structural magnetic resonance images are given separately in Table 2.

Table 2 Volume and surface features extracted from the structural magnetic resonance images

A feature matrix is then constructed for the extracted features for each autism and control group. The dimensions of the feature matrices related to the structural magnetic resonance images for each group are given in Table 3. The dimensions of the final feature matrix for each group are estimated to be 26 × 414, and the feature matrix for intergroup classification is constructed with dimensions of 52 × 414. Dimensions of feature matrices related to structural magnetic resonance imaging are given in Table 3.

Table 3 Dimensions of feature matrices related to structural magnetic resonance imaging

Feature selection

The FCBF method (fast correlation-based feature selection) in Python software was used to select the basic features of group segregation before classification to eliminate inappropriate features and increase the accuracy of machine vision.

Classification

Automated classification using structural magnetic resonance imaging is performed using four machine vision algorithms including support vector machine algorithms, random forest, nearest neighbor, and artificial neural network with tenfold cross-validation (K fold = 10) in Python 3.8.3 software. The value of K in KNN algorithm is equal to 3, and the number of hidden layers of ANN algorithm is considered 3. The output of classification algorithms is a confusion matrix that can be used to evaluate the algorithm. Finally, the performance of all four classifications is evaluated, and the best performance of this system in intergroup classification is calculated.

Results

Feature selection results

The selected features by the FCBF algorithm are listed in Table 4.

Table 4 Selected features by the FCBF algorithm

Classification results

The components of the confusion matrix resulting from each of the classification algorithms are given in Table 5. Evaluation parameters for each classification system are also calculated in Table 6.

Table 5 Confusion matrix components obtained from each of the classification algorithms based on the properties selected from the structural magnetic resonance images
Table 6 Evaluation parameters of classification systems based on selected features from structural magnetic resonance images

According to the results, the automated classification of the artificial neural network has the best performance compared to other algorithms for categorizing the autism group and the control one and with 88.46% accuracy, which is able to distinguish between these two groups.

Discussion

Nearly two-hundred studies over the past 20 years have planned general anatomy changes of ASD, and several other ones among them have more explored the chance to utilize these markers to get prognosticative models. To this point, completely different sorts of neuroimaging feature are applied as diagnostic predictor. Structural features enclosed brain volume (white matter, gray matter, and total brain) [15] and morphological features (average convexity or concavity, mean curvature, metric distortion, cortical thickness, metric distortion, cortical surface, and cortical volume) [4,5,6].

We compared the four popular machine-learning classifiers, including support vector machine (SVM), random forest (RF), nearest neighbor (KNN) algorithm, and artificial neural network (ANN) to evaluate the performance shown in generating the diagnostic models of ASD. We found ANN superior to the other three classifiers. According to Table 6 in the present study, SVM, RF, KNN, and ANN achieved 82.69%, 71.15%, 86.53%, and 88.46% accuracy respectively in the classification and diagnosis of ASD using structural magnetic resonance imaging. We arrived at a conclusion that ANN was the optimal approach for neuroimaging data mining in a small sample size. Table 7 shows the performance of the machine vision system using structural magnetic resonance imaging in past and present studies. According to this table, although the accuracy of the present study is lower than several studies, with considering the number of people studied and their age range, it has acceptable accuracy.

Table 7 Performance of the machine vision system using structural magnetic resonance imaging in past studies and present study

Although the accuracy of the present study is lower than several studies, with considering the number of people studied and their age range, it has acceptable accuracy.

Autism spectrum disorder (ASD) and attention-deficit hyperactivity disorder (ADHD) frequently co-occur. Exact comorbidity rates are not well known due to the DSM-IV restriction of diagnosing ASD and ADHD in the same individual [16]. There are articles for application of structural magnetic resonance in the diagnosis of ADHD or intellectual disability [17,18,19,20,21,22,23,24]. According to these studies, features such as the thickness of the cerebral cortex and the volume of different areas of the brain along with the volume of white and gray matter are biomarkers of diagnosis ADHD, and that these features are also known as biomarkers in ASD patients in this study. But the Sulcus depth feature, which is one of the biomarkers of autism diagnosis in this study, has not been used as a biomarker in any of the diagnostic studies of ADHD. The sulcus depth in different areas of the brain seems to be one of the features that changes in ASD patients compared to healthy subjects, but in ADHD patients, this change is not observed. Finally, the designed algorithm in this study can be used to diagnose ADHD using structural images, and its results can be compared with the present study in terms of the type of extraction features. This comparison can help differentiate these two disorders.

It is prompt that the study be performed for higher accuracy with the higher quantity of data. Also, it may be organized by data from ASD and HC groups with younger age. Different ways of analyzing structural resonance imaging ought to even be ascertained. This analysis has targeted on the structure of the brain. In future researches, additionally to structural images of the brain, different brain imaging modalities like functional magnetic resonance imaging and DTI may be used for automatic detection. Other intelligent detection algorithms can even be used.

Limitation

Autism spectrum disorder is an extremely heterogenous disorder, where any of the selected patients suffered from associated low IQ, delayed speech, epilepsy, or any other forms of comorbidities. These comorbidities can affect the volume and surface of the brain, which can affect the specificity of the diagnosis. Since there is no information about diseases associated with autism in selected patients, this problem is one of the limitations of the present study.

Conclusions

The proposed framework was tested on 52 subjects of ABIDE data set consisting of 26 patients with ASD and 26 controls. Since clinical evaluations for the diagnosis of autism are extremely time-consuming and depend on the expertise of a specialist, the importance of intelligent diagnosis of this disorder becomes clear. The aim of this study was to design an intelligent system to diagnose this disorder. This study reached the highest diagnostic accuracy of 88.46% using the ANN classification, which is a significant result. To conclude, this paper proposed an autism diagnosis approach that analyzes the brain’s local areas, which could help understand the autism spectrum disorder.