Fire warning method, device, computer equipment, and storage medium

By calculating the difference in sensor data to generate fire warning information, the problem of low accuracy of fire warning caused by changes in environmental factors in traditional technology is solved, and a high accuracy and applicability of fire warning methods are achieved.

CN115050155BActive Publication Date: 2025-01-07SUZHOU GUANGGE EQUIP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210438243.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-25
Publication Date
2025-01-07
Estimated Expiration
2042-04-25

AI Technical Summary

Technical Problem

Traditional fire early warning methods are difficult to maintain accuracy when environmental factors change, especially in areas with large temperature differences between day and night, and cannot determine the appropriate alarm threshold, resulting in low accuracy of fire early warning.

Method used

By collecting the current and historical environmental data of the sensor, the difference between the two is calculated, and when the difference meets the preset conditions, the fire warning information is generated, the data processing volume is reduced and the warning accuracy is improved without adjusting the threshold to adapt. Environmental changes.

Benefits of technology

It improves the accuracy and applicability of fire warnings, can work effectively in a variety of environments, and reduces the impact on changes in environmental factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115050155B_ABST
    Figure CN115050155B_ABST
Patent Text Reader

Abstract

The present application relates to a fire warning method, device, computer equipment, and storage medium. The method includes: determining first environmental data based on current environmental data collected by a sensor at the current moment; obtaining second environmental data corresponding to the first environmental data, wherein the second environmental data is generated based on historical environmental data collected by the sensor; determining a first difference between the first environmental data and the second environmental data, and generating fire warning information when the first difference meets a preset condition. This method can be used to directly determine whether to issue a fire warning based on the difference between the first environmental data and the second environmental data, thereby improving the accuracy of the fire warning. In addition, when using this method, there is no need to change the threshold in the preset conditions, so that the fire warning method can be unaffected by changes in environmental factors and is applicable to a variety of different environments, thereby enhancing the applicability of the fire warning method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data analysis technology, and in particular to a fire warning method, device, computer equipment, storage medium and computer program product. Background Art

[0002] The utility tunnel is built underground in the city, and various engineering pipelines such as power pipelines, communication pipelines, gas pipelines, and heating pipelines are placed in the same or multiple adjacent spaces. Since the power pipelines are in a heating state during operation, it is easy to cause failures in other pipelines around the power pipelines, and even cause fires. Therefore, it is necessary to monitor the temperature, oxygen concentration and other data inside the utility tunnel in real time to warn of fires.

[0003] In traditional technology, multiple sensors are usually installed inside the integrated pipe gallery to compare the real-time data collected by the sensors with the preset alarm threshold. When the real-time data is greater than the alarm threshold, a fire warning is issued. However, when this method is used for fire warning, when environmental factors change (for example, temperature changes caused by seasonal changes, changes in day and night temperature differences caused by regions, etc.), the alarm threshold needs to be adjusted according to the changes in environmental factors. In some areas with large day and night temperature differences, it is even impossible to determine the corresponding alarm threshold, resulting in low accuracy of fire warning. Summary of the invention

[0004] Based on this, it is necessary to provide a fire warning method, device, computer equipment, storage medium and computer program product with strong applicability and high accuracy to address the above technical problems.

[0005] In a first aspect, the present application provides a fire early warning method. The method comprises:

[0006] Determine first environmental data according to current environmental data collected by the sensor at a current moment;

[0007] Acquire second environmental data corresponding to the first environmental data, where the second environmental data is generated based on historical environmental data collected by the sensor;

[0008] A first difference between the first environmental data and the second environmental data is determined, and when the first difference meets a preset condition, fire warning information is generated.

[0009] In one embodiment, the method for generating the second environment data includes:

[0010] Acquire historical environmental data collected at multiple historical moments, wherein the historical environmental data is year-on-year environmental data and / or month-on-month environmental data;

[0011] Determine the degree of change of the plurality of historical environment data, and generate the second environment data according to the degree of change and the plurality of historical environment data.

