Special equipment accident characterization extraction and classification method based on accident cases
By constructing a lifting machinery safety text corpus and machine learning model, combined with text mining and model fusion technology, the problem of classification of lifting machinery accidents has been solved, intelligent accident nature judgment and event information extraction have been achieved, and safety management efficiency and smart supervision levels have been improved. .
Patent Information
- Application Number
- CN202410919839.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing lifting machinery accident classification methods are difficult to achieve systematic, comprehensive, and efficient intelligent classification, causing supervisors to be confused when judging the nature of the accident.
Construct a text corpus of lifting machinery safety, use text mining technology for feature extraction, combine with machine learning to build an accident classification model, and use the model fusion of support vector machine and BP neural network to achieve intelligent accident classification.
It achieves the extraction and classification of detailed event information for special equipment safety accidents, improves the efficiency of safety management and the level of smart supervision, and provides a solid foundation for research on the causes of special equipment accidents.
Smart Images

Figure CN118733708A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of lifting machinery, and in particular relates to a method for extracting and classifying accident representations of special equipment based on accident cases. Background Art
[0002] In the current handling of special equipment safety accidents, due to the complexity of judging the nature of the accident, supervisors are often confused when judging whether to intervene in the accident investigation. At present, the classification of lifting machinery accidents is mostly based on the linear analysis method of the indicator system, which makes it difficult to achieve a systematic, comprehensive and efficient intelligent classification. With the continuous advancement of big data and artificial intelligence technologies, as well as the continuous improvement of the level of special equipment informatization construction, it is feasible to carry out the classification of lifting machinery accidents based on machine learning techniques. It also provides a new path for the precise prevention and control of lifting machinery safety risks and the digital transformation of quality and safety control. Therefore, the present invention proposes a special equipment accident characterization extraction and classification method based on accident cases. Summary of the invention
[0003] In order to solve the above technical problems, the present invention proposes a special equipment accident representation extraction and classification method based on accident cases to solve the problems existing in the above-mentioned prior art.
[0004] To achieve the above object, the present invention provides a method for extracting and classifying accident characteristics of special equipment based on accident cases, comprising:
[0005] Construct a corpus of lifting machinery safety texts;
[0006] Extracting features from the text corpus to obtain classification representations of lifting machinery accidents;
[0007] An accident classification model for lifting machinery is constructed based on machine learning, and the classification representation of the lifting machinery accident is input into the accident classification model to obtain a classification result.
[0008] Optionally, the process of extracting features from the text corpus to obtain classification representations of lifting machinery accidents includes text preprocessing based on text mining technology, wherein the text preprocessing process includes:
[0009] Constructing a word segmentation dictionary for representing a crane accident, and performing text segmentation processing based on the word segmentation dictionary for representing a crane accident to obtain a first preprocessing result;
[0010] Performing text processing to remove stop words on the first preprocessing result to obtain a second preprocessing result;
[0011] Performing text keyword extraction on the second preprocessing result to obtain a keyword table;
[0012] The keyword table is characterized and expressed to obtain a text preprocessing result.
[0013] Optionally, the process of extracting keywords from text includes:
[0014] Calculate the TF-IDF values of all segmented words based on the second preprocessing result;
[0015] Sort the TF-IDF values of all segmented words and extract the top 20% of the words as the feature items of the text representing the lifting machinery accident;
[0016] The characteristic items are screened and optimized to obtain text keywords representing lifting machinery accidents.
[0017] Optionally, the expression for calculating the TF-IDF value of a segmented word is:
[0018] TF-IDF=TF*IDF
[0019] In the formula, TF represents feature term t i The word frequency, IDF represents the feature item t i The inverse text frequency, n i,j For the word t i In text d j The frequency of occurrence in k n k,j Represents text d j The total frequency of all words in the corpus, |D| is the total number of texts in the corpus, |{j:t i ∈d j}| is the feature item t contained in the corpus i The number of texts, TF-IDF represents the feature item t i The term frequency - inverse text frequency.
[0020] Optionally, the classification characterization of lifting machinery accidents includes: unsafe conditions of objects, unsafe behaviors of people, and non-special accident factors;
[0021] The unsafe state of the object includes: type, original state of the equipment, and equipment workplace;
[0022] The unsafe behaviors of people include: equipment safety status, personal safety protection, human factors, and related personnel operations;
[0023] The non-special accident factors include: functional use, environmental impact, and special causes.
[0024] Optionally, the process of constructing the accident classification model of the lifting machinery includes: fusing the support vector machine with the BP neural network to construct a model classifier.
[0025] Optionally, the BP neural network and the support vector machine are fused based on a voting method.
[0026] Compared with the prior art, the present invention has the following advantages and technical effects:
[0027] The present invention takes lifting machinery as the research object and lifting machinery accident reports as the corpus, applies text mining and machine learning related technologies, deeply explores the characterization and lessons of special equipment safety accidents, and intelligently generates the nature of accidents and corresponding results. It provides detailed event information and experience support for the current special equipment safety management field to respond to emergencies, and complements other safety management methods, thereby greatly improving the efficiency and level of safety management and further strengthening the safety guarantee of special equipment.
[0028] The special equipment safety accident machine learning model constructed by the present invention can automatically obtain event information and event development process information by extracting and analyzing the collected special equipment safety accident case data, and obtain reliable and intuitive special equipment safety incident characterization information. On this basis, scientific classification is carried out to provide decision-making support for relevant market supervision departments, improve the level of intelligent supervision, and lay a solid foundation for subsequent research on the causes of special equipment accidents. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0030] Figure 1 It is a lifting machinery accident characterization extraction and demand identification process according to an embodiment of the present invention;
[0031] Figure 2 A statistical diagram of accident occurrence forms according to an embodiment of the present invention;
[0032] Figure 3 A statistical diagram of the degree of damage to the accident equipment according to an embodiment of the present invention;
[0033] Figure 4 This is a statistical diagram of accident levels in an embodiment of the present invention;
[0034] Figure 5 This is a statistical diagram of the main responsibility for accidents according to an embodiment of the present invention;
[0035] Figure 6 This is the lifting machinery text preprocessing process of an embodiment of the present invention;
[0036] Figure 7 This is a research idea of text classification based on machine learning in an embodiment of the present invention;
[0037] Figure 8 An accident classification model framework based on machine learning according to an embodiment of the present invention;
[0038] Fig. 9 The classification model algorithm flow of the embodiment of the present invention;
[0039] Fig.10 is the specific value of the result of the random forest algorithm in the embodiment of the present invention;
[0040] Fig.11 is the specific value of the result of the support vector machine in the embodiment of the present invention;
[0041] Fig.12 is the specific value of the result of the bp neural network in the embodiment of the present invention;
[0042] Fig.13 It is the specific value of the result of the model fusion in the embodiment of the present invention. DETAILED DESCRIPTION
[0043] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0044] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0045] Embodiment 1
[0046] Through research on feature recognition and accident classification, a machine learning-based crane accident characterization extraction and classification model was successfully constructed. Supervisors only need to input relevant feature information, and the model can quickly determine the nature of special equipment safety accidents.
[0047] This embodiment provides a method for extracting and classifying accident representations of special equipment based on accident cases, including the following steps: constructing a crane safety text corpus; extracting features from the text corpus to obtain a crane accident classification representation; constructing a crane accident classification model based on machine learning, and inputting the crane accident classification representation into the accident classification model to obtain a classification result. The specific implementation process includes:
[0048] Research on characterization extraction of lifting machinery accidents: Under the theoretical framework of mining, this paper uses text mining methods to establish an accident case library containing 132 investigation reports of lifting machinery accidents that occurred between 2003 and 2022 as the main data source of this invention, and extracts the characteristics of lifting machinery accidents. Among them:
[0049] 1. The research path of hoisting machinery accident characterization extraction includes the following contents
[0050] (1) Text Mining
[0051] The text mining process mainly includes four core links: the first is the collection of text corpus, which is the cornerstone of the entire analysis process; the second is the preprocessing of text corpus, which is crucial to the accuracy and efficiency of subsequent analysis; the third is the in-depth exploration of information and knowledge in the text, which is the core task of text mining; the fourth is the visualization of the mined information and knowledge in order to present the analysis results more intuitively.
[0052] In text mining, in order to quantify the importance of feature items in the text, the feature item weighting function of term frequency-inverse text frequency (TF-IDF) is specially used. The TF-IDF method comprehensively considers the frequency of occurrence of feature items in a single text (TF) and the distribution of feature items in the entire text collection (IDF). By combining these two factors, the weight of each feature item in the text can be calculated. The specific calculation steps include determining the term frequency of the feature item, calculating its inverse text frequency, and finally multiplying the two to obtain the TF-IDF value of the feature item. The calculation is shown as follows:
[0053] First, calculate the characteristic term t i The formula for word frequency TF is:
[0054]
[0055] Where: n i,j For the word t i In text d j The frequency of occurrence in k n k,j Represents text d j The total frequency of all words in .
[0056] Secondly, calculate the characteristic term t i The formula for the inverse document frequency IDF is:
[0057]
[0058] Where: |D| is the total number of texts in the corpus, |{j:t i ∈d j}| is the feature item t contained in the corpus i The number of texts.
[0059] Finally, the feature term t i The formula for term frequency-inverse document frequency TF-IDF is:
[0060] TF-IDF=TF*IDF
[0061] (2) Research path of accident characterization extraction
[0062] Based on four conventional processes, the present invention designs a three-stage process for the extraction of hoisting machinery accident representations: extensive collection of text corpus, text preprocessing, and extraction of classification representations of hoisting machinery accidents. Figure 1 shown.
[0063] 2. The collection of accident representation text corpus includes the following contents
[0064] In the first stage, it is necessary to collect text corpora representing crane accidents. In order to obtain more corpora, various methods were adopted in the research, such as OCR technology recognition and web crawler sorting. Through these methods, a large amount of text corpora representing crane accidents can be obtained. On this basis, the collected corpora are divided into text corpus 1 and text corpus 2, which provide basic data for subsequent text mining.
[0065] (1) Text Corpus 1
[0066] In the first stage of corpus construction, detailed investigation reports on China's lifting machinery safety accidents from 2003 to 2022 were obtained from the Special Equipment Safety Supervision Bureau. These reports comprehensively record the investigation and handling process of the accident, covering the key information of the entire process of accident occurrence and accident handling. At the same time, it was found that there are many types of lifting machinery accidents and the degree of damage caused by them is also different. Safety accidents are often concealed and underreported. At the same time, the information disclosure of some lifting machinery safety accidents is relatively rough, resulting in a certain number of accidents that cannot obtain objective and detailed investigation reports. In order to ensure the accuracy and effectiveness of the research, those information that cannot fully reflect the nature and cause of the accident were manually removed, so as to select detailed documents of 132 lifting machinery accidents to form the core corpus-Corpus 1. These corpora will provide basic data for subsequent text mining, and also provide a basic basis for the classification of accidents. Since text corpus 1 is the main data source, Corpus 1 will be described in detail below.
[0067] As shown in Table 1, the cases received were summarized and sorted to obtain a list of accident cases. For the accident cases obtained, statistics were made from the aspects of accident occurrence, equipment damage degree, accident level, and main responsibility of the accident, and statistical charts were drawn, such as Figure 2-Figure 5 shown.
[0068] Table 1
[0069]
[0070]
[0071] (2) Text Corpus 2
[0072] When constructing text corpus 2, a systematic collection of relevant laws and regulations in the field of lifting machinery was carried out. In combination with the research objectives of this invention, corpus 2 is four laws and regulations related to the investigation and handling of lifting machinery accidents. The collection of these laws and regulations is intended to provide solid legal support and theoretical basis for the research.
[0073] The "Special Equipment Safety Law" is a law and regulation that has been implemented in my country since January 1, 2014. This law has made clear provisions for each special link, including production, inspection, testing, supervision and other links.
[0074] The Regulations on Safety Supervision of Special Equipment also regulates the above-mentioned aspects of special equipment and is an indispensable and important regulation in the field of special equipment safety management in my country.
[0075] In terms of lifting machinery, the Safety Technical Regulations for Lifting Machinery was issued by the State Administration for Market Regulation of the People's Republic of China on January 10, 2010, and officially implemented on June 1 of the same year. The regulations cover all-round safety management requirements for the design, manufacture, installation, modification, maintenance, use, inspection and supervision of lifting machinery, providing important guarantees for the safe operation of lifting machinery.
[0076] At the same time, the State Administration for Market Regulation issued the Accident Investigation Report and Handling Provisions on July 3, 2009, which was implemented on November 1 of the same year. The provision clarifies the reporting, investigation and handling procedures for special equipment accidents, and provides a strong legal basis for the timely and fair handling of special equipment accidents.
[0077] These four laws and regulations constitute Corpus 2, which together constitute the legal system for special equipment safety management in my country and provide a solid legal support for ensuring the safe operation of special equipment.
[0078] 3. Text preprocessing based on text mining includes the following contents
[0079] According to the actual needs of lifting machinery characterization extraction, the present invention designs the following Figure 6The four-step crane text preprocessing process shown includes: text segmentation, stop word removal, text keyword extraction, and completeness expression. Through the above four steps, the text can be processed more accurately to support the extraction of representations. At the same time, during the event process, it is also necessary to optimize according to the actual situation to improve the accuracy of the extraction of crane accident representations. The text preprocessing process includes: constructing a crane accident representation segmentation dictionary, performing text segmentation based on the crane accident representation segmentation dictionary to obtain a first preprocessing result; performing stop word removal on the first preprocessing result to obtain a second preprocessing result; performing text keyword extraction on the second preprocessing result to obtain a keyword table; and performing representation integrity expression on the keyword table to obtain a text preprocessing result.
[0080] (1) Chinese word segmentation of accident representation text
[0081] In the first stage of text preprocessing, Chinese word segmentation of the corpus is a key step. The present invention selects a Chinese word segmentation method based on a dictionary and adopts the Python-Jieba library as a basic word segmentation tool. However, due to the particularity of the representation of lifting machinery accidents, directly using the basic word segmentation dictionary often leads to incorrect segmentation of professional vocabulary. In order to solve this problem, it is decided to construct a word segmentation dictionary for the representation of lifting machinery accidents to better define and process relevant professional vocabulary.
[0082] The construction of the auxiliary word segmentation vocabulary includes two main steps. In the first step, it is necessary to collect professional vocabulary extensively. The present invention collects professional lifting machinery vocabulary through professional vocabulary libraries such as "Machinery and Crane Vocabulary", "Special Equipment Catalog Vocabulary" and "Harbin Institute of Technology Text Mining Common Vocabulary". These vocabulary libraries provide the present invention with a wealth of professional terms related to lifting machinery and special equipment, which helps to more accurately identify and segment the accident representation text. By integrating these vocabulary resources, a comprehensive and professional auxiliary word segmentation vocabulary library can be established to provide strong support for subsequent word segmentation work. In the second step of constructing a lifting machinery accident representation word segmentation dictionary, the present invention retrieved literature related to topics such as "Lifting Machinery Accident Characterization", "Lifting Machinery Accident Characterization Causes", and "Lifting Machinery Accident Characterization Influencing Factors" from the China Knowledge Network database. Through screening and refining, key documents were obtained, and the terms related to the lifting machinery accident representation involved therein were systematically counted and sorted.
[0083] Finally, the present invention uses the refined word segmentation results as an important supplement to the word segmentation dictionary for hoisting machinery accident representation. This supplement not only enriches the content of the dictionary, but also provides more accurate and comprehensive support for the subsequent accident representation extraction work. Under the designed hoisting machinery accident representation extraction process framework, Chinese word segmentation processing based on the Jieba library of the Python language is a very good choice. On this basis, Chinese word segmentation processing is performed on 132 hoisting machinery corpora and 4 legal and regulatory texts. These word segmentation results can serve as the basis for the extraction of hoisting machinery accident representations and provide support for the subsequent keyword extraction steps. Commonly used hoisting machinery vocabulary is shown in Table 2 below.
[0084] Table 2
[0085]
[0086] (2) Remove stop words
[0087] In the second stage, the result of the first stage needs to be processed with stop words, including setting up crane stop words and stop word thesaurus. Stop words frequently appear in text, but usually do not carry information that has substantial contribution to semantic understanding, so they will be deleted. These stop words are not automatically generated, but need manual input, and then form a stop word list. However, there is currently a lack of a unified and applicable stop word list for all tools, which limits the efficiency and accuracy of information retrieval to a certain extent. Therefore, the present invention is intended to build a general word list specifically for the crane field, in the hope of optimizing the information retrieval process in this field.
[0088] Through comprehensive analysis and induction of existing research literature, the methods for removing stop words can be summarized into two categories: one is the method that relies on the stop word dictionary, and the other is the technology based on part-of-speech tagging. When using the stop word dictionary method, researchers need to select an appropriate existing stop word dictionary according to the specific text processing task, or compile an applicable dictionary according to actual needs. Secondly, after the text is segmented, the segmentation results are compared with the stop word list. If a word is reflected in the stop word list, it will be removed from the text; if it does not appear in the stop word list, it will be retained. There are already many stop word list resources that can be directly used on the Internet, but in practical applications, some stop words suitable for lifting machinery safety accident texts need to be added to further expand the stop words. For example, some high-frequency but meaningless words, such as "therefore" and "should", as well as some place names, provincial and municipal names that are not related to lifting machinery safety accidents, can be added to ensure the pertinence and effectiveness of the stop word list.
[0089] The core principle of the stop word processing method based on part-of-speech tagging is to use the results of part-of-speech tagging for screening. Usually, words of specific parts of speech, such as modal particles, prepositions, conjunctions, pronouns, etc., are considered stop words and removed. In addition, through in-depth analysis of the content of the lifting machinery text, those uncommon parts of speech or those not involved in specific tasks can be further removed, thereby improving the accuracy of text preprocessing.
[0090] The present invention selects the first method to remove stop words, but due to the particularity of the text such as the crane accident report, some words are added. The stop words of the crane text are shown in Table 3 below.
[0091] Table 3
[0092]
[0093] (3) Extraction of keywords from accident characterization text
[0094] In the third stage, it is necessary to extract keywords from the text representing the lifting machinery accident. The specific steps are as follows: First, based on the results of Chinese word segmentation processing, the TF-IDF values of all segmented words are calculated, and these values reflect the importance and relevance of the words in the text. Then the present invention sorts the calculated TF-IDF values to find the words with the highest weight. In order to determine the keywords, the words with TF-IDF values in the top 20% are selected as the hot words of the text representing the lifting machinery accident. These hot words not only appear frequently in the text, but also have strong representativeness, and can accurately reflect the main characteristics and key information of the lifting machinery accident. After completing the TF-IDF value calculation and sorting, the present invention further screens and optimizes the extracted keywords. For those words with high TF-IDF values but no actual representational meaning, such as "ad hoisting accident", "accident report", "company", etc., these words will have no practical value for the characterization analysis of lifting machinery accidents.
[0095] By selecting the feature items with TF-IDF values in the top 20%, 77 text keywords with practical characterization significance for hoisting machinery accidents are finally retained. These keywords not only have high TF-IDF values, but also can accurately reflect the key to hoisting machinery accidents. The present invention organizes these keywords and their corresponding TF-IDF values into Table 4 for further complete expression in the future.
[0096] Table 4
[0097]
[0098]
[0099]
[0100] From the keyword extraction results of the hoisting machinery accident representation text, we can see that some keywords have high TF-IDF values, such as safety awareness, illegal operation, safety management, safe production, illegal behavior, etc. These are usually the main basis for the classification of hoisting machinery accidents, and also have a direct or indirect impact on the accidents. It can be seen that it is feasible to obtain the representation of hoisting machinery accidents by analyzing keywords.
[0101] (4) Accident representation integrity expression
[0102] In the fourth stage, it is necessary to further obtain the associated combination of keyword feature items to obtain the crane accident representation information with complete semantics.
[0103] 4. Results of classification and characterization extraction of lifting machinery accidents
[0104] For the accident classification representation, the classification results are annotated based on the expert judgment results of another sub-task of this project, "Special Equipment Safety Accident Judgment". Through the keyword list mined in the previous article, combined with the completeness expression of the fourth stage, an in-depth analysis was conducted. In order to ensure the accuracy and practicality of the classification, the accident classification representation was refined through manual judgment. The specific results are shown in Table 5 below.
[0105] Table 5
[0106]
[0107]
[0108] Based on the above classification characterization extraction results, they can be divided into the following categories. H1, H2, H3, and H8 indicate an unsafe state of an object. In the classification of lifting machinery accidents, the unsafe state of lifting machinery will be directly judged as a special equipment accident. As for H5, H7, and H9, they can be classified as unsafe behaviors of people. In the definition of special equipment accidents and special equipment-related accidents, human deliberate destruction can be judged as special equipment-related accidents. H4, H6, and H10 are proposed for special requirements of special equipment-related accidents, and they can be collectively referred to as non-special accident factors. In summary, the classification characterization has been sorted out. Since the extraction of the characterization is to facilitate the supervisory personnel to input this information in the system later and generate classification results through the model, the present invention sets a characteristic value for each characterization instead of manual input. These characteristic values are sorted and summarized on the basis of the keyword extraction results, and the specific characteristic values are shown in Table 6.
[0109] Table 6
[0110]
[0111]
[0112] Research on the construction of a crane accident classification model based on machine learning: The extraction of crane accident classification representation based on text mining provides a basis for the in-depth analysis of accident text data, opens up the technical path from accident text data to accident classification representation and then to accident classification potential information, and creates possibilities for crane accident classification. Therefore, the present invention aims to design a crane accident classification method and model based on machine learning. Among them:
[0113] 1. Accident classification model framework for cranes based on machine learning
[0114] (1) Construction process of accident classification model
[0115] like Figure 7 The figure shows the research idea of text classification based on machine learning.
[0116] In order to better achieve intelligent classification of lifting machinery, the present invention is based on the results of classification characterization and extraction of lifting machinery accidents, integrates data dimension reduction, parameter optimization and accident classification concepts, and constructs a lifting machinery accident classification model based on machine learning, covering three categories: data dimension reduction model, parameter optimization model and accident classification model. The process of constructing a lifting machinery accident classification model based on machine learning includes clarifying the principles of accident classification model construction, sorting out the goals of accident classification model construction, designing the overall architecture of accident classification model construction, and determining the final lifting machinery accident classification model based on the overall architecture. The accident classification model framework based on machine learning is as follows: Figure 8 shown.
[0117] (2) Principles for constructing accident classification models
[0118] According to the framework of crane accident classification model from the perspective of machine learning, with the extracted classification representation of crane accidents as the cornerstone, and following the principles of systematicity, comprehensiveness and applicability, a crane accident classification model based on machine learning is constructed.
[0119] Systematic principle: In order to improve the accuracy of classification results, the systematic principle should be followed to design a crane accident classification model based on the machine learning perspective, which includes feature extraction, accident classification model and parameter optimization model. At the same time, in the construction process of the crane accident classification model, a series of systematic processes are included, including the preliminary construction of the model, the verification of the model performance and the final determination of the model.
[0120] Comprehensiveness principle: In the process of constructing the classification model of lifting machinery accidents, different accident categories need to be considered, and not only quantitative representations should be selected, but also based on the input layer. The characteristic values of the input layer should be consistent with legal provisions as much as possible to ensure the rationality of the construction of the classification of lifting machinery accidents.
[0121] Applicability principle: The ultimate goal of building a crane accident classification model based on machine learning is to enable it to fully play its role in the process of intelligent accident classification. Therefore, when building a crane accident classification model, it is necessary to fully consider the actual needs of the crane accident classification and supervision process, and combine the actual characteristics of crane accidents with numerous and complex factors to build a more practical crane accident classification model.
[0122] (3) Objectives of building the accident classification model
[0123] Based on the principles of systematicity, comprehensiveness and applicability of model construction, the goals of constructing a crane accident classification model from the perspective of machine learning are as follows:
[0124] Design a more accurate accident classification model: guided by the systematic and comprehensive nature of the accident classification process, design a lifting machinery accident classification model based on the combination of direct and indirect factors; guided by the accuracy of the accident classification results, design a lifting machinery accident classification model based on machine learning; guided by dynamic accident classification and intelligent classification, design a lifting machinery accident classification model that deeply integrates machine learning technology and accident classification management theory.
[0125] Design a more efficient accident classification model: Guided by the efficiency of accident classification, build a crane accident classification model with stronger computing and adaptive learning capabilities based on machine learning technology; build a crane accident classification model with faster learning speed, stronger learning ability and greater fault tolerance based on machine learning technology; and build a crane accident classification model with wider application scenarios based on the availability of massive crane safety risk data based on machine learning technology.
[0126] Design a more practical accident classification model: In order to provide a model basis for the classification mode of crane accidents from the perspective of machine learning, and to achieve intelligent and accurate nature diagnosis of crane accidents. The extraction results of the classification representation of crane accidents provide the element basis for the classification of crane accidents. The data set provides sufficient structured data for the classification of crane accidents, and also provides the prerequisite for the technical methods of machine learning. Therefore, the crane accident classification model with accident representation as input and accident classification results as output can more effectively conduct crane safety risk analysis.
[0127] Determine the accident classification model based on the overall structure: According to the overall architecture of the lifting machinery accident classification model, the specific hierarchical model construction is divided into three stages: preliminary model construction, model performance verification, and final model determination. The focus of each stage is different, and the methods used are also different. In the initial construction stage, based on the existing accident classification model, it is applied to the three links of the construction of the lifting machinery accident classification model, the process steps of the model are designed, and a certain degree of improvement is made. In the performance verification stage, according to the data set, machine learning and other machine learning calculation methods are selected, and computer languages such as Python are used to verify the model performance and conduct comparative analysis. In the final determination stage, based on the results of performance testing and comparative analysis, the model with the best performance in classification data feature extraction and classification model parameter optimization is determined. Finally, the accident classification method from the perspective of machine learning is integrated into the accident classification system.
[0128] (4) Model preliminary selection
[0129] As mentioned above, the crane accident classification model based on machine learning is essentially a binary text classification model of machine learning. The text classification model is a model specifically used to classify text data. By learning the patterns and features in the text data, the text data is classified into different categories. According to the objectives of the model and with reference to the commonly used binary text classification models, the present invention selects the random forest algorithm, support vector machine and bp neural network as the method for crane accident classification. These methods are a machine learning algorithm based on statistical learning theory, with high classification accuracy and scalability, and can also process high-dimensional data.
[0130] Here we need to explain in particular the training set and test set used in the present invention. The training set is a set of data specially provided to the machine learning model for training. The model will learn based on the data in the training set and strive to explore the patterns and laws in the data. The main function of the test set is to evaluate the performance of the trained model. Since the model has not been exposed to the test set during the training process, its generalization ability, that is, the model's prediction accuracy for new data, can be evaluated by observing the performance of the model on the test set. The actual results of the training set and test set of the present invention are all taken from the accident reports of lifting machinery, and these reports are obtained through the Special Equipment Safety Supervision Bureau. Therefore, it is believed that the conclusions on the nature and cause of the accident in the accident report are credible.
[0131] (5) Accident classification model implementation process
[0132] For the lifting machinery accident classification model, the present invention uses the JupyterNotebook module in the Aanaconda software suite to edit the Python code, thereby completing the implementation of all algorithms. JupyterNotebook is displayed in the form of a web page, allowing users to write and execute Python code directly on the interface. In addition, JupyterNotebook also supports direct calls to scikit-learn (often referred to as sklearn). scikit-learn is a member of the Python third-party library, focusing on providing support for machine learning, covering a full range of functions from data processing to model training. Through this platform, the sklearn library can be used more conveniently to realize the complete process of data analysis and model building. Since the goal is to make the prediction accuracy as high as possible, thereby supporting regulators to make judgments on the nature of the accident, the starting point is to improve the accuracy of the model, forming the following Fig. 9 The algorithm flow chart is shown. Such a flow chart can help better understand and implement the algorithm flow of the lifting machinery accident classification model and improve the performance and accuracy of the model.
[0133] 2. Construction of accident classification model for lifting machinery based on random forest algorithm
[0134] The traditional machine learning classifier model used in this section is the random forest classifier. The parameter settings, core algorithms and experimental results of each classifier during the experiment will be described in detail below. This paper is based on the JupyterNotebook practice environment, uses the Python programming language, and uses the Scikit-learn open source machine learning library to construct a crane accident classification model.
[0135] (1) Implementation of the accident classification model construction algorithm for lifting machinery based on random forest algorithm
[0136] In the random forest classification algorithm, the grid search method can help obtain key parameters. Ultimately, among all the parameter combinations tried, the parameter values that optimize the model performance will be selected as the final parameter configuration. This method can make full use of the information in the data to train a more accurate and robust model. In the random forest model, the most important parameter is the number of trees. However, the larger the parameter, the better. The best prediction effect usually occurs when the number of trees is reasonable. Usually 20 is used as the split point, and the value is between 0 and 300. Using the grid search method, it is finally determined that the number of decision trees is 120 for the best effect. Other optimal parameters are: the maximum depth of the tree is 5, and the minimum number of samples is 2.
[0137] After running the random forest program and carefully optimizing the corresponding parameters, the classification results of lifting machinery accidents based on the random forest algorithm were obtained. The detailed data are shown in Table 7. Fig.10 is the specific value of the result of the random forest algorithm.
[0138] Table 7
[0139]
[0140] 3. Implementation of the accident classification model construction algorithm for lifting machinery based on support vector machine
[0141] In support vector machines, there are two key parameters, namely the kernel function and penalty parameter mentioned above. The kernel function maps the distance of samples in the feature space to the new space. Common kernel functions include linear kernel, polynomial kernel, Gaussian kernel, etc. The penalty parameter is used to control the complexity of the model. The larger its value, the more complex the model is, and the easier it is to fit the training data, but the generalization ability will become worse; conversely, the smaller its value, the simpler the model is, the better the generalization ability is, but it may not fit the training data well.
[0142] Then the grid search method is also used to select the best parameters. When using this method to select the best parameters of the support vector machine, it is necessary to first clarify the value range of the kernel function and the penalty parameter, and then conduct a comprehensive search within this range. According to the search results, the best parameter of the kernel function is the linear kernel, and the penalty parameter is 1, and the parameter combination with the best performance is selected as the best parameter. The explanation of the code is similar to the random forest algorithm, and this embodiment will not be repeated, and only the results obtained are shown, as shown in Table 8. Fig.11 is the specific value of the result of the support vector machine.
[0143] Table 8
[0144]
[0145] 4. Implementation of the accident classification model of lifting machinery based on BP neural network
[0146] In the BP neural network, a series of parameters need to be set and adjusted. Some common parameters are as follows: learning rate, which is used to control the step size of each weight and bias update. A smaller learning rate can make the training more stable, but it may lead to slower convergence. However, although a larger learning rate can speed up the convergence, it may cause instability and non-convergence problems; the number of hidden layers and nodes. The hidden layer is the middle layer of the neural network, which is responsible for feature extraction and conversion of the input data. The number of hidden layers and nodes should be determined according to the complexity of the problem and the characteristics of the data; activation function, which is used to achieve nonlinear conversion between neurons. Common activation functions include sigmoid, tanh and ReLU. Different activation functions have a significant impact on network performance and convergence speed; the number of training rounds, which indicates the number of iterations of the entire training data set. Generally speaking, increasing the number of training rounds may improve the model's fitting ability, but it may also cause overfitting problems; regularization parameter, regularization is a technique used to prevent overfitting. Common regularization methods include L1 and L2 regularization, which limit the complexity of the model by adding penalty terms to the weights. The grid search method is also used to select the best parameters. When the grid search method is used to select the best parameters of the BP neural network, the learning rate is 0.01 and the activation function is tanh. The explanation of the code is similar to that of the random forest algorithm, and this embodiment will not be repeated, and only the results obtained are shown, as shown in Table 9. Fig.12 It is the specific value of the result of bp neural network.
[0147] Table 9
[0148]
[0149] A special equipment safety accident classification model based on machine learning was constructed and divided into two types: special equipment accidents and special equipment related accidents. The optimal classifier was selected based on comparative analysis to achieve the diagnosis of special equipment accidents and solve the boundary problem of special equipment accidents. According to the prediction results of the model, the results of the three models were compared, and the accuracy of BP neural network and support vector machine classification reached 100%. Therefore, the model integration method will be used in the future to integrate the BP neural network model with the support vector machine.
[0150] 5. Model Fusion
[0151] Based on the experimental results above, both BP neural network and support vector machine achieved 100% accuracy in the task of crane accident classification. In order to further optimize the model performance, the present invention introduces model fusion technology, which aims to improve the accuracy and generalization ability of the model by merging and optimizing two or more models. The core idea of model fusion is to regard different models as different sources of information and integrate this information to obtain better results. Since model fusion can understand data from multiple angles and in multiple ways, it usually has more significant advantages.
[0152] In this invention, we use voting method to fuse BP neural network and support vector machine. Voting method is a model fusion method based on majority voting principle. For each sample to be predicted, we first let each model make predictions separately, then count the votes of each prediction result, and finally select the prediction result with the most votes as the final output.
[0153] Specifically, for the model fusion required in this embodiment, we fuse the two models of BP neural network and support vector machine. For the sample x to be predicted, each model will give a prediction result y1 and y2. The voting process is as follows: first, calculate the number of votes for each prediction result; then, for each prediction result yj, we compare it with other prediction results, and if yj is the same as other prediction results, cast a vote for yj; finally, select the prediction result with the most votes as the final prediction result.
[0154] Through the voting method, we can integrate the prediction results of multiple models, thereby reducing the error and uncertainty of a single model and improving the accuracy and stability of the prediction. At the same time, increasing the number and diversity of models can further improve the accuracy and generalization of predictions. The results of the model fusion of the present invention are detailed in Table 10. This method not only improves the model performance, but also provides new ideas and methods for subsequent special equipment accident classification research. Fig.13 is the specific value of the model fusion result.
[0155] Table 10
[0156]
[0157] This embodiment explores in depth how to build a crane accident classification model based on machine learning. When building the model, we carefully selected three classifiers with different mechanisms that performed well in binary classification tasks, and gave a comprehensive and detailed interpretation of their operating principles and parameter configurations. Then, we conducted an in-depth study of the performance differences of these three classifiers when dealing with the classification of crane accidents. In order to comprehensively evaluate the performance of each classifier, we adopted multi-dimensional evaluation indicators, covering accuracy, precision, recall rate and F1 score, and systematically considered them. In addition, we also innovatively tried to fuse the support vector machine with the BP neural network model, and were pleasantly surprised to find that this fusion model showed excellent performance in the present invention. The results of the present invention fully demonstrate the remarkable effect of machine learning in the classification of crane accidents. It not only provides a powerful reference for subsequent special equipment classification research, but also lays a solid foundation for further improving the investigation process of special equipment accidents.
[0158] The above are only preferred specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for extracting and classifying accident characteristics of special equipment based on accident cases, characterized in that: The following steps are involved: Construct a corpus of lifting machinery safety texts; Extracting features from the text corpus to obtain classification representations of lifting machinery accidents; An accident classification model for lifting machinery is constructed based on machine learning, and the classification representation of the lifting machinery accident is input into the accident classification model to obtain a classification result.
2. The method for extracting and classifying accident characteristics of special equipment based on accident cases according to claim 1 is characterized in that: The process of extracting features from the text corpus to obtain classification representations of lifting machinery accidents includes text preprocessing based on text mining technology, wherein the text preprocessing process includes: Constructing a word segmentation dictionary for representing a crane accident, and performing text segmentation processing based on the word segmentation dictionary for representing a crane accident to obtain a first preprocessing result; Performing text processing to remove stop words on the first preprocessing result to obtain a second preprocessing result; Performing text keyword extraction on the second preprocessing result to obtain a keyword table; The keyword table is characterized and expressed to obtain a text preprocessing result.
3. The method for extracting and classifying accident characteristics of special equipment based on accident cases according to claim 2 is characterized in that: The process of extracting keywords from text includes: Calculate the TF-IDF values of all segmented words based on the second preprocessing result; Sort the TF-IDF values of all segmented words and extract the top 20% of the words as the feature items of the text representing the lifting machinery accident; The characteristic items are screened and optimized to obtain text keywords representing lifting machinery accidents.
4. The method for extracting and classifying accident characteristics of special equipment based on accident cases according to claim 3 is characterized in that: The expression for calculating the TF-IDF value of a segmented word is: TF-IDF=TF*IDF In the formula, TF represents the feature term t i The word frequency, IDF represents the feature item t i The inverse text frequency, n i,j For the word t i In text d j The frequency of occurrence in k n k,j Represents text d j The total frequency of all words in the corpus, |D| is the total number of texts in the corpus, |{j:t i ∈d j }| is the feature item t contained in the corpus i The number of texts, TF-IDF represents the feature item t i The term frequency - inverse text frequency.
5. The method for extracting and classifying accident characteristics of special equipment based on accident cases according to claim 3 is characterized in that: The classification characteristics of lifting machinery accidents include: unsafe conditions of objects, unsafe behaviors of people and non-special accident factors; The unsafe state of the object includes: type, original state of the equipment, and equipment workplace; The unsafe behaviors of people include: equipment safety status, personal safety protection, human factors, and related personnel operations; The non-special accident factors include: functional use, environmental impact, and special causes.
6. The method for extracting and classifying accident characteristics of special equipment based on accident cases according to claim 1 is characterized in that: The process of constructing the accident classification model of lifting machinery includes: fusing the support vector machine and the BP neural network to construct a model classifier.
7. The method for extracting and classifying accident characteristics of special equipment based on accident cases according to claim 6 is characterized in that: Based on the voting method, BP neural network and support vector machine are integrated.
Citation Information
Patent Citations
Civil aviation accident report processing method based on machine learning and rule matching
CN114004227A
Intelligent classification TF-IDF-GloVe-LDA method for accident report texts
CN117573864A
Digital industrial production accident case library construction method, system, equipment and medium
CN117973382A
Network public opinion analysis method and apparatus, and computer-readable storage medium
WO2019227710A1
