Rockfall intrusion detection is crucial for the safety management of railway operations, and video detection methods help reduce deployment costs and improve detection efficiency. Mainstream neural network-based video detection methods have rapidly evolved in recent years but struggle to adapt to complex scenarios such as existing railway slope constructions due to weak generalization ability, low accuracy, and limited information acquisition. Therefore, this paper introduces a dynamic neural network detection model and establishes a dataset for rockfall intrusions in existing railway slope scenarios. The model initially relies on the YOLOv5 neural network, adopting an activation function suitable for the target scenario and addressing overfitting to achieve precise target recognition. Based on the neural network, the model dynamically detects rolling rockfalls by integrating a background subtraction algorithm based on the Gaussian Mixture Model and captures target dimensions using monocular vision technology, thus broadening the dimensions of detection information. Trials conducted on a railway in Shandong, China, demonstrate that the model accurately identifies moving rockfalls along the railway slopes and acquires the dimensions of moving rockfalls, successfully filtering out low-risk targets in the scene.
Debris flow, driven by natural events like heavy rainfall and snowmelt, involves sediment, rocks, and water, posing destructive threats to life and infrastructure. The accurate prediction of its activity range is crucial for prevention and mitigation efforts. Cellular automata circumvent is the cumbersome process of solving partial differential equations, thereby efficiently simulating complex dynamic systems. Given the anisotropic characteristics of square cells in the simulation of dynamic systems, this paper proposes a novel approach, utilizing a hexagonal cellular automaton for the numerical simulation of debris flows, where the direction judgment efficiency increased by 25%. Employing cubic interpolation, the model thereby determines the central elevation of each hexagonal cell. By modifying the flow direction function and stopping conditions, it achieves more accurate predictions of the debris flow run-out extent. This method was applied to the 2010 Yohutagawa debris flow event and the flume test. To evaluate the simulation’s accuracy, the value and score were used. The value is a comprehensive evaluation factor that takes into account missed or misjudgment areas. On this basis, the score emphasizes that the missed identification of debris flow areas will bring greater harm. Research indicates that the value showed improvements of 6.47% and 3.96%, respectively, while the score improved by 3.10% and 4.61%.