[0012] In one embodiment, the obtaining of historical environmental data collected at multiple historical moments includes:

[0013] Acquire the original environmental data collected at multiple historical moments;

[0014] The plurality of original environment data are filtered to generate the historical environment data.

[0015] In one embodiment, filtering the plurality of raw environment data to generate the historical environment data includes:

[0016] Determine a second difference between each first original environment data and corresponding second original environment data in the original environment data, wherein the first original environment data is data collected at a time after the second original environment data;

[0017] When the second difference is greater than a preset threshold, the first original environment data is replaced by the second original environment data; when the second difference is less than or equal to the preset threshold, the first original environment data is kept unchanged to obtain the historical environment data.

[0018] In one embodiment, determining the first environmental data according to the current environmental data collected by the sensor at the current moment includes:

[0019] Acquire the third environment data collected by the sensor at the previous moment, and the current environment data collected at the current moment;

[0020] determining a third degree of difference between the current environment data and the third environment data;

[0021] When the third difference is greater than the fluctuation threshold, storing the current environment data and using the current environment data as the first environment data;

[0022] When the third difference is less than or equal to the fluctuation threshold, the current environment data is discarded, and the third environment data is used as the first environment data.

[0023] In one embodiment, when the first difference meets a preset condition, generating fire warning information includes:

[0024] When the first difference meets a preset condition, a collection position corresponding to the first environmental data is obtained, and the fire warning information is generated according to the collection position and the first environmental data.

[0025] In a second aspect, the present application also provides a fire warning device. The device comprises:

[0026] A first data determination module, used to determine first environmental data according to current environmental data collected by the sensor at a current moment;

[0027] A second data acquisition module, used to acquire second environmental data corresponding to the first environmental data, wherein the second environmental data is generated based on the historical environmental data collected by the sensor;

[0028] The early warning module is used to determine a first difference between the first environmental data and the second environmental data, and generate fire early warning information when the first difference meets a preset condition.

[0029] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the fire warning method described in any one of the embodiments of the first aspect is implemented.

[0030] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the fire warning method described in any one of the embodiments of the first aspect is implemented.

[0031] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the fire warning method described in any one of the embodiments of the first aspect is implemented.

[0032] The fire warning method, device, computer equipment, storage medium and computer program product can reduce the amount of data processed by the computer equipment by determining the first environmental data according to the current environmental data collected by the sensor at the current moment, thereby improving the efficiency of data processing; by generating the second environmental data corresponding to the first environmental data according to the historical environmental data collected by the sensor, determining the first difference between the first environmental data and the second environmental data, using the preset condition to judge the first difference, and generating fire warning information when it is determined that the first difference meets the preset condition; it can directly determine whether to perform a fire warning based on whether the difference between the first environmental data and the second environmental data meets the preset condition, thereby improving the accuracy of the fire warning. In addition, when using this method for fire warning, there is no need to change the threshold in the preset condition, so that the fire warning method can be unaffected by changes in environmental factors and is applicable to a variety of different environments, thereby enhancing the applicability of the fire warning method. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of a flow chart of a fire warning method in one embodiment;

[0034] Figure 2 A schematic diagram of a flow chart of a first environment data determination step in an embodiment;

[0035] Figure 3a A schematic diagram of a flow chart of a fire warning method in another embodiment;

[0036] Figure 3b A schematic diagram of a second environment data generating step in one embodiment;

[0037] Figure 4 is a structural block diagram of a fire warning device in one embodiment;

[0038] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] In one embodiment, Figure 1 As shown, a fire warning method is provided. This embodiment uses the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart TVs, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server can be implemented as an independent server or a server cluster consisting of multiple servers.

[0041] In this embodiment, the method includes the following steps:

[0042] Step S102: determining first environmental data according to current environmental data collected by the sensor at the current moment.

[0043] The sensors may be arranged in various areas of the urban underground utility tunnel. The first environmental data may be used to determine whether to generate fire warning information.

