An intelligent linkage method for coal mine disasters based on spatiotemporal event chain
By arranging sensors in coal mines and using spatiotemporal event chain and artificial intelligence technology to automatically identify abnormal situations and generate rescue plans, it solves the problems of lagging information transmission and long response time in traditional coal mine safety monitoring and rescue, and realizes real-time monitoring of coal mine disasters. Monitoring and rapid response improve safety and rescue efficiency.
Patent Information
- Application Number
- CN202410705066.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Traditional coal mine safety monitoring and rescue methods rely on manual detection, which has problems such as untimely information transmission and long response times for rescue operations. This results in delayed information transmission and rescue delays in coal mine disasters, and increases the risk of casualties and property losses.
Adopting an intelligent linkage method based on spatiotemporal event chain, by arranging sensors to sense environmental parameters in real time, establish a spatiotemporal event chain, use probabilistic graphical models and Boltzmann machine models for data modeling and inference, and combine with particle filtering algorithms to automatically identify abnormal situations and Trigger early warning signals and automatically generate rescue plans and disaster avoidance routes.
It achieves real-time monitoring and rapid response to coal mine disasters, improves the accuracy and timeliness of monitoring data, reduces interference from human factors, improves rescue efficiency and safety, and reduces potential casualties and losses.
Smart Images

