How nalambeemasatyasai-dev/final-year-project works
This repository is a research system for classifying student engagement as disengaged, nominally engaged, or highly engaged. Its primary user workflow is a Streamlit dashboard that accepts an image, runs face and FACS processing plus model inference, and archives results. The research workflow extracts FACS features, evaluates classical classifiers, trains multimodal and image-only deep models, and fits an ensemble; AU mapping provides a separate analysis branch. Edges reflect README statements and shown source/index references; some runtime details are unsampled, so unsupported links are omitted.
Main entry points: inference_engine.py Inference and archive · dual_branch_network.py Dual-branch network · run_master_pipeline.py Master experiment pipeline · fit_ui_ensemble.py Ensemble fitting
Components 17
Live inference
- Streamlit dashboard
app.py - Inference and archive
inference_engine.py - Prediction entry point
predict_engagement.py - UI ensemble
ui_ensemble.py
FACS analysis
- Blendshape extractor
Feature_extract/mediapipe_facs_extractor.py - Batch extraction
Feature_extract/batch_extract_blendshapes.py - AU mapping analysis
AU_mappings/generate_facs_heatmaps.py
Classical learning
- Classical training
ML_models/train_gbdt_classifiers.py - Classifier evaluation
ML_models/gbdt_classifier_evaluator.py
Deep learning
- Multimodal data pipeline
DL_models/multimodal_dataloader.py - Dual-branch network
DL_models/dual_branch_network.py - Deep model training
DL_models/train_deep_learning.py - Hyperparameter search
DL_models/optuna_hyperparameter_search.py - Grad-CAM analysis
DL_models/visualize_gradcam.py - Ensemble fitting
fit_ui_ensemble.py
Experiment orchestration
- Master experiment pipeline
run_master_pipeline.py
Other components
- Dashboard user
Connections 22
- Dashboard user → Streamlit dashboard: submits image
README.md - Streamlit dashboard → Inference and archive: requests inference
app.py - Prediction entry point → Inference and archive: uses engine
predict_engagement.py - Inference and archive → Blendshape extractor: extracts FACS
inference_engine.py - Inference and archive → Dual-branch network: loads models
inference_engine.py - Inference and archive → Multimodal data pipeline: uses data utilities
inference_engine.py - Inference and archive → UI ensemble: uses ensemble
inference_engine.py - Batch extraction → Blendshape extractor: uses extractor
Feature_extract/batch_extract_blendshapes.py - Classical training → Classifier evaluation: evaluates classifiers
ML_models/train_gbdt_classifiers.py - Deep model training → Multimodal data pipeline: loads batches
DL_models/train_deep_learning.py - Deep model training → Dual-branch network: trains model
DL_models/train_deep_learning.py - Hyperparameter search → Multimodal data pipeline: loads batches
DL_models/optuna_hyperparameter_search.py - Hyperparameter search → Dual-branch network: optimizes model
DL_models/optuna_hyperparameter_search.py - Grad-CAM analysis → Dual-branch network: visualizes model
DL_models/visualize_gradcam.py - Grad-CAM analysis → Blendshape extractor: uses FACS extraction
DL_models/visualize_gradcam.py - Ensemble fitting → Multimodal data pipeline: loads validation data
fit_ui_ensemble.py - Ensemble fitting → Dual-branch network: loads models
fit_ui_ensemble.py - Ensemble fitting → UI ensemble: fits ensemble config
fit_ui_ensemble.py - Master experiment pipeline → AU mapping analysis: runs AU analysis
run_master_pipeline.py - Master experiment pipeline → Classical training: runs classical training
run_master_pipeline.py - Master experiment pipeline → Deep model training: runs deep training
run_master_pipeline.py - Master experiment pipeline → Ensemble fitting: runs ensemble fitting
run_master_pipeline.py