How jiashinnn/fatigue_classification_system works
FatiQ is a fatigue-monitoring product for cadets and coaches, with a Flutter client, PHP API, and training-data backend. The main domain flow is account access, pre- and post-training capture, metric computation, fatigue prediction, and later review; coaches also have roster and dashboard views. Endpoint names and sampled PHP support the API and database relationships, while the prediction script documents its dependency on computed metrics and an external ML service. Flutter application logic is not present in the supplied tree, so client-to-endpoint wiring is not shown.
Main entry points: dbconnect.php Database connection · login_user.php Login and registration · verify_otp.php OTP verification · predict_fatigue_ml.php Fatigue prediction
Components 17
Client apps
- Flutter client
fatigue_cs - Portfolio website
website/script.js
Identity and email
- Login and registration
fatigue_cs/database/php backend/Auth/login_user.php - OTP verification
fatigue_cs/database/php backend/Auth/verify_otp.php - Email delivery
fatigue_cs/database/php backend/email_config.php - PHPMailer
fatigue_cs/database/php backend/PHPMailer/src/PHPMailer.php
Training and insights
- Pre-training capture
fatigue_cs/database/php backend/Cadet/save_pre_training_data.php - Post-training capture
fatigue_cs/database/php backend/Cadet/save_post_training_data.php - Metric computation
fatigue_cs/database/php backend/compute_metrics.php - Fatigue prediction
fatigue_cs/database/php backend/predict_fatigue_ml.php - Cadet session API
fatigue_cs/database/php backend/Cadet/get_training_session_details.php - Coach dashboard API
fatigue_cs/database/php backend/Coach/get_coach_dashboard_data.php
Backend storage
- Database connection
fatigue_cs/database/php backend/dbconnect.php - Application database
fatigue_cs/database/php backend/dbconnect.php
Other components
- Cadet
- Coach
- ML prediction service
Connections 16
- Cadet → Flutter client: uses
- Coach → Flutter client: uses
- Cadet → Login and registration: authenticates
- Coach → Login and registration: authenticates
- Login and registration → Database connection: queries
- OTP verification → Database connection: uses
- OTP verification → Email delivery: requests delivery
- Email delivery → PHPMailer: sends through
- Pre-training capture → Database connection: writes
- Post-training capture → Database connection: writes
- Metric computation → Database connection: reads and writes
- Fatigue prediction → Database connection: reads and writes
- Fatigue prediction → ML prediction service: requests prediction
- Cadet session API → Database connection: reads
- Coach dashboard API → Database connection: reads
- Database connection → Application database: connects