Ontology-Based Semantic Modeling of Coal Mine Roof Caving Accidents

: The frequency of roof-caving accidents ranks ﬁrst among all coal mine accidents. However, the scattered knowledge system in this ﬁeld and the lack of standardization exacerbate the difﬁculty of analyzing roof fall accidents. This study proposes an ontology-based semantic modeling method for roof fall accidents to share and reuse roof fall knowledge for intelligent decision-making. The crucial concepts of roof fall accidents and the correlations between concepts are summarized by analyzing the roof fall knowledge, providing a standard framework to represent the prior knowledge in this ﬁeld. Besides, the ontology modeling tool Prot é g é is used to construct the ontology. As for ontology-based deep information mining and semantic reasoning, semantic rules based on expert experience and data fusion technology are proposed to evaluate mines’ potential risks comprehensively. In addition, the roof-falling rules are formalized based on the Jena syntax to make the ontology uniformly expressed in the computer. The Jena reasoning engine is utilized to mine potential tacit knowledge and preventive measures or solutions. The proposed method is demonstrated using roof fall cases, which conﬁrms its validity and practicability. Results indicate that this method can realize the storage, management, and sharing of roof fall accident knowledge. Furthermore, it can provide accurate and comprehensive experience knowledge for the roof fall knowledge requester.


Introduction
Coal mining is a vital industry that plays a significant role in global energy production, but it also presents numerous hazards and risks, making it one of the most dangerous occupations. Among the frequent accident types in this industry, roof, gas, and fire accidents are the most common. As shown in Figures 1 and 2, these statistics highlight the proportion of accidents and deaths in coal mine accidents in China between 2003 and 2021 [1]. Among all kinds of coal mine accidents, the roof-caving accident ranks first with a high frequency of occurrence, a large number of casualties, enormous scope of influence, accident rescue difficulties, and other characteristics [2].
Many scholars have studied the roof fall accidents from different angles. One common approach is to predict the warning signs through manual observation. However, the accuracy of such predictions is often influenced by professionals' level of knowledge reserve. In addition, sensor-based monitoring methods such as microseismic and electromagnetic radiation methods are also widely used to infer the stability of surrounding rock [3][4][5][6]. With the continuous development of artificial intelligence technology, more researchers are paying attention to techniques such as artificial neural networks [7] and deep learning [8]. These intelligent technologies can help researchers more accurately warn researchers are paying attention to techniques such as artificial neural networks [7] and deep learning [8]. These intelligent technologies can help researchers more accurately warn and take measures to avoid roof fall accidents before they occur. However, these methods have limitations in knowledge sharing, reuse, and management. In other words, due to the lack of comprehensive information and a unified management system, the degree of information sharing and utilization is low, which cannot meet the needs of largescale data analysis and mining [8]. Therefore, it is a crucial problem to organize, research and manage information regarding roof falls. Furthermore, through the statistics and analysis of roof fall accidents in recent years, the staff does not have a deep understanding of the accidents and cannot accurately find and prevent the hidden danger of the accident that is the leading cause [9,10]. Therefore, it is necessary to strengthen the management and reuse of accident knowledge to improve the safety of coal mine production.  In order to cope with the significant challenges brought by roof fall accidents, researchers have considered early warning and prevention based on data fusion methods [11][12][13]. However, the lack of a unified knowledge organization has limited people's understanding of information, hindering the development of practical solutions. Therefore, this paper formalizes and integrates knowledge from different sources to comprehensively understand roof fall accidents and meanwhile, providing semantic rules based on prior knowledge and data fusion technology to assist roof fall decision-making. In this way, it can promote information sharing and knowledge reuse in this field, assist decisionmakers in referring, and provide a basis for developing intelligent systems to prevent and control roof fall accidents. researchers are paying attention to techniques such as artificial neural networks [7] and deep learning [8]. These intelligent technologies can help researchers more accurately warn and take measures to avoid roof fall accidents before they occur. However, these methods have limitations in knowledge sharing, reuse, and management. In other words, due to the lack of comprehensive information and a unified management system, the degree of information sharing and utilization is low, which cannot meet the needs of largescale data analysis and mining [8]. Therefore, it is a crucial problem to organize, research and manage information regarding roof falls. Furthermore, through the statistics and analysis of roof fall accidents in recent years, the staff does not have a deep understanding of the accidents and cannot accurately find and prevent the hidden danger of the accident that is the leading cause [9,10]. Therefore, it is necessary to strengthen the management and reuse of accident knowledge to improve the safety of coal mine production.  In order to cope with the significant challenges brought by roof fall accidents, researchers have considered early warning and prevention based on data fusion methods [11][12][13]. However, the lack of a unified knowledge organization has limited people's understanding of information, hindering the development of practical solutions. Therefore, this paper formalizes and integrates knowledge from different sources to comprehensively understand roof fall accidents and meanwhile, providing semantic rules based on prior knowledge and data fusion technology to assist roof fall decision-making. In this way, it can promote information sharing and knowledge reuse in this field, assist decisionmakers in referring, and provide a basis for developing intelligent systems to prevent and control roof fall accidents. In order to cope with the significant challenges brought by roof fall accidents, researchers have considered early warning and prevention based on data fusion methods [11][12][13]. However, the lack of a unified knowledge organization has limited people's understanding of information, hindering the development of practical solutions. Therefore, this paper formalizes and integrates knowledge from different sources to comprehensively understand roof fall accidents and meanwhile, providing semantic rules based on prior knowledge and data fusion technology to assist roof fall decision-making. In this way, it can promote information sharing and knowledge reuse in this field, assist decision-makers in referring, and provide a basis for developing intelligent systems to prevent and control roof fall accidents.
This paper proposes an ontology-based knowledge modeling method for roof fall accidents. The purpose is to realize the sharing and effective management of roof fall knowledge and automatically generate solutions for risk information. This paper is structured as follows: Section 2 reviews risk management and ontological analysis of coal mining accidents. Section 3 explains the proposed framework of roof fall accident ontology. In Section 4, the classification structure and interpretation of the roof fall accident ontology are proposed in detail. Section 5 presents the method of defining the semantic rules of roof fall accidents based on prior knowledge and the data fusion method. Section 6 gives the reasoning mechanism and implementation of the roof fall accident ontology. Section 7 addresses study limitations, proposes future research directions, and concludes the paper.

