Production area personnel node aggregation identification method and system

By using latitude and longitude information to construct a distance matrix and iterative method of aggregation area, the problem of poor identification of personnel gathering in the chemical production area is solved, and accurate judgment and timely early warning of the risk of personnel gathering are achieved.

CN119865765APending Publication Date: 2025-04-22CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311372115.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-20
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The prior art has problems such as poor identification results and difficult to build a monitoring system in terms of personnel gathering in chemical production areas.

Method used

By collecting the latitude and longitude information of the personnel nodes, calculate the coordinates of each personnel node on the earth coordinate system, build a distance matrix, calculate the distance and sets between each personnel node, and iterate the cluster area with the minimum distance as the optimization goal, determine the early warning plan and execute the early warning.

Benefits of technology

Real-time judgment of the risk of gathering personnel in the production area of ​​chemical enterprises is achieved, and the number of gathered personnel can be accurately judged, avoid the influence of background and light factors, simplify the construction of monitoring systems, and improve the timeliness of identification effects and early warnings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865765A_ABST
    Figure CN119865765A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a production area personnel node aggregation identification method and system, and belongs to the technical field of supervision. The method comprises the following steps: acquiring a positioning identifier of each personnel node, and determining the coordinate of each personnel node on an earth coordinate system based on the positioning identifier of each personnel node; terminating the corresponding relationship between any two personnel nodes, calculating the distance of each corresponding relationship based on the coordinates of each personnel node, and constructing a distance matrix based on the distances of all the corresponding relationships; based on the distance matrix, calculating a distance sum set of each personnel node and other personnel nodes, and based on the distance sum set, performing aggregation region iteration by taking the minimum distance as an optimization target; and determining an early warning scheme based on the obtained aggregation area, and executing early warning based on the early warning scheme. According to the scheme, the influence of construction operation on safety production of an enterprise is avoided, gathered personnel and areas can be calculated more accurately, risk early warning can be carried out timely and effectively, and enterprise personnel are helped to carry out safety management work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of regulatory technology, and in particular to a method for identifying the clustering of personnel nodes in a production area and a system for identifying the clustering of personnel nodes in a production area. Background Art

[0002] During the chemical production process, due to the start-up and shutdown, inspection and maintenance of equipment and facilities, there will usually be gatherings of operators and safety managers in local operating areas. Once the equipment and facilities cause gas leakage, fire and explosion due to improper operation or state fluctuations, the gathering of personnel in the area will aggravate the severity of the consequences of the accident to a certain extent. Therefore, it is necessary to monitor the risk status of personnel gathering in the production area of ​​the enterprise, and to provide timely warnings and evacuations.

[0003] At present, the number of people in a region is often used to determine whether there is a gathering. For example, CN113128430A performs target detection on the crowd image to be detected, obtains the image position of the pedestrian in the crowd image and determines the image distance between the pedestrians, and converts the image position of the pedestrian to the depth coordinate system to obtain the depth distance between the pedestrians. Finally, based on the image distance and depth distance between the pedestrians, the crowd image is subjected to gathering detection. In addition, CN116245704A proposes a method and device for perceiving people in a public area, which collects pressure data of a pressure sensor matrix according to a preset time interval, obtains pressure data at each sampling moment and each preset position within a preset time period, determines the target perception data of the public area at the sampling moment and the target weight data corresponding to the preset time period, and finally determines the perception result of people gathering according to the target weight data and the preset weight threshold. However, the results obtained by the video recognition method will be affected by factors such as background and light. For example, if a person is blocked, the person cannot be identified, and the recognition effect of people gathering is not ideal; and the method of judging people gathering by pressure data is affected by the number of pressure sensors, and it is difficult to achieve by laying a large number of sensors in the production area of ​​a chemical enterprise.

[0004] In view of the problems of poor personnel identification effect and difficulty in building a monitoring system in the existing personnel aggregation scheme, it is necessary to create a new production area personnel node aggregation identification scheme. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a method and system for identifying the clustering of personnel nodes in a production area, so as to at least solve the problems of poor personnel identification effect and difficulty in building a monitoring system in existing personnel clustering solutions.

