How madhurasharan/autism-spectrum-disorder-detection works
This is an ASD screening web application, with a separate model-development workflow. In the Flask path, a visitor opens the questionnaire, submits behavioral and demographic answers, and receives a prediction with probabilities and a downloadable PDF. The repository also documents a stacking ensemble and includes model-development and evaluation scripts. The Flask request, prediction, chart, and PDF steps are visible in app.py; training details are only partly sampled, so the connection from model development to the saved model is unverified. The README also mentions Streamlit, but its file describes that UI as an alternative stub.
Main entry points: app.py Prediction handler · stacking_model.pkl Stacking model · ASD.py Model development · check_accuracy.py Accuracy evaluation
Components 14
Screening web app
- Flask routes
app.py - Screening pages
templates - Questionnaire
templates/questionnaire.html - Streamlit alternative
streamlit_app.py
Prediction and reporting
- Prediction handler
app.py - Feature encoding
app.py - Stacking model
stacking_model.pkl - Probability chart
app.py - Result page
templates/result.html - PDF report
app.py - PDF download
app.py
Model development
- Model development
ASD.py
Model evaluation
- Accuracy evaluation
check_accuracy.py
Other components
- Visitor
Connections 13
- Visitor → Flask routes: opens pages
app.py - Flask routes → Screening pages: renders pages
app.py - Flask routes → Questionnaire: renders form
app.py - Visitor → Prediction handler: submits answers
app.py - Prediction handler → Feature encoding: encodes inputs
app.py - Prediction handler → Stacking model: predicts probabilities
app.py - Prediction handler → Probability chart: generates chart
app.py - Prediction handler → PDF report: generates report
app.py - Prediction handler → Result page: renders result
app.py - Flask routes → PDF download: serves download
app.py - PDF download → Visitor: sends PDF
app.py - Model development → Stacking model: produces model
- Accuracy evaluation → Stacking model: evaluates model
check_accuracy.py