Risk Management of Coal Mines
Currently, researchers have conducted a lot of research on coal mine risk management. These studies aim to identify and evaluate potential hazards, develop strategies to minimize coal mine risks, and promote worker safety [14]. For example, Javadi et al. [13] proposed an evaluation framework based on a fuzzy Bayesian network, which can be used for roof fall risk assessment under uncertain conditions. Through this model, complex relationships in underground mining can be modeled to help people analyze problems more accurately. Based on prior knowledge and case collection, Meng et al. [15] proposed a data-driven Bayesian network model to reveal the priority of risk factors and provide emergency strategies for significant accidents. Li et al. [11] established an information fusion model of coal mine roof fall based on D-S theory and fuzzy mathematics theory, which can predict the risk level of mine roof fall, identify the characteristics of roof fall warnings, and provide a basis for roof fall accident prediction. Zhang et al. [16] utilized neural network technology to integrate multiple sources of information from coal mines, allowing for the deduction of accident states and providing auxiliary decision-making information for coal mine dispatchers.
The knowledge of coal mine accidents is mainly obtained from various sources in structured and unstructured forms (e.g., expert experience, accident case base, sensor data, etc.). However, the absence of a standardized framework for organizing such accidents impedes researchers' comprehensive understanding of the data, thereby hindering the reliable advancement of research and practical solutions. In this context, the further exploration of the formalization of accident information is necessary to achieve better accident analysis and management.

Ontology Technology
The term "ontology" originated from philosophy and primarily described the essence of things [17]. In recent years, researchers have applied ontology concepts to acquire and describe domain-specific knowledge, facilitating the interaction and reuse of knowledge. Ontology is a modeling tool that describes domain concepts at the semantic and knowledge levels [18]. It has significant advantages, such as solid logic, rigid structure, and machine interpretability. Specific domain ontologies can be organized by defining classes, properties, relationships, etc., reflecting the characteristics of the field. Existing ontology languages mainly include XML, RDF, RDFS, OWL, etc., which can convert knowledge into machine-recognizable symbols [19]. Moreover, ontology utilizes appropriate reasoning engines and query languages to facilitate knowledge reasoning and query functions of domain ontologies [20]. In this way, knowledge sharing, management, and reuse can be achieved better to promote the management and application of domain knowledge.
Ontology is increasingly used in the solution of practical problems. Liang et al. [21] constructed an electric security data integration framework based on ontology technology to integrate different data sources. Zhang et al. [20] developed the ontology-based semantic modeling of construction safety knowledge to organize, store, and reuse construction safety knowledge. Xing et al. [22] proposed a domain ontology of safety risk identification in metro construction, providing precise specifications for standardizing and formalizing safety risk knowledge.