[0006] In order to achieve the above-mentioned purpose, the first aspect of the present invention provides a method for identifying the clustering of personnel nodes in a production area, the method comprising: collecting the location identifier of each personnel node, and determining the coordinates of each personnel node in the earth coordinate system based on the location identifier of each personnel node; exhausting the correspondence between any two personnel nodes, calculating the distance of each corresponding relationship based on the coordinates of each personnel node, and constructing a distance matrix based on the distances of all corresponding relationships; calculating the distance sum set between each personnel node and other personnel nodes based on the distance matrix, and iterating the clustering area based on the distance sum set with the minimum distance as the optimization target; determining an early warning plan based on the obtained clustering area, and executing an early warning based on the early warning plan.

[0007] Optionally, the location identifier of each personnel node is the longitude information and latitude information of each personnel node.

[0008] Optionally, the calculation rule for determining the coordinates of each personnel node in the earth coordinate system based on the location identifier of each personnel node is:

[0009]

[0010] Among them, (x, y, z) is the coordinates of the personnel node; R is the radius of the earth; θ is the dimension information of the personnel node; It is the longitude information of the personnel node.

[0011] Optionally, the distance determination rule for each corresponding relationship is:

[0012]

[0013] Among them, S AB is the distance between point A and point B; R is the radius of the earth; θ1, is the latitude and longitude information of point A; θ2, is the latitude and longitude information of point B; ∠AOB is the angle between the line connecting point A and the center of the earth and the line connecting point B and the center of the earth.

[0014] Optionally, the distance matrix is ​​expressed as:

[0015]

[0016] Among them, S is the distance matrix; S ij is the distance between the i-th staff node and the j-th staff node.

[0017] Optionally, the calculating the distance sum set between each personnel node and other personnel nodes based on the distance matrix includes: starting from the first column feature of the distance matrix, calculating the distance sum between each personnel node and other personnel nodes; wherein the distance sum of the i-th node is expressed as:

[0018]

[0019] Where n is the number of personnel nodes. The distance sums between each personnel node and other personnel nodes are compared, and the distance sums are sorted in descending order. The sorted distance sums are used as distance sum sets.

[0020] Optionally, the aggregation area iteration is performed based on the distance and set with the minimum distance as the optimization target, including: step S100): taking the node at the end of the distance and set as the center of a clustering area, and drawing a circle with a preset radius, and all other personnel nodes in the circle together with the center personnel node constitute the clustered personnel set of the clustering area; step S200): deleting the center personnel node in the obtained clustered personnel set from the distance and set, and repeating steps S100)-step S200) based on the new distance and set until the iteration termination condition is met, and obtaining multiple clustered personnel sets; step S300): performing intersection processing on the clustered personnel sets in which there are intersections of personnel nodes in each clustered personnel set; step S400): for the clustered personnel sets after the intersection processing is completed, taking the personnel node with a smaller distance sum before the intersection processing of the clustered personnel set as the center of the circle, and taking the distance between the personnel node farthest from the center of the circle and the center of the circle as the radius of the clustering area, and outputting each clustering area.

[0021] Optionally, determining an early warning plan based on the obtained gathering areas includes: identifying the number of gathered people based on the set of gathered people in each gathering area; determining the warning level under the current gathering situation based on the gathered people data and a preset warning level map; and calling a corresponding early warning plan based on the warning level.

[0022] Optionally, the early warning scheme is determined based on the obtained gathering areas, including: determining the distance relationship between each gathering area and each preset hazard source position based on the center personnel node positioning of each gathering area and the radius of the corresponding gathering area; determining each gathering area with a distance relationship less than a preset distance threshold as a risk area under the corresponding hazard source position; determining the warning level under the current gathering situation based on the number of gathered personnel in each risk area, the corresponding hazard source level and the preset warning level map; and calling the corresponding early warning scheme based on the warning level.

[0023] The second aspect of the present invention provides a production area personnel node clustering identification system, the system comprising: a collection unit, used to collect the location identifier of each personnel node, and determine the coordinates of each personnel node in the earth coordinate system based on the location identifier of each personnel node; a matrix construction unit, used to exhaust the correspondence between any two personnel nodes, calculate the distance of each corresponding relationship based on the coordinates of each personnel node, and construct a distance matrix based on the distances of all corresponding relationships; an area demarcation unit, used to calculate the distance sum set between each personnel node and other personnel nodes based on the distance matrix, and iterate the clustering area based on the distance sum set with the minimum distance as the optimization target; an early warning unit, used to determine an early warning plan based on the obtained clustering area, and execute an early warning based on the early warning plan.

[0024] A third aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, enables the computer to execute the above-mentioned method for identifying the clustering of personnel nodes in a production area.

[0025] A fourth aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for identifying production area personnel node clusters when executing the computer program.