[0044] Specifically, in one embodiment, the terminal receives the current environmental data collected by the sensor at the current moment in real time. The current environmental data is preprocessed by preset rules to determine the first environmental data corresponding to the current moment. In one example, the preset rules may include but are not limited to: comparing the current environmental data with a first threshold, and when the current environmental data is greater than the first threshold, using the current environmental data as the first environmental data; or comparing the current environmental data with the environmental data collected at the previous moment, and when the difference between the current environmental data and the environmental data collected at the previous moment meets the fluctuation threshold, using the current environmental data as the first environmental data. In another embodiment, the terminal receives the current environmental data collected by the sensor at the current moment in real time. Use the current environmental data as the first environmental data.

[0045] Step S104, obtaining second environment data corresponding to the first environment data.

[0046] The second environmental data is generated based on historical environmental data collected by the sensor before the current moment. The second environmental data can be environmental data collected at the current moment under normal circumstances (ie, when no fire warning information needs to be generated).

[0047] Specifically, the terminal pre-acquires multiple historical environmental data collected by the sensor before the current moment, performs calculations on the multiple historical environmental data, generates second environmental data corresponding to the current moment, and stores the second environmental data and the collection time corresponding to the second environmental data in the cache of the terminal. After determining the first environmental data, the terminal reads the second environmental data corresponding to the first environmental data from the cache according to the collection time of the first environmental data.

[0048] Step S106, determining a first difference between the first environment data and the second environment data, and generating fire warning information when the first difference meets a preset condition.

[0049] The first difference degree may be, but is not limited to, any one of the difference between the first environment data and the second environment data, the ratio between the first environment data and the second environment data, and the like.

[0050] Specifically, the terminal pre-stores preset conditions for generating fire warning information. The terminal performs calculation processing on the first environment data and the second environment data to determine a first difference between the first environment data and the second environment data. The first difference is compared with the warning threshold in the preset condition. When the first difference is greater than the warning threshold, it is determined that the first difference meets the preset condition, the collection time corresponding to the first environment data is obtained, the fire warning information corresponding to the first environment data is generated, and the fire warning information is displayed in the display area of ​​the terminal.

[0051] In the above fire warning method, by determining the first environmental data according to the current environmental data collected by the sensor at the current moment, the amount of data processed by the computer device can be reduced, thereby improving the efficiency of data processing; by generating the second environmental data corresponding to the first environmental data according to the historical environmental data collected by the sensor, determining the first difference between the first environmental data and the second environmental data, using the preset condition to judge the first difference, and generating fire warning information when it is determined that the first difference meets the preset condition; it can directly determine whether to perform a fire warning based on whether the difference between the first environmental data and the second environmental data meets the preset condition, thereby improving the accuracy of the fire warning. In addition, when using this method for fire warning, there is no need to change the threshold in the preset condition, so that the fire warning method can be unaffected by changes in environmental factors and is applicable to a variety of different environments, thereby enhancing the applicability of the fire warning method.

[0052] In one embodiment, a method for generating second environment data includes: acquiring historical environment data collected at multiple historical moments; determining a degree of change of the multiple historical environment data, and generating second environment data based on the degree of change and the multiple historical environment data.

[0053] Among them, the historical environmental data can be year-on-year environmental data and / or month-on-month environmental data.

[0054] Specifically, the terminal obtains historical environmental data collected by the sensor at multiple historical moments before the current moment, performs calculations on the multiple historical environmental data, and determines the degree of change between the multiple historical environmental data. Performs calculations on the historical environmental data collected at the last moment before the current moment and the degree of change to generate second environmental data.

[0055] In one example, when the historical environmental data is year-on-year environmental data, the terminal performs calculations on multiple year-on-year environmental data to determine the year-on-year change rate, performs calculations on the year-on-year environmental data and year-on-year change rate collected at the previous year-on-year moment before the current moment, and generates second environmental data.

[0056] In one example, when the historical environmental data is month-on-month environmental data, the terminal performs calculations on multiple month-on-month environmental data to determine the month-on-month change rate, performs calculations on the month-on-month environmental data and month-on-month change rate collected at the previous month-on-month moment before the current moment, and generates second environmental data.

