An Agentic Machine Learning Pipeline for Drift-Aware Debris Flow Detection
DOI:
https://doi.org/10.64862/Keywords:
Debris flow, Machine learning, Seismic monitoring, Agentic AIAbstract
Monitoring destructive debris flows using seismic data and machine learning is a novel protective strategy. However, traditional supervised pipelines often fail during operational deployment because data distributions change over time, a phenomenon known as concept drift. Selecting a suitable model to overcome concept drift presents a significant challenge. This study introduces an Agentic Spec Kit framework that enables agentic AI to explore and select from various machine learning frameworks. We combine development driven by a spec kit with an agentic tree search to automatically design, implement, and evaluate a complete hazard detection stack. This work provides three advances: (1) a reproducible, high-performance pipeline that isolates dependencies; (2) a drift aware modeling protocol employing strict time-based splits and distributional shift monitoring; and (3) a program synthesizing search where an AI agent iteratively refines code to meet operational constraints. We demonstrate this system using the Illgraben, Switzerland seismic dataset, which features minute resolution data and a significant class imbalance of approximately 340 to 1. The framework automatically exports all artifacts, including metrics, plots, and the best runnable program. This process creates a ruggedized, field ready solution for environmental seismology.
References
Burtin, A., Hovius, N., McArdell, B. W., and Turowski, J. M. (2014). Seismic constraints on dynamic links between geomorphic processes and routing of sediment in a steep mountain catchment. Earth Surface Dynamics, 2 (1), 21–33. https://doi.org/10.5194/esurf-2-21-2014
Chmiel, M., Walter, F., Wenner, M., Zhang, Z., McArdell, B. W., and Hibert, C. (2021). Machine learning improves debris flow warning. Geophysical Research Letters, 48 (3), e2020GL090874. https://doi.org/10.1029/2020GL090874
Webb, G. I., Hyde, R., Cao, H., Nguyen, H. L., and Petitjean, F. (2016). Characterizing concept drift. Data Mining and Knowledge Discovery, 30 (4), 964–994. https://doi.org/10.1007/s10618-015-0448-4
Zhou, Q. (2025, March). Supporting material for “Enhancing debris flow warning via machine learning feature reduction and model selection” [Data set]. Zenodo. https://doi.org/10.5281/zenodo.15020368
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Nepal Society of Engineering Geology (NSEG)

This work is licensed under a Creative Commons Attribution 4.0 International License.