[0026] Through the above technical scheme, the scheme of the present invention constructs a method and system for real-time judgment of the risk of personnel gathering in the production area of ​​a chemical enterprise based on longitude and latitude coordinates, which can judge the gathered personnel, the number of gathered personnel and the gathered area, and has practical research significance and application value. The scheme of the present invention uses longitude and latitude data to judge the gathered personnel and areas, and the obtained results will not be affected by factors such as background and light, and the implementation process is simple. There is no need to lay equipment and instruments in the chemical plant area, which avoids the impact of construction operations on the safe production of the enterprise. It can more accurately calculate the gathered personnel and areas, and timely and effectively carry out risk warnings to help enterprise personnel perform safety management work.

[0027] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0029] Figure 1 It is a flowchart of the steps of a method for identifying the gathering of personnel nodes in a production area provided by an embodiment of the present invention;

[0030] Figure 2 It is a system structure diagram of a production area personnel node aggregation identification system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0032] During the chemical production process, due to the start-up and shutdown, inspection and maintenance of equipment and facilities, there will usually be gatherings of operators and safety managers in local operating areas. Once the equipment and facilities cause gas leakage, fire and explosion due to improper operation or state fluctuations, the gathering of personnel in the area will aggravate the severity of the consequences of the accident to a certain extent. Therefore, it is necessary to monitor the risk status of personnel gathering in the production area of ​​the enterprise, and to provide timely warnings and evacuations.

[0033] At present, the number of people in a region is often used to determine whether there is a gathering. For example, CN113128430A performs target detection on the crowd image to be detected, obtains the image position of the pedestrian in the crowd image and determines the image distance between the pedestrians, and converts the image position of the pedestrian to the depth coordinate system to obtain the depth distance between the pedestrians. Finally, based on the image distance and depth distance between the pedestrians, the crowd image is subjected to gathering detection. In addition, CN116245704A proposes a method and device for perceiving people in a public area, which collects pressure data of a pressure sensor matrix according to a preset time interval, obtains pressure data at each sampling moment and each preset position within a preset time period, determines the target perception data of the public area at the sampling moment and the target weight data corresponding to the preset time period, and finally determines the perception result of people gathering according to the target weight data and the preset weight threshold. However, the results obtained by the video recognition method will be affected by factors such as background and light. For example, if a person is blocked, the person cannot be identified, and the recognition effect of people gathering is not ideal; and the method of judging people gathering by pressure data is affected by the number of pressure sensors, and it is difficult to achieve by laying a large number of sensors in the production area of ​​a chemical enterprise.

[0034] In view of the problems of poor personnel identification effect and great difficulty in building a monitoring system in existing personnel gathering schemes, the scheme of the present invention proposes a method for identifying personnel node gathering in a production area. The scheme of the present invention constructs a method and system for real-time judgment of the risk of personnel gathering in the production area of ​​a chemical enterprise based on longitude and latitude coordinates, which can judge the gathered personnel, the number of gathered personnel and the gathered area, and has practical research significance and application value. The scheme of the present invention uses longitude and latitude data to judge the gathered personnel and areas, and the obtained results will not be affected by factors such as background and light, and the implementation process is simple. There is no need to lay equipment and instruments in the chemical plant area, which avoids the impact of construction operations on the safe production of the enterprise. It can more accurately calculate the gathered personnel and areas, and conduct risk warnings in a timely and effective manner, helping enterprise personnel to carry out safety management work.

[0035] Figure 1 1 is a flowchart of a method for identifying a production area personnel node cluster provided by an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a method for identifying agglomeration of personnel nodes in a production area, the method comprising:

[0036] Step S10: collecting the location identifiers of each personnel node, and determining the coordinates of each personnel node on the earth coordinate system based on the location identifiers of each personnel node.

[0037] Specifically, the positioning identifier of each personnel node is the longitude information and latitude information of each personnel node.

[0038] In an embodiment of the present invention, the scheme of the present invention constructs a method and system for real-time judgment of the risk of personnel gathering in the production area of ​​a chemical enterprise based on longitude and latitude coordinates, calculates the distance between personnel according to the longitude and latitude coordinates; iteratively judges the gathering area and personnel based on the minimum distance; and formulates a graded early warning mechanism based on the number of gathered personnel to achieve rapid perception of risks and early warning, which has practical research significance and application value.

[0039] Furthermore, the calculation rule for determining the coordinates of each personnel node in the earth coordinate system based on the positioning identifier of each personnel node is:

