Full-life-cycle fire fighting equipment analysis method and system
By introducing transit equipment and cloud servers into the fire equipment analysis system, unifying the format of fire equipment data and conducting linkage analysis, the problems of fire equipment data silos and analysis deviations are solved, and analysis efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510165805.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-05-30
AI Technical Summary
There is a data island problem in the analysis of existing fire-fighting equipment data, and the data of each device is not interoperable, resulting in the need of separate analysis. Each device needs to develop matching analysis software, which increases the workload, and the separate analysis fails to consider the mutual influence between the equipment, reducing the accuracy of the analysis results.
The fire-fighting equipment analysis method and system for the whole life cycle is adopted to receive messages from different fire-fighting equipment through the transit equipment, and use pre-configured identification and protocol conversion tables to convert the fire-fighting data, and then send it to the cloud server for analysis in a unified format.
The workload required for analysis is reduced, the analysis efficiency is improved, the analysis deviation is reduced, the analysis results are improved, and the linkage analysis of multiple fire equipment data is realized.
Smart Images

Figure CN120053928A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and particularly to a method and system for analyzing fire-fighting equipment throughout its life cycle. Background Art
[0002] Fire-fighting equipment includes fire alarm equipment, smoke prevention and exhaust equipment, fire detection equipment, fire extinguishing equipment, etc. These fire-fighting equipment will generate various fire-fighting data during operation.
[0003] In order to determine the normal operation of fire-fighting equipment and respond to fire risks, it is necessary to analyze the fire-fighting data generated by these fire-fighting equipment. Currently, the following problems exist: 1. Since the data between each fire-fighting equipment is not interoperable, the data generated by each fire-fighting equipment is in an isolated data island situation. Therefore, it is necessary to analyze the fire-fighting data generated by each fire-fighting equipment separately, and the analysis software used for analyzing the fire-fighting data generated by different fire-fighting equipment is also different. Therefore, it is necessary to develop an analysis software that matches each fire-fighting equipment, and after the fire-fighting equipment is updated, it is also necessary to adapt, update, optimize, and maintain the analysis software, which will greatly increase the workload.
[0004] 2. Using the analysis software adapted to each fire-fighting equipment to analyze the fire-fighting data generated by each fire-fighting equipment separately, and the separate analysis method does not consider the mutual influence between each fire-fighting equipment and cannot perform linkage analysis, which will reduce the accuracy of the analysis result and thus result in analysis deviation. Summary of the Invention
[0005] The present application provides a method and system for analyzing fire-fighting equipment throughout its life cycle, which can not only reduce the workload required for analysis, improve the analysis efficiency, but also reduce the analysis deviation and improve the accuracy of the analysis result.
[0006] To achieve the above object, the present application adopts the following technical solutions: In the first aspect, the present application provides a method for analyzing fire-fighting equipment throughout its life cycle, and the method includes: The transfer device receives a first message sent by a first fire-fighting equipment and a second message sent by a second fire-fighting equipment. The first message includes first fire-fighting data and a first equipment identifier, and the second message includes second fire-fighting data and a second equipment identifier; The transfer device determines a first protocol conversion table corresponding to the first equipment identifier and a second protocol conversion table corresponding to the second equipment identifier according to the mapping relationship of the pre-configured identifier and protocol conversion table; The relay device uses the first protocol conversion table to convert the first fire data to obtain third fire data, and uses the second protocol conversion table to convert the second fire data to obtain fourth fire data; The relay device sends the third fire data and the fourth fire data to the cloud server so that the cloud server analyzes the third fire data and the fourth fire data.
[0007] Optionally, the first protocol conversion table includes the mapping relationship between the first data segment and the target data segment; the second protocol conversion table includes the mapping relationship between the second data segment and the target data segment; the relay device uses the first protocol conversion table to convert the first fire data to obtain third fire data, and uses the second protocol conversion table to convert the second fire data to obtain fourth fire data, including: The relay device retrieves the first fire data to determine the first sub-data segment belonging to the first data segment in the first fire data; The relay device determines the first sub-target data segment corresponding to the first sub-data segment according to the mapping relationship between the first data segment and the target data segment; The relay device replaces the first sub-data segment in the first fire data with the first sub-target data segment to obtain third fire data; The relay device retrieves the second fire data to determine the second sub-data segment belonging to the second data segment in the second fire data; The relay device determines the second sub-target data segment corresponding to the second sub-data segment according to the mapping relationship between the second data segment and the target data segment; The relay device replaces the second sub-data segment in the second fire data with the second sub-target data segment to obtain fourth fire data.
[0008] Optionally, the first message further includes a first timestamp and first verification information, and the second message further includes a second timestamp and second verification information; the first verification information is determined based on the first device identifier and the first timestamp, and the second verification information is determined based on the second device identifier and the second timestamp; the method further includes: The relay device determines third verification information according to the first timestamp and the first device identifier, and determines fourth verification information according to the second timestamp and the second device identifier; The relay device compares the first verification information and the third verification information to obtain a first comparison result, and compares the second verification information and the fourth verification information to obtain a second comparison result; The relay device sending the third fire data and the fourth fire data to the cloud server includes: If the first comparison result indicates that the first verification information is consistent with the third verification information, and the second comparison result indicates that the second verification information is consistent with the fourth verification information, the relay device sends the third fire data and the fourth fire data to the cloud server.
[0009] Optionally, the method further includes: If the first comparison result indicates that the first verification information is inconsistent with the third verification information, the relay device discards the first message; and / or, If the second comparison result indicates that the second verification information is inconsistent with the fourth verification information, the relay device discards the second message.
[0010] Optionally, the method further includes: The cloud server receives other fire data of other fire devices forwarded by the relay device, where the other fire devices are fire devices other than the first fire device and the second fire device, and the other fire data is fire data obtained by the relay device after converting the fire data generated by the other fire devices; The cloud server analyzes the third fire data and the fourth fire data, including: The cloud server fuses the third fire data, the fourth fire data, and the other fire data to obtain fused fire data; The cloud server analyzes the fused fire data.
[0011] Optionally, the cloud server fuses the third fire data, the fourth fire data, and the other fire data to obtain fused fire data, including: The cloud server performs data-level fusion on the third fire data, the fourth fire data, and the other fire data to obtain first fused fire data; The cloud server extracts features from the image data in the third fire data, the fourth fire data, or the other fire data to obtain image features, extracts features from the first fused fire data to obtain text features, and fuses the image features and the text features to obtain second fused fire data.
[0012] Optionally, the cloud server analyzes the fused fire data, including: The cloud server pre-determines key features in the second fused fire data; The cloud server increases the influence weight of the fire risk assessment model on the key features and predicts the second fused fire data to obtain a fire risk level.
[0013] In a second aspect, the present application provides a full - life - cycle fire - fighting equipment analysis system, which includes: a first fire - fighting equipment, a second fire - fighting equipment, a transfer device, and a cloud server; The first fire - fighting equipment is used to send a first message to the transfer device, and the first message includes first fire - fighting data and a first device identifier; The second fire - fighting equipment is used to receive a second message sent by the second fire - fighting equipment, and the second message includes second fire - fighting data and a second device identifier; The transfer device is used to determine a first protocol conversion table corresponding to the first device identifier and a second protocol conversion table corresponding to the second device identifier according to the mapping relationship between the pre - configured identifier and the protocol conversion table, use the first protocol conversion table to convert the first fire - fighting data to obtain third fire - fighting data, use the second protocol conversion table to convert the second fire - fighting data to obtain fourth fire - fighting data, and send the third fire - fighting data and the fourth fire - fighting data to the cloud server; The cloud server is used to analyze the third fire - fighting data and the fourth fire - fighting data.
[0014] Optionally, the first protocol conversion table includes the mapping relationship between the first data segment and the target data segment; the second protocol conversion table includes the mapping relationship between the second data segment and the target data segment; specifically, the transfer device is used to retrieve the first fire - fighting data to determine a first sub - data segment belonging to the first data segment in the first fire - fighting data, determine a first sub - target data segment corresponding to the first sub - data segment according to the mapping relationship between the first data segment and the target data segment, replace the first sub - data segment in the first fire - fighting data with the first sub - target data segment to obtain third fire - fighting data, retrieve the second fire - fighting data to determine a second sub - data segment belonging to the second data segment in the second fire - fighting data, determine a second sub - target data segment corresponding to the second sub - data segment according to the mapping relationship between the second data segment and the target data segment, and replace the second sub - data segment in the second fire - fighting data with the second sub - target data segment to obtain fourth fire - fighting data.
[0015] Optionally, the first message further includes a first timestamp and first verification information, and the second message further includes a second timestamp and second verification information; the first verification information is determined based on a first device identifier and the first timestamp, and the second verification information is determined based on a second device identifier and the second timestamp; the relay device is configured to determine third verification information according to the first timestamp and the first device identifier, determine fourth verification information according to the second timestamp and the second device identifier, compare the first verification information with the third verification information to obtain a first comparison result, compare the second verification information with the fourth verification information to obtain a second comparison result, and if the first comparison result indicates that the first verification information is consistent with the third verification information, and the second comparison result indicates that the second verification information is consistent with the fourth verification information, then send the third fire data and the fourth fire data to the cloud server.
[0016] In a third aspect, the present application provides a computing device, including a memory and a processor; Wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device is caused to execute the method according to any one of the first aspects.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program for executing the method according to any one of the first aspects.
[0018] It can be seen from the above technical solutions that the present application has at least the following beneficial effects: The present application provides a method for analyzing fire-fighting equipment throughout its life cycle. The method includes: a relay device receives a first message sent by a first fire-fighting equipment and a second message sent by a second fire-fighting equipment. The first message includes first fire-fighting data and a first equipment identifier, and the second message includes second fire-fighting data and a second equipment identifier. Since the first fire-fighting equipment and the second fire-fighting equipment are different fire-fighting equipment, in order to be able to jointly analyze the first fire-fighting data and the second fire-fighting data, in the present application, the relay device converts the first fire-fighting data and the second fire-fighting data into standard data respectively. That is, the relay device determines a first protocol conversion table corresponding to the first equipment identifier and a second protocol conversion table corresponding to the second equipment identifier according to the mapping relationship of the pre-configured identifier and protocol conversion table; then uses the first protocol conversion table to convert the first fire-fighting data to obtain third fire-fighting data, and uses the second protocol conversion table to convert the second fire-fighting data to obtain fourth fire-fighting data. The converted third fire-fighting data and fourth fire-fighting data are standard data, and then these standard data are transmitted to the cloud server. Since the relay device unifies the formats of these data, only one analysis software needs to be developed on the cloud server to realize the analysis of fire-fighting data. Moreover, the cloud server can integrate the fire-fighting data provided by multiple fire-fighting equipment, so as to be able to perform linkage analysis on the fire-fighting data. In this way, not only can the workload required for analysis be reduced and the analysis efficiency be improved, but also the deviation of analysis can be reduced and the accuracy of the analysis result can be improved.
[0019] It should be understood that the description of technical features, technical solutions, beneficial effects or similar languages in the present application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that at least one embodiment includes specific technical features, technical solutions or beneficial effects. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in this embodiment can be combined in any appropriate manner. Those skilled in the art will understand that an embodiment can be implemented without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flowchart of a method for analyzing fire-fighting equipment throughout its life cycle provided by an embodiment of the present application; Figure 2 is a schematic diagram of a system for analyzing fire-fighting equipment throughout its life cycle provided by an embodiment of the present application; Figure 3Schematic diagram of a computing device provided by an embodiment of the present application. Detailed implementation manners
[0021] The terms "first", "second", "third", etc. in the specification and drawings of the present application are used to distinguish different objects, rather than to limit a specific order.
[0022] In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0023] In order to make the technical solutions of the present application clearer and easier to understand, the technical solutions of the present application will be introduced below with reference to the accompanying drawings.
[0024] As Figure 1 shown, this figure is a flowchart of a full-life-cycle fire-fighting equipment analysis method provided by an embodiment of the present application. The method includes: S1. The first fire-fighting equipment sends a first message to the relay device.
[0025] The first message includes first fire-fighting data and a first device identifier.
[0026] S2. The second fire-fighting equipment sends a second message to the relay device.
[0027] The second message includes second fire-fighting data and a second device identifier.
[0028] Among them, the first fire-fighting equipment and the second fire-fighting equipment can be different types of fire-fighting equipment. For example, the first fire-fighting equipment can be a fire alarm device, and the second fire-fighting equipment can be a smoke exhaust and ventilation device. In the embodiments of the present application, other fire-fighting equipment can also send messages to the relay device, which will not be elaborated here. The embodiments of the present application are introduced by taking the first fire-fighting equipment and the second fire-fighting equipment as examples.
[0029] S3. The relay device determines a first protocol conversion table corresponding to the first device identifier and a second protocol conversion table corresponding to the second device identifier according to the mapping relationship between the pre-configured identifier and the protocol conversion table.
[0030] Different devices correspond to different protocol conversion tables. Exemplarily, Table 1 is a schematic table of a mapping relationship between an identifier and a protocol conversion table.
[0031] Table 1:
[0032] Exemplarily, if the first device identifier is Identifier 1, the relay device determines Protocol Conversion Table 1 corresponding to Identifier 1 according to the mapping relationship shown in Table 1.
[0033] The relay device stores protocol conversion tables corresponding to different devices. Based on this, after receiving the message forwarded by the fire protection device, the relay device can obtain the device identifier of the fire protection device from the message, and then determine the protocol conversion table matching the fire protection device, and then can convert the fire protection data generated by each fire protection device to obtain unified standard data, which is convenient for subsequent data processing and analysis.
[0034] S4. The relay device uses the first protocol conversion table to convert the first fire protection data to obtain the third fire protection data, and uses the second protocol conversion table to convert the second fire protection data to obtain the fourth fire protection data.
[0035] After determining the first protocol conversion table and the second protocol conversion table, the relay device can use the first protocol conversion table to convert the first fire protection data to obtain the third fire protection data, and use the second protocol conversion table to convert the second fire protection data to obtain the fourth fire protection data.
[0036] In a fire protection system, different devices or systems may use different communication protocols to transmit fire protection data. By determining the first protocol conversion table and the second protocol conversion table for data conversion, the first fire protection data and the second fire protection data that were originally incompatible due to different protocols can be converted into a unified format (the third fire protection data and the fourth fire protection data). For example, a smoke detector in a fire alarm system may use one protocol to transmit data, while a sprinkler device in a fire protection linkage control system uses another protocol. This conversion by the relay device allows these two types of data to be uniformly analyzed and utilized in subsequent processing, avoiding the problem that data cannot be fused due to protocol differences.
[0037] Moreover, after converting the fire protection data generated by each fire protection device into a unified format, these data can be shared. For example, these standard data can be synchronously transmitted to the fire department or the building department, and fire risk assessment, fire protection device status monitoring, etc. can be carried out based on these data.
[0038] In some embodiments, the first protocol conversion table includes the mapping relationship between the first data segment and the target data segment, and the second protocol conversion table includes the mapping relationship between the second data segment and the target data segment. The following takes the first protocol conversion table as an example for introduction, as shown in Table 2.
[0039] Table 2:
[0040] Exemplarily, the first protocol conversion table may be: first_protocol_conversion_table = {"smoke_level": "smoke_intensity", "heat_level": "heat_intensity", "equipment_id": "ID"}. The first data segment includes "smoke_level", "heat_level", and "equipment_id". The target data segment includes "smoke_intensity", "heat_intensity", and "ID". Among them, taking the first sub-data segment 1 as "smoke_level" as an example, the first sub-target data segment 1 corresponding to the first sub-data segment 1 is "smoke_intensity".
[0041] The second protocol conversion table can be: second_protocol_conversion_table = {"alarm_status": "alarm_condition", "device_id": "ID"}. Among them, the second data segment includes "alarm_status" and "device_id", and the target data segment includes "alarm_condition" and "ID".
[0042] The first fire data is: first_fire_data = { "equipment_id": 3, "smoke_level": 3, "heat_level": 2 }
[0043] The second fire data is: second_fire_data = { "device_id": "001", "alarm_status": "active" }
[0044] As in the above example, the relay device first retrieves the first fire data and determines the first sub-data segment belonging to the first data segment in the first fire data. For example, "equipment_id", "smoke_level", and "heat_level" in the first fire data are the first sub-data segments. Then, using the mapping relationship between the first data segment and the target data segment recorded in the first protocol conversion table, the first sub-target data segment corresponding to the first sub-data segment is determined. That is, the first sub-target data segment corresponding to "equipment_id" (denoted as the first sub-data segment 3) is determined to be "ID" (denoted as the first sub-target data segment 3), the first sub-target data segment corresponding to "smoke_level" (denoted as the first sub-data segment 1) is determined to be "smoke_intensity" (denoted as the first sub-target data segment 1), and the first sub-target data segment corresponding to "heat_level" (denoted as the first sub-data segment 2) is determined to be "heat_intensity" (denoted as the first sub-target data segment 2). The relay device replaces the first sub-data segment in the first fire data with the second sub-target data segment, thereby obtaining the third fire data. The third fire data is as follows: third_fire_data = { "ID": 3, "smoke_intensity": 3, "heat_intensity": 2 }。
[0045] Similarly, the relay device retrieves the second fire data and determines the second sub-data segment belonging to the second data segment in the second fire data; the relay device determines the second sub-target data segment corresponding to the second sub-data segment according to the mapping relationship between the second data segment and the target data segment; the relay device replaces the second sub-data segment in the second fire data with the second sub-target data segment to obtain the fourth fire data. The fourth fire data is: fourth_fire_data = { "ID": "001", "alarm_condition": "active" }。
[0046] S5. The relay device sends the third fire data and the fourth fire data to the cloud server.
[0047] In some embodiments, the messages sent by each fire-fighting device to the relay device may also carry verification information. In this way, the relay device can determine the validity of the message based on the verification information carried in the message, and only process the fire-fighting data carried in the message when the message is valid. In this way, it is possible to reduce the processing of invalid messages, and improve the security and accuracy of the fire-fighting data, ensuring that the fire-fighting data processed by the subsequent cloud server is all verified and not invalid data, and further improving the accuracy of the analysis results.
[0048] Specifically, before the first fire-fighting device sends the first message to the relay device, it can generate first verification information based on the first timestamp and the first device identifier, and carry the first verification information and the first timestamp in the first message. Among them, the first timestamp may refer to the Unix timestamp. The first device identifier can be represented by Arabic numerals. In one example, the first timestamp can be "1672531200", indicating 12:00:00 on October 1, 2024. The first device identifier can be "001". Based on this, the first fire-fighting device can determine the first verification information through the following relational expression: y = f(a, b).
[0049] Where a is the device identifier, b is the timestamp, f(a, b) represents determining the a-th digit from right to left in b, a = 001, indicating the units digit, that is, the first verification information is "0".
[0050] The first fire-fighting device uses this method to generate verification information, which not only does not require too much computing power, but also can be adapted to small first fire-fighting devices, has strong compatibility with fire-fighting devices, does not require further improvement of fire-fighting devices, and improves the convenience of application.
[0051] Then, after receiving the first message, the relay device can parse the first verification information, the first timestamp, and the first device identifier from the first message. Then, the relay device can generate third verification information based on the first timestamp and the first device identifier. The process of generating the third verification information is similar to the above example. Then, compare whether the first verification information and the third verification information are the same to obtain the first comparison result. If the first comparison result indicates that the first verification information and the third verification information are different, discard the first message; Similarly, the second fire-fighting device generates second verification information based on the second device identifier and the second timestamp, carries it in the second message, and sends the second message to the relay device. The relay device determines the fourth verification information according to the second timestamp and the second device identifier; compares the second verification information and the fourth verification information to obtain the second comparison result; if the second comparison result indicates that the second verification information and the fourth verification information are different, the relay device discards the second message.
[0052] If the first comparison result indicates that the first verification information is consistent with the third verification information, and the second comparison result indicates that the second verification information is consistent with the fourth verification information, the relay device will send the third fire protection data and the fourth fire protection data to the cloud server.
[0053] In the embodiments of the present application, only after the relay device authenticates and passes the verification information carried in the message, will the relay device perform protocol conversion on the fire protection data. In the case of failed verification, no protocol conversion will be performed, thus achieving efficient utilization of resources and avoiding waste of computing resources on invalid data.
[0054] S6. The cloud server analyzes the third fire protection data and the fourth fire protection data.
[0055] After the relay device transmits the third fire protection data and the fourth fire protection data to the cloud server, the cloud server can perform joint analysis based on the third fire protection data and the fourth fire protection data.
[0056] Among them, the relay device can also transmit the fire protection data of other fire protection devices to the cloud server. In this way, the cloud server can receive the fire protection data generated by multiple fire protection devices forwarded by the relay device, and perform processing such as fusion on these data, and then perform joint analysis, so as to determine information such as the fire risk level, and thus be able to detect fires in a timely manner and give early warnings for fires, etc.
[0057] In some embodiments, the cloud server can also receive other fire protection data of other fire protection devices forwarded by the relay device. The other fire protection devices are fire protection devices other than the first fire protection device and the second fire protection device, and the other fire protection data are the fire protection data obtained after the relay device converts the fire protection data generated by other fire protection devices. The other fire protection devices can be the third fire protection device to the Nth fire protection device. That is to say, in the embodiments of the present application, the cloud server can receive the fire protection data generated by multiple fire protection devices forwarded by the relay device. The cloud server can fuse the third fire protection data, the fourth fire protection data and the other fire protection data to obtain the fused fire protection data, and then analyze the fused fire protection data.
[0058] In the embodiments of the present application, the cloud server does not analyze the fire protection data generated by a single fire protection device alone, but fuses the fire protection data generated by multiple fire protection devices and then performs linkage analysis. Since the formats of the fire protection data generated by various different fire protection devices have been unified in the foregoing embodiments, the cloud server can directly fuse and analyze these data. And because the formats of these data have been unified, there is no need to develop corresponding analysis software for each type of fire protection device, reducing the development cost.
[0059] In some embodiments, the cloud server may perform data-level fusion on the third fire data, the fourth fire data, and other fire data to obtain the first fused fire data, where data-level fusion refers to splicing these fire data.
[0060] For example, taking other fire data including the fifth fire data as an example, the fifth fire data may be: fifth_fire_data = { "ID": 10, "smoke_intensity": 3, "carbon_monoxide_level": 6, "flame_intensity": 10 }。
[0061] The cloud server may perform dataset fusion on the above-mentioned third fire data, fourth fire data, and fifth fire data to obtain the first fused fire data. The example of fusion is as follows: RH_date = { "ID": 3, "smoke_intensity": 3, "heat_intensity": 2, "ID": "001", "alarm_condition": "active", "ID": 10, "smoke_intensity": 3, "carbon_monoxide_level": 6, "flame_intensity": 10 }。
[0062] Other fire data may also include the sixth fire data, which is image data.
[0063] The cloud server may extract features from the image data in the sixth fire data to obtain image features, and extract features from the first fused fire data to obtain text features, and then fuse the image features and text features to obtain the second fused fire data.
[0064] In the embodiments of the present application, the cloud server not only considers text data, but also fully considers image data, so as to combine text and image and can analyze fire data more accurately.
[0065] The cloud server can also analyze historical fire data, so as to determine which features in the fire data are key features and which are non-key features based on the historical fire data. Then, when processing these key features in the follow-up, the influence weight is increased, and when processing those non-key features, the influence weight is decreased, thereby further increasing the accuracy of the analysis.
[0066] In the embodiment of the present application, the cloud server can pre-collect historical fire data, and these historical fire data can include features in multiple dimensions. Then, exploratory data analysis (EDA) is performed, specifically, it can include descriptive statistical analysis and visualization analysis. Among them, when performing descriptive statistical analysis, the basic statistics of each feature are calculated, such as mean, median, standard deviation, etc., to understand the overall distribution of the data. When performing visualization analysis, a histogram is drawn: to view the distribution form of each feature, such as the distribution of the building age, and judge whether there is skewness; a scatter plot is drawn: to analyze the relationship between features, for example, observe whether there is a linear or non-linear relationship between temperature and fire risk level; a box plot is drawn: to compare the differences in features under different categories, such as the difference in personnel density under different building types, etc. Then, feature correlation analysis is performed. For example, the correlation coefficient (Pearson correlation coefficient, Spearman correlation coefficient) can be calculated to calculate the correlation between each feature and the fire risk level. The closer the absolute value of the correlation coefficient is to 1, the stronger the correlation between the feature and the fire risk level. For another example, a heat map is drawn to display the correlation between features in the form of a heat map, intuitively observing the degree of association between each feature, which helps to discover possible multicollinearity problems. Finally, based on the machine learning method, key features and non-key features are determined. A suitable machine learning model is selected to evaluate the feature importance, such as random forest, gradient boosting trees (such as XGBoost, LightGBM), etc. These models can automatically calculate the importance score of each feature during the training process, and based on the score threshold, determine which are key features. For example, features higher than the score threshold are determined as key features, and the rest are determined as non-key features.
[0067] After the key features are determined by the cloud server, the fire risk assessment model can be optimized. For example, the influence weight of the key features on the fire risk assessment model can be increased. Then, when using the optimized fire risk assessment model to predict the second fused fire protection data, the influence of the key features in the second fused fire protection data on the model output result can be considered emphatically, and then a more accurate fire risk level can be output, thereby improving the accuracy of the analysis result. Among them, the fire risk assessment model can be trained based on sample data. For example, there are 100 groups of sample features and 100 groups of sample labels. Among them, the 100 groups of sample features need to be obtained by the above-mentioned feature fusion method. That is, before model training, the cloud server needs to preprocess the sample data.
[0068] Based on the above description, an embodiment of the present application provides a full-life-cycle fire protection equipment analysis method, which includes: the transfer device receives the first message sent by the first fire protection equipment and the second message sent by the second fire protection equipment. Among them, the first message includes the first fire protection data and the first equipment identifier, and the second message includes the second fire protection data and the second equipment identifier. Since the first fire protection equipment and the second fire protection equipment are different fire protection equipment, in order to be able to jointly analyze the first fire protection data and the second fire protection data, in this application, the transfer device respectively converts the first fire protection data and the second fire protection data into standard data. That is, the transfer device determines the first protocol conversion table corresponding to the first equipment identifier and the second protocol conversion table corresponding to the second equipment identifier according to the mapping relationship of the pre-configured identifier and protocol conversion table; then uses the first protocol conversion table to convert the first fire protection data to obtain the third fire protection data, and uses the second protocol conversion table to convert the second fire protection data to obtain the fourth fire protection data. The converted third fire protection data and fourth fire protection data are standard data, and then these standard data are transmitted to the cloud server. Since the transfer device unifies the formats of these data, only one analysis software needs to be developed on the cloud server to realize the analysis of the fire protection data. Moreover, the cloud server can integrate the fire protection data provided by multiple fire protection equipment, so as to realize linkage analysis for the fire protection data. In this way, not only can the workload required for analysis be reduced, the analysis efficiency be improved, but also the analysis deviation can be reduced, and the accuracy of the analysis result can be improved.
[0069] As described above in conjunction with Figure 1 the full-life-cycle fire protection equipment analysis method provided by the embodiment of the present application has been introduced in detail. Next, the system and equipment provided by the embodiment of the present application will be introduced with reference to the drawings.
[0070] As Figure 2 shown, this figure is a schematic diagram of a full-life-cycle fire protection equipment analysis system provided by an embodiment of the present application. The system includes: The first fire-fighting device 201, the second fire-fighting device 202, the relay device 203, and the cloud server 204; The first fire-fighting device 201 is configured to send a first message to the relay device, where the first message includes first fire-fighting data and a first device identifier; The second fire-fighting device 202 is configured to receive a second message sent by the second fire-fighting device, where the second message includes second fire-fighting data and a second device identifier; The relay device 203 is configured to determine a first protocol conversion table corresponding to the first device identifier and a second protocol conversion table corresponding to the second device identifier according to the mapping relationship between the pre-configured identifier and the protocol conversion table, use the first protocol conversion table to convert the first fire-fighting data to obtain third fire-fighting data, use the second protocol conversion table to convert the second fire-fighting data to obtain fourth fire-fighting data, and send the third fire-fighting data and the fourth fire-fighting data to the cloud server; The cloud server 204 is configured to analyze the third fire-fighting data and the fourth fire-fighting data.
[0071] Optionally, the first protocol conversion table includes the mapping relationship between the first data segment and the target data segment; the second protocol conversion table includes the mapping relationship between the second data segment and the target data segment; the relay device 203 is specifically configured to retrieve the first fire-fighting data to determine a first sub-data segment belonging to the first data segment in the first fire-fighting data, determine a first sub-target data segment corresponding to the first sub-data segment according to the mapping relationship between the first data segment and the target data segment, replace the first sub-data segment in the first fire-fighting data with the first sub-target data segment to obtain third fire-fighting data, retrieve the second fire-fighting data to determine a second sub-data segment belonging to the second data segment in the second fire-fighting data, determine a second sub-target data segment corresponding to the second sub-data segment according to the mapping relationship between the second data segment and the target data segment, and replace the second sub-data segment in the second fire-fighting data with the second sub-target data segment to obtain fourth fire-fighting data.
[0072] Optionally, the first message further includes a first timestamp and first verification information, and the second message further includes a second timestamp and second verification information; the first verification information is determined based on the first device identifier and the first timestamp, and the second verification information is determined based on the second device identifier and the second timestamp; the relay device 203 is configured to determine third verification information according to the first timestamp and the first device identifier, determine fourth verification information according to the second timestamp and the second device identifier, compare the first verification information with the third verification information to obtain a first comparison result, compare the second verification information with the fourth verification information to obtain a second comparison result, and if the first comparison result indicates that the first verification information is consistent with the third verification information, and the second comparison result indicates that the second verification information is consistent with the fourth verification information, then send the third fire data and the fourth fire data to the cloud server.
[0073] Optionally, the relay device 203 is further configured to discard the first message if the first comparison result indicates that the first verification information is inconsistent with the third verification information; and / or, discard the second message if the second comparison result indicates that the second verification information is inconsistent with the fourth verification information.
[0074] Optionally, the cloud server 204 is further configured to receive other fire data of other fire devices forwarded by the relay device, where the other fire devices are fire devices other than the first fire device and the second fire device, and the other fire data is fire data obtained by the relay device after converting the fire data generated by the other fire devices; specifically, the cloud server 204 is configured to fuse the third fire data, the fourth fire data, and the other fire data to obtain fused fire data; and analyze the fused fire data.
[0075] Optionally, the cloud server 204 is specifically configured to perform data-level fusion on the third fire data, the fourth fire data, and the other fire data to obtain first fused fire data; extract image features from the image data in the third fire data, the fourth fire data, or the other fire data to obtain image features, extract text features from the first fused fire data to obtain text features, and perform feature fusion on the image features and the text features to obtain second fused fire data.
[0076] Optionally, the cloud server 204 is specifically configured to pre-determine key features in the second fused fire data; increase the influence weight of the key features on the fire risk assessment model, and perform prediction on the second fused fire data to obtain a fire risk level.
[0077] The fire equipment analysis system with a full life cycle according to the embodiments of the present application can correspond to executing the methods described in the embodiments of the present application. For the sake of brevity, it will not be elaborated herein.
[0078] The embodiments of the present application also provide a computing device. The computing device can be a relay device or a cloud server.
[0079] As Figure 3 shown, this figure is a schematic diagram of a computing device provided by the embodiments of the present application. The computing device 300 includes a bus 301, a processor 302, a communication interface 303, and a memory 304. The processor 302, the memory 304, and the communication interface 303 communicate with each other through the bus 301.
[0080] The bus 301 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 3 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0081] The processor 302 can be any one or more of processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0082] The communication interface 303 is used for external communication.
[0083] The memory 304 can include a volatile memory, such as a random access memory (RAM). The memory 304 can also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0084] The memory 304 stores executable code, and the processor 302 executes the executable code to execute the aforementioned fire equipment analysis method with a full life cycle.
[0085] Specifically, in the case of implementing Figure 2 the illustrated embodiment, and Figure 2 when each module or unit of the fire equipment analysis system with a full life cycle described in the embodiment is implemented by software, the software or program code required to execute the functions of each module / unit in Figure 2 can be partially or fully stored in the memory 304. The processor 302 executes the program code corresponding to each unit stored in the memory 304 to execute the foregoing fire equipment analysis method with a full life cycle.
[0086] The embodiment of the present application further provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center including one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc. The computer-readable storage medium includes instructions that direct the computing device to execute the foregoing fire equipment analysis method with a full life cycle.
[0087] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the processes or functions according to the embodiments of the present application are fully or partially generated.
[0088] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, a computer, or a data center to another website, a computer, or a data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.).
[0089] When the computer program product is executed by a computer, the computer executes any one of the foregoing fire equipment analysis methods with a full life cycle. The computer program product may be a software installation package. In the case where any one of the foregoing fire equipment analysis methods with a full life cycle needs to be used, the computer program product may be downloaded and executed on the computer.
[0090] The descriptions of the processes or structures corresponding to the foregoing respective drawings each have their own emphases. For parts not detailed in a certain process or structure, reference may be made to the relevant descriptions of other processes or structures.
[0091] As described above, it is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application.
Claims
1. A fire equipment analysis method for the entire life cycle, characterized in that: The method comprises: The transfer device receives a first message sent by a first fire-fighting device, and receives a second message sent by a second fire-fighting device, wherein the first message includes first fire-fighting data and a first device identifier, and the second message includes second fire-fighting data and a second device identifier; The transfer device determines, according to a pre-configured mapping relationship between the identifier and the protocol conversion table, a first protocol conversion table corresponding to the first device identifier and a second protocol conversion table corresponding to the second device identifier; The transfer device converts the first fire data using the first protocol conversion table to obtain third fire data, and converts the second fire data using the second protocol conversion table to obtain fourth fire data; The transfer device sends the third fire data and the fourth fire data to the cloud server, so that the cloud server analyzes the third fire data and the fourth fire data.
2. The method according to claim 1, characterized in that The first protocol conversion table includes a mapping relationship between a first data segment and a target data segment; the second protocol conversion table includes a mapping relationship between a second data segment and a target data segment; the transfer device uses the first protocol conversion table to convert the first fire data to obtain third fire data, and uses the second protocol conversion table to convert the second fire data to obtain fourth fire data, including: The transfer device searches the first fire protection data to determine a first sub-data segment belonging to the first data segment in the first fire protection data; The transfer device determines, according to a mapping relationship between the first data segment and the target data segment, a first sub-target data segment corresponding to the first sub-data segment; The transfer device replaces the first sub-data segment in the first fire protection data with the first sub-target data segment to obtain third fire protection data; The transfer device searches the second fire protection data to determine a second sub-data segment belonging to the second data segment in the second fire protection data; The transfer device determines, according to a mapping relationship between the second data segment and the target data segment, a second sub-target data segment corresponding to the second sub-data segment; The transfer device replaces the second sub-data segment in the second fire protection data with the second sub-target data segment to obtain the fourth fire protection data.
3. The method according to claim 1, characterized in that The first message further includes a first timestamp and first verification information, and the second message further includes a second timestamp and second verification information; the first verification information is determined based on the first device identifier and the first timestamp, and the second verification information is determined based on the second device identifier and the second timestamp; the method further includes: The transfer device determines third verification information according to the first timestamp and the first device identifier, and determines fourth verification information according to the second timestamp and the second device identifier; The transfer device compares the first verification information with the third verification information to obtain a first comparison result, and compares the second verification information with the fourth verification information to obtain a second comparison result; The transfer device sends the third fire protection data and the fourth fire protection data to the cloud server, including: If the first comparison result indicates that the first verification information is consistent with the third verification information, and the second comparison result indicates that the second verification information is consistent with the fourth verification information, the transfer device sends the third fire data and the fourth fire data to the cloud server.
4. The method according to claim 1, characterized in that: The method further comprises: If the first comparison result indicates that the first verification information and the third verification information are inconsistent, the transfer device discards the first message; and / or, If the second comparison result indicates that the second verification information and the fourth verification information are inconsistent, the transfer device discards the second message.
5. The method according to claim 1, characterized in that The method further comprises: The cloud server receives other firefighting data of other firefighting equipment forwarded by the transfer device, wherein the other firefighting equipment is firefighting equipment other than the first firefighting equipment and the second firefighting equipment, and the other firefighting data is firefighting data obtained by converting the firefighting data generated by the other firefighting equipment by the transfer device; The cloud server analyzes the third firefighting data and the fourth firefighting data, including: The cloud server fuses the third fire data, the fourth fire data and the other fire data to obtain fused fire data; The cloud server analyzes the fused fire protection data.
6. The method according to claim 5, characterized in that The cloud server fuses the third fire data, the fourth fire data and the other fire data to obtain fused fire data, including: The cloud server performs data-level fusion on the third fire data, the fourth fire data and the other fire data to obtain first fused fire data; The cloud server performs feature extraction on the image data in the third fire data, the fourth fire data or the other fire data to obtain image features, performs feature extraction on the first fused fire data to obtain text features, and performs feature fusion on the image features and the text features to obtain second fused fire data.
7. The method according to claim 6, characterized in that The cloud server analyzes the fused firefighting data, including: The cloud server predetermines key features in the second fused firefighting data; The cloud server increases the influence weight of the fire risk assessment model on the key features, and predicts the second fused fire data to obtain the fire risk level.
8. A full life cycle fire equipment analysis system, characterized in that: The system comprises: a first fire-fighting device, a second fire-fighting device, a transfer device and a cloud server; A first fire-fighting device, used to send a first message to the transfer device, wherein the first message includes first fire-fighting data and a first device identifier; The second fire-fighting device is used to receive a second message sent by the second fire-fighting device, where the second message includes second fire-fighting data and a second device identifier; The transfer device is used to determine, according to a pre-configured mapping relationship between an identifier and a protocol conversion table, a first protocol conversion table corresponding to the first device identifier, determine a second protocol conversion table corresponding to the second device identifier, use the first protocol conversion table to convert the first fire data to obtain third fire data, use the second protocol conversion table to convert the second fire data to obtain fourth fire data, and send the third fire data and the fourth fire data to a cloud server; The cloud server is used to analyze the third fire data and the fourth fire data.
9. The system according to claim 8, characterized in that The first protocol conversion table includes a mapping relationship between a first data segment and a target data segment; the second protocol conversion table includes a mapping relationship between a second data segment and a target data segment; the transfer device is specifically used to retrieve the first fire data, determine the first sub-data segment belonging to the first data segment in the first fire data, determine the first sub-target data segment corresponding to the first sub-data segment according to the mapping relationship between the first data segment and the target data segment, replace the first sub-data segment in the first fire data with the first sub-target data segment, obtain the third fire data, retrieve the second fire data, determine the second sub-data segment belonging to the second data segment in the second fire data, determine the second sub-target data segment corresponding to the second sub-data segment according to the mapping relationship between the second data segment and the target data segment, replace the second sub-data segment in the second fire data with the second sub-target data segment, and obtain the fourth fire data.
10. The system according to claim 8, characterized in that The first message also includes a first timestamp and first verification information, and the second message also includes a second timestamp and second verification information; the first verification information is determined based on the first device identifier and the first timestamp, and the second verification information is determined based on the second device identifier and the second timestamp; the transfer device is used to determine the third verification information based on the first timestamp and the first device identifier, determine the fourth verification information based on the second timestamp and the second device identifier, compare the first verification information and the third verification information to obtain a first comparison result, and compare the second verification information and the fourth verification information to obtain a second comparison result. If the first comparison result indicates that the first verification information and the third verification information are consistent, and the second comparison result indicates that the second verification information and the fourth verification information are consistent, then the third fire data and the fourth fire data are sent to the cloud server.