Ontology for Accident Analysis in Coal Mines
Due to the ability of ontology to organize, represent and share knowledge, researchers began to seek to apply ontology technology to coal mining. Cheng et al. [23] involved the concept and theory of ontology in the coal mine field, providing a unified semantic framework for constructing digital mines. Zhang et al. [24] proposed an ontology-based knowledge construction method for mining equipment, which provides a new idea for knowledge management of mining equipment. Wu et al. [25] proposed the ontology construction and reasoning method of the main types of work in the coal mine system, which ensured the operation safety of the coal mine workers. Zhang et al. [26] designed a coal mine accident ontology based on the accident causation theory and realized the construction of the knowledge base and knowledge reasoning. Zhang et al. [27] used the improved evidence theory to integrate ontology reasoning rules and realized the comprehensive evaluation of the mine environment. Zhang et al. [28] analyzed the mechanism and influencing factors of water inrush accidents, constructed a warning knowledge base, and predicted the level of floor water inrush.
However, the current coal mine ontology is limited to a specific domain or fusing certain information. There is a lack of research on developing an ontology-based approach for roof fall accidents, which can support early warning and decision-making in this area. Moreover, there is a need for a comprehensive and unified knowledge system to mine the implicit domain knowledge and propose targeted measures deeply. Figure 3 illustrates the proposed ontology-based knowledge modeling method for roof fall accidents. Firstly, the ontology knowledge base of roof fall accidents is developed based on domain knowledge. Seven high-level classes are defined to represent the highest level of abstraction concepts, and subclasses are defined to subdivide more specific concepts. Then, the semantic rule base of roof fall accidents is constructed based on the relevant safety production regulations, expert experience, and the data fusion method. Finally, the data information in the actual mine production is collected and mapped to the ontology knowledge base to generate knowledge specific to the roof fall accident. The reasoning is based on the semantic rules of the roof fall accident. If the data information in the knowledge base meets the conditions, the semantic rules are activated to report the events and locations, and the activity intervention measures are given. The information is stored in the knowledge base to improve and update the knowledge base.

Ontology Construction Process
In the process of ontology construction, relevant standards and regulations should be followed. Common ontology construction methods include the TOVE, Skeleton, IDEF-5, and seven-step methods [29,30]. This section refers to the seven-step and skeleton meth-

Ontology Construction Process
In the process of ontology construction, relevant standards and regulations should be followed. Common ontology construction methods include the TOVE, Skeleton, IDEF-5, and seven-step methods [29,30]. This section refers to the seven-step and skeleton methods to ensure a systematic and well-structured ontology construction process. The seven-step method facilitates the structured development of the ontology, while the skeleton method guarantees a well-organized and easily maintainable ontology structure. Moreover, the use of Protégé facilitates the ontology construction process [31]. The specific process is shown in Figure 4.  Formalizing relevant knowledge is imperative to enable effective interaction and knowledge reuse in roof fall accidents. In this case, the applicable safety regulations, roof fall cases, expert experience and published literature can be used as the knowledge source of ontology. Moreover, the formalization of this knowledge aims to establish a clear and unified language to describe the domain-specific knowledge, thereby facilitating efficient information sharing and application.
The ontology can uniformly represent the conceptual knowledge related to the roof falls and realize the integration of heterogeneous knowledge. The main body of roof fall accidents consists of five essential elements: where C is the set of roof fall accident classes or concepts, there is a hierarchical structure among the classes of the roof fall accident ontology. R is the relationship between classes. Formalizing relevant knowledge is imperative to enable effective interaction and knowledge reuse in roof fall accidents. In this case, the applicable safety regulations, roof fall cases, expert experience and published literature can be used as the knowledge source of ontology. Moreover, the formalization of this knowledge aims to establish a clear and unified language to describe the domain-specific knowledge, thereby facilitating efficient information sharing and application.
The ontology can uniformly represent the conceptual knowledge related to the roof falls and realize the integration of heterogeneous knowledge. The main body of roof fall accidents consists of five essential elements: where C is the set of roof fall accident classes or concepts, there is a hierarchical structure among the classes of the roof fall accident ontology. R is the relationship between classes. F is functions. A is axioms or inference rules. I is the instances of roof fall accidents, which is the concretization of the classes and has an indivisible nature.

Class Hierarchy
The construction of roof fall accident ontology should cover the knowledge and management chain of the roof fall accident field, including the cause, consequence, treatment, staff, workplace and other accident information. This paper uses top-down and bottom-up methods to collect knowledge related to roof falls by extensively consulting relevant literature, regulations, accident reports, books, etc. The roof fall accident ontology is divided into seven classes: accident prevention, accident cause, accident treatment, accident consequence, workplace, staff, and accident case. Additionally, the ontology has been optimized through expert review.
(1) Accident prevention class The accident is causal, latent and preventable. Through the investigation and statistical analysis of roof fall accidents in recent years, the hidden danger of accidents is the direct cause. Therefore, correctly understanding the precursor information of the roof fall accident and taking reasonable and practical preventive measures can significantly reduce the roof fall accident. According to the characteristics of roof fall accidents, the accident prevention class is divided into accident omen, safety education strategies, safety management strategies, and engineering technology strategies.
(2) Accident cause class The roof fall accident is the result of various factors that are interrelated and affect each other. According to the accident cause theory, the causes of roof fall accidents are summarized from the perspective of the man-machine loop. Moreover, the influence of mining technical factors such as the initial support force of the support, mining velocity, and roof stability on roof fall accidents is also considered. Finally, the accident causes in the roof fall accident ontology are divided into unsafe human behavior, the unsafe condition of things, mine environmental factors, management defects, and mining technologic factors.
(3) Accident consequence class The consequences of roof fall accidents include casualties, production suspension, economic losses and equipment damage. Among them, casualties include injuries and deaths.
(4) Accident treatment class Roof fall accident treatment is divided into accident investigation, emergency response, relief materials, and equipment maintenance.  Researchers have constructed the ontology knowledge base for coal mine workers [25]. Referring to the constructed coal mine ontology, the ontology that can be reused for the roof fall accident ontology of the coal mine is extracted. The staff class of roof fall accidents is divided into four classes: emergency personnel, command personnel, coal mine types of work, and relevant experts.