[0040]

[0041] Among them, (x, y, z) is the coordinates of the personnel node; R is the radius of the earth; θ is the dimension information of the personnel node; It is the longitude information of the personnel node.

[0042] Embodiment 1:

[0043] Assume that the radius of the earth is R, and the latitude and longitude of any person on the ground in the production area of ​​the chemical enterprise are θ and (North latitude and east longitude are positive, south latitude and west longitude are negative), then transformed into a three-dimensional rectangular coordinate system with the center of the sphere as the origin, the coordinates of the person are

[0044]

[0045] Assume that there are two people on the ground in the area, A and B, and the latitude and longitude of point A are θ1 and The latitude and longitude of point B are θ2 and The coordinates in the spatial rectangular coordinate system are (x1, y1, z1) and (x2, y2, z2). According to the Pythagorean theorem,

[0046]

[0047] Step S20: exhaust the correspondence between any two personnel nodes, calculate the distance of each correspondence based on the coordinates of each personnel node, and construct a distance matrix based on the distances of all correspondences.

[0048] Specifically, the distance determination rule for each corresponding relationship is:

[0049]

[0050] Among them, S AB is the distance between point A and point B; R is the radius of the earth; θ1, is the latitude and longitude information of point A; θ2, is the latitude and longitude information of point B; ∠AOB is the angle between the line connecting point A and the center of the earth and the line connecting point B and the center of the earth.

[0051] Step S30: Calculate the distance sum between each personnel node and other personnel nodes based on the distance matrix, and perform clustering area iteration based on the distance sum with the minimum distance as the optimization target.

[0052] Specifically, the distance sum set between each staff node and other staff nodes is calculated based on the distance matrix, including: starting from the first column feature of the distance matrix, calculating the distance sum between each staff node and other staff nodes; wherein the distance sum of the i-th node is expressed as:

[0053]

[0054] Where n is the number of personnel nodes. The distance sums between each personnel node and other personnel nodes are compared, and the distance sums are sorted in descending order. The sorted distance sums are used as distance sum sets.

[0055] Embodiment 2:

[0056] Assume that there are n personnel location information in total, and take each person as a node. Calculate the distance from the node to all other nodes in turn to obtain an n×n distance matrix S

[0057]

[0058] Find the sum of the distances from each node to all other nodes, and record the sum of the distances of the i-th node as

[0059] Specifically, the step of performing clustering region iteration based on the distance and set with the minimum distance as the optimization target includes:

[0060] Step S100): Take the node at the end of the distance and concentration as the center of a gathering area, and draw a circle with a preset radius, and combine all other personnel nodes in the circle with the center personnel node to form a gathering personnel set of the gathering area.

[0061] Step S200): Delete the center person node in the obtained aggregated person set from the distance and set, and repeat steps S100) to S200) based on the new distance and set until the iteration termination condition is met, and obtain multiple aggregated person sets.

[0062] Step S300): performing intersection processing on the aggregated personnel sets where there are intersections of personnel nodes in each aggregated personnel set.

[0063] Step S400): For the clustered personnel set after the intersection processing is completed, the personnel node with a smaller distance than the intersection processing of the clustered personnel set is taken as the center of the circle, and the distance between the personnel node farthest from the center of the circle and the center of the circle is taken as the radius of the clustered area, and each clustered area is output.

[0064] Embodiment three:

[0065] Suppose the set of n nodes is N = {1,2,...,n}, and the distance and the set of each node are SUM1 = {Sum i |i∈N}, the node corresponding to the minimum distance sum among the n distance sums is Find the set of people whose distance from I1 is less than 5m If the number of nodes in A1 is greater than or equal to 5, the first set of gathered personnel is A1, and the gathering area is a circle with the position of node I1 as the center and a radius of 5m.

[0066] Then continue to calculate the second gathering of people and gathering areas, and set the distance and composition of the remaining nodes as SUM2 = {Sum i |i∈(N-A1)}, where the minimum distance and the corresponding node are Find the set of people whose distance from I2 is less than 5m The first set of gathered people is A2, and the gathering area is a circle with the position of node I2 as the center and a radius of 5m.

[0067] And so on, continue to calculate the next gathering person and gathering area until U j≤n A j = N. If the sets of different gathering personnel overlap, the sets are merged, and the minimum distance of the merged set and the corresponding personnel position are taken as the center of the circle, and the area with the farthest distance from the personnel in the set as the radius is taken as the gathering area.

