Explainable Autism Spectrum Disorder Classification from Electroencephalography Using Wavelet Spectrograms and Convolutional Neural Networks

Autism Spectrum Disorder Electroencephalography Convolutional Neural Network Continuous Wavelet Transform Explainable Artificial Intelligence

Authors

Downloads

Autism Spectrum Disorder (ASD) is a neurodevelopmental condition characterized by impairments in social communication and restricted or repetitive behaviors, while diagnosis remains largely dependent on behavioral assessment that may be time-consuming, subjective, and less accessible in resource-limited settings. This study aims to develop an interpretable electroencephalography (EEG)-based ASD classification framework that not only achieves reliable discrimination but also identifies model-relevant electrodes and evaluates whether reduced-channel configurations can retain predictive performance. The main contribution is an integrated pipeline combining Continuous Wavelet Transform (CWT) time–frequency representation, a Simple Convolutional Neural Network (SimpleCNN), SHapley Additive exPlanations (SHAP)-based channel attribution derived exclusively from training partitions, reduced-channel evaluation, and a representation-controlled support vector machine (SVM) baseline. Resting-state EEG data from the King Abdulaziz University dataset included 16 participants, comprising 8 individuals with ASD and 8 typically developing controls. Preprocessing consisted of common average referencing, 1–40 Hz zero-phase bandpass filtering, ±3σ Winsorization, adaptive amplitude-based artifact rejection, and 4-s epochs with 50% overlap. Winsorization modified an average of 1.20% of samples per participant, and 3,568 of 4,294 generated epochs were retained after artifact rejection. Performance was evaluated using an eight-fold subject-dependent epoch-level protocol. The CWT-SimpleCNN achieved an accuracy of 0.9504 ± 0.0080 and an AUC of 0.9902 ± 0.0026, with sensitivity of 0.9524 and specificity of 0.9482, whereas the SVM baseline achieved an accuracy of 0.8450 ± 0.0122 and an AUC of 0.9274 ± 0.0123. Fold-wise SHAP analysis consistently prioritized Fp2, C3, Oz, and F4, while the predefined elbow criterion identified a four-channel configuration comprising these electrodes, achieving an AUC of 0.9710 ± 0.0109. These findings demonstrate strong, subject-dependent epoch discrimination within the dataset and show that model-specific explanations can support compact EEG channel configurations. However, subject-wise, demographically balanced, multi-site, and external validation remain necessary before clinical generalization.