Figure CN118280091B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of mining and information technology, and specifically relates to an intelligent linkage method for coal mine disasters based on a spatiotemporal event chain. Background Art
[0002] Coal mine disasters are major safety hazards faced by the coal mining industry, including gas explosions, coal dust explosions, coal and gas outbursts, roof accidents, etc. Traditional coal mine safety monitoring and rescue methods mainly rely on manual detection and manual reporting, and there are problems such as untimely information transmission and inability to respond quickly to rescue operations. First, manual detection has limitations. Manual detection is inefficient, cannot achieve all-weather and all-round monitoring, and is easily affected by human factors. The accuracy and timeliness of monitoring data are difficult to guarantee; second, information transmission is untimely. Traditional coal mine safety monitoring has the problem of delayed information transmission. When a coal mine disaster occurs, relevant personnel may not be able to obtain early warning information in time, resulting in delayed rescue operations; third, the response time of rescue operations is long. Traditional rescue methods need to wait for manual reporting and dispatching, and the response time is long. Rescue actions cannot be taken quickly, which increases the risk and difficulty of rescue.
[0003] Through an intelligent system and method, coal mine safety monitoring and rescue can achieve all-weather, all-round monitoring and response, greatly improving the efficiency and reliability of coal mine safety. At the same time, through the intelligent linkage characteristics of the system, the interference of human factors can be reduced, and the accuracy and timeliness of monitoring data can be improved. In addition, through the rapid response capability of the system, rescue actions can be taken quickly when coal mine disasters occur, reducing potential casualties and property losses. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes an intelligent linkage method for coal mine disasters based on spatiotemporal event chains. By constructing a spatiotemporal event chain, dynamic monitoring, information collection, multi-source data fusion and intelligent analysis of coal mine disaster events are realized. By designing a coal mine disaster intelligent linkage system, real-time monitoring, rapid response and comprehensive evaluation of coal mine disasters are realized.
[0005] The technical solution of the present invention is as follows:
[0006] A coal mine disaster intelligent linkage method based on spatiotemporal event chain comprises the following steps:
[0007] Step 1: Arrange sensors at key locations in the coal mine to sense environmental parameters in the mine in real time;
[0008] Step 2: Use a custom data storage method to store data, fuse and integrate the spatiotemporal data collected from different sensors, and establish a complete spatiotemporal event chain;
[0009] Step 3: Apply probabilistic graphical models to model and infer data in the event chain;
[0010] Step 4: Automatically identify abnormal conditions in coal mines using the Boltzmann machine model;
[0011] Step 5: Use the particle filter algorithm to estimate and update the status of the coal mine site in real time, automatically trigger the warning signal according to the preset warning rules or thresholds, automatically generate rescue plans and disaster avoidance routes, and realize intelligent disaster linkage.
[0012] Furthermore, the specific process of step 1 is as follows:
[0013] Step 1.1, determine the area that needs to be monitored;
[0014] Step 1.2: Select the sensor type according to the parameters and indicators to be monitored, including temperature sensor, concentration sensor, pressure sensor, humidity sensor, and gas sensor;
[0015] Step 1.3: Determine the sensor layout according to the monitoring target and sensor characteristics. Connect all sensors to the data acquisition system, collect the data output by the sensors through the data acquisition system, and perform corresponding processing and analysis.
[0016] Step 1.4: After completing the installation of the sensor, perform testing and calibration.
[0017] Furthermore, the specific process of step 2 is as follows:
[0018] Step 2.1, define the threshold or rule of each sensor; for a certain sensor, if the monitored parameters and indicators exceed the threshold or rule, extract the event of the parameter and indicator exceeding the threshold or rule, and store the extracted event in the specified format, including the event occurrence time, location and sensor information;
[0019] Step 2.2: Use the rule engine and Spark Streaming data stream processing technology to filter events;
[0020] The rule engine includes conditional statements, actions, and triggers; the rule engine defines rules and conditions to determine which events are retained and which events are filtered out;
[0021] Spark Streaming data stream processing technology includes window operations and stream processing operators. The window operation function provided by Spark Streaming is used to aggregate and filter real-time data streams.
[0022] Step 2.3: Use the complex event processing engine to match and identify the event stream received in real time with the event pattern defined in the event pattern library, and use the sequence pattern mining algorithm to detect whether an event pattern that meets the defined rules appears in the event stream;
[0023] Step 2.4: Establish a spatiotemporal event chain through an event-driven architecture; the specific process is as follows:
[0024] Step 2.4.1, determine the events for which a spatiotemporal event chain needs to be established, including the event name, attributes, trigger conditions, and location information; each event has a unique identifier;
[0025] Step 2.4.2: Use the publish-subscribe model of the event-driven architecture to establish a connection between the publisher and subscriber of the event; when an event occurs, the publisher publishes the event to the event bus or message queue, and then the subscriber subscribes to the event of interest;
[0026] Step 2.4.3, define an event handler for each subscribed event to handle the operations that need to be performed when a specific event occurs; the event handler performs specific processing and response based on the location information and attributes of the event;
[0027] Step 2.4.4: Connect each event in the form of a spatiotemporal event chain according to the time sequence and spatial location information of the events; record the time, location and sequence of the events through the event processor to build a complete spatiotemporal event chain.
[0028] Furthermore, the specific process of step 3 is as follows:
[0029] Step 3.1, Bayesian network is a probabilistic graphical model; Bayesian network is used to model and infer the association between different environmental parameters in the coal mine;
[0030] The Bayesian network consists of nodes and directed edges. Each node represents a variable, and the directed edges represent the dependency relationship between variables. Suppose there is a variable set , the structure of the Bayesian network is represented as a directed acyclic graph, the nodes in the directed acyclic graph Representation variables , edges represent dependencies between variables; nodes is a variable containing a certain time and a certain spatial position, so the node Expressed as ,in Representation Node moment, Representation Node spatial location; is the node sequence index; is the total number of node numbers;
[0031] Joint Probability Distribution of Bayesian Networks It is expressed as:
[0032] (1);
[0033] In the formula, Representation Node The parent node set of Indicates that a node is created under a given parent node condition. The conditional probability distribution of ; Calculate for the joint probability distribution;
[0034] Step 3.2: Given the observed data, use the belief propagation algorithm to predict and infer the environmental state and calculate the posterior probability distribution of the unobserved variables;
[0035] Step 3.3: Represent the inferred spatiotemporal event chain data as a data set containing time, spatial location and variable information; assuming that a moment, spatial location and variables; then, the inferred spatiotemporal event chain data is represented by a three-dimensional array, recorded as , The dimension is ;in, Indicated in moment, The spatial position of The value of a variable, , , .
[0036] Furthermore, in step 3.2, the specific process of the belief propagation algorithm is:
[0037] Step 3.2.1, initialization message;
[0038] For each node, define the node To neighboring nodes The process of sending a message is , is the message transmission direction, For Node For neighbor nodes belief;
[0039] In the space-time event chain, the node Represented as a variable at a certain time and spatial position, initialized 1, to prepare for subsequent information dissemination;
[0040] Step 3.2.2, perform information propagation; information propagation includes forward propagation and backward propagation;
[0041] In the forward propagation, the computation nodes To neighboring nodes The message sent is calculated based on the dependency between nodes at different times and spatial locations. The formula is as follows:
[0042] (2);
[0043] In the formula, Represents all possible neighbor nodes The values of are summed; express and The conditional probability distribution between ; For Node The set of neighbor nodes Remove neighbor nodes from Other neighbor nodes The serial number index of Indicates removing neighbor nodes The node after The set of all other neighbor nodes; express Other neighbor nodes To Node Send a message, for right belief;
[0044] In the back propagation, the neighbor nodes To Node Send messages and update them according to the joint probability distribution and information transmission rules between nodes; the calculation method of messages is:
[0045] (3);
[0046] In the formula, Neighbor node To Node Send a message, for right belief; For all possible nodes The values of are summed; Representation Node and neighbor nodes The conditional probability distribution between ; Neighbor node The set of neighbor nodes Remove the node The remaining neighbor nodes The serial number index of Indicates removal Neighbor nodes The set of all remaining neighbor nodes of ; express The remaining neighbor nodes To neighboring nodes Send a message, for right belief;
[0047] Step 3.2.3, marginal probability calculation; the formula is:
[0048] (4);
[0049] In the formula, Indicates that after considering the messages sent by neighboring nodes, the node The marginal probability distribution of Representation Node The marginal probability distribution and its prior probability and messages from neighboring nodes is proportional to the product of; Indicates that when no other node information is considered, the node The prior probability of express Other neighbor nodes right The concatenation of the messages; For Node The set of neighbor nodes Remove neighbor nodes from Other neighbor nodes The serial number index of
[0050] Step 3.2.4: Repeat steps 3.2.2 and 3.2.3 until convergence conditions are reached.
[0051] Furthermore, the specific process of step 4 is as follows:
[0052] Step 4.1, construct the Boltzmann machine model; assuming that features, among which The visible layer, is a hidden layer; the energy function of the Boltzmann machine is defined as follows:
[0053] (5);
[0054] In the formula, is the energy function value; is the state of the visible layer; is the state of the hidden layer; For the The state of the visible layer; For the The bias of the visible layer; For the The state of the hidden layer; For the The bias of the hidden layer; To connect The visible layers and The weights of the hidden layers;
[0055] Step 4.2: Use the training data to train the Boltzmann machine. The Markov chain Monte Carlo method is used to adjust the network parameters during the training process.
[0056] Step 4.3: After training is completed, extract the hidden layer features from the Boltzmann machine model as new feature representation;
[0057] Step 4.4, train the softmax multi-classifier to identify the types of coal mine disasters;
[0058] Step 4.5, obtain the current coal mine environmental parameters in real time for prediction and classification; input the current coal mine environmental parameters into the trained Boltzmann machine model, obtain the activation value of the hidden layer as a new feature representation, and input the new feature representation into the trained softmax multi-classifier for classification prediction; based on the classification results, determine whether there are coal mine disasters in the current environment, as well as the specific type of coal mine disasters.
[0059] Furthermore, the specific process of step 4.2 is as follows:
[0060] Step 4.2.1: Initialize the state of the visible layer and the hidden layer state ;
[0061] Step 4.2.2: Update the states of the visible layer and the hidden layer alternately until convergence; the update rules are as follows:
[0062] (6);
[0063] (7);
[0064] In the formula, is the activation probability; is a nonlinear activation function;
[0065] Step 4.2.3, calculate the gradient according to the updated state, and update the network parameters according to the gradient:
[0066] (8);
[0067] (9);
[0068] (10);
[0069] In the formula, To connect The visible layers and The amount of weight update between hidden layers; for The update amount; for The update amount; is the learning rate, Before the update The state of the visible layer; Before the update The state of the hidden layer.
[0070] Furthermore, the specific process of step 4.3 is as follows:
[0071] Step 4.3.1. Input each sample into the Boltzmann machine model to obtain the activation value of the hidden layer as a new feature representation; the calculation formula of the activation value of the hidden layer is as follows:
[0072] (11);
[0073] In the formula, For the The activation value of the hidden layer;
[0074] Step 4.3.2: Take the hidden layer activation value of each sample as a new feature representation to form a feature matrix; feature matrix It is expressed as:
[0075] (12);
[0076] In the formula, Represents the total number of samples in the feature matrix; Represents the number of hidden layer nodes; Represents the real number domain; each row of the feature matrix represents the feature representation of a sample, and each column represents the activation value of a hidden layer node;
[0077] The specific process of step 4.4 is as follows:
[0078] The feature matrix As input data, train the softmax multi-classifier and adjust the parameters of the softmax multi-classifier. The formula is as follows:
[0079] (13);
[0080] In the formula, It is the type of coal mine disaster; is a softmax multi-classifier; is the weight; For bias.
[0081] Furthermore, the specific process of step 5 is as follows:
[0082] Step 5.1, using particle filter algorithm to update the coal mine status in real time;
[0083] Step 5.2, integrate the results of Boltzmann machine model, softmax multi-classifier and particle filter algorithm to carry out intelligent linkage of coal mine disasters; when the results show that an abnormal situation is detected, trigger the warning signal; pre-set the time threshold, warning rule or threshold, when the abnormal situation lasts longer than the time threshold or the abnormal situation parameter data exceeds the warning rule or threshold, automatically trigger the sound and light alarm to send out an alarm signal; at the same time, automatically send a text message to notify relevant personnel of the abnormal situation and take corresponding rescue measures. The relevant personnel include miners and the rescue command center; after receiving the warning signal, the rescue command center conducts real-time communication to obtain the location, type and severity of the disaster, and automatically generates plans and disaster avoidance routes, and dispatches and directs the rescue operation according to the rescue plan and route; the rescue command center dispatches rescue personnel to the accident site according to the situation to perform rescue work; the rescue personnel carry mobile terminal devices to receive instructions from the rescue command center and transmit on-site conditions.
[0084] Furthermore, the specific process of step 5.1 is as follows:
[0085] Step 5.1.1, at time When , initialize the particle set; the formula is:
[0086] (14);
[0087] In the formula, Indicated in Moment The state of the coal mine of each particle; Indicates the state of the coal mine at time The prior probability distribution when ; express from Extract independently from represents the number of particles;
[0088] Step 5.1.2: Transfer model according to coal mine site status , update the state prediction for each particle, where For the The state variables of the coal mine at the moment; the prediction process is expressed as:
[0089] (15);
[0090] In the formula, represents the state transfer function of the coal mine; For the Moment The state of the coal mine of each particle; Indicated in Moment The prediction error of coal mine state for each particle;
[0091] Step 5.1.3: Use Observation data at time and observation model , calculate the weight of each particle; the weight calculation formula is:
[0092] (16);
[0093] In the formula, For the The particle in The weight of the moment;
[0094] Step 5.1.4: Normalize the calculated weights to obtain standardized weights:
[0095] (17);
[0096] In the formula, For the The particle in Normalized weights of moments; represents the index in the particle collection; For the The particle in Normalized weights of moments;
[0097] Step 5.1.5: Resample the particles according to the standardized weights to generate a new particle set ;in, For the Moment The new coal mine state of each particle;
[0098] Step 5.1.6: Based on the resampled particle set, the maximum a posteriori estimation is used to calculate the estimated state of the coal mine stope; the formula is:
[0099] (18);
[0100] In the formula, For the The maximum a posteriori estimate of the state of the coal mine at the moment; For the The status of the coal mine system at the moment; To obtain the parameter value of the function that makes it reach its maximum value; Represents the observation data from time 1 to time sequence; For the Coal mine status at all times The posterior probability density function of ; The calculation formula is:
[0101] (19);
[0102] In the formula, Represents observation data The probability density function of a given state under Indicated in Coal mine status at all times The posterior probability density function of ; Represents observation data In the The conditional probability density function at the moment;
[0103] Step 5.1.7: The estimation of the disaster location is achieved by calculating the weight of each particle at the possible disaster location; assuming that The possible disaster location at any time is , particles at the disaster location The weight on is expressed as:
[0104] (20);
[0105] In the formula, For the The weight of the moment; Represents observation data Given a possible disaster location The probability density function of .
[0106] Beneficial technical effects brought by the present invention: The present invention proposes an intelligent linkage method for coal mine disasters based on a spatiotemporal event chain, which associates coal mine disaster-related events by utilizing event chain technology, and accurately identifies the types of coal mine disasters by utilizing artificial intelligence technology, so as to take effective emergency measures in a targeted manner. The method is applicable to all types of coal mines and has good versatility. At the same time, the present invention is based on a classification model for identifying coal mine disaster types based on the Boltzmann mechanism, which quickly identifies and classifies the environmental status of coal mines, improves the accuracy of identifying coal mine disaster types, is conducive to the automatic generation of rescue plans and routes, and can realize intelligent linkage of disasters. The present invention also designs an intelligent linkage system for coal mine disasters, which can respond to coal mine disasters more accurately and promptly, improve rescue efficiency, and reduce casualties. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] Figure 1 The present invention is a flow chart of the coal mine disaster intelligent linkage method based on the spatiotemporal event chain. DETAILED DESCRIPTION
[0108] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0109] The present invention aims to improve the early warning, emergency response and post-analysis capabilities of coal mine disasters. The present invention first arranges sensors at key positions in the coal mine stope to sense the environmental parameters in the stope in real time; uses a custom data storage method to store data, fuses and integrates data collected from different sensors, and establishes a complete spatiotemporal event chain; then applies a probabilistic graph model to model and infer the data in the event chain, and then obtains a new feature representation through a Boltzmann machine, and inputs the extracted features into a softmax multi-classifier for classification prediction. According to the classification results, it is determined whether there is a coal mine disaster in the current environment, as well as the specific type of disaster. Finally, combined with the abnormal situation of the coal mine stope automatically identified by the Boltzmann machine, the particle filter algorithm is used to estimate and update the coal mine stope status in real time, and the warning signal is automatically triggered according to the preset warning rules and thresholds, and the rescue plan and disaster avoidance route are automatically generated to realize intelligent linkage of disasters.
[0110] like Figure 1 As shown, a coal mine disaster intelligent linkage method based on spatiotemporal event chain specifically includes the following steps:
[0111] Step 1: Place sensors at key locations in the coal mine to sense the environmental parameters in real time. The specific process is as follows:
[0112] Step 1.1, determine the area that needs to be monitored, such as the tunnels and wellheads in the coal mine;
[0113] Step 1.2: Determine the parameters and indicators that need to be monitored, and select the appropriate sensor type, such as temperature sensor, concentration sensor, pressure sensor, humidity sensor, gas sensor, etc.
[0114] Step 1.3: Determine the sensor layout according to the monitoring target and sensor characteristics, and ensure that the coverage between sensors is reasonable. The sensor layout needs to have a certain degree of overlap. Consider the communication method between sensors, install and connect sensors, ensure that they are firmly and reliably installed in the selected location, and connect all sensors to the data acquisition system. The data output by the sensor is collected through the data acquisition system, and corresponding processing and analysis are performed to meet the monitoring needs.
[0115] Step 1.4: After installation, perform testing and calibration to ensure that the data output by the sensor is accurate and reliable.
[0116] Step 2: Use a custom data storage method to store data to ensure the real-time and accuracy of the data. Fuse and integrate the spatiotemporal data collected from different sensors and other monitoring devices to form complete event data and establish a spatiotemporal event chain for subsequent analysis and decision-making;
[0117] Step 2.1. Define the threshold or rule for each sensor to determine whether a specific event has occurred. For example, for a temperature sensor, if the temperature exceeds the preset safety range, extract the event of temperature exceeding the threshold. Store the extracted events in a specific format, including the time, location, and sensor information of the event.
[0118] The event storage format is as follows:
[0119] event_id: unique identifier of the event;
[0120] event_type: event type, such as temperature exceeding a threshold;
[0121] sensor_type: sensor type, such as temperature sensor;
[0122] sensor_id: unique identifier of the sensor;
[0123] event_time: timestamp of the event;
[0124] sensor_value: the value collected by the sensor, such as temperature;
[0125] threshold_value: the threshold value for event triggering, such as temperature threshold;
[0126] location: the location where the event occurred, such as coal mine site A;
[0127] latitude: latitude information;
[0128] longitude: Longitude information.
[0129] Step 2.2: Use the rule engine and Spark Streaming data stream processing technology to filter events.
[0130] A rule engine is a software tool used to filter and process events based on predefined rules and conditions. It can filter sensor data based on specific rules and conditions to remove noise and redundant information. A rule engine usually includes conditional statements, actions, and triggers. In the intelligent linkage system for coal mine disasters, specific rules and conditions can be defined to determine which events should be retained and which events should be filtered out. For example, events are filtered based on conditions such as the numerical range and timestamp of sensor data. In the code rule defined below, when the sensor type is a temperature sensor and the value is greater than the threshold, the action is triggered to print the alarm information:
[0131] rule "TemperatureThresholdRule";
[0132] when;
[0133] SensorData(sensorType == "Temperature", value >thresholdValue);
[0134] Then;
[0135] / / Trigger an action, such as logging or triggering an alarm;
[0136] System.out.println("Temperature exceeds threshold value");
[0137] end;
[0138] Spark Streaming data stream processing technology is a method for real-time processing of data streams. Through stream processing technology, the continuously generated event streams can be processed and analyzed in real time. In the coal mine disaster intelligent linkage system, Spark Streaming data stream processing technology is used to filter sensor data in real time. Data stream processing technology usually includes window operations and stream processing operators. Using the window operation function provided by Spark Streaming, real-time data streams are aggregated and filtered to meet the needs of real-time data processing and analysis. When creating a Spark Streaming application, you first need to initialize the StreamingContext object and set the batch interval and Spark configuration. Then create a DStream object to receive the real-time data stream. Apply window operations on this data stream, and you can choose to slide the window for data processing. The sliding window allows users to specify the length and sliding step of the window, and calculate the data in the window at each sliding step. Through the reduceByKeyAndWindow function, the data in the window is aggregated, and the length and sliding step of the window are set. The results of the window operation can be further processed, such as output to external storage or triggering specific actions. Finally, by starting the StreamingContext object, we begin to receive real-time data streams and perform window operations to implement real-time data processing and analysis.
[0139] Step 2.3: Use the Complex Event Processing (CEP) engine to match and identify patterns on the event stream. The complex event processing engine receives the data stream processed by the data stream processing technology, and obtains the event rules and conditions defined by the rule engine. The event pattern library is established through the complex event processing engine to convert event rules into recognizable patterns. The complex event processing engine matches and identifies the event stream received in real time with the event patterns defined in the event pattern library. The sequence pattern mining algorithm is used to detect whether event patterns that meet the defined rules appear in the event stream. The Apriori algorithm is an algorithm for mining frequent item sets, which can discover frequent sequence patterns by searching layer by layer. In the intelligent linkage system for coal mine disasters, the application of the Apriori algorithm to mine frequent sequence patterns in data can help understand the important patterns and laws in event stream data.
[0140] Assume that there are several types of events: temperature exceeds the threshold, represented by T; concentration is abnormal, represented by C; gas leaks, represented by G. An event sequence can be represented as TCCTG, which means that the temperature exceeds the threshold first, then concentration is abnormal twice, and finally gas leaks. By mining the frequent sequence patterns, we can get the following information:
[0141] Frequent event sequence patterns: Determine which event sequences often appear together to understand the correlation between events. For example, it may be found that a specific event sequence pattern often appears before a coal mine accident. For event sequence patterns that appear frequently together, they can be represented in the form of frequent item sets. For example, the frequent event sequence pattern {TC, CG} indicates that temperature exceeding the threshold and concentration anomaly often occur at the same time.
[0142] Abnormal event sequence pattern: Identify which event sequences are abnormal and different from the event sequence pattern under normal circumstances. Abnormal event sequence patterns can be represented by contrast with normal event sequence patterns. For example, if the event sequence TCCTG is identified as abnormal, it can be represented by the symbol TCCTG. Through the analysis of abnormal event sequence patterns, potential disaster risks and safety hazards can be discovered, and timely measures can be taken to avoid accidents.
[0143] Regular event sequence patterns: Discover regular patterns in event stream data, such as certain event sequences that frequently occur in a specific time period, or certain events that have a specific sequence relationship. For example, a regular pattern in which certain events frequently occur in a specific time period can be represented as a periodic event sequence.
[0144] Step 2.4, through the event-driven architecture (EDA) technology, the establishment of a spatiotemporal event chain is realized, which not only considers the time sequence of events, but also the spatial correlation of events. According to the location and time sequence of events, the identified and processed events are connected in the form of a spatial event chain. In the environmental monitoring in the coal mine, it includes data such as temperature, concentration, gas, etc. collected by sensors, as well as attributes such as event type, timestamp and location information. These data are sorted according to time sequence and spatial position, and converted into the form of sequence data, which helps to establish a spatiotemporal event chain. The specific process of establishing a spatiotemporal event chain is:
[0145] Step 2.4.1, event definition: determine the events that need to establish the spatiotemporal event chain, including the event name, attributes, trigger conditions, location information, etc. Each event has a unique identifier so that the system can identify and distinguish different events.
[0146] Step 2.4.2, event publishing and subscription: The system adopts the publish-subscribe model of the event-driven architecture to establish the connection between the publisher and subscriber of the event. When an event occurs, the publisher publishes the event to the event bus or message queue, and then the subscriber can subscribe to the event of interest. The order, consistency and spatial correlation of events are guaranteed through the event publishing and subscription mechanism.
[0147] Step 2.4.3, event processing: define an event processor for each subscribed event to handle the operations that need to be performed when a specific event occurs. The event processor can perform specific processing and response based on the location information and attributes of the event to ensure the integrity of the spatiotemporal event chain.
[0148] Step 2.4.4, establish a spatiotemporal event chain: connect each event in the form of a spatiotemporal event chain according to the time sequence and spatial location information of the event. The system can build a complete spatiotemporal event chain by recording the time, location and sequence of the event through the event processor. The establishment of a spatiotemporal event chain helps the system to deeply understand the occurrence rules of events in time and space, and improve the comprehensive monitoring and response capabilities of the situation in the coal mine.
[0149] Throughout the process, the system will integrate the numerical data collected by the sensors into the events, so that the spatiotemporal event chain not only contains the time, type and location information of the event, but also includes key information such as environmental parameter data. By establishing a spatiotemporal event chain, the system can analyze and understand the events occurring in the coal mine more comprehensively and comprehensively, and make early warnings and emergency responses in a timely manner.
[0150] Step 3: Apply the probabilistic graphical model to model and infer the data in the event chain. The probabilistic graphical model can represent the dependency between variables and perform inference through the probabilistic inference algorithm. The present invention uses a Bayesian network to represent the association between different environmental parameters and perform probabilistic inference. The probabilistic graphical model can help the system model and predict the environmental status in the coal mine site; the specific process is as follows:
[0151] Step 3.1, use Bayesian network to model and infer the association between different environmental parameters in the coal mine;
[0152] Probabilistic graphical models are mathematical tools used to represent dependencies between variables, among which Bayesian networks are a commonly used probabilistic graphical model used to represent conditional probability distributions between variables. The following is an explanation of how to use Bayesian networks to model and infer the associations between different environmental parameters in a coal mine:
[0153] The Bayesian network consists of nodes and directed edges. Each node represents a variable, and the directed edges represent the dependencies between variables. Suppose there is a variable set , the structure of the Bayesian network can be represented as a directed acyclic graph (DAG), where the nodes Representation variables , edges represent dependencies between variables. is a variable containing a certain time and a certain spatial position, so the node Expressed as ,in Representation Node moment, Representation Node spatial location; is the node sequence index; is the total number of node numbers. This can clearly represent the characteristics of the nodes in time and space.
[0154] The Bayesian network represents the dependency relationship between variables through joint probability distribution. Assume that the structure of the Bayesian network is G, the node set is V, and the joint probability distribution is It can be expressed as:
[0155] (1);
[0156] In the formula, Representation Node The parent node set of Indicates that a node is created under a given parent node condition. The conditional probability distribution of ; Calculate the joint probability distribution.
[0157] Step 3.2: Given the observed data, use the probability inference algorithm to predict and infer the environmental state and calculate the posterior probability distribution of the unobserved variables. Use the belief propagation algorithm to calculate the joint probability distribution of the variables in the Bayesian network. The belief propagation algorithm is an effective algorithm for probabilistic inference in Bayesian networks. It calculates the posterior probability distribution of variables in an iterative manner. The following are the specific implementation steps of the belief propagation algorithm:
[0158] Step 3.2.1, initialization message;
[0159] For each node, define the node To neighboring nodes The process of sending a message is ,initialization 1; node To neighboring nodes The message sent is the node For neighbor nodes The belief For Node For neighbor nodes belief; For the message delivery direction; express neighbor nodes.
[0160] In the space-time event chain, the node It represents a variable at a certain moment and a certain spatial position. By initializing the message to 1, it prepares for subsequent information dissemination.
[0161] Step 3.2.2, perform information propagation; information propagation includes forward propagation and backward propagation;
[0162] Step 3.2.2.1, forward propagation; in forward propagation, calculate the node To neighboring nodes The message sent is calculated based on the dependency between nodes at different times and different spatial locations. The message is calculated by and The conditional probability distribution between Multiply the messages sent by other neighbor nodes, and then Sum all possible values of , the formula is as follows:
[0163] (2);
[0164] In the formula, Represents all possible neighbor nodes In a Bayesian network, each neighbor node corresponds to a random variable that can take different values. The sum of the values of means that all possible situations are considered to calculate the node under given conditions. For neighbor nodes The message of faith. express and The conditional probability distribution between ; For Node The set of neighbor nodes Remove neighbor nodes from Other neighbor nodes The serial number index of Indicates removing neighbor nodes The node after The set of all other neighbor nodes; express Other neighbor nodes To Node Send a message, for right belief.
[0165] Step 3.2.2.2, back propagation;
[0166] In the back propagation, the neighbor nodes To Node Send a message. Update the message according to the joint probability distribution and information transmission rules between nodes. The message is calculated by converting and The conditional probability distribution between Multiply the messages sent by other neighbor nodes, and then Sum all possible values of .
[0167] (3);
[0168] In the formula, Neighbor node To Node Send a message, for right belief; For all possible nodes The values of are summed; Representation Node and neighbor nodes The conditional probability distribution between ; Neighbor node The set of neighbor nodes Remove the node The remaining neighbor nodes The serial number index of Indicates removal Neighbor nodes The set of all remaining neighbor nodes of ; express The remaining neighbor nodes To neighboring nodes Send a message, for right belief.
[0169] Step 3.2.3, marginal probability calculation;
[0170] The edge probability distribution of each node is calculated by propagating messages. The edge probability of the node at different times and spatial positions is considered. The specific calculation method is to convert The marginal probability distribution of is multiplied by the messages sent by all neighboring nodes, and then Sum all possible values of , the formula is:
[0171] (4);
[0172] In the formula, Indicates that after considering the messages sent by neighboring nodes, the node The marginal probability distribution of Representation Node The marginal probability distribution and its prior probability and messages from neighboring nodes is proportional to the product of; Indicates that when no other node information is considered, the node The prior probability of express Other neighbor nodes right The concatenation of the messages; For Node The set of neighbor nodes Remove neighbor nodes from Other neighbor nodes The serial number index of .
[0173] Step 3.2.4, iterative update;
[0174] Repeat the information propagation of step 3.2.2 and the edge probability calculation of step 3.2.3 until convergence. Perform iterative updates based on the node dependencies and information transfer in time and space until convergence conditions are met.
[0175] Step 3.3: The inferred spatiotemporal event chain data can be represented as a data set containing time, spatial location and variable information. Assume that a moment, spatial location and variables. Then, the inferred spatiotemporal event chain data can be represented by a three-dimensional array, recorded as , The dimension is .in, Indicated in moment, The spatial position of The value of a variable, , , .
[0176] Step 4: Use the Restricted Boltzmann Machine (RBM) model to detect abnormal conditions and identify the types of coal mine disasters. The Boltzmann machine is a probability generation model that can be used to learn the probability distribution between variables. By training a Boltzmann machine model, the collected data can be modeled and the model can be used to detect abnormal conditions. The present invention trains a Boltzmann machine model to learn the probability distribution of normal environmental parameters, and then detects abnormal conditions based on new observation data by calculating the difference between the new observation data and the normal distribution.
[0177] Step 4.1, construct the Boltzmann machine model RBM; assuming that features, among which The visible layer, The energy function of the Boltzmann machine is defined as follows:
[0178] (5);
[0179] In the formula, is the energy function value; is the state of the visible layer; is the state of the hidden layer; For the The state of the visible layer; For the The bias of the visible layer; For the The state of the hidden layer; For the The bias of the hidden layer; To connect The visible layers and The weight of the hidden layer.
[0180] Step 4.2: Train the Boltzmann machine: Use the training data to train the Boltzmann machine. During the training process, adjust the network parameters through methods such as maximum likelihood estimation or contrast divergence so that the network can learn the probability distribution of the input features.
[0181] The training process uses Markov Chain Monte Carlo (MCMC) methods, such as Gibbs sampling. The specific steps are as follows:
[0182] Step 4.2.1: Initialize the state of the visible layer and the hidden layer state ;
[0183] Step 4.2.2: Update the states of the visible layer and the hidden layer alternately until convergence. The update rule is as follows:
[0184] (6);
[0185] (7);
[0186] In the formula, is the activation probability; is a non-linear activation function.
[0187] Step 4.2.3, calculate the gradient according to the updated state, and update the network parameters according to the gradient:
[0188] (8);
[0189] (9);
[0190] (10);
[0191] In the formula, To connect The visible layers and The amount of weight update between hidden layers; for The update amount; for The update amount; is the learning rate, Before the update The state of the visible layer; Before the update The state of the hidden layer.
[0192] Step 4.3, feature extraction: After training is completed, the hidden layer features are extracted from the Boltzmann machine model as new feature representations. These features can capture high-order statistical features in the data and help improve classification performance. The specific process is:
[0193] Step 4.3.1: The method of extracting features uses the activation value of the hidden layer. For each sample, input it into the Boltzmann machine model to obtain the activation value of the hidden layer as a new feature representation;
[0194] The calculation formula of the activation value of the hidden layer is as follows:
[0195] (11);
[0196] In the formula, For the The activation value of the hidden layer;
[0197] Step 4.3.2: Use the hidden layer activation value as a new feature representation. Use the hidden layer activation value of each sample as a new feature representation to form a feature matrix. Feature matrix It is expressed as:
[0198] (12);
[0199] In the formula, Represents the total number of samples in the feature matrix; Represents the number of hidden layer nodes, that is, each sample in the feature matrix has The activation value of hidden layer nodes; Represents the real number domain, that is, the elements in the feature matrix are real numbers. Each row of the feature matrix represents the feature representation of a sample, and each column represents the activation value of a hidden layer node.
[0200] Step 4.4: Train a softmax multi-classifier to identify coal mine disaster types.
[0201] The feature matrix can be used as input data to train multiple classifiers for coal mine disaster type identification. Use the extracted features and corresponding label data to train a softmax multi-classifier. As input, the label As output, by adjusting the parameters of the softmax multi-classifier, it can accurately classify the types of coal mine disasters. The formula is as follows:
[0202] (13);
[0203] In the formula, It is the type of coal mine disaster; is a softmax multi-classifier; is the weight; For bias.
[0204] Step 4.5, obtain the current coal mine environmental parameters in real time for prediction and classification; input the current coal mine environmental parameters into the trained Boltzmann machine model, obtain the activation value of the hidden layer as a new feature representation, and input the new feature representation into the trained softmax multi-classifier for classification prediction; based on the classification results, determine whether there are coal mine disasters in the current environment, as well as the specific type of coal mine disasters.
[0205] Step 5, design an intelligent linkage system for coal mine disasters, and pass the trained Boltzmann machine model into the system; the intelligent linkage system automatically identifies abnormal conditions in the coal mine stope according to the trained Boltzmann machine model, and automatically triggers the warning signal according to the preset warning rules and thresholds. When an abnormal situation is detected, the intelligent linkage system for coal mine disasters can estimate and predict the stope state through the particle filter algorithm. The particle filter algorithm approximates the posterior probability distribution through a group of particles, and can update the stope state in real time. Through the particle filter algorithm, the intelligent linkage system can estimate the current stope state based on real-time environmental parameter data, and trigger the warning signal according to the preset warning rules and thresholds. After the warning signal is triggered, the intelligent linkage system sends an alarm signal through the sound and light alarm, and sends a text message notification to relevant personnel, including miners, rescue command center, etc.
[0206] Step 5.1, the present invention uses a particle filter algorithm to update the state of the coal mine in real time. By updating and tracking the state of the coal mine in real time, a more accurate and reliable estimation of the state of the coal mine is provided. In the intelligent linkage system for coal mine disasters, the particle filter algorithm can predict and update the state of the coal mine according to the coal mine state transfer model and observation data, thereby realizing real-time monitoring and state estimation of the coal mine environment. The specific process is:
[0207] Step 5.1.1, initialize the particle set;
[0208] At the moment When , initialize the particle collection:
[0209] (14);
[0210] In the formula, Indicated in Moment The state of the coal mine field of each particle is an approximate representation of the state of the coal mine field; Indicates the state of the coal mine at time The prior probability distribution of . represents "same distribution", from Extract independently from represents the number of particles;
[0211] Step 5.1.2, coal mine site status update;
[0212] According to the coal mine state transfer model , update the state prediction for each particle, where For the The state variables of the coal mine at time. The prediction process can be expressed as:
[0213] (15);
[0214] In the formula, represents the state transfer function of the coal mine; For the Moment The state of the coal mine of each particle; Indicated in Moment The prediction error of coal mine state for each particle;
[0215] Step 5.1.3, weight calculation;
[0216] Use the Observation data at time and observation model , calculate the weight of each particle. The weight calculation formula is:
[0217] (16);
[0218] In the formula, For the The particle in The weight of the moment;
[0219] Step 5.1.4, weight normalization;
[0220] Normalize the calculated weights to get the standardized weights:
[0221] (17);
[0222] In the formula, For the The particle in Normalized weights of moments; Represents the index in the particle set. When normalizing the weights, we need to sum the weights of all particles. Used to loop through each particle in the particle collection to calculate the sum of the weights. For the The particle in Normalized weights of moments.
[0223] Step 5.1.5, particle resampling;
[0224] According to the standardized weight, the particles are resampled to generate a new particle set , ensuring that high-weight particles get more copies and low-weight particles get fewer copies. For the Moment The new coal mine state of each particle;
[0225] Step 5.1.6, state and position estimation;
[0226] According to the resampled particle set, the estimated state of the coal mine is calculated. The maximum a posteriori estimation (MAP) is used to estimate the state of the coal mine, that is, to find the state estimate that maximizes the posterior probability density function:
[0227] (18);
[0228] In the formula, For the The maximum a posteriori estimate of the state of the coal mine at the moment; For the The status of the coal mine system at the moment; To obtain the parameter value of the function that makes it reach its maximum value; Represents the observation data from time 1 to time sequence; For the Coal mine status at all times The posterior probability density function of .
[0229] According to the Bayesian formula, the posterior probability density function It can be expressed as:
[0230] (19);
[0231] In the formula, Represents observation data The probability density function of a given state under Indicated in Coal mine status at all times The posterior probability density function of ; Represents observation data In the The conditional probability density function at time .
[0232] Step 5.1.7: The estimation of the disaster location can be achieved by calculating the weight of each particle in the possible disaster location. The possible disaster location at any time is , particles at the disaster location The weight on can be expressed as:
[0233] (20);
[0234] In the formula, For the The weight of the moment; Represents observation data Given a possible disaster location The probability density function of .
[0235] Step 5.2, the present invention integrates the results of the Boltzmann machine model, the softmax multi-classifier and the particle filter algorithm, and triggers an early warning signal when the coal mine disaster intelligent linkage system detects an abnormal situation. The time threshold, early warning rule or threshold is pre-set. When the duration of the abnormal situation exceeds the time threshold or the abnormal situation parameter data exceeds the early warning rule or threshold, the sound and light alarm is automatically triggered to send an alarm signal. At the same time, the system automatically sends text messages to relevant personnel, including miners, rescue command centers, etc., to inform them of the abnormal situation and take corresponding rescue measures. After receiving the early warning signal, the rescue command center communicates with the system in real time to obtain information such as the location, type, and severity of the disaster, and automatically generates plans and disaster avoidance routes. According to the rescue plan and route, the rescue operation is dispatched and directed; the rescue command center dispatches rescue personnel to the accident site according to the situation to perform rescue work. Rescuers carry mobile terminal devices to receive instructions from the rescue command center and transmit on-site conditions.
[0236] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. An intelligent linkage method for coal mine disasters based on spatiotemporal event chains, It is characterized in that The steps include: Step 1: Arrange sensors at key locations in the coal mine to sense environmental parameters in the mine in real time; Step 2: Use a custom data storage method to store data, fuse and integrate the spatiotemporal data collected from different sensors, and establish a complete spatiotemporal event chain; Step 3: Apply probabilistic graphical models to model and infer data in the event chain; Step 4: Automatically identify abnormal conditions in coal mines using the Boltzmann machine model; Step 5: Use the particle filter algorithm to estimate and update the state of the coal mine in real time, automatically trigger the warning signal according to the preset warning rules or thresholds, automatically generate rescue plans and disaster avoidance routes, and realize intelligent disaster linkage; The specific process of step 1 is as follows: Step 1.1, determine the area that needs to be monitored; Step 1.2: Select the sensor type according to the parameters and indicators to be monitored, including temperature sensor, concentration sensor, pressure sensor, humidity sensor, and gas sensor; Step 1.3: Determine the sensor layout according to the monitoring target and sensor characteristics. Connect all sensors to the data acquisition system, collect the data output by the sensors through the data acquisition system, and perform corresponding processing and analysis. Step 1.4: After completing the installation of the sensor, test and calibrate it; The specific process of step 2 is: Step 2.1, define the threshold or rule of each sensor; for a certain sensor, if the monitored parameters and indicators exceed the threshold or rule, extract the event of the parameter and indicator exceeding the threshold or rule, and store the extracted event in the specified format, including the event occurrence time, location and sensor information; Step 2.2: Use the rule engine and Spark Streaming data stream processing technology to filter events; The rule engine includes conditional statements, actions, and triggers; the rule engine defines rules and conditions to determine which events are retained and which events are filtered out; Spark Streaming data stream processing technology includes window operations and stream processing operators. The window operation function provided by Spark Streaming is used to aggregate and filter real-time data streams. Step 2.3: Use the complex event processing engine to match and identify the event stream received in real time with the event pattern defined in the event pattern library, and use the sequence pattern mining algorithm to detect whether an event pattern that meets the defined rules appears in the event stream; Step 2.4: Establish a spatiotemporal event chain through an event-driven architecture; the specific process is as follows: Step 2.4.1, determine the events for which a spatiotemporal event chain needs to be established, including the event name, attributes, trigger conditions, and location information; each event has a unique identifier; Step 2.4.2: Use the publish-subscribe model of the event-driven architecture to establish a connection between the publisher and subscriber of the event; When an event occurs, the publisher publishes the event to the event bus or message queue, and then the subscriber subscribes to the events of interest; Step 2.4.3, define an event handler for each subscribed event to handle the operations that need to be performed when a specific event occurs; the event handler performs specific processing and response based on the location information and attributes of the event; Step 2.4.4, according to the time sequence and spatial location information of the events, connect the events in the form of a spatiotemporal event chain; record the time, location and sequence of the events through the event processor to build a complete spatiotemporal event chain; The specific process of step 3 is as follows: Step 3.1, Bayesian network is a probabilistic graphical model; Bayesian network is used to model and infer the association between different environmental parameters in the coal mine; The Bayesian network consists of nodes and directed edges. Each node represents a variable, and the directed edges represent the dependency relationship between variables. Suppose there is a variable set X = {x 1 ,x 2 ,...,x i ,...,x n }, the structure of the Bayesian network is represented as a directed acyclic graph, where the node x i Represents variable x i , the edge represents the dependency relationship between variables; the node x i is a variable containing a certain time and a certain spatial position, so the node x i Expressed as in Represents node x i moment, Represents node x i The spatial position of; i is the node number index; n is the total number of node numbers; The joint probability distribution P of the Bayesian network is expressed as: P=(x 1 ,x 2 ,...,x n )=∏P(x i |P a (x i )) (1); Where P a (x i ) represents node x i The parent node set of P(x i |P a (x i )) indicates that node x is i The conditional probability distribution of ; ∏ is the joint probability distribution calculation; Step 3.2: Given the observed data, use the belief propagation algorithm to predict and infer the environmental state and calculate the posterior probability distribution of the unobserved variables; Step 3.3: Represent the inferred spatiotemporal event chain data as a data set containing time, spatial position and variable information; assuming there are T time, S spatial positions and N variables; then, the inferred spatiotemporal event chain data is represented by a three-dimensional array, denoted as D, and the dimension of D is T×S×N; where, represents the tth time and the sth spatial position. The values of variables, t=1,2,...,T, s=1,2,...,S, In step 3.2, the specific process of the belief propagation algorithm is: Step 3.2.1, initialization message; For each node, define node x i To neighbor node x j The process of sending a message is x i →x j (m ij ), → is the message transmission direction, m ij For node x i For neighbor node x j belief; In the space-time event chain, node x i Represented as a variable at a certain time and a certain spatial position, by initializing x i →x j (m ij ) is 1, preparing for subsequent information dissemination; Step 3.2.2, perform information propagation; information propagation includes forward propagation and backward propagation; In the forward propagation, we calculate the node x i To neighbor node x j The message sent is calculated based on the dependency between nodes at different times and spatial locations. The formula is as follows: In the formula, For all possible neighbor nodes x j The values of ∏(x i ,x j ) represents x i and x j The conditional probability distribution between i Remove neighbor node x from the neighbor node set N(i) j Other neighbor nodes x k The serial number index; N(i)\j means removing the neighbor node x j The node x after i The set of all other neighbor nodes of x; k →x i (m ki ) represents x i Other neighbor nodes x k To node x i Send message, m ki For x k x i belief; In the backward propagation, the neighbor node x j To node x i Send messages and update them according to the joint probability distribution and information transmission rules between nodes; the calculation method of messages is: In the formula, x j →x i (m ji ) is the neighbor node x j To node x i Send message, m ji For x j x i belief; For all possible nodes x i The values of ∏(x i ,x j ) represents node x i and neighbor node x j The conditional probability distribution between them; l is the neighbor node x j Remove node x from the neighbor node set N(j) i The remaining neighbor nodes x l The serial index; N(j)\i means removing x i The next neighbor node x j The remaining set of all neighbor nodes of x l →x j (m lj ) represents x j The remaining neighbor nodes x l To neighbor node x j Send message, m lj For x l x j belief; Step 3.2.3, marginal probability calculation; the formula is: In the formula, Indicates that after considering the messages sent by neighboring nodes, node x i The marginal probability distribution of ; ∝ represents the node x i The marginal probability distribution and its prior probability ∏(x i ) and the message x from the neighbor node k →x i (m ki ) is proportional to the product of ∏(x i ) means that when no other node information is considered, node x i The prior probability of k∈N(i) x k →x i (m ki ) represents x i Other neighbor nodes x k x i The multiplication of messages; k is the node x i Remove neighbor node x from the neighbor node set N(i) j Other neighbor nodes x k The serial number index of Step 3.2.4: Repeat steps 3.2.2 and 3.2.3 until convergence conditions are reached; The specific process of step 4 is as follows: Step 4.1, construct the Boltzmann machine model; assuming that features, of which K are visible layers and L are hidden layers; the energy function of the Boltzmann machine is defined as follows: Where E(·) is the energy function value; v is the state of the visible layer; h is the state of the hidden layer; For the The state of the visible layer; For the The bias of the visible layer; For the The state of the hidden layer; For the The bias of the hidden layer; To connect The visible layers and The weights of the hidden layers; Step 4.2: Use the training data to train the Boltzmann machine. The Markov chain Monte Carlo method is used to adjust the network parameters during the training process. Step 4.3: After training is completed, extract the hidden layer features from the Boltzmann machine model as new feature representation; Step 4.4, train the softmax multi-classifier to identify the types of coal mine disasters; Step 4.5, real-time acquisition of current coal mine environmental parameters for prediction and classification; inputting the current coal mine environmental parameters into the trained Boltzmann machine model, obtaining the activation value of the hidden layer as a new feature representation, and inputting the new feature representation into the trained softmax multi-classifier for classification prediction; judging whether there are coal mine disasters in the current environment and the specific type of coal mine disasters according to the classification results; The specific process of step 4.2 is as follows: Step 4.2.1, initialize the state v of the visible layer and the state h of the hidden layer; Step 4.2.2: Update the states of the visible layer and the hidden layer alternately until convergence; the update rules are as follows: Where p(·) is the activation probability; sigmoid(·) is the nonlinear activation function; Step 4.2.3, calculate the gradient according to the updated state, and update the network parameters according to the gradient: In the formula, To connect The visible layers and The amount of weight update between hidden layers; for The amount of updates; for The update amount; ε is the learning rate, Before the update The state of the visible layer; Before the update The state of the hidden layer; The specific process of step 4.3 is as follows: Step 4.3.
1. Input each sample into the Boltzmann machine model to obtain the activation value of the hidden layer as a new feature representation; the calculation formula of the activation value of the hidden layer is as follows: In the formula, For the The activation value of the hidden layer; Step 4.3.2: The hidden layer activation value of each sample is used as a new feature representation to form a feature matrix; the feature matrix X is expressed as: In the formula, Represents the total number of samples in the feature matrix; H represents the number of hidden layer nodes; Represents the real number domain; each row of the feature matrix represents the feature representation of a sample, and each column represents the activation value of a hidden layer node; The specific process of step 4.4 is as follows: Take the feature matrix X as input data to train the softmax multi-classifier and adjust the parameters of the softmax multi-classifier. The formula is as follows: In the formula, is the type of coal mine disaster; softmax(·) is the softmax multi-classifier; w is the weight; b is the bias; The specific process of step 5 is as follows: Step 5.1, using particle filter algorithm to update the coal mine status in real time; Step 5.2, integrate the results of Boltzmann machine model, softmax multi-classifier and particle filter algorithm to carry out intelligent linkage of coal mine disasters; when the results show that an abnormal situation is detected, trigger the warning signal; pre-set the time threshold, warning rule or threshold, when the duration of the abnormal situation exceeds the time threshold or the abnormal situation parameter data exceeds the warning rule or threshold, automatically trigger the sound and light alarm to send out an alarm signal; at the same time, automatically send a text message to notify relevant personnel of the abnormal situation and take corresponding rescue measures. The relevant personnel include miners and the rescue command center; after receiving the warning signal, the rescue command center conducts real-time communication to obtain the location, type and severity of the disaster, and automatically generates plans and disaster avoidance routes, and dispatches and directs the rescue operation according to the rescue plan and route; the rescue command center dispatches rescue personnel to the accident site according to the situation to perform rescue work; the rescue personnel carry mobile terminal devices to receive instructions from the rescue command center and transmit on-site conditions; The specific process of step 5.1 is as follows: Step 5.1.1, at time t = 0, initialize the particle set; the formula is: In the formula, Indicates that at time t The state of the coal mine of each particle; represents the prior probability distribution of the coal mine state at time t = 0; ~ represents from are extracted independently; M represents the number of particles; Step 5.1.2: Transfer model according to coal mine site status Update the state prediction for each particle, where is the state variable of the coal mine at the tth moment; the prediction process is expressed as: In the formula, f(·) represents the state transfer function of the coal mine; is the first The state of the coal mine of each particle; Indicates that at time t The prediction error of coal mine state for each particle; Step 5.1.3: Use the observed data z at time t t and observation model Calculate the weight of each particle; the weight calculation formula is: In the formula, For the The weight of a particle at time t; Step 5.1.4: Normalize the calculated weights to obtain standardized weights: In the formula, For the The normalized weight of a particle at time t; represents the index in the particle collection; For the The normalized weight of a particle at time t; Step 5.1.5: Resample the particles according to the standardized weights to generate a new particle set in, At time t, The new coal mine state of each particle; Step 5.1.6: Based on the resampled particle set, the maximum a posteriori estimation is used to calculate the estimated state of the coal mine stope; the formula is: In the formula, is the maximum a posteriori estimate of the state of the coal mine at time t; θ t is the state of the coal mine system at the tth moment; arg max is the parameter value of the function that makes it reach its maximum value; Represents the sequence of observation data from time 1 to time t; is the state of the coal mine at the tth moment θ t The posterior probability density function of ; The calculation formula is: In the formula, Represents observation data The probability density function of a given state under Represents the state of the coal mine at the time t-1 θ t The posterior probability density function of ; Represents observation data The conditional probability density function at time t-1; Step 5.1.7: The disaster location is estimated by calculating the weight of each particle at the possible disaster location; assuming that the possible disaster location at time t is s t , the particle is at the disaster location s t The weight on is expressed as: In the formula, w t is the weight at the tth moment; Represents observation data Given a possible disaster location s t The probability density function of .