[0068] Step S40: determining an early warning plan based on the obtained gathering area, and executing an early warning based on the early warning plan.

[0069] Specifically, the method of determining an early warning plan based on the obtained gathering areas includes: identifying the number of gathered people based on the set of gathered people in each gathering area; determining the warning level under the current gathering situation based on the gathered people data and a preset warning level map; and calling a corresponding early warning plan based on the warning level.

[0070] Furthermore, the early warning scheme is determined based on the obtained gathering areas, including: determining the distance relationship between each gathering area and each preset hazard source position based on the center personnel node positioning of each gathering area and the radius of the corresponding gathering area; determining each gathering area with a distance relationship less than a preset distance threshold as a risk area under the corresponding hazard source position; determining the warning level under the current gathering situation based on the number of gathered personnel in each risk area, the corresponding hazard source level and the preset warning level map; and calling the corresponding early warning scheme based on the warning level.

[0071] Embodiment 4:

[0072] The size of the gathering risk is related to the number of people gathered and the level of major hazardous sources in the surrounding area. Therefore, a graded early warning mechanism is formulated based on the number of people gathered and the level of major hazardous sources in the surrounding area, as shown in Table 1.

[0073]

[0074]

[0075] Table 1 Classification warning mechanism

[0076] In an embodiment of the present invention, the scheme of the present invention utilizes latitude and longitude data to determine gathered personnel and areas, and the obtained results will not be affected by factors such as background and light, and the implementation process is simple, there is no need to lay equipment and instruments in the chemical plant area, and the impact of construction work on the safe production of the enterprise is avoided. It can more accurately calculate gathered personnel and areas, and conduct risk warnings in a timely and effective manner, helping enterprise personnel to perform safety management work.

[0077] Embodiment five:

[0078] The personnel in the production area of ​​a certain enterprise at a certain time are taken as the judgment objects. The production areas of this enterprise are all level 4 major hazard sources. The longitude and latitude information data of the personnel in the production area of ​​the enterprise are collected based on the positioning devices worn by each person, as shown in Table 2.

[0079]

[0080]

[0081] Table 2 Personnel longitude and latitude data table

[0082] Assume that the radius of the earth is R, and the latitude and longitude of any person on the ground in the production area of ​​the chemical enterprise are θ and (North latitude and east longitude are positive, south latitude and west longitude are negative), then transformed into a three-dimensional rectangular coordinate system with the center of the sphere as the origin, the coordinates of the person are

[0083]

[0084] Assume that there are two people on the ground in the area, A and B, and the latitude and longitude of point A are θ1 and The latitude and longitude of point B are θ2 and The coordinates in the spatial rectangular coordinate system are (x1, y1, z1) and (x2, y2, z2). According to the Pythagorean theorem,

[0085]

[0086] Suppose the distance between two people is S 12 ,but

[0087] Calculate the distance information between 15 people.

[0088] Iteratively determine the gathering area and personnel based on the minimum distance, including:

[0089] 1) Based on the distance from each person to all other people, we get a 15×15 distance matrix S

[0090]

[0091] 2) Find the sum of the distances from each person to all other people, and record the sum of the distances of the i-th node as

[0092] 3) Let the set of 15 people be N = {1, 2, ..., 15}, and the set of distances and distances of each node be SUM1 = {Sum i|i∈N}={1696.338757, 941.2011403, 1702.264684, 1718.710859, 1709.626061, 1720.631543, 925.0595102, 958.0579176, 897.7989263, 931.0139367, 890.7437392, 888.3943947, 886.3117549, 886.3716418, 902.1407325}, the person with the smallest distance among the 15 distance sums is That is, for the person numbered 13, find the set of people whose distance from I1 is less than 5m If the number of people in A1 is greater than or equal to 5, then the first set of gathered people is A1, and the gathering area is a circle with the position of node I1 as the center and a radius of 5m. Then continue to calculate the second gathering people and gathering area, and let the distance and composition of the remaining nodes be SUM2 = {Sum i |i∈(N-A1)}={1696.338757,941.2011403,1702.264684,1718.710859,1709.626061,1720.631543,925.0595102,958.0579176,931.0139367},where the minimum distance and the corresponding node are That is, for the person numbered 7, find the set of people whose distance from I2 is less than 5m Then the second set of gathered people is A2, and the gathering area is a circle with the position of node I2 as the center and a radius of 5m. Then continue to calculate the third gathering person and gathering area, and let the distance and composition of the remaining nodes be SUM3 = {Sum i |i∈(N-A2-A2)}={1696.338757,1702.264684,1718.710859,1709.626061,1720.631543,958.0579176}, where the minimum distance and the corresponding node are That is, the person numbered 8, If there is no person whose distance from I3 is less than 5m, then there is no clustering area. Then continue to calculate the fourth clustering person and clustering area, and let the distance and composition of the remaining nodes be SUM4 = {Sum i |i∈(N-A1-A2-A3)}={1696.338757, 1702.264684, 1718.710859, 1709.626061, 1720.631543}, where the minimum distance and the corresponding node are That is, the person numbered 1, The fourth gathering of people is A4, and the gathering area is a circle with a radius of 5m and the position of node I4 as the center. j≤n A j = N, the iteration ends. And because the A1 set and the A2 set intersect, the merged set is A = {2,7,9,10,11,12,13,14,15}, with the minimum distance of the merged set and the corresponding position of the person numbered 13 as the center of the circle, and the area with the farthest distance of the person in the set as 8.8 meters as the radius as the gathering area.

