Abnormal Behavior Detection Method Based on Improved YOLOv7-Pose
Abstract
During the Spring Festival period, a fatal accident occurred in cigarette handling when a cage cart tipped over. To address this, we propose an abnormal behavior recognition algorithm that integrates StrongSort multi-object tracking, an improved YOLOv7-Pose with a SimAM attention module, and ST-GCN for spatio-temporal behavior classification. StrongSort first performs target bounding box detection on handling personnel, followed by YOLOv7-Pose for human skeleton keypoint extraction, and finally ST-GCN for behavior prediction. Evaluated on a self-built dataset of real handling operation videos, the proposed model achieves 91.5% accuracy and 93.4% precision, surpassing the baseline YOLOv7-Pose+ST-GCN by 4.4 and 6.5 percentage points respectively. Ablation studies confirm that both the SimAM attention module and StrongSORT tracking component contribute positively to the overall performance, with SimAM bringing significant gains without increasing model parameters. Compared with alternative attention mechanisms including SE, CBAM, and Coordinate Attention, SimAM achieves the best accuracy-speed trade-off, maintaining 23 FPS in multi-person scenarios. These results demonstrate that the proposed method effectively balances high detection accuracy with real-time performance, offering a practical solution for intelligent safety monitoring in complex industrial environments.