[0057] In one example, when the historical environmental data is year-on-year environmental data and month-on-month environmental data, the terminal performs calculation processing on multiple year-on-year environmental data to determine the year-on-year change, and performs calculation processing on the year-on-year environmental data and the year-on-year change degree collected at the previous year-on-year moment before the current moment to generate the second year-on-year environmental data. Perform calculation processing on multiple month-on-month environmental data to determine the month-on-month change degree, and perform calculation processing on the month-on-month environmental data and the month-on-month change degree collected at the previous month-on-month moment before the current moment to generate the second month-on-month environmental data. Generate the second environmental data based on the second year-on-year environmental data and the second month-on-month environmental data.

[0058] In one example, when the historical environmental data is year-on-year environmental data and month-on-month environmental data, the second environmental data can be the average of the second year-on-year environmental data and the second month-on-month environmental data, or the minimum value of the second year-on-year environmental data and the second month-on-month environmental data, or the maximum value of the second year-on-year environmental data and the second month-on-month environmental data, without specific limitation here.

[0059] In this embodiment, by acquiring multiple historical environmental data, determining the degree of change of the multiple historical environmental data, and generating second environmental data based on the degree of change and the historical environmental data, the second environmental data can be generated by utilizing the change trend of the historical environmental data, thereby improving the accuracy of the second environmental data and thus improving the accuracy of subsequent fire warnings using the second environmental data.

[0060] In one embodiment, obtaining historical environmental data collected at multiple historical moments includes: obtaining original environmental data collected at multiple historical moments; and filtering the multiple original environmental data to generate historical environmental data.

[0061] Specifically, the terminal obtains the original environmental data collected by the sensor at multiple historical moments, performs filtering processing on the multiple original environmental data, and generates historical environmental data. In one example, the filtering processing can be to use a filtering threshold to compare with the original environmental data, and use the original environmental data greater than the filtering threshold as the historical environmental data, or to sort the multiple original environmental data according to the collection time corresponding to the original environmental data, and obtain the difference between the sorted adjacent two original environmental data. When the difference is greater than the filtering threshold, the original environmental data with an earlier collection time among the adjacent two original environmental data is used as the filtered original environmental data with a later collection time.

[0062] In this embodiment, by filtering the original environment data collected at multiple historical moments to generate historical environment data corresponding to the historical moments, the accuracy of the second environment data subsequently generated based on the historical environment data can be improved.

[0063] In one embodiment, multiple original environmental data are filtered to generate historical environmental data, including: determining a second difference between each first original environmental data and the corresponding second original environmental data in the original environmental data; when the second difference is greater than a preset threshold, replacing the first original environmental data with the second original environmental data; when the second difference is less than or equal to the preset threshold, keeping the first original environmental data unchanged to obtain historical environmental data.

[0064] The first original environment data is data collected at a time after the second original environment data.

[0065] Specifically, the terminal sorts the multiple original environment data according to the collection time corresponding to the original environment data, determines multiple first original environment data from the sorted multiple original environment data, and uses the original environment data adjacent to the first original environment data and collected before the first original environment data as the second original environment data corresponding to the first original environment data. Perform calculation processing on each first original environment data and the corresponding second original environment data to determine the second difference between each first original environment data and the corresponding second original environment data. Starting from the first first original environment data in the sorted multiple original environment data, the second difference corresponding to each first original environment data is compared with a preset threshold value. When it is determined that the second difference is greater than the preset threshold value, the first original environment data is replaced with the second original environment data; when it is determined that the second difference is less than or equal to the preset threshold value, the first original environment data is kept unchanged until the last first original environment data in the sorted multiple original environment data is processed to obtain historical environment data.

[0066] In this embodiment, by determining the second difference between the first original environmental data and the second original environmental data, each first original environmental data is processed according to the second difference and a preset threshold to obtain historical environmental data, thereby avoiding errors in original environmental data caused by sensor failure and improving the accuracy of historical environmental data, thereby improving the accuracy of second environmental data subsequently generated using historical environmental data.