[0093] Finally, there are two gathering areas determined based on the minimum distance, namely A = {2, 7, 9, 10, 11, 12, 13, 14, 15} and A4 = {1, 3, 4, 5, 6}. If the nearby area is a level 4 major hazard source, a level 1 warning will be issued.

[0094] Figure 2 : is a system structure diagram of a production area personnel node aggregation identification system provided by an embodiment of the present invention. Figure 2 As shown, an embodiment of the present invention provides a production area personnel node aggregation identification system, the system comprising:

[0095] The collection unit is used to collect the positioning identifier of each personnel node, and determine the coordinates of each personnel node on the earth coordinate system based on the positioning identifier of each personnel node.

[0096] Specifically, the positioning identifier of each personnel node is the longitude information and latitude information of each personnel node.

[0097] In an embodiment of the present invention, the scheme of the present invention constructs a method and system for real-time judgment of the risk of personnel gathering in the production area of ​​a chemical enterprise based on longitude and latitude coordinates, calculates the distance between personnel according to the longitude and latitude coordinates; iteratively judges the gathering area and personnel based on the minimum distance; and formulates a graded early warning mechanism based on the number of gathered personnel to achieve rapid perception of risks and early warning, which has practical research significance and application value.

[0098] Furthermore, the calculation rule for determining the coordinates of each personnel node in the earth coordinate system based on the positioning identifier of each personnel node is:

[0099]

[0100] Among them, (x, y, z) is the coordinates of the personnel node; R is the radius of the earth; θ is the dimension information of the personnel node; It is the longitude information of the personnel node.

[0101] Assume that the radius of the earth is R, and the latitude and longitude of any person on the ground in the production area of ​​the chemical enterprise are θ and (North latitude and east longitude are positive, south latitude and west longitude are negative), then transformed into a three-dimensional rectangular coordinate system with the center of the sphere as the origin, the coordinates of the person are

[0102]

[0103] Assume that there are two people on the ground in the area, A and B, and the latitude and longitude of point A are θ1 and The latitude and longitude of point B are θ2 and The coordinates in the spatial rectangular coordinate system are (x1, y1, z1) and (x2, y2, z2). According to the Pythagorean theorem,

[0104]

[0105]

[0106] The matrix construction unit is used to exhaust the correspondence between any two personnel nodes, calculate the distance of each corresponding relationship based on the coordinates of each personnel node, and construct a distance matrix based on the distances of all corresponding relationships.

[0107] Specifically, the distance determination rule for each corresponding relationship is:

[0108]

[0109] Among them, S AB is the distance between point A and point B; R is the radius of the earth; θ1, is the latitude and longitude information of point A; θ2, is the latitude and longitude information of point B; ∠AOB is the angle between the line connecting point A and the center of the earth and the line connecting point B and the center of the earth.

[0110] The area demarcation unit is used to calculate the distance and set between each personnel node and other personnel nodes based on the distance matrix, and perform clustering area iteration based on the distance and set with the minimum distance as the optimization target.

[0111] Specifically, the distance sum set between each staff node and other staff nodes is calculated based on the distance matrix, including: starting from the first column feature of the distance matrix, calculating the distance sum between each staff node and other staff nodes; wherein the distance sum of the i-th node is expressed as:

[0112]

[0113] Where n is the number of personnel nodes. The distance sums between each personnel node and other personnel nodes are compared, and the distance sums are sorted in descending order. The sorted distance sums are used as distance sum sets.

