Coal mine safety accident analysis based on the Apriori algorithm
This paper conducts a statistical analysis of the national coal mine accident report data from 2018 to 2022,and uses the Apriori association rule algorithm to find all the rules that satisfy the minimum support and confidence by generating candidate itemsets and pruning based on the downward closure property of frequent itemsets.The paper also uses Gephi to visualize the association rules and further analyzes the high-support,high-confidence,and high-lift rules to reveal the complex relationships between various causes.The data show that from 2018 to 2022,there were 424 coal mine accidents and 914 deaths in China,and the types of accidents with a large proportion of occurrences were roof accidents,transportation accidents,and other accidents.Through data preprocessing and calculating Term Frequency-Inverse Document Frequency(TF-IDF)values,this paper extracts 80 factors causing coal mine accidents,including 33 factors in the human layer,9 factors in the equipment layer,31 factors in the management layer,and 7 factors in the environmental layer.According to the complex network graph of accident causes generated by Gephi,after preliminary analysis,the key factors for accident occurrence are weak safety awareness,on-site workers,inadequate safety education and training,transportation accidents,roof accidents,poor self-protection and mutual protection awareness,illegal operations,inadequate safety supervision and inspection,inadequate hidden danger investigation and management,etc.The paper then analyzes the factors causing high support,high confidence,and high-lift association rules separately.In terms of the human layer:the more important frequent itemsets are on-site workers and weak safety awareness,employees and weak safety awareness,no temporary support and weak safety awareness;in terms of the management layer:the more important frequent itemsets are roof accidents and poor safety management,three violations and transportation accidents,inadequate local outburst prevention measures and regional outburst prevention measures not eliminating media outburst hazards in coal uncovering areas;in terms of the equipment layer:the more important frequent itemsets are wire rope and transportation accidents,anchor cable and roof accidents,high-pressure filter quality defects and improper operation handling;in terms of the environmental layer:the more important frequent itemsets are fault and roof accidents,over-deep over-boundary and water accumulation in goaf areas,project department and other accidents.The paper reveals the key points of accident prevention and the causal relationships before and after the accident and points out the direction for the controllability prevention of accidents.