(7) Accident case class
The construction of the knowledge base of roof fall accidents should include typical accident cases. The accident case class in roof fall accident ontology represents the abstract concept of all roof fall accidents, and the roof fall accident instance embodies the accident case class. For example, the 1.12 Shenmu roof fall accident is an instance of the accident case class.

Properties
Based on the classification of the roof fall accident ontology, it is also necessary to specify the properties to connect the related classes to realize the semantic interaction between the ontology knowledge. This paper identifies two properties, namely, object property and data property. Object property reflects the relationship between classes. For example, there is a correlation hasReason between accident_case and accident_cause, indicating the specific cause of the roof fall accident. Data property reflects the relationship between classes and values. For example, the data property hasDeathToll has a domain of accident_case and a range of positiveinteger. Table 1 presents some properties of the roof fall accident ontology. Semantic relations link the roof fall ontology classes to ensure that potential hazards and recommended solutions are generated for specific case events. Figure 5 shows the semantic relationship between the ontology classes of roof fall accidents.

Properties
Based on the classification of the roof fall accident ontology, it is also necessary to specify the properties to connect the related classes to realize the semantic interaction between the ontology knowledge. This paper identifies two properties, namely, object property and data property. Object property reflects the relationship between classes. For example, there is a correlation hasReason between accident_case and accident_cause, indicating the specific cause of the roof fall accident. Data property reflects the relationship between classes and values. For example, the data property hasDeathToll has a domain of acci-dent_case and a range of positiveinteger. Table 1 presents some properties of the roof fall accident ontology. Semantic relations link the roof fall ontology classes to ensure that potential hazards and recommended solutions are generated for specific case events. Figure 5 shows the semantic relationship between the ontology classes of roof fall accidents.

Framework of Roof Fall Accident Instance
The roof fall accident ontology describes abstract information, properties, and axioms, and the instance layer represents the factual information of the class. For example, on 12 January 2019, a roof fall accident occurred in the Shenmu coal mine. The main causes of the accident include non-explosion-proof vehicles entering the mine, not exploring before digging, and the workers' lack of basic safety knowledge and other factors. The accident resulted in 21 deaths. A typical roof fall accident consists of multiple instances, including the location, cause, number of deaths, treatments, etc. Similar cases can be pushed through the creation, screening, matching and retrieval of roof fall accident cases, and experience reference can be realized. Figure 6 illustrates the construction framework of roof fall accidents by taking the 1.12 Shenmu roof fall accident as an example.

Framework of Roof Fall Accident Instance
The roof fall accident ontology describes abstract information, properties, and axioms, and the instance layer represents the factual information of the class. For example, On 12 January 2019, a roof fall accident occurred in the Shenmu coal mine. The main causes of the accident include non-explosion-proof vehicles entering the mine, not exploring before digging, and the workers' lack of basic safety knowledge and other factors. The accident resulted in 21 deaths. A typical roof fall accident consists of multiple instances, including the location, cause, number of deaths, treatments, etc. Similar cases can be pushed through the creation, screening, matching and retrieval of roof fall accident cases, and experience reference can be realized. Figure 6 illustrates the construction framework of roof fall accidents by taking the 1.12 Shenmu roof fall accident as an example.

Semantic Rules of Roof Fall Accidents
Based on the constructed roof fall accident ontology, semantic rules should be set to deeply mine the information generated by the coal mine production to derive potential hidden dangers and specific measures related to roof fall accidents.
The definition of rules mainly includes the normalization and formalization of rules. The normalization of rules mainly adopts the expression of if-then, and the terms involved should be consistent with the classes and properties in the roof fall accident ontology. The formalization of rules converts natural language rules into computer-recognizable coding languages to facilitate inference. This paper uses the rule syntax of Jena to realize the

Semantic Rules of Roof Fall Accidents
Based on the constructed roof fall accident ontology, semantic rules should be set to deeply mine the information generated by the coal mine production to derive potential hidden dangers and specific measures related to roof fall accidents.
The definition of rules mainly includes the normalization and formalization of rules. The normalization of rules mainly adopts the expression of if -then, and the terms involved should be consistent with the classes and properties in the roof fall accident ontology. The formalization of rules converts natural language rules into computer-recognizable coding languages to facilitate inference. This paper uses the rule syntax of Jena to realize the formalization of rules. The formalized rule is: [rule: (?X ?H ?Y),(?Y ?I ?Z)→(?X ?J ?Z)] [32,33]. Where X, Y, and Z represent class or instance, H, I, and J represent the property. It represents that X and Y are connected by property H, Y, and Z are connected by property I, and it is inferred that X and Z are connected by property J. According to this definition rule, the natural language rules are formalized and finally constructed into a rule base.