[0114] Assume that there are n personnel location information in total, and take each person as a node. Calculate the distance from the node to all other nodes in turn to obtain an n×n distance matrix S

[0115]

[0116] Find the sum of the distances from each node to all other nodes, and record the sum of the distances of the i-th node as

[0117] Specifically, the step of performing clustering region iteration based on the distance and set with the minimum distance as the optimization target includes:

[0118] Step S100): Take the node at the end of the distance and concentration as the center of a gathering area, and draw a circle with a preset radius, and combine all other personnel nodes in the circle with the center personnel node to form a gathering personnel set of the gathering area.

[0119] Step S200): Delete the center person node in the obtained aggregated person set from the distance and set, and repeat steps S100) to S200) based on the new distance and set until the iteration termination condition is met, and obtain multiple aggregated person sets.

[0120] Step S300): performing intersection processing on the aggregated personnel sets where there are intersections of personnel nodes in each aggregated personnel set.

[0121] Step S400): For the clustered personnel set after the intersection processing is completed, the personnel node with a smaller distance than the intersection processing of the clustered personnel set is taken as the center of the circle, and the distance between the personnel node farthest from the center of the circle and the center of the circle is taken as the radius of the clustered area, and each clustered area is output.

[0122] Suppose the set of n nodes is N = {1,2,...,n}, and the distance and the set of each node are SUM1 = {Sum i |i∈N}, the node corresponding to the minimum distance sum among the n distance sums is Find the set of people whose distance from I1 is less than 5m If the number of nodes in A1 is greater than or equal to 5, the first set of gathered personnel is A1, and the gathering area is a circle with the position of node I1 as the center and a radius of 5m.

[0123] Then continue to calculate the second gathering of people and gathering areas, and set the distance and composition of the remaining nodes as SUM2 = {Sumi |i∈(N-A1)}, where the minimum distance and the corresponding node are Find the set of people whose distance from I2 is less than 5m The first set of gathered people is A2, and the gathering area is a circle with the position of node I2 as the center and a radius of 5m.

[0124] And so on, continue to calculate the next gathering person and gathering area until U j≤n A j = N. If the sets of different gathering personnel overlap, the sets are merged, and the minimum distance of the merged set and the corresponding personnel position are taken as the center of the circle, and the area with the farthest distance from the personnel in the set as the radius is taken as the gathering area.

[0125] The early warning unit is used to determine an early warning plan based on the obtained gathering area, and execute the early warning based on the early warning plan.

[0126] Specifically, the method of determining an early warning plan based on the obtained gathering areas includes: identifying the number of gathered people based on the set of gathered people in each gathering area; determining the warning level under the current gathering situation based on the gathered people data and a preset warning level map; and calling a corresponding early warning plan based on the warning level.

[0127] Furthermore, the early warning scheme is determined based on the obtained gathering areas, including: determining the distance relationship between each gathering area and each preset hazard source position based on the center personnel node positioning of each gathering area and the radius of the corresponding gathering area; determining each gathering area with a distance relationship less than a preset distance threshold as a risk area under the corresponding hazard source position; determining the warning level under the current gathering situation based on the number of gathered personnel in each risk area, the corresponding hazard source level and the preset warning level map; and calling the corresponding early warning scheme based on the warning level.

[0128] An embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, which, when executed on a computer, enable the computer to execute the above-mentioned production area personnel node cluster identification method.

[0129] A person skilled in the art can understand that all or part of the steps in the method for implementing the above-mentioned embodiments can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions for making a single-chip microcomputer, a chip or a processor (processor) perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0130] The optional embodiments of the present invention are described in detail above in conjunction with the accompanying drawings. However, the embodiments of the present invention are not limited to the specific details in the above embodiments. Within the technical concept of the embodiments of the present invention, the technical scheme of the embodiments of the present invention can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the embodiments of the present invention. It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the embodiments of the present invention will not further describe various possible combinations.

[0131] In addition, various embodiments of the present invention may be arbitrarily combined, and as long as they do not violate the concept of the embodiments of the present invention, they should also be regarded as the contents disclosed in the embodiments of the present invention.

Claims

1. A method for identifying the clustering of personnel nodes in a production area, characterized in that: The method comprises: Collecting the location identifiers of each personnel node, and determining the coordinates of each personnel node on the earth coordinate system based on the location identifiers of each personnel node; Exhaust the correspondence between any two personnel nodes, calculate the distance of each correspondence based on the coordinates of each personnel node, and construct a distance matrix based on the distances of all correspondences; Calculate the distance and set between each staff node and other staff nodes based on the distance matrix, and perform clustering area iteration based on the distance and set with the minimum distance as the optimization target; An early warning plan is determined based on the obtained gathering area, and an early warning is performed based on the early warning plan.

