Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification.
The 1 match · it ties a paragraph to a whole file, not to given lines: a weak match, whose lines are not tinted
- [1] § Materials and proposed method › Methodology › Softmax classification ↔ train.py, the whole file · a weak match · score 0.50 · cross entropy loss, training, CNN, class, model
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 45 lines · 998 B · other · 1 match
- import argparse
- import torch
- import torch.nn as nn
- from torch.optim import Adam
- from torch.utils.data import DataLoader
- from utils.seed import seed_everything
- from models.cnn_model import DemographicCNN
- from optimization.optabc import OptABC
- seed_everything(42)
- parser = argparse.ArgumentParser()
- parser.add_argument('--task', default='gender')
- args = parser.parse_args()
- if args.task == 'joint':
- num_classes = 8
- else:
- num_classes = 4
- optimizer_search = OptABC()
- best_params = optimizer_search.optimize()
- model = DemographicCNN(
- num_classes=num_classes,
- dropout=best_params['dropout']
- ).to('cuda' if torch.cuda.is_available() else 'cpu')
- criterion = nn.CrossEntropyLoss()
- optimizer = Adam(
- model.parameters(),
- lr=best_params['learning_rate']
- )
- print('Training initialized')
- print('Task:', args.task)
- print('Best Parameters:', best_params)
- for epoch in range(50):
- print(f'Epoch {epoch+1}/50 completed')
- torch.save(model.state_dict(), f'{args.task}_model.pth')
train.py at commit 7d08ab5, under other · at the source
Overview
- Department of Artificial Intelligence, Faculty of Artificial Intelligence, Egyptian Russian University, Badr City, 11829 Egypt
- Department of Software Engineering, Faculty of Artificial Intelligence, Egyptian Russian University, Badr City, 11829 Egypt
- Department of Computer Science, College of Science and Humanities Dawadmi, Shaqra University, Shaqra, 11961 Saudi Arabia
Abstract
Autism Spectrum Disorder (ASD) classification from neuroimaging data poses significant challenges due to high data heterogeneity and the complexity of learning robust representations across demographic subgroups. While recent deep learning approaches have shown promise, most existing studies rely on binary classification and limited model tuning strategies, overlooking demographic variability and the role of systematic optimization in model design. To address these challenges, this study formulates demographic-aware ASD classification as an optimization-driven learning problem and proposes a deep learning framework based on structural MRI (sMRI) data. The proposed framework employs three customized Convolutional Neural Network (CNN) models targeting gender-based classification, age-group-based classification, and joint age–gender classification using an octal class structure. Model architecture and training hyperparameters are automatically optimized using the Optimized Artificial Bee Colony (OptABC) algorithm, enabling task-specific adaptation without manual tuning. A dedicated preprocessing pipeline incorporating structural localization and controlled data augmentation is applied to improve robustness across heterogeneous imaging sites. All models are evaluated using five-fold cross-validation on the multi-site ABIDE dataset. Experimental results demonstrate that the proposed optimization-driven framework achieves accuracies of 84.25%, 88.07%, and 71.58% for gender-based, age-based, and joint age–gender classification tasks, respectively, yielding competitive performance relative to widely used pre-trained transfer learning models under comparable experimental settings. The results further indicate that age-aware modeling offers stronger discriminative capability than gender-based classification, while joint demographic stratification introduces increased task complexity due to finer class granularity. Overall, the findings highlight the effectiveness of metaheuristic optimization for enhancing deep learning models in complex, demographic-aware neuroimaging classification tasks. Further evaluation on independent datasets is planned to assess robustness across broader settings.
Supplementary Information: The online version contains supplementary material available at 10.1038/
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
mohammedaly-tech/Demographic-Aware-ASD-Classification).An
Availability: 1 check, the latest on 27 September 2026: the link is dead
- 27 September 2026: the link is dead
Zenodo 20419300
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
12 files
- datasets/
dataset_loader.py , Python, 29 lines - evaluate.py, Python, 2 lines
- evaluation/
statistical_analysis.py , Python, 21 lines - models/
cnn_model.py , Python, 41 lines - optimization/
optabc.py , Python, 27 lines - preprocessing/
augmentation.py , Python, 17 lines - preprocessing/
canny_preprocessing.py , Python, 27 lines - train.py, Python, 45 lines
- training/
trainer.py , Python, 47 lines - utils/
seed.py , Python, 12 lines - LICENSE, License, 1 line
- README.md, Text, 64 lines
mohammedaly-tech/demographic-aware-asd-classification
7d08ab569afa48edd7f62ed02a1b1b2d781fd96b, 28 May 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
12 files
- datasets/
dataset_loader.py , Python, 29 lines - evaluate.py, Python, 2 lines
- evaluation/
statistical_analysis.py , Python, 21 lines - models/
cnn_model.py , Python, 41 lines - optimization/
optabc.py , Python, 27 lines - preprocessing/
augmentation.py , Python, 17 lines - preprocessing/
canny_preprocessing.py , Python, 27 lines - train.py, Python, 45 lines, 1 match
- training/
trainer.py , Python, 47 lines - utils/
seed.py , Python, 12 lines - LICENSE, License, 1 line
- README.md, Text, 64 lines
The paper's code and data availability statement is in the Data section.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 3 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 20 scripts, each with its path and the digest of its content;
- 1 match between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability
The implementation code associated with this study, including preprocessing scripts, demographic-aware CNN architectures, OptABC optimization modules, statistical analysis scripts, and subject- and site-disjoint cross-validation splits, is publicly available at (https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 2, 28 September 2026
- Funding: added Science and Technology Development Fund
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 2 authors, 10 keywords, 11 MeSH terms, 36 references.
Cite
This paper
Aly, M., & Alotaibi, N. M. (2026). Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification. Scientific reports, 16(1), 19793. https://
BibTeX
@article{aly2026metaheur
author = {Aly, Mohammed and Alotaibi, Naif M},
title = {{Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification}},
journal = {Scientific reports},
year = {2026},
month = jun,
volume = {16},
number = {1},
pages = {19793},
publisher = {Nature Publishing Group},
issn = {2045-2322},
doi = {10.1038/
url = {https://
pmid = {42374059},
pmcid = {PMC13316114}
}
RIS
TY - JOUR
AU - Aly, Mohammed
AU - Alotaibi, Naif M
TI - Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification
T2 - Scientific reports
J2 - Sci Rep
PY - 2026
DA - 2026/
VL - 16
IS - 1
SP - 19793
SN - 2045-2322
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Metaheuristic hyperparameter optimization of deep neural networks for demographic-aware autism spectrum disorder classification",
"container-title": "Scientific reports",
"author": [
{
"family": "Aly",
"given": "Mohammed"
},
{
"family": "Alotaibi",
"given": "Naif M"
}
],
"container-title-short":
"volume": "16",
"issue": "1",
"page": "19793",
"DOI": "10.1038/
"PMID": "42374059",
"PMCID": "PMC13316114",
"ISSN": "2045-2322",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
29
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.3390/jimaging12070328 [code]
- Contrastive and Transfer Learning for Aligned Multimodal Neuroimaging Classification of Autism Spectrum Disorder.Journal: Journal of imagingIn common: PyTorch, pandas, SciPy, 1 other tool, autism, 3 references
- [2] doi:10.1002/hbm.70469 [code]
- VarCoNet: A Variability-Aware Self-Supervised Framework for Functional Connectome Extraction From Resting-State fMRI.Journal: Human brain mappingIn common: OpenCV, PyTorch, pandas, 2 other tools, autism, 1 reference
- [3] doi:10.3389/frai.2026.1771088 [code]
- Few-shot deployment of pretrained MRI transformers in brain imaging tasks.Journal: Frontiers in artificial intelligenceIn common: OpenCV, PyTorch, pandas, 2 other tools, structural MRI / diffusion, 1 reference
- [4] doi:10.3389/fpsyt.2026.1803720 [code]
- NeuroCon-AutismNet: a privacy-preserving multimodal framework toward autism screening via diffusion-regularized EEG biomarkers and empathy-aware multilingual dialogue.Journal: Frontiers in psychiatryIn common: PyTorch, pandas, SciPy, 1 other tool, autism, 1 reference
- [5] doi:10.1038/s41598-026-43798-w [code]
- A Machine learning pipeline to investigate tissue ingrowth in cerebral aneurysms using preclinical animal models.Journal: Scientific reportsIn common: OpenCV, PyTorch, pandas, 1 other tool, 1 reference
- [6] doi:10.1162/imag.a.1220 [code]
- Brain functional network connectivity interpolation characterizes the neuropsychiatric continuum and heterogeneity.Journal: Imaging neuroscience (Cambridge, Mass.)In common: PyTorch, pandas, SciPy, 1 other tool, autism, 1 reference
- [7] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: OpenCV, PyTorch, pandas, 2 other tools, structural MRI / diffusion
- [8] doi:10.1093/braincomms/fcag253 [code]
- Disease detection and classification in temporal lobe epilepsy: step-wise versus simultaneous AI decision models in a multisite neuroimaging study.Journal: Brain communicationsIn common: OpenCV, PyTorch, pandas, 2 other tools, structural MRI / diffusion
- [9] doi:10.1093/radadv/umag025 [code]
- OpenMAP-BrainAge: generalizable and interpretable brain age predictor from MRI.Journal: Radiology advancesIn common: OpenCV, PyTorch, pandas, 2 other tools, structural MRI / diffusion
- [10] doi:10.1016/j.patter.2026.101560 [code]
- Automating region selection with genetic algorithms for energy landscape analyses of brain dynamics.Journal: Patterns (New York, N.Y.)In common: PyTorch, pandas, SciPy, 1 other tool, autism, 1 reference
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 3 repositories of the authors' code, each at its verified commit and with its license, 20 scripts, and 1 match between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:91aa6dc3fac16541…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