Semantic Rules Based on Prior Knowledge
The semantic rules based on prior knowledge are constructed by referring to various sources, including coal mine regulations, standards, and expert experience. Firstly, the applicable prior knowledge regarding roof fall accidents is screened. Figure 7 [32,33]. Where X, Y, and Z represent class or instance, H, I, and J represent the property. It represents that X and Y are connected by property H, Y, and Z are connected by property I, and it is inferred that X and Z are connected by property J. According to this definition rule, the natural language rules are formalized and finally constructed into a rule base.

Semantic Rules Based on Prior Knowledge
The semantic rules based on prior knowledge are constructed by referring to various sources, including coal mine regulations, standards, and expert experience. Firstly, the applicable prior knowledge regarding roof fall accidents is screened. Figure 7 selects some safety regulations related to roof fall accidents as examples. The construction of roof fall accident rules based on prior knowledge can reveal potential information that staffs are unaware of and make up for the requirements of personnel quality in roof fall accident analysis. Specifically, by importing the constructed ontology into the inference engine and utilizing corresponding rules to infer the existing knowledge, new knowledge can be derived, thereby revealing the underlying patterns and implicit knowledge in roof fall accidents. The construction of roof fall accident rules based on prior knowledge can reveal potential information that staffs are unaware of and make up for the requirements of personnel quality in roof fall accident analysis. Specifically, by importing the constructed ontology into the inference engine and utilizing corresponding rules to infer the existing knowledge, new knowledge can be derived, thereby revealing the underlying patterns and implicit knowledge in roof fall accidents.

Semantic Rules Based on Data Fusion Method
Although the semantic rules constructed based on empirical knowledge can infer some information regarding roof fall accidents, it is unable to thoroughly mine other potential data rules. In other words, to fully understand and analyze roof fall accidents, it is essential to integrate, analyze, and mine the semantic relevance of multiple data information. Thus, it is imperative to introduce data fusion technology to mine more profound semantic information about roof falls.
Data fusion methods commonly include evidence theory [34,35], neural networks [36], rough sets [37,38], fuzzy reasoning [39,40], etc. The rough set method is a kind of information fusion method, mainly used for describing and reasoning fuzzy and uncertain knowledge, and it does not need other prior knowledge [41,42]. This section introduces the rough set method to mine the data information and extracts the semantic rules of the roof fall accident.

Rough Set (1) Decision table construction
The decision table is the basis of the rough set theory. Generally, the attributes in the decision table can be divided into conditional and decision attributes. Condition attributes describe the characteristics of decision objects, while decision attributes describe the decision results [43]. The decision table can accurately express and analyze complex logical relations and multi-condition combination problems, representing different condition combinations and corresponding operations or results. The rough set is defined as a decision table shown in Table 2. Where U = { u 1 , u 2 , . . . , u n } is the universe of objects, V = { v 1 , v 2 , . . . , v n } is a set of attributes, and S is the decision attribute.
(2) Data standardization and discretization Data standardization and discretization is the pre-step of rough set reasoning, and the purpose is to map the values of different attributes to the same scale [44]. Discretizing the continuous characteristics typically involves using breakpoints to divide the attribute space into finite regions. To ensure data quality, the finite field division needs to be combined with the actual situation.
The discretization methods of continuous data can be divided into two types according to whether there is prior knowledge. One kind of method is based on equal distance division and equal frequency division. The method fails to consider the attribute characteristics of factors, and the data quality cannot be guaranteed after discretization. The second type of method includes the Naïve Scaler algorithm, entropy algorithm, and boolean reasoning algorithm [45].

(3) Attribute reduction of rough set
Attribute reduction is one of the core steps of rough set reasoning. In a rough set framework, the set of condition attributes V = {v 1 , v 2 , . . . , v n } are considered responsible for the occurrence of a particular result S. An attribute v i is considered redundant or unnecessary if v i is removed from the set of attributes and does not affect the classification results [41]. The attribute reduction of the rough set is the process of removing unnecessary knowledge from the knowledge base. The commonly used attribute reduction algorithms are the genetic algorithm, the Johnson greedy algorithm, dynamic reduction, exhaustive calculation, etc.
(4) Software based on the rough set Due to a large amount of manual calculation and inaccurate results, this paper uses ROSETTA software to realize attribute reduction, data discretization, data completion, upper and lower approximation set estimation, rule generation, and other functions.