2. The method according to claim 1, characterized in that The positioning identifier of each personnel node is the longitude information and latitude information of each personnel node.

3. The method according to claim 1, characterized in that The calculation rule for determining the coordinates of each personnel node in the earth coordinate system based on the positioning identifier of each personnel node is: Among them, (x, y, z) is the coordinates of the personnel node; R is the radius of the Earth; θ is the dimension information of personnel node; It is the longitude information of the personnel node.

4. The method according to claim 2, characterized in that: The distance determination rule for each corresponding relationship is: Among them, S AB is the distance between point A and point B; R is the radius of the Earth; θ1, The latitude and longitude information of point A; θ2, The latitude and longitude information of point B; ∠AOB is the angle between the line connecting point A and the center of the earth and the line connecting point B and the center of the earth.

5. The method according to claim 1, characterized in that The distance matrix is ​​expressed as: Where S is the distance matrix; S ij is the distance between the i-th staff node and the j-th staff node.

6. The method according to claim 5, characterized in that The calculating of the distance sum between each personnel node and other personnel nodes based on the distance matrix includes: Starting from the first column of features of the distance matrix, the sum of distances between each person node and other person nodes is calculated; wherein, The distance sum of the i-th node is expressed as: Where n is the number of personnel nodes; Compare the distance sum between each staff node and other staff nodes, sort them in descending order of the distance sum, and use the sorted distance sum as the distance sum set.

7. The method according to claim 6, characterized in that The performing clustering region iteration based on the distance and set with the minimum distance as the optimization target comprises: Step S100): taking the node at the end of the distance and concentration as the center of a gathering area, and drawing a circle with a preset radius, and combining all other personnel nodes in the circle with the personnel node at the center of the circle to form a gathering personnel set of the gathering area; Step S200): deleting the center person node in the obtained aggregated person set from the distance sum set, and repeatedly executing steps S100) to S200) based on the new distance sum set until the iteration termination condition is met, thereby obtaining multiple aggregated person sets; Step S300): performing intersection processing on the aggregated personnel sets in which the personnel nodes in each aggregated personnel set intersect; Step S400): For the clustered personnel set after the intersection processing is completed, the personnel node with a smaller distance than the intersection processing of the clustered personnel set is taken as the center of the circle, and the distance between the personnel node farthest from the center of the circle and the center of the circle is taken as the radius of the clustered area, and each clustered area is output.

8. The method according to claim 7, characterized in that The step of determining an early warning plan based on the obtained gathering area includes: Based on the set of gathered persons in each gathering area, identify the number of gathered persons; Determine the warning level of the current gathering situation based on the data of the gathering personnel and the preset warning level map; A corresponding warning plan is called based on the warning level.

9. The method according to claim 7, characterized in that: The step of determining an early warning plan based on the obtained gathering area includes: Based on the center personnel node positioning of each gathering area and the radius of the corresponding gathering area, the distance relationship between each gathering area and the preset danger source location is determined accordingly; Determine each clustered area whose distance relationship is less than a preset distance threshold as a risk area under the corresponding hazard source location; Determine the warning level for the current gathering situation based on the number of people gathered in each risk area, the corresponding hazard source level and the preset warning level map; A corresponding warning plan is called based on the warning level.

10. A production area personnel node cluster identification system, characterized in that: The system comprises: A collection unit, used to collect the location identifiers of each personnel node, and determine the coordinates of each personnel node on the earth coordinate system based on the location identifiers of each personnel node; A matrix construction unit, used to exhaust the correspondence between any two personnel nodes, calculate the distance of each correspondence based on the coordinates of each personnel node, and construct a distance matrix based on the distances of all correspondences; A region demarcation unit, used for calculating the distance and set between each personnel node and other personnel nodes based on the distance matrix, and performing clustering region iteration based on the distance and set with the minimum distance as the optimization target; The early warning unit is used to determine an early warning plan based on the obtained gathering area, and execute the early warning based on the early warning plan.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the production area personnel node cluster identification method described in any one of claims 1-9.

12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for identifying the clustering of personnel nodes in a production area as described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Crowding detection method and device, electronic equipment and storage medium

    CN113128430A