=== Model Training & Multi-Algorithm Benchmark Log ===
Timestamp: 2026-11-03T11:32:24.694798
Target Camera Scope: Strictly CC3
Loading datasets from:
 - Parquet: /home/asus/Project_FOLDER/.Codes/VIDEOS/cycle7/FULL_CYCLE_1_FLOOR_SIM_RETRAIN_DAY0_35/cycle_weight_parquet_data/full_cycle_predictions.parquet
 - Historical: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/data/historical_weights_avg.csv
✅ Filtered 35 records for Camera 'CC3' (Days 1 to 35)
Training dataset prepared: 35 cycle days (Day 1 to Day 35) strictly from Camera CC3

Training candidate models on Camera 3 data...
Trained 8 candidate models successfully.

=== Model Benchmark Summary on Camera 3 (Days 1 to 35) ===
                Model Name  Mean Accuracy (%)  MAE (g)  RMSE (g)  Max Difference (g)  R2 Score
      Hybrid Allometric-RF              97.39    17.16     26.67               85.84    0.9976
             Random Forest              96.81    16.77     24.76               78.16    0.9979
        LightGBM Regressor              90.67    39.54     53.78              169.62    0.9901
         Gradient Boosting              88.64    25.11     32.50              108.22    0.9964
Ridge Volumetric Regressor              87.49    40.56     51.42              167.94    0.9910
  Volumetric Power (A^1.5)              86.02    66.08     85.84              167.12    0.9748
          Polynomial Ridge              84.69    52.11     61.55              150.70    0.9871
      Allometric Power-Law              77.50    60.78     67.97              141.97    0.9842

Saved evaluation comparison to: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/reports/model_evaluation_comparison.csv
Saved benchmark summary to: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/reports/model_benchmark_summary.csv
Saved candidate models package to: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/models/candidate_weight_models.pkl
Generating comparison visualization plot...
Saved visualization plot to: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/reports/weight_prediction_plot.png

🏆 Best Performing Algorithm: Hybrid Allometric-RF (Accuracy: 97.39%, MAE: 17.16g, R²: 0.9976)
📦 Backed up previous production model to: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/models/best_weight_model.pkl.bak_20261103_113225
🚀 Successfully deployed winning model (Hybrid Allometric-RF) to: /home/asus/Project_FOLDER/.Codes/chicken-counting-sukawarna-det/chicken-weighing/models/best_weight_model.pkl (Plug-and-play ready)
=== Benchmark Run Completed Successfully ===