Semantic Rule Example Based on the Rough Set Method
Take roof stability analysis as an example which is a critical technical measure to prevent roof accidents. By constructing the semantic rules of roof stability, hidden dangers can be eliminated before the formation of roof fall accidents.
(1) Data acquisition The primary data sources of roof fall accidents are automatic perception data and manual input data. There are many factors that lead to roof falls. Roof stability is one of the influencing factors. Once the coal seam roof falls, it will not only cause damage to underground equipment but also may harm workers. Therefore, by referring to relevant research [46,47], this paper takes the roof stability classification data as an example to show the construction process of roof fall accident semantic rules based on the rough set method.
The original data are shown in Table 3. Yang et al. [46] selected five factors affecting roof stability: uniaxial compressive strength of the immediate roof, rock quality designation, coal compressive strength, mining velocity, and roof hydrological conditions. There are one discrete index and four continuous indexes. According to the influence time of roof accidents, roof stability is divided into four categories: unstable, medium stable, stable, and extremely stable. Among them, the medium stable and unstable roofs belong to the disastrous roof, which must be managed and maintained during mining to prevent roof accidents. The extremely stable and stable roofs belong to the safe roof, and the caving work must be carried out in time according to the technical requirements of the mining process.  (2) Discretization of continuous data The rough set software ROSETTA is used to discretize the continuous data. In this paper, different discretization methods are compared with the actual mine. Finally, the entropy-based method is selected for discretization.
(3) Attribute reduction After using ROSETTA software to discretize the data, the next step is attribute reduction. Attribute reduction can eliminate redundant factor attributes to simplify the decision table and maintain classification accuracy. This step can eliminate irrelevant data and improve the efficiency of the decision-making process. This section uses the genetic algorithm to reduce the data. Table 4 displays the result of data reduction using ROSETTA software.

Rule generation
After attribute reduction processing, the generated attribute subsets can be used for effective classification and decision-making. In the end, 32 inference rules are generated. Rules appear in the form of if -then. In principle, the rules should include all possible situations. Table 5 shows some inference rules. Table 5. Partial inference rules about coal mine roof stability.    [32,33]. Take the first rule in Table 5 as an example to illustrate how the generated inference rules are formalized into machine-readable semantics. The formalized rules are presented in Figure 9. Then the formalized rules are added to the knowledge rule base of the roof fall accident.
Take test data in Table 4 to verify the reliability and accuracy of the semantic rules. It is found that the data mining results using the rough set method are consistent with the actual values, which can meet the actual discrimination of roof stability in mine roof fall accidents. In addition, with the increase of information factors in the knowledge base, the accuracy of rules will be further improved, and the uncertainty of knowledge will be reduced.  [32,33]. Take the first rule in Table 5 as an example to illustrate how the generated inference rules are formalized into machine-readable semantics. The for malized rules are presented in Figure 9. Then the formalized rules are added to th knowledge rule base of the roof fall accident. Take test data in table 4 to verify the reliability and accuracy of the semantic rules. I is found that the data mining results using the rough set method are consistent with th actual values, which can meet the actual discrimination of roof stability in mine roof fa accidents. In addition, with the increase of information factors in the knowledge base, th accuracy of rules will be further improved, and the uncertainty of knowledge will be re duced.

Implementation Environment
Based on the roof fall accident ontology and semantic rules developed above, thi section uses Protégé [48] and Apache Jena [49][50][51] software to implement the reasonin mechanism based on the roof fall accident ontology.
Protégé is a free ontology development environment widely used to construct do main knowledge models [22]. Protégé supports the creation of classes, properties, and in stances of ontology and can transform knowledge into machine-understandable languag and support visualization [48].
Apache Jena is an open-source Java framework for building semantic web and linke data applications, and it supports ontology models' storage, query, update, reasoning and other functions [49,50]. Jana can realize the query and modification of the roof fa accident ontology and trigger the reasoning engine according to the predefined roof fa accident-related knowledge rules to realize the roof fall accident query and reasonin function.
The components used in this study include TDB, Jena inference engine, and Fusek

