Message monitoring data traceability method and device of fire-fighting APP, and medium
By obtaining and monitoring the characteristic values and parameter data of fire protection equipment and calculating the difference value list, the problem of traceability of fire protection APP monitoring data is solved, the security and integrity of the data are ensured, and the status of fire protection equipment is accurately displayed.
Patent Information
- Application Number
- CN202411006985.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-15
AI Technical Summary
In the existing technology, it is difficult to effectively trace the monitoring data of fire protection APPs, making it difficult to ensure data security and integrity.
By obtaining the characteristic value list, factory parameter value list and current parameter data list of the target fire protection equipment, calculate the difference value list, and monitor based on these data to ensure the security and integrity of the fire APP's message monitoring data traceability.
It achieves accurate traceability of fire APP message monitoring data, improves the security and integrity of the data, and ensures the accuracy and reliability of the maintenance status display of fire protection equipment.
Smart Images

Figure CN118779683A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology applications, and in particular to a method for tracing the source of message monitoring data of a fire protection APP, an electronic device and a storage medium. Background Art
[0002] At present, with the rapid development of science and technology, users have an increasingly strong demand for fast and clear access to various information. How to display information clearly has attracted more and more attention. Especially in the field of fire-fighting equipment, such as fire-fighting equipment, it is necessary to quickly understand the maintenance status so that it can be quickly repaired and put back into use. Fire-fighting equipment generally uses red, yellow and green to reflect the status of fire-fighting equipment. Green represents normal status, yellow represents warning status, and red represents fault status.
[0003] In the prior art, firefighting APP is used to display the maintenance status of firefighting equipment. However, how to effectively trace the monitoring data of the firefighting APP to ensure the security of the data remains a problem. Summary of the invention
[0004] In view of the above technical problems, the technical solution adopted by the present invention is: a method for tracing the source of message monitoring data of a fire protection APP, the method comprising the following steps:
[0005] S001, obtain the message monitoring data of the target fire protection APP and obtain the target fire protection equipment feature value list A = {A 1 , A 2 , …, A i , …, A m}, wherein the message monitoring data of the target fire equipment APP is the target color showing the target fire equipment to be repaired and the target color is obtained based on A, A i is the characteristic value of the i-th preset characteristic of the target fire-fighting equipment, the value range of i is 1 to m, and m is the number of preset characteristics;
[0006] S002, obtain the factory parameter value list of the target fire fighting equipment H = {H 1 , H 2 , …, H i , …, H m}, H i is the factory parameter value of the i-th preset feature of the target fire-fighting equipment, if If it is a null value, execute S004; otherwise, execute S003;
[0007] S003, obtain the current parameter data list of the target fire fighting equipment G = {G 1 , G 2 , …, G i , …, G m}, and monitor G to trace the message monitoring data of the fire APP, where the current parameter data G of the i-th preset feature of the target fire equipment i Meet the following conditions: A i =|H i -G i | / H i ;
[0008] S004, obtain a preset threshold list J = {J 1 , J 2 , …, J i , …, J m}, J i is the preset threshold of the i-th preset feature, and execute S005;
[0009] S005, based on A and the preset feature value-difference value mapping list, obtain the second parameter difference value list SA = {SA 1 , S.A. 2 , …, SA i , …, SA m}, and monitor SA to trace the message monitoring data of the fire protection APP, where SA i Meet the following conditions: SA i =|G i -J i | / G i .
[0010] According to another aspect of the present invention, a non-transitory computer-readable storage medium is provided, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the aforementioned method.
[0011] According to yet another aspect of the present invention, an electronic device is provided, comprising a processor and the aforementioned non-transitory computer-readable storage medium.
[0012] The present invention has at least the following beneficial effects: In summary, the message monitoring data of the target fire-fighting APP is obtained and the target fire-fighting equipment characteristic value list is obtained, the factory parameter value list of the target fire-fighting equipment is obtained, the current parameter data list of the target fire-fighting equipment is obtained, and the current parameter data list is monitored to achieve traceability of the message monitoring data of the fire-fighting APP, a preset threshold list is obtained, based on the target fire-fighting equipment characteristic value list and the preset characteristic value-difference value mapping list, a second parameter difference value list is obtained, and the second parameter difference value list is monitored to achieve traceability of the message monitoring data of the fire-fighting APP. The present invention monitors the target fire-fighting equipment characteristic value list and its corresponding current parameter data list or second parameter difference value list to effectively achieve traceability of the message monitoring data of the fire-fighting APP, thereby ensuring the security and integrity of the message monitoring data of the fire-fighting APP. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A flowchart of a method for tracing the message monitoring data of a fire protection APP provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0015] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0016] The embodiment of the present invention provides a method for tracing the source of message monitoring data of a fire protection APP, the method is used to display the state of fire protection equipment to be repaired, such as Figure 1 As shown, the method comprises the following steps:
[0017] S001, obtain the message monitoring data of the target fire protection APP and obtain the target fire protection equipment feature value list A = {A 1 , A 2 , …, A i , …, A m}, wherein the message monitoring data of the target fire equipment APP is the target color showing the target fire equipment to be repaired and the target color is obtained based on A, A iis the characteristic value of the i-th preset feature of the target fire-fighting equipment. The value range of i is 1 to m, and m is the number of preset features.
[0018] S002, obtain the factory parameter value list of the target fire fighting equipment H = {H 1 , H 2 , …, H i , …, H m}, H i is the factory parameter value of the i-th preset feature of the target fire-fighting equipment, if If it is a null value, execute S004; otherwise, execute S003.
[0019] S003, obtain the current parameter data list of the target fire fighting equipment G = {G 1 , G 2 , …, G i , …, G m}, and monitor G to trace the message monitoring data of the fire APP, where the current parameter data G of the i-th preset feature of the target fire equipment i Meet the following conditions: A i =|H i -G i | / H i .
[0020] Specifically, the current parameter data list is monitored, and the conditions satisfied by the current parameter data are judged to determine the correctness and completeness of the current parameter data.
[0021] S004, obtain a preset threshold list J = {J 1 , J 2 , …, J i , …, J m}, J i is the preset threshold of the i-th preset feature, and execute S005.
[0022] S005, based on A and the preset feature value-difference value mapping list, obtain the second parameter difference value list SA = {SA 1 , S.A. 2 , …, SA i , …, SA m}, and monitor SA to trace the message monitoring data of the fire protection APP, where SA i Meet the following conditions: SA i =|G i -J i | / G i .
[0023] Specifically, the preset feature value-difference value mapping list ST={ST1 ,ST 2 ,…,ST e ,…,ST h}, e-th preset difference - score ST e =(SA e , A e ), the value of e ranges from 1 to h, where h is the number of preset difference-scores, because, through A i Get A i The corresponding second parameter difference value SA i .
[0024] Specifically, the second parameter difference value list is monitored, and the conditions satisfied by the second parameter difference values are judged to determine the correctness and completeness of the second parameter difference values.
[0025] In summary, the message monitoring data of the target fire protection APP is obtained and the target fire protection equipment characteristic value list is obtained, the factory parameter value list of the target fire protection equipment is obtained, the current parameter data list of the target fire protection equipment is obtained, and the current parameter data list is monitored to achieve the traceability of the message monitoring data of the fire protection APP, and the preset threshold list is obtained. Based on the target fire protection equipment characteristic value list and the preset characteristic value-difference value mapping list, a second parameter difference value list is obtained, and the second parameter difference value list is monitored to achieve the traceability of the message monitoring data of the fire protection APP. The present invention monitors the target fire protection equipment characteristic value list and its corresponding current parameter data list or second parameter difference value list to effectively achieve the traceability of the message monitoring data of the fire protection APP, thereby ensuring the security and integrity of the message monitoring data of the fire protection APP.
[0026] In addition, it can be known that the present invention obtains a list of characteristic values of target fire equipment through factory parameters or preset thresholds, and determines the target color based on the list of characteristic values of target fire equipment. Compared with the prior art method of directly using "0" and "1" to determine whether the target fire equipment needs maintenance, the method of using factory parameters or preset thresholds makes the characteristic values of the target fire equipment more accurate, thereby more accurately obtaining the target color of the target fire equipment.
[0027] Furthermore, S006 also includes the following steps:
[0028] S100, obtaining a preset color series table C = {C 1 , C 2 , …, C r , …, C s}, C r It is the rth preset color system, the value range of r is 1 to s, and s is the number of preset color systems; the safety APP uses the preset color system to display the maintenance status of the fire-fighting equipment.
[0029] Specifically, the number of preset color systems can be set according to actual needs.
[0030] Specifically, the preset color series list includes: red series, yellow series, blue series. Further, the preset color series in the present invention can be understood as based on the similarity of hue, for example, all reddish colors can form a red series. Further, the preset color series in the present invention can be understood as a preset hue.
[0031] Specifically, in one embodiment of the present invention, the safety APP is used to generate a QR code of a preset color to display the maintenance status of the fire-fighting equipment.
[0032] S200, obtain the target fire equipment characteristic value list A = {A 1 , A 2 , …, A i , …, A m} and the historical fire equipment characteristic value list set B = {B 1 , B 2 , …, B j , …, B n}, the jth historical fire equipment characteristic value list B j = {B j1 , B j2 , …, B ji , …, B jm}; A i is the characteristic value of the i-th preset characteristic of the target fire-fighting equipment, the target fire-fighting equipment and the historical fire-fighting equipment are the fire-fighting equipment to be repaired, the value range of i is 1 to m, and m is the number of preset characteristics; B ji is the characteristic value of the i-th preset characteristic of the j-th historical fire-fighting equipment. The value range of j is 1 to n, and n is the number of historical fire-fighting equipment.
[0033] Specifically, the preset characteristics include: failure frequency and component life.
[0034] S300, for B 1 ……B n Perform K-means clustering to obtain the cluster list D = {D 1 , D 2 , …, D r , …, D s}, D r is the rth cluster, where K = s; where D r Historical fire equipment safety app using C r Displays the historical status of fire fighting equipment pending maintenance.
[0035] Specifically, those skilled in the art know that any method in the prior art for obtaining clusters using K-means clustering processing falls within the protection scope of the present invention.
[0036] Specifically, those skilled in the art know that the K-means clustering algorithm is a widely used unsupervised learning method for dividing a data set into k clusters, wherein the data of each cluster has similar features. When performing K-means clustering processing, the first thing to do is to determine the value of K. The present invention uses the number of preset color schemes as the number of clusters, so that historical firefighting equipment with the same features are clustered into the same cluster, and each cluster has the same or similar problems to be repaired. The historical firefighting equipment with the same or similar problems to be repaired is displayed using the same preset color scheme, so that when the management personnel see the preset color scheme, they can know the problems to be repaired of the historical firefighting equipment.
[0037] S400, based on the target fire equipment feature value list A and the cluster list D, determine the target color system of the safety APP of the target fire equipment, and display it, wherein the target color system is a preset color system in the preset color system list.
[0038] Specifically, those skilled in the art know that the target color system of the safety APP of the target fire-fighting equipment can be determined by calculating the distance between the feature value list of the target fire-fighting equipment and the clustering cluster.
[0039] In summary, a preset color list is obtained, a target fire equipment characteristic value list and a historical fire equipment characteristic value list set are obtained, K-means clustering is performed on the historical fire equipment characteristic values, and a clustering cluster list is obtained. The safety APP of the historical fire equipment under the same clustering cluster uses the same preset color system to display the maintenance status of the historical fire equipment. Based on the target fire equipment characteristic value list and the clustering cluster list, the target color system of the safety APP of the target fire equipment is determined and displayed. The present invention uses the number of preset color systems as the number of clustering clusters, and uses a method for clustering historical fire equipment so that historical fire equipment in the same or similar maintenance status is displayed using the same preset color system, thereby obtaining the target color system of the target fire equipment, and knowing the maintenance status of the fire equipment more simply and quickly.
[0040] Furthermore, the safety APP display method of the present invention avoids the method of maintenance personnel judging the maintenance status of the target fire-fighting equipment by consulting historical data and looking through historical records. The maintenance status is directly judged by the preset color scheme displayed by the safety APP. After seeing the preset color scheme displayed by the safety APP, the management personnel can assign the fire-fighting equipment to the maintenance staff who are more proficient in the maintenance status.
[0041] Specifically, S400 includes:
[0042] S410, obtain the cluster center list E={E 1 , E 2 , …, E r , …, E s}, E r Yes D r The cluster center.
[0043] Specifically, those skilled in the art know that 1 ……B n Perform K-means clustering to obtain a list of clusters, each of which has its cluster center.
[0044] S420, obtaining characteristic values A and E of target fire fighting equipment r Target distance F r , thereby obtaining the target distance list F = {F 1 , F 2 , …, F r , …, F s}.
[0045] Specifically, those skilled in the art know that any method of calculating the characteristic value and cluster center of the target fire-fighting equipment in the prior art falls within the protection scope of the present invention and will not be described in detail here.
[0046] S430, get F 0 =min{F 1 , F 2 , …, F r , …, F s}, F 0 The preset color scheme of the cluster corresponding to the cluster center is used as the target color scheme for display.
[0047] In summary, by calculating the distance between the characteristic value of the target fire equipment and the cluster center of each cluster, the preset color system of the cluster center closest to the characteristic value of the target fire equipment is used as the target color system for display. It can be understood that the maintenance status of the target fire equipment and the F 0 The corresponding clusters have the closest maintenance status, and the target fire-fighting equipment is assigned to the cluster with the closest distance.
[0048] Furthermore, after S400, it also includes:
[0049] S500, obtaining a preset color weight list W={W 1 , W 2 , …, W i , …, W m},W i is the preset color weight of the ith feature.
[0050] Specifically, W i It can be determined according to the preset requirements. m i=1 W i =1.
[0051] S600, if If both are not null values, execute S700; otherwise, execute S800.
[0052] Specifically, if are not null values, which can be understood as, H 1 To H m None of them are null values.
[0053] S700, obtaining the first parameter intermediate value FA 0 =∑ m i=1 (W i ×FA i ), based on the target color system and the intermediate value of the first parameter, determine the target color of the target fire-fighting equipment, wherein the safety APP of the target fire-fighting equipment uses the target color to display the maintenance status of the target fire-fighting equipment.
[0054] Specifically, the target color system is a color system, and the target color under the target color system is determined by the first parameter intermediate value. For example, a first parameter intermediate value-target color correspondence table of a preset color system can be pre-set, and the target color can be obtained by looking up the table.
[0055] S800, obtaining a second intermediate value SA 0 =∑ m i=1 (W i ×TA i ), based on the target color system and the second intermediate value, determine the target color of the target fire-fighting equipment.
[0056] In summary, get the preset color weight list, if H 1 To H m are not null values, obtain the middle value of the first parameter, and determine the target color of the target fire-fighting equipment based on the target color system and the middle value of the first parameter; if there is H i is a null value, and the second intermediate value is obtained. Based on the target color system and the second intermediate value, the target color of the target fire-fighting equipment is determined. After determining the target color system of the target fire-fighting equipment, the present invention further determines the target color under the target color system through the target fire-fighting equipment feature value list, thereby more clearly displaying the maintenance status of the target fire-fighting equipment.
[0057] Specifically, in one embodiment of the present invention, S700 further includes: determining the target color of the target fire-fighting equipment includes the following steps:
[0058] S710, obtaining a reference color of a target color system, where the reference color is a color of the target color system at a preset saturation value.
[0059] S720: Determine a target color of the target fire-fighting equipment based on a reference color of the target color system and an intermediate value of the first parameter.
[0060] Specifically, the preset saturation value of the reference color may be reduced based on the first parameter intermediate value, and the reference color after the preset saturation value is reduced is used as the target color.
[0061] S800 further includes: S810, determining a target color of the target fire-fighting equipment based on a reference color of the target color system and a second intermediate value.
[0062] Specifically, the preset saturation value of the reference color may be reduced based on the second intermediate value, and the reference color after the preset saturation value is reduced is used as the target color.
[0063] Specifically, in another embodiment of the present invention, S700 further includes determining the target color of the target fire-fighting equipment through the following steps:
[0064] S701, obtaining a designated color of a target color system, where the designated color is a color of the target color system at a preset brightness value.
[0065] S702: Determine a target color of a target fire-fighting equipment based on a designated color of a target color system and an intermediate value of a first parameter.
[0066] Specifically, based on the first parameter intermediate value, the preset brightness value of the designated color is reduced, and the designated color after the preset brightness value is reduced is used as the target color.
[0067] S800 further includes: S801, determining a target color of a target fire-fighting equipment based on a designated color of a target color system and a second intermediate value.
[0068] An embodiment of the present invention also provides a non-transitory computer-readable storage medium, which can be set in an electronic device to store at least one instruction or at least one program related to implementing a method in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement the method provided in the above embodiment.
[0069] An embodiment of the present invention further provides an electronic device, comprising a processor and the aforementioned non-transitory computer-readable storage medium.
[0070] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A method for tracing the message monitoring data of a fire protection APP. It is characterized in that The method comprises the following steps: S001, obtain the message monitoring data of the target fire protection APP and obtain the target fire protection equipment feature value list A = {A 1 , A 2 , …, A i , …, A m }, wherein the message monitoring data of the target fire equipment APP is the target color showing the target fire equipment to be repaired and the target color is obtained based on A, A i is the characteristic value of the i-th preset characteristic of the target fire-fighting equipment, the value range of i is 1 to m, and m is the number of preset characteristics; S002, obtain the factory parameter value list of the target fire fighting equipment H = {H 1 , H 2 , …, H i , …, H m }, H i is the factory parameter value of the i-th preset feature of the target fire-fighting equipment, if If it is a null value, execute S004; otherwise, execute S003; S003, obtain the current parameter data list of the target fire fighting equipment G = {G 1 , G 2 , …, G i , …, G m }, and monitor G to trace the message monitoring data of the fire APP, where the current parameter data G of the i-th preset feature of the target fire equipment i Meet the following conditions: A i =|H i -G i | / H i ; S004, obtain a preset threshold list J = {J 1 , J 2 , …, J i , …, J m }, J i is the preset threshold of the i-th preset feature, and execute S005; S005, based on A and the preset feature value-difference value mapping list, obtain the second parameter difference value list SA = {SA 1 , S.A. 2 , …, SA i , …, SA m }, and monitor SA to trace the message monitoring data of the fire protection APP, where SA i Meet the following conditions: SA i =|G i -J i | / G i .
2. The message monitoring data tracing method of the fire protection APP according to claim 1, It is characterized in that S001 also includes the following steps: S100, obtaining a preset color series table C = {C 1 , C 2 , …, C r , …, C s }, C r is the rth preset color system, r ranges from 1 to s, and s is the number of preset color systems; The safety app uses a preset color scheme to display the pending maintenance status of firefighting equipment; S200, obtain the historical fire equipment characteristic value list set B = {B 1 , B 2 , …, B j , …, B n }, the jth historical fire equipment characteristic value list B j = {B j1 , B j2 , …, B ji , …, B jm }, the historical fire-fighting equipment is the fire-fighting equipment to be repaired, B ji is the characteristic value of the i-th preset characteristic of the j-th historical fire-fighting equipment, the value range of j is 1 to n, and n is the number of historical fire-fighting equipment; S300, for B 1 ……B n Perform K-means clustering to obtain the cluster list D = {D 1 , D 2 , …, D r , …, D s }, D r is the rth cluster, where K = s; Among them, D r Historical fire equipment safety app using C r Display the maintenance status of historical fire equipment; S400, based on the target fire equipment feature value list A and the cluster list D, determine the target color system of the safety APP of the target fire equipment, and obtain the target color based on the target color system, wherein the target color system is a preset color system in the preset color system list.
3. The method for tracing the message monitoring data of the fire protection APP according to claim 2, It is characterized in that The S400 also includes: S410, obtain the cluster center list E={E 1 , E 2 , …, E r , …, E s }, E r Yes D r The cluster center of S420, obtaining characteristic values A and E of target fire fighting equipment r Target distance F r , thereby obtaining the target distance list F = {F 1 , F 2 , …, F r , …, F s }; S430, get F 0 =min{F 1 , F 2 , …, F r , …, F s }, F 0 The preset color system of the cluster corresponding to the cluster center is used as the target color system.
4. The method for tracing the message monitoring data of the fire protection APP according to claim 2, It is characterized in that After S400, it also includes: S500, obtaining a preset color weight list W={W 1 , W 2 , …, W i , …, W m },W i is the preset color weight of the i-th feature; S600, if If both are not null values, execute S700; otherwise, execute S800; S700, obtaining the first parameter intermediate value FA 0 =∑ m i=1 (W i ×FA i ), based on the target color system and the intermediate value of the first parameter, determining the target color of the target fire-fighting equipment, wherein the safety APP of the target fire-fighting equipment uses the target color to display the state of the target fire-fighting equipment to be repaired; S800, obtaining a second intermediate value SA 0 =∑ m i=1 (W i ×TA i ), based on the target color system and the second intermediate value, determine the target color of the target fire-fighting equipment.
5. The method for tracing the message monitoring data of the fire protection APP according to claim 4, It is characterized in that S700 also includes that determining the target color of the target fire fighting equipment includes the following steps: S710, obtaining a reference color of a target color system, wherein the reference color is a color of the target color system at a preset saturation value; S720: Determine a target color of the target fire-fighting equipment based on a reference color of the target color system and an intermediate value of the first parameter.
6. The method for tracing the message monitoring data of the fire protection APP according to claim 4, It is characterized in that S700 also includes determining a target color of the target fire fighting equipment through the following steps: S701, obtaining a designated color of a target color system, wherein the designated color is a color of the target color system at a preset brightness value; S702: Determine a target color of a target fire-fighting equipment based on a designated color of a target color system and an intermediate value of a first parameter.
7. The method for tracing the message monitoring data of the fire protection APP according to claim 1, It is characterized in that The preset characteristics include: failure frequency and component life.
8. The method for tracing the message monitoring data of the fire protection APP according to claim 2, It is characterized in that The preset color series table includes: red series, yellow series, and blue series.
9. A non-transitory computer-readable storage medium, wherein at least one instruction or at least one program is stored in the storage medium. It is characterized in that The at least one instruction or the at least one program is loaded and executed by the processor to implement the message monitoring data tracing method of the fire protection APP as described in any one of claims 1-8.
10. An electronic device, It is characterized in that The invention comprises a processor and the non-transitory computer-readable storage medium as claimed in claim 9.
Citation Information
Patent Citations
Intelligent fire-fighting data visual monitoring system and monitoring method thereof
CN112150335A
Equipment operation state identification method and device, equipment and storage medium
CN112418065A
Fire-fighting data visualization monitoring system and monitoring method thereof
CN116958900A
Method and device for judging page display state, electronic equipment and storage medium
CN117112952A
Optical module monitoring method and system, electronic device and storage medium
CN117278118A
Cited By
Generation system of message monitoring information sent to fire-fighting APP
CN119831142A