[0067] In one embodiment, Figure 2 As shown, step S104, obtaining second environment data corresponding to the first environment data, includes:

[0068] Step S202, obtaining the third environment data collected by the sensor at the previous moment and the current environment data collected at the current moment.

[0069] Step S204, determining a third difference between the current environment data and the third environment data.

[0070] Step S206: compare the third difference with the fluctuation threshold.

[0071] Step S208, storing the current environment data, and using the current environment data as the first environment data.

[0072] Step S210, discard the current environment data, and use the third environment data as the first environment data.

[0073] Specifically, a fluctuation threshold is pre-stored in the terminal. The terminal obtains the current environmental data collected by the sensor at the current moment, reads the third environmental data collected by the sensor at the last collection moment before the current moment from the cache, performs calculations on the third environmental data and the current environmental data, determines the third difference between the third environmental data and the current environmental data, compares the third difference with the fluctuation threshold, and executes step S208 if it is determined that the third difference is greater than the fluctuation threshold, stores the current environmental data in the cache, and uses the current environmental data as the first environmental data at the current moment. If it is determined that the third difference is less than the fluctuation threshold, execute step S210 to discard the current environmental data and use the third environmental data as the first environmental data at the current moment.

[0074] In one example, when the terminal does not store the current environment data within a preset time period, the terminal stores the current environment data collected by the sensor at the next collection moment, and uses the current environment data as the first environment data.

[0075] In this embodiment, by determining the third difference between the current environmental data and the third environmental data, using the fluctuation threshold to compare with the third difference to determine the first environmental data, the current environmental data whose difference with the third environmental data at the last collection moment is too small can be filtered out, reducing the amount of environmental data stored in the terminal, thereby improving the efficiency of the terminal in processing environmental data.

[0076] In one embodiment, step S106, determining a first difference between the first environmental data and the second environmental data, and generating fire warning information when the first difference meets a preset condition, includes: when the first difference meets the preset condition, obtaining a collection position corresponding to the first environmental data, and generating fire warning information according to the collection position and the first environmental data.

[0077] Specifically, the environmental data acquired by the terminal includes multiple types. In one example, the environmental data acquired by the terminal includes temperature data and oxygen concentration data. The terminal compares the first temperature difference corresponding to the temperature data in the first environmental data with the temperature threshold in the preset conditions. The terminal compares the first concentration difference corresponding to the oxygen concentration data in the first environmental data with the concentration threshold in the preset conditions. When the terminal determines that the first temperature difference is greater than the temperature threshold and the first concentration difference is greater than the concentration threshold, the collection position corresponding to the first environmental data is obtained, and fire warning information is generated according to the collection position and the first environmental data, and the fire warning information is displayed on the terminal. In one example, the fire warning information may be that the first environmental data at the XX position of the XX corridor is too high or the first environmental data is abnormal.

[0078] In this embodiment, by judging multiple environmental data, when it is determined that each environmental data meets the preset conditions, fire warning information is generated and displayed on the terminal, which can improve the accuracy of the fire warning information and provide visual fire warning information.

[0079] In one embodiment, Figure 3a As shown, a fire warning method is provided, comprising:

[0080] Step S302, obtaining the third environment data collected by the sensor at the previous moment and the current environment data collected at the current moment.

[0081] Step S304, determining a third difference between the current environment data and the third environment data, comparing the third difference with the fluctuation threshold, and determining the first environment data.

[0082] Specifically, the terminal obtains the third environment data collected by the sensor at the last collection time before the current time, and the current environment data collected at the current time. The difference between the current environment data and the third environment data is obtained, and the difference is compared with the fluctuation threshold. When the difference is greater than the fluctuation threshold, the current environment data is stored and the current environment data is used as the first environment data; when the difference is less than the fluctuation threshold, the current environment data is discarded and the third environment data is used as the first environment data.

