Abstract- Small-scale laying-hen farms require analytical tools that can detect abnormal egg-production patterns while remaining interpretable for operational decision support. This study develops and evaluates an explainable gradient boosting framework for low-production anomaly detection using farm-level environmental, management, and production records. The dataset contained 481 observations with eight variables, including flock size, feed amount, ammonia, temperature, humidity, light intensity, noise, and total egg production. Exact-duplicate inspection found 407 duplicated rows; therefore, the 74 unique observations were used as the primary evaluation dataset. Egg production rate was derived by normalizing total egg output by flock size, and low-production anomalies were defined using the 10th percentile threshold, resulting in eight anomaly cases. Supervised tree-based models were evaluated using repeated stratified four-fold cross-validation with 20 repeats, and unsupervised methods were used as anomaly baselines. XGBoost achieved the best full-feature performance, with F1-score of 0.928, recall of 1.000, ROC-AUC of 0.997, and PR-AUC of 0.984. Sensitivity analysis without flock size showed that environmental and management variables retained useful signal. SHAP analysis indicated that flock size, light intensity, and temperature were the dominant predictors. The findings support interpretable operational monitoring of low egg-production patterns, although the results require validation on larger expert-labeled datasets.
Copyrights © 2026