Filtering and early warning method, system and equipment for coal mine disaster data and medium
By designing data filters to filter the redundant parts of mine sensor data, the problems of data redundancy and storage pressure are solved, and more efficient data storage and analysis are achieved.
Patent Information
- Application Number
- CN202510118689.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-04-22
AI Technical Summary
There is a large amount of redundant data in the mine sensor data, resulting in huge amount of data, wasted storage space, and bringing difficulties to subsequent data analysis.
A filtering and early warning method for coal mine disaster data is designed. The data of the mine sensor measurement points are received through the data filter to determine whether there is cached data. If the difference is less than the set threshold, the current data will be discarded; otherwise, the current data will be stored and passed to the next level for early warning processing.
Effectively filter out a large amount of similar data, reduce data redundancy, improve data storage and analysis efficiency, and can more accurately transmit hidden danger information of mine disasters.
Smart Images

Figure CN119860269A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of mine safety, and in particular relates to a filtering and early warning method, system, equipment and medium for coal mine disaster data. Background Art
[0002] Coal mine natural disasters are catastrophic accidents caused by natural causes in coal mines. They mainly occur in underground coal mines. There are six major disasters: gas disasters, coal dust explosions, sudden water seepage, large-scale roof collapse, underground fires, roof plates, and rock bursts. They are characterized by suddenness and severity. When disasters occur, they often cause casualties. Therefore, early warning of natural disasters in mines is particularly important in production operations.
[0003] The core of the current mine disaster warning is to install sensors in various areas of the coal mine, buildings, working faces, tunnels, refuge chambers, etc., and read the data of each sensor through the network or transmission bus, and store and analyze the data. Under normal circumstances, most of the collected data are basically similar to normal values. The amount of data is relatively large, and it contains a large amount of repeated redundant data. Waste of space, and a large amount of similar data, stored according to the reading frequency of time, the huge amount of data brings difficulties to subsequent data analysis. Summary of the invention
[0004] In order to solve the problem of redundancy of mine sensor data and quantification of warning levels, the present invention provides a filtering and warning method, system, equipment and medium for coal mine disaster data.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] A method for filtering and early warning of coal mine disaster data comprises the following steps:
[0007] Receive data from a mine sensor point; input the data from the mine sensor point into a data filter to determine whether there is cached data; if there is no cached data, store the data in a cache and pass the data to the next level; if there is cached data, compare the difference between the current data and the cached data with a set threshold, and when the difference is less than the set threshold, discard the current data; otherwise, store the current data in a cache and pass the data to the next level;
[0008] Receive the data transmitted by the previous level data filter for early warning processing, calculate the score of the current data, determine the early warning category of the current data according to the set score threshold level, output the early warning information and store it in the database; the early warning category includes alarm information and health information.
[0009] Preferably, judging the warning category of the current data according to the set score threshold level is specifically:
[0010] If the current data belongs to alarm information, then read the last alarm information of the same alarm information category as the current data. When there is a last alarm information of the same category, continue to output the information of the same alarm information category and store it in the database; when there is a last alarm information of a different category, end the alarm information of the previous level, insert the alarm information of the updated level and store it in the database; when there is no last alarm information of the same category, send the alarm information and record the alarm start time and store it in the database;
[0011] If the current data belongs to health information, then read whether there is alarm information in the data stream. If there is alarm information, end the alarm and calculate the duration; if there is no alarm information, output warning information and store it in the database.
[0012] Preferably, the cache uses redis cache, uses a Map method to store data keywords and their key values one-to-one, and sets a cache timeout. If it expires and is not updated, it will be automatically deleted from the cache.
[0013] Preferably, after the warning processing is completed, the metadata is stored in the database in the order of timestamps.
[0014] Preferably, the warning information categories are specifically prompt information, problem information, serious information and fatal information.
[0015] Preferably, the key value is determined according to the data measurement point code and the measurement point type.
[0016] The present invention also provides a filtering and early warning system for coal mine disaster data, which specifically includes:
[0017] A data filtering module is used to receive data from mine sensor measurement points; input the data from the mine sensor measurement points into a data filter to determine whether there is cached data; if there is no cached data, store the data in a cache and pass the data to the next level; if there is cached data, compare the difference between the current data and the cached data with a set threshold, and when the difference is less than the set threshold, discard the current data; otherwise, store the current data in a cache and pass the data to the next level.
[0018] The alarm output module is used to receive the data transmitted by the previous level data filter for early warning processing, calculate the score of the current data, judge the early warning category of the current data according to the set score threshold level, output the early warning information and store it in the database; the early warning category includes alarm information and health information.
[0019] The present invention also provides a computer device, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps described in the method for filtering and early warning of coal mine disaster data.
[0020] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is loaded by a processor, the steps described in the method for filtering and warning coal mine disaster data can be executed.
[0021] The present invention provides a method for filtering and early warning of coal mine disaster data, which has the following beneficial effects:
[0022] The present invention obtains data from a certain sensor measuring point in a mine, passes through a data filter, and after the data filter judges and processes the data, it continues to pass it to the next level, which can filter out a large amount of similar data and reduce data redundancy. After receiving the data passed by the previous level data filter and entering the early warning process, the current data is scored by setting different threshold intervals, and the early warning category of the current data is judged according to the set score threshold level. According to the early warning category and the judgment result, an alarm message is generated and the data is stored in a database. It is conducive to delivering more accurate hidden danger information of mine disasters to users and conducting subsequent data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiment of the present invention and its design scheme, the following briefly introduces the drawings required for this embodiment. The drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 The present invention is a flow chart of a method for filtering and early warning of coal mine disaster data.
[0025] Figure 2 It is a flow chart of the data filter in the present invention.
[0026] Figure 3 This is a flow chart of the alarm module of the present invention.
[0027] Figure 4 Schematic diagram of full-duplex communication of the data acquisition module in an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the technical solution of the present invention and implement it, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the scope of protection of the present invention.
[0029] Example
[0030] The present invention provides a method for filtering and early warning of coal mine disaster data, such as Figure 1 As shown, the specific steps include:
[0031] S1, will obtain sensor data from the edge network, deploy the data acquisition module at the edge network closest to the sensor, the server side uses the MQTT protocol to communicate with the data acquisition module of the edge network in full duplex, and the data acquisition module returns the collected data. Figure 4 shown.
[0032] S2. When using Redis cache to write the latest data into the database, it is also stored in the redis cache. Since the data source has a large amount of data, it is often data from multiple measurement points. Through the redis cache design, the Map method (k, v) is used to store and read data, which reduces the pressure on the database and improves the reading speed. When passing through the data filter, if all the data is stored in the database, and then the latest data is read from the database for calculation, the reading efficiency is low and the data pressure is high. For the key value in redis, we use the data measurement point code + measurement point type to determine the uniqueness (key = code + ":" + type). The data filter participates in the calculation in two ways: time participation and offset participation.
[0033] Input the current measurement point data into the data filter to determine whether there is cached data; if there is no cached data, insert the data into the cache and transfer the data to the next level for early warning processing; if there is cached data, calculate the deviation between the current data and the data in the cache, set the deviation threshold, and when the difference is less than the set threshold, discard the current data, indicating that the current data is similar to the data in the cache; otherwise, store the current data in the cache and transfer the data to the next level for early warning processing. The current value continues to participate in the next operation as the seed base.
[0034] The cache timeout can be set flexibly according to the business. The cache timeout is set to half an hour. If there is no content for more than half an hour, the cache will be automatically cleared and the next calculation will start again. The shorter the time, the higher the frequency, and the higher the overall system sensitivity. The longer the time, the smaller the amount of stored data, and the more storage space is saved.
[0035] S3. Receive the data transmitted by the previous level data filter for early warning processing. Early warning processing is alarm processing. Calculate the score of the current data, determine the early warning category of the current data according to the set score threshold level, output the early warning information and store it in the database.
[0036] Table 1 Warning score and level comparison table
[0037]
[0038] There are five warning categories: health, warning, problem, serious and fatal.
[0039] Taking mine dust hazards as an example, a threshold table is set up and calculations are performed according to the threshold rules.
[0040]
[0041]
[0042] The formula for calculating the current score is as follows:
[0043] y=x*[(maxScore-minScore) / (max_scope-min_scope)];
[0044] Among them, min_scope is the minimum value of the level range; max_scope is the maximum value of the level range; minScore is the minimum value of the level score range; maxScore is the minimum value of the level score range; x is the current data value.
[0045] When it is an alarm message other than health information, the last alarm message is used; if there was no alarm message last time, an alarm generation message is inserted, and the start time of the alarm is recorded; if there was an alarm message last time, the level is read, and if the levels are the same, the last alarm duration is updated to the current value; if the levels are different, the last alarm time ends, the last alarm level status is updated to completion, and a new alarm level message is inserted.
[0046] When it is monitoring information, read whether there is alarm information before. If there is alarm information, end the alarm and calculate the alarm duration; if there is no alarm information, output the warning information and store it in the database. Finally, store the data in the database to save the collected data records.
[0047] For other collected signals, such as gas, oxygen, carbon dioxide, temperature, methane, drilling stress, anchor stress, stratum roof, hydraulic support, etc., different signals are scored by adjusting the threshold range in the table or setting other formulas, but the score range is the same as the corresponding description type, and a unified cognitive rule is established.
[0048] The present invention also provides a filtering and early warning system for coal mine disaster data, which specifically includes:
[0049] The data filtering module is used to receive data from the mine sensor measuring points; the data from the mine sensor measuring points are input into the data filter to determine whether there is cached data; if there is no cached data, the data is stored in the cache and the data is passed to the next level; if there is cached data, the difference between the current data and the cached data is compared with the set threshold, and when the difference is less than the set threshold, the current data is discarded; otherwise, the current data is stored in the cache and the data is passed to the next level.
[0050] The alarm output module is used to receive the data transmitted by the upper-level data filter for early warning processing, calculate the score of the current data, determine the early warning category of the current data according to the set score threshold level, output the early warning information and store it in the database; the early warning categories include alarm information and health information.
[0051] Each module in the above-mentioned coal mine disaster data filtering and early warning system can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0052] The present invention also provides a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps in an embodiment of a method for filtering and warning coal mine disaster data. The specific implementation method can be found in the method embodiment, which will not be described in detail here.
[0053] Furthermore, the present invention also provides a non-temporary computer-readable storage medium containing instructions, and a computer program is stored on the storage medium. For example, a memory containing instructions, the above instructions can be executed by a processor of a computer device to complete the above method. For example, a non-temporary computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. When the computer program is executed by the processor, the steps in an embodiment of a method for filtering and warning coal mine disaster data can be implemented. The specific implementation method can be found in the method embodiment, which will not be repeated here.
[0054] It will be appreciated by those skilled in the art that embodiments of the present invention may provide methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0055] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0056] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0057] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0058] It should be pointed out that the specific implementation methods described above can enable those skilled in the art to understand the invention more comprehensively, but do not limit the invention in any way. Therefore, although the invention has been described in detail in this specification and embodiments, those skilled in the art should understand that the invention can still be modified or replaced by equivalents; and all technical solutions and improvements that do not deviate from the spirit and scope of the invention are included in the protection scope of the patent for the invention. Any figure mark in the claims should not be regarded as limiting the claims involved. Any simple change or equivalent replacement of the technical solution that can be obviously obtained by any technician familiar with the field within the technical scope disclosed in the present invention belongs to the protection scope of the present invention.
Claims
1. A method for filtering and early warning of coal mine disaster data, characterized in that: The following steps are involved: Receiving data from a mine sensor measurement point; inputting the data from the mine sensor measurement point into a data filter to determine whether there is cached data; If there is no cached data, the data is stored in the cache and passed to the next level; if there is cached data, the difference between the current data and the cached data is compared with the set threshold, and when the difference is less than the set threshold, the current data is discarded; Otherwise, store the current data in the buffer and pass the data to the next level; Receive the data transmitted by the previous level data filter for early warning processing, calculate the score of the current data, determine the early warning category of the current data according to the set score threshold level, output the early warning information and store it in the database; the early warning category includes alarm information and health information.
2. A method for filtering and early warning of coal mine disaster data according to claim 1, characterized in that: The warning category of the current data is determined according to the set score threshold level, specifically: If the current data belongs to alarm information, then read the last alarm information of the same alarm information category as the current data. When there is a last alarm information of the same category, continue to output the information of the same alarm information category and store it in the database; when there is a last alarm information of a different category, end the alarm information of the previous level, insert the alarm information of the updated level and store it in the database; when there is no last alarm information of the same category, send the alarm information and record the alarm start time and store it in the database; If the current data is health information, read whether there is alarm information in the data stream, and if there is alarm information, end the alarm and calculate the duration; When there is no alarm information, the warning information is output and stored in the database.
3. A method for filtering and early warning of coal mine disaster data according to claim 1, characterized in that: The cache uses redis cache, uses Map mode to store data keywords and key values one by one, and sets a cache timeout. If it expires and is not updated, it will be automatically deleted from the cache.
4. A method for filtering and early warning of coal mine disaster data according to claim 1, characterized in that: After the warning is processed, the metadata is stored in the database in the order of timestamps.
5. A method for filtering and early warning of coal mine disaster data according to claim 1, characterized in that: The warning information categories specifically include prompt information, problem information, serious information and fatal information.
6. A method for filtering and early warning of coal mine disaster data according to claim 3, characterized in that: The key value is determined according to the data measurement point code and the measurement point type.
7. A filtering and early warning system for coal mine disaster data, characterized in that: include: A data filtering module, used to receive data from the mine sensor measurement points; Inputting the data of the mine sensor measurement point into a data filter to determine whether there is cached data; If there is no cached data, the data is stored in the cache and passed to the next level; if there is cached data, the difference between the current data and the cached data is compared with the set threshold, and when the difference is less than the set threshold, the current data is discarded; Otherwise, store the current data in the buffer and pass the data to the next level; The alarm output module is used to receive the data transmitted by the previous level data filter for early warning processing, calculate the score of the current data, judge the early warning category of the current data according to the set score threshold level, output the early warning information and store it in the database; the early warning category includes alarm information and health information.
8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is loaded into a processor, it can execute the steps of the method according to any one of claims 1 to 6.