[0083] Step S306, obtaining second environment data corresponding to the first environment data.

[0084] Specifically, the terminal obtains multiple original environment data, performs filtering processing on the multiple original environment data, and obtains multiple historical environment data. The multiple historical environment data are processed by calculation, the change degree of the multiple historical environment data is determined, and the change degree and the historical environment data are used to generate the second environment data corresponding to the future time. The terminal determines the second environment data corresponding to the first environment data according to the collection time of the first environment data.

[0085] In an example, Figure 3b As shown, t is the collection time when the sensor collects environmental data, k is the period when the sensor collects environmental data, and date is the date when the sensor collects environmental data. The second environmental data corresponding to the time t+k of day D1 is generated as follows: the terminal obtains the month-on-month environmental data at time t-4k, time t-3k, time t-2k, time tk, and time t before time t+k of day D1, performs calculations on multiple month-on-month environmental data, and determines the month-on-month change degree. The month-on-month environmental data and the month-on-month change degree at time t of day D1 are calculated and processed to obtain the second environmental data at time t+k of day D1. In another example, the second environmental data corresponding to the time t+k of Dn day is generated as follows: the terminal obtains the month-on-month environmental data at the time t-4k, the time t-3k, the time t-2k, the time tk, and the time t before the time t+k of Dn day, performs calculation processing on the multiple month-on-month environmental data, determines the month-on-month change degree, performs calculation processing on the month-on-month environmental data and the month-on-month change degree at the time t of Dn day, and obtains the second month-on-month data at the time t+k of Dn day. The terminal obtains multiple year-on-year environmental data from the time t+k of D1 day to the time t+k of Dn-1 day, performs calculation processing on the multiple year-on-year environmental data, determines the year-on-year change degree, performs calculation processing on the year-on-year environmental data and the year-on-year change degree at the time t+k of Dn-1 day, and obtains the second year-on-year data at the time t+k of Dn day. The second month-on-month data and the second year-on-year data are calculated and processed, and the average value of the second month-on-month data and the second year-on-year data is used as the second environmental data corresponding to the time t+k of Dn day.

[0086] Step S308: determining a first difference between the first environment data and the second environment data.

[0087] Step S310: When the first difference meets the preset condition, the collection position corresponding to the first environmental data is obtained, and fire warning information is generated according to the collection position and the first environmental data.

[0088] Specifically, the terminal performs computational processing on the first environmental data and the second environmental data, determines the first difference between the first environmental data and the second environmental data, compares the first difference with the warning threshold in the preset condition, and when the first difference is greater than the warning threshold, determines that the first difference meets the preset condition, obtains the collection position corresponding to the first environmental data, generates fire warning information based on the collection position and the first environmental data, and displays it on the terminal. The method for determining the first difference can refer to the first difference determination operation provided in the above embodiment, and will not be elaborated on in detail here.

[0089] In one example, the terminal can obtain year-on-year environmental data at multiple year-on-year collection moments corresponding to the current collection moment, and month-on-month environmental data at multiple month-on-month collection moments corresponding to the current collection moment. The first environmental data and the multiple year-on-year environmental data are filtered, the year-on-year change between the first environmental data and the multiple year-on-year environmental data is determined, the first environmental data and the year-on-year change are calculated and processed, and the third year-on-year data at a future moment corresponding to the current moment is obtained. The first environmental data and the multiple month-on-month environmental data are filtered, the month-on-month change between the first environmental data and the multiple month-on-month environmental data is determined, the first environmental data and the month-on-month change are calculated and processed, and the third month-on-month data at a future moment corresponding to the current moment is obtained. Based on the third year-on-year data and the third month-on-month data, the predicted environmental data at the future moment corresponding to the current moment is generated.