Implementation Environment
Based on the roof fall accident ontology and semantic rules developed above, this section uses Protégé [48] and Apache Jena [49][50][51] software to implement the reasoning mechanism based on the roof fall accident ontology.
Protégé is a free ontology development environment widely used to construct domain knowledge models [22]. Protégé supports the creation of classes, properties, and instances of ontology and can transform knowledge into machine-understandable language and support visualization [48].
Apache Jena is an open-source Java framework for building semantic web and linked data applications, and it supports ontology models' storage, query, update, reasoning, and other functions [49,50]. Jana can realize the query and modification of the roof fall accident ontology and trigger the reasoning engine according to the predefined roof fall accidentrelated knowledge rules to realize the roof fall accident query and reasoning function.
The components used in this study include TDB, Jena inference engine, and Fuseki. TDB is a built-in storage mode officially recommended by Jena; Jena provides RDFS, OWL, and general rule inference engine; and Fuseki is a SPARQL server provided by Jena [51].
The Apache Jena version used in this article is 3.8.0, and the Java environment configuration is 1.8. Figure 10 shows the system architecture. There are usually some omens before the occurrence of roof falls, such as falling debris, roof cracks, and thunderous sounds from roof fractures in the goaf area. However, due to differences in staff experience, perceptions of these omens may vary, making it difficult to detect roof fall omens on time. The deployment of the ontology model can facilitate personnel decision-making. For example, before the roof fall accident, staff_A found that the gob area continuously cracks and thunks, representing the omen of the roof fall accident. This situation triggers the semantic rules for detecting accident omens. The system intelligently infers the current dangerous state and treatment measures. The reasoning process is as follows: staff_A is a staff individual who works in the gob_area, and the_gob_area_cracks_and_thunks is an accident_omen individual. The staff_A is associated with the gob_area through the object property workIn, while the gob_area is linked to the the_gob_area_cracks_and_thunks via the object property hasEnvironment. In this case, semantic rules are activated, staff_A is inferred to be dangerous, and the event's specific location and activity interventions are reported. Figure 11 shows the inference chain based on semantic rules. There are usually some omens before the occurrence of roof falls, such as falling debris, roof cracks, and thunderous sounds from roof fractures in the goaf area. However, due to differences in staff experience, perceptions of these omens may vary, making it difficult to detect roof fall omens on time. The deployment of the ontology model can facilitate personnel decision-making. For example, before the roof fall accident, staff_A found that the gob area continuously cracks and thunks, representing the omen of the roof fall accident. This situation triggers the semantic rules for detecting accident omens. The system intelligently infers the current dangerous state and treatment measures. The reasoning process is as follows: staff_A is a staff individual who works in the gob_area, and the_gob_area_cracks_and_thunks is an accident_omen individual. The staff_A is associated with the gob_area through the object property workIn, while the gob_area is linked to the the_gob_area_cracks_and_thunks via the object property hasEnvironment. In this case, semantic rules are activated, staff_A is inferred to be dangerous, and the event's specific location and activity interventions are reported. Figure 11 shows the inference chain based on semantic rules. Figure 11. Semantic rule-based inference chain for accident omen.

Case 2: Judgment of Personnel Risk
The working place of staff_B is the excavation_face1. However, no support measur are taken on the roof during operation. This information triggers the semantic rules f detecting whether the operator's work is compliant. The reasoning chain is as follow staff_B is a staff individual, and excavation_face1 is an excavation_face individual. Accordin to the object property workIn, staff_B is associated with the excavation_face1, while the e cavation_face1 is connected to the empty_roof_operation through the object property hasE vironment. In this case, staff_B is in a dangerous state and needs to take emergen measures to evacuate personnel. Figure 12 shows the reasoning chain to judge the perso nel risk. This approach can potentially improve the safety of coal mines and help preve the recurrence of similar tragedies.

Case 3: Reasoning of Roof Stability
Roof stability is one of the indexes to judge roof fall. The data in Table 3 is used input to trigger semantic rules about roof stability. According to the reasoning chain, Cas is considered an individual case of accident_case. The properties of Case1 are connected data information through the data properties such as has_uniaxial_compressive_strengt Figure 11. Semantic rule-based inference chain for accident omen.

Case 2: Judgment of Personnel Risk
The working place of staff_B is the excavation_face1. However, no support measures are taken on the roof during operation. This information triggers the semantic rules for detecting whether the operator's work is compliant. The reasoning chain is as follows: staff_B is a staff individual, and excavation_face1 is an excavation_face individual. According to the object property workIn, staff_B is associated with the excavation_face1, while the excavation_face1 is connected to the empty_roof_operation through the object property hasEnvironment. In this case, staff_B is in a dangerous state and needs to take emergency measures to evacuate personnel. Figure 12 shows the reasoning chain to judge the personnel risk. This approach can potentially improve the safety of coal mines and help prevent the recurrence of similar tragedies. Figure 11. Semantic rule-based inference chain for accident omen.

Case 2: Judgment of Personnel Risk
The working place of staff_B is the excavation_face1. However, no support measures are taken on the roof during operation. This information triggers the semantic rules for detecting whether the operator's work is compliant. The reasoning chain is as follows: staff_B is a staff individual, and excavation_face1 is an excavation_face individual. According to the object property workIn, staff_B is associated with the excavation_face1, while the ex-cavation_face1 is connected to the empty_roof_operation through the object property hasEnvironment. In this case, staff_B is in a dangerous state and needs to take emergency measures to evacuate personnel. Figure 12 shows the reasoning chain to judge the personnel risk. This approach can potentially improve the safety of coal mines and help prevent the recurrence of similar tragedies.

Case 3: Reasoning of Roof Stability
Roof stability is one of the indexes to judge roof fall. The data in Table 3 is used as input to trigger semantic rules about roof stability. According to the reasoning chain, Case1 is considered an individual case of accident_case. The properties of Case1 are connected to data information through the data properties such as has_uniaxial_compressive_strength, Figure 12. The reasoning chain to judge the personnel risk.