[0090] In this embodiment, by comparing the current environmental data with the third environmental data to determine the first environmental data, the amount of environmental data stored in the terminal can be reduced, and the efficiency of data processing by the terminal can be improved; second environmental data corresponding to the future moment is generated based on multiple historical environmental data, and warning information is generated when the first difference between the first environmental data and the second environmental data meets the preset conditions, and the first environmental data at the future moment can be predicted using the change trend of the historical environmental data to generate the second environmental data, and whether to issue a fire warning is determined based on the difference between the first environmental data and the second environmental data, thereby improving the accuracy of the fire warning. In addition, when using this method for fire warning, there is no need to change the threshold in the preset conditions, so that the fire warning method can be unaffected by changes in environmental factors and is applicable to a variety of different environments, thereby enhancing the applicability of the fire warning method.

[0091] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0092] Based on the same inventive concept, the embodiment of the present application also provides a fire warning device for implementing the fire warning method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more fire warning device embodiments provided below can refer to the limitations of the fire warning method above, and will not be repeated here.

[0093] In one embodiment, Figure 4 As shown, a fire warning device 400 is provided, comprising: a first data determination module 402, a second data acquisition module 404 and a warning module 406, wherein:

[0094] The first data determination module 402 is used to determine the first environmental data according to the current environmental data collected by the sensor at the current moment.

[0095] The second data acquisition module 404 is used to acquire second environment data corresponding to the first environment data, where the second environment data is generated based on historical environment data collected by the sensor.

[0096] The warning module 406 is used to determine a first difference between the first environment data and the second environment data, and generate fire warning information when the first difference meets a preset condition.

[0097] In one embodiment, the second data acquisition module 404 includes: a historical data acquisition unit, used to acquire historical environmental data collected at multiple historical moments, where the historical environmental data is year-on-year environmental data and / or month-on-month environmental data; a degree of change determination unit, used to determine the degree of change of multiple historical environmental data, and generate second environmental data based on the degree of change and multiple historical environmental data.

[0098] In one embodiment, the historical data acquisition unit includes: an original data acquisition subunit, which is used to acquire original environmental data collected at multiple historical moments; and a historical data generation subunit, which is used to filter the multiple original environmental data to generate historical environmental data.

[0099] In one embodiment, the historical data generation subunit is also used to determine the second difference between each first original environment data and the corresponding second original environment data in the original environment data, the first original environment data being data collected at a time after the second original environment data; when the second difference is greater than a preset threshold, the first original environment data is replaced with the second original environment data; when the second difference is less than or equal to the preset threshold, the first original environment data is kept unchanged to obtain historical environment data.

[0100] In one embodiment, the first data determination module 402 includes: an environmental data acquisition unit, used to acquire the third environmental data collected by the sensor at the previous moment, and the current environmental data collected at the current moment; a third difference determination unit, used to determine the third difference between the current environmental data and the third environmental data; a first environmental data determination unit, used to store the current environmental data and use the current environmental data as the first environmental data when the third difference is greater than the fluctuation threshold; when the third difference is less than or equal to the fluctuation threshold, discard the current environmental data and use the third environmental data as the first environmental data.

[0101] In one embodiment, the warning module 406 is further configured to: when the first difference meets a preset condition, obtain a collection position corresponding to the first environmental data, and generate fire warning information according to the collection position and the first environmental data.

[0102] Each module in the fire warning device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0103] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a fire warning method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.

[0104] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0105] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0106] In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0107] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0108] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0110] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0111] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A fire early warning method, characterized in that: Applied to a scenario where environmental factors change, the method includes: Determine first environmental data according to current environmental data collected by the sensor at a current moment; Acquire second environmental data corresponding to the first environmental data, where the second environmental data is generated by predicting the first environmental data collected at the current moment without generating fire warning information according to a change trend of the historical environmental data collected by the sensor; Determining a first difference between the first environmental data and the second environmental data, and generating fire warning information when the first difference meets a preset condition; The method for generating the second environment data includes: Acquire historical environmental data collected at multiple historical moments, wherein the historical environmental data is year-on-year environmental data and / or month-on-month environmental data; Determine a year-on-year change of a plurality of the year-on-year environmental data and / or a month-on-month change of a plurality of the month-on-month environmental data; Generate the second environmental data according to the year-on-year change degree and the year-on-year environmental data collected at the last year-on-year time before the current time; or, Generate the second environmental data according to the month-on-month change degree and the month-on-month environmental data collected at the last month-on-month time before the current time; or, Generate second year-on-year environmental data based on the year-on-year change rate and the year-on-year environmental data collected at the previous year-on-year moment before the current moment, generate second month-on-month environmental data based on the month-on-month change rate and the month-on-month environmental data collected at the previous month-on-month moment before the current moment, and generate the second environment data based on the second year-on-year environmental data and the second month-on-month environmental data.