Case 3: Reasoning of Roof Stability
Roof stability is one of the indexes to judge roof fall. The data in Table 3 is used as input to trigger semantic rules about roof stability. According to the reasoning chain, Case1 is considered an individual case of accident_case. The properties of Case1 are connected to data information through the data properties such as has_uniaxial_compressive_strength, has_coal_compressive_strength, has_roof_hydrological_conditions and has_mining_velocity. Figure 13 shows an example of roof stability reasoning. The result shows that Case1 is related to the unstable_roof with the object property roof_stability, and it is necessary to take measures to reduce the risk before the formation of roof caving accidents.
has_coal_compressive_strength, has_roof_hydrological_conditions and has_mining_velocity. Fig  ure 13 shows an example of roof stability reasoning. The result shows that Case1 is relate to the unstable_roof with the object property roof_stability, and it is necessary to tak measures to reduce the risk before the formation of roof caving accidents. The above examples can trigger the relevant rules of the roof fall accidents and obtai the reasoning results, which reflect the feasibility of the roof fall accident ontology an rule base. In short, the knowledge representation and reasoning model of roof fall acc dents based on ontology can infer implicit knowledge and realize the mining of new knowledge, which can effectively guarantee the smooth progress of production activitie and support the early warning of roof falls.

Limitations and Future Study
Preliminary practice and test results show that ontology-based technology can b unified management of roof fall accident knowledge. However, there are some potentia limitations in this study. Firstly, this study only focuses on roof fall accidents, which lead to the limitation that the constructed ontology and semantic rules lack information from other domains. Additionally, this study is based on a large amount of textual data from roof fall accident cases, primarily focusing on textual case analysis. It is necessary to con duct the comprehensive testing of the constructed ontology framework and apply it t coal mine accidents to further help validate the model's compatibility. Furthermore, th existing roof fall accident ontology relies on manual construction and the exploration o automatic acquisition functions is still required.
Future research will focus on deploying the ontology and semantic rules on a visua ized platform in coal mines and integrating domain experts and knowledge from differen fields to support cross-disciplinary accident analysis and decision-making. Moreove with the development of natural language processing and deep learning, it is possible t utilize appropriate techniques to automate the acquisition and construction of ontolog knowledge, providing more accurate, comprehensive, and flexible semantic modeling ca pabilities in practice.

Conclusions
This study proposes an ontology-based semantic modeling method for roof fall acc dents, which aims to share and reuse roof fall knowledge for intelligent decision-makin in coal mines. It provides a unified framework for sharing, storing, and managin knowledge to assist research progress, enhance safety management, and minimiz The above examples can trigger the relevant rules of the roof fall accidents and obtain the reasoning results, which reflect the feasibility of the roof fall accident ontology and rule base. In short, the knowledge representation and reasoning model of roof fall accidents based on ontology can infer implicit knowledge and realize the mining of new knowledge, which can effectively guarantee the smooth progress of production activities and support the early warning of roof falls.

Limitations and Future Study
Preliminary practice and test results show that ontology-based technology can be unified management of roof fall accident knowledge. However, there are some potential limitations in this study. Firstly, this study only focuses on roof fall accidents, which leads to the limitation that the constructed ontology and semantic rules lack information from other domains. Additionally, this study is based on a large amount of textual data from roof fall accident cases, primarily focusing on textual case analysis. It is necessary to conduct the comprehensive testing of the constructed ontology framework and apply it to coal mine accidents to further help validate the model's compatibility. Furthermore, the existing roof fall accident ontology relies on manual construction and the exploration of automatic acquisition functions is still required.
Future research will focus on deploying the ontology and semantic rules on a visualized platform in coal mines and integrating domain experts and knowledge from different fields to support cross-disciplinary accident analysis and decision-making. Moreover, with the development of natural language processing and deep learning, it is possible to utilize appropriate techniques to automate the acquisition and construction of ontology knowledge, providing more accurate, comprehensive, and flexible semantic modeling capabilities in practice.

Conclusions
This study proposes an ontology-based semantic modeling method for roof fall accidents, which aims to share and reuse roof fall knowledge for intelligent decision-making in coal mines. It provides a unified framework for sharing, storing, and managing knowledge to assist research progress, enhance safety management, and minimize accidents. For the problem of poor organization and reusability of accident knowledge, a domain ontology of roof fall accidents is developed based on the analysis of many roof fall accident cases and combined with expert opinions to optimize, which provides a standard framework to represent the prior knowledge in this field. Semantic rules based on expert experience and data fusion technology further improve the ontology knowledge system. In addition, the formal processing of roof-falling rules based on the Jena syntax is used to make the ontology uniformly expressed in the computer, facilitating subsequent inference engine processing. Data information in mine production is collected and mapped to the ontology knowledge base. If the information meets semantic conditions, the semantic rules are activated to report events, locations, and interventions and detect hazards in real-time. Further research could extend this framework to other types of accidents in coal mines while considering the adoption of automatic acquisition and construction of ontology knowledge. This approach could lead to the intelligent construction and reasoning of ontology models, promoting the development of intelligent systems.