2. The method according to claim 1, characterized in that The obtaining of historical environmental data collected at multiple historical moments includes: Acquire the original environmental data collected at multiple historical moments; The plurality of original environment data are filtered to generate the historical environment data.

3. The method according to claim 2, characterized in that The filtering process of the plurality of original environmental data to generate the historical environmental data includes: Determine a second difference between each first original environment data and corresponding second original environment data in the original environment data, wherein the first original environment data is data collected at a time after the second original environment data; When the second difference is greater than a preset threshold, the first original environment data is replaced by the second original environment data; when the second difference is less than or equal to the preset threshold, the first original environment data is kept unchanged to obtain the historical environment data.

4. The method according to any one of claims 1 to 3, characterized in that: The determining of the first environmental data according to the current environmental data collected by the sensor at the current moment includes: Acquire the third environment data collected by the sensor at the previous moment, and the current environment data collected at the current moment; determining a third degree of difference between the current environment data and the third environment data; When the third difference is greater than the fluctuation threshold, storing the current environment data and using the current environment data as the first environment data; When the third difference is less than or equal to the fluctuation threshold, the current environment data is discarded, and the third environment data is used as the first environment data.

5. The method according to any one of claims 1 to 3, characterized in that: When the first difference meets a preset condition, generating fire warning information includes: When the first difference meets a preset condition, a collection position corresponding to the first environmental data is obtained, and the fire warning information is generated according to the collection position and the first environmental data.

6. A fire warning device, characterized in that: Applicable to the scenario where environmental factors change, the device includes: A first data determination module, used to determine first environmental data according to current environmental data collected by the sensor at a current moment; A second data acquisition module is used to acquire second environmental data corresponding to the first environmental data, where the second environmental data is generated by predicting the first environmental data collected at the current moment without generating fire warning information according to the change trend of the historical environmental data collected by the sensor; an early warning module, configured to determine a first difference between the first environmental data and the second environmental data, and generate fire early warning information when the first difference meets a preset condition; Wherein, the second data acquisition module includes: A historical data acquisition unit, used to acquire historical environmental data collected at multiple historical moments, wherein the historical environmental data is year-on-year environmental data and / or month-on-month environmental data; A change degree determination unit is used to determine the year-on-year change degree of multiple year-on-year environmental data and / or the month-on-month change degree of multiple month-on-month environmental data; generate the second environmental data based on the year-on-year change degree and the year-on-year environmental data collected at the previous year-on-year moment before the current moment; or, generate the second environmental data based on the month-on-month change degree and the month-on-month environmental data collected at the previous month-on-month moment before the current moment; or, generate the second year-on-year environmental data based on the year-on-year change degree and the year-on-year environmental data collected at the previous year-on-year moment before the current moment, generate the second month-on-month environmental data based on the month-on-month change degree and the month-on-month environmental data collected at the previous month-on-month moment before the current moment, and generate the second environmental data based on the second year-on-year environmental data and the second month-on-month environmental data.

7. The device according to claim 6, characterized in that The historical data acquisition unit includes: an original data acquisition subunit, which is used to acquire the original environmental data collected at multiple historical moments; and a historical data generation subunit, which is used to filter the multiple original environmental data to generate the historical environmental data.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Cable core temperature monitoring method and system

    CN106500875A

  • Multi-source optical fire detection method and system for oil-filled equipment

    CN113065421A