Personnel aggregation prediction method and device based on personnel positioning, and electronic equipment

By using a prediction method based on personnel location to generate and merge clusters, and by utilizing Redis caching and recursive algorithms, the accuracy and real-time issues of traditional personnel clustering algorithms in petrochemical plants are solved, achieving efficient, all-weather prediction and early warning functions.

CN119047819APending Publication Date: 2024-11-29山东浪潮智能生产技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410915953.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Traditional algorithms for personnel gathering in petrochemical plant areas rely on empirical and grid-based methods, which suffer from low accuracy, poor applicability, and inability to operate around the clock. In particular, they are difficult to accurately predict personnel gathering when the number of contractors and temporary visitors increases.

Method used

A prediction method based on personnel location is adopted. By acquiring real-time location information, filtering silent areas, generating and merging clusters, and using Redis caching and recursive algorithms, the results are updated and output in real time to achieve high-precision prediction.

Benefits of technology

It achieves high-precision, real-time prediction of crowd gatherings, can operate around the clock, improves prediction efficiency, provides timely early warning information, and supports the tracing of historical events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047819A_ABST
    Figure CN119047819A_ABST
Patent Text Reader

Abstract

The invention discloses a personnel aggregation prediction method and device based on personnel positioning and electronic equipment, and belongs to the technical field of dangerous chemicals such as petroleum and petrochemical engineering, and the method comprises the steps: obtaining real-time positioning information; acquiring a configuration rule; filtering the positioning information; generating a cluster; combining the clusters; the redis cache cluster information is updated; filtering redis cache cluster information; and outputting a result. According to the method, the technical vacancy of a dangerous chemical factory aggregation algorithm can be solved, and safety officers can be helped to better understand personnel change and aggregation trend, so that the factory can be better managed, and risk accidents are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to hazardous chemical fields such as petroleum and petrochemicals, and in particular to a personnel gathering prediction method, device and electronic equipment based on personnel positioning. Background Art

[0002] As an important economic pillar of my country, the safety of petroleum and petrochemicals is of great significance to the national economy and the life and health of employees. Accurate prediction of personnel gathering is an important guarantee for petrochemical production safety and employee life and health.

[0003] Traditional clustering algorithms are mainly empirical methods and grid methods. The empirical method is a method of prediction based on the management experience and professional knowledge of safety officers, and based on special work tickets and surveillance videos. The main disadvantage of the empirical method is that its prediction results are easily affected by subjective factors, the accuracy is not high, and it cannot operate around the clock. In addition, with the entry of contractors and the surge in temporary visitors, the applicability of the empirical method has gradually decreased. The grid method is a grid-based calculation method that divides the petrochemical hazard source into n grids, and calculates the number of people gathered in each grid separately to count the aggregation situation. Because data cannot be exchanged between grids, this method has low precision and poor accuracy. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a personnel gathering prediction method, device and electronic equipment based on personnel positioning, so as to solve the technical gap in the gathering algorithm of hazardous chemical plant areas, help safety officers better understand personnel changes and gathering trends, and thus better manage the plant area and avoid risk accidents.

[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:

[0006] On the one hand, a method for predicting crowd gathering based on crowd positioning is provided, comprising:

[0007] Step 1: Obtain real-time positioning information;

[0008] Step 2: Get configuration rules;

[0009] Step 3: Filter positioning information;

[0010] Step 4: Generate clusters;

[0011] Step 5: Merge clusters;

[0012] Step 6: Update the redis cache cluster information;

[0013] Step 7: Filter the redis cache cluster information;

[0014] Step 8: Output the results.

[0015] On the other hand, a personnel gathering prediction device based on personnel positioning is provided, comprising:

[0016] A first acquisition module, used to acquire real-time positioning information;

[0017] The second acquisition module is used to acquire configuration rules;

[0018] A first filtering module, used for filtering positioning information;

[0019] A generation module, used to generate clusters;

[0020] Merge module, used to merge clusters;

[0021] Update module, used to update redis cache cluster information;

[0022] The second filtering module is used to filter the redis cache cluster information;

[0023] Output module, used to output results.

[0024] On the other hand, an electronic device is provided, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside a space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the above-mentioned method.

[0025] On the other hand, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above method.

[0026] The method, device and electronic device for predicting crowd gathering based on crowd positioning provided by the present invention have the following beneficial effects:

[0027] 1. High calculation accuracy: Since this technology relies on real-time personnel location information and uses an accurate recursive algorithm to calculate the number of people, its prediction results are more accurate and can better reflect the actual situation of personnel gathering in dangerous areas;

[0028] 2. Strong real-time performance: It can obtain the location information of personnel in real time, and immediately analyze and judge. Once there is a risk of personnel gathering, it can immediately issue an alarm and provide early warning information to management personnel in a timely manner;

[0029] 3. High prediction efficiency: Through efficient algorithm design and optimization, the present invention can complete the processing and analysis of a large amount of data in a short time, greatly improving the prediction efficiency, which is crucial for dangerous fields such as petrochemicals that require rapid response;

[0030] 4. All-weather operation: The personnel aggregation algorithm is based on intelligent positioning analysis technology, which can analyze the positioning information 24 hours a day, 7 days a week to ensure stable operation around the clock.

[0031] 5. Traceability: The algorithm will automatically calculate the clustered employees and time range. By using redis cache technology, enterprises and organizations can trace and backtrack security incidents involving the gathering of personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a flow chart of the personnel gathering prediction method based on personnel positioning of the present invention;

[0033] Figure 2 It is a structural schematic diagram of a personnel gathering prediction device based on personnel positioning of the present invention;

[0034] Figure 3 It is a schematic structural diagram of the electronic device of the present invention. DETAILED DESCRIPTION

[0035] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0036] On the one hand, the present invention provides a method for predicting crowd gathering based on crowd positioning, such as Figure 1 As shown, including:

[0037] Step 1: Obtain real-time positioning information;

[0038] As a preferred embodiment, the step 1 includes:

[0039] MQTT technology is used to obtain real-time location information of personnel, including latitude and longitude, positioning card number, time and floor, etc.

[0040] Step 2: Get configuration rules;

[0041] As a preferred embodiment, the step 2 includes:

[0042] Use mybatisPlus to obtain configuration information from the MySQL database, including silent areas, aggregation radius, aggregation alarm time threshold, and alarm notification personnel;

[0043] Step 3: Filter positioning information;

[0044] As a preferred embodiment, step 3 includes:

[0045] Traverse the real-time positioning information, intercept silent area points, and intercept vehicle points.

[0046] Step 4: Generate clusters;

[0047] As a preferred embodiment, step 4 includes:

[0048] Traverse the valid positioning information, take the person as the center, calculate all the people within the aggregation radius to form a cluster, and save the aggregation information through the hash table.

[0049] Step 5: Merge clusters;

[0050] As a preferred embodiment, the step 5 includes:

[0051] Circulate the clusters and use the non-repeatability of HashSet to determine whether there are duplicate personnel in the clusters. If there are duplicate personnel, merge the clusters.

[0052] Step 6: Update the redis cache cluster information;

[0053] As a preferred embodiment, the step 6 includes:

[0054] Loop through the clusters, get all the people in the current cluster, match the data in the redis cache, if there is no cluster information in the redis cache, it means it is the first cluster, then put the cluster into the cache, and the cached cluster start time and end time are the current time; if the cluster information exists in the redis cache, merge the cluster and the redis people, and update the cached cluster end time.

[0055] Step 7: Filter the redis cache cluster information;

[0056] As a preferred embodiment, the step 7 includes:

[0057] If the cluster in the redis cache is not updated in step 6, it means that the cluster has disappeared, and the data is deleted from the redis cache.

[0058] Step 8: Output the results.

[0059] As a preferred embodiment, step 8 includes:

[0060] Through the data of step 6, it is determined whether the gathering time and the number of people in the cluster meet the alarm standard. If they do, the cluster is converted into alarm data and stored in the MySQL database.

[0061] The personnel gathering prediction method based on personnel positioning of the present invention has the following beneficial effects:

[0062] 1. High calculation accuracy: Since this technology relies on real-time personnel location information and uses an accurate recursive algorithm to calculate the number of people, its prediction results are more accurate and can better reflect the actual situation of personnel gathering in dangerous areas;

[0063] 2. Strong real-time performance: It can obtain the location information of personnel in real time and conduct analysis and judgment immediately. This means that once there is a risk of gathering of people, an alarm can be issued immediately, providing timely warning information to managers;

[0064] 3. High prediction efficiency: Through efficient algorithm design and optimization, this technology can complete the processing and analysis of a large amount of data in a short time, greatly improving the prediction efficiency, which is crucial for dangerous fields such as petrochemicals that require rapid response;

[0065] 4. All-weather operation: The personnel aggregation algorithm is based on intelligent positioning analysis technology, which can analyze the positioning information 24 hours a day, 7 days a week to ensure the stable operation of the system.

[0066] 5. Traceability: The algorithm will automatically calculate the clustered employees and time range, so that enterprises and organizations can trace and backtrack security incidents involving the gathering of people.

[0067] In summary, the personnel gathering prediction method based on personnel positioning of the present invention can help decision makers better understand the situation and trend of personnel distribution in the factory area, improve prediction accuracy, and thus avoid gathering risks. The present invention is used to accurately and in real time calculate the gathering of personnel and improve calculation efficiency. By real-time monitoring of the gathering of personnel, the present invention can not only ensure the safe execution of production activities, but also protect the lives of employees. The present invention can solve the technical gap in the aggregation algorithm of hazardous chemical plants, help safety officers better understand personnel changes and aggregation trends, and thus better manage the plant area and avoid risk accidents.

[0068] The present invention provides an efficient solution for personnel safety management in the petroleum, petrochemical and other hazardous chemical fields. The core of the present invention is to obtain the location information of personnel in real time and analyze these data quickly and accurately. By calculating the distance between the points, the number of people gathered is accurately calculated to form a cluster. And using a recursive algorithm and the uniqueness of HASHSET, the clusters are merged. Combined with the cluster information in the cache, relying on the cluster configuration rules, it is calculated whether the current personnel gathering situation reaches the preset alarm threshold. Compared with the traditional empirical method and grid clustering algorithm, the present invention has the advantages of significantly high prediction accuracy, strong real-time performance, high prediction efficiency, all-weather operation, traceability, etc.

[0069] On the other hand, the present invention provides a personnel gathering prediction device based on personnel positioning, such as Figure 2 As shown, including:

[0070] A first acquisition module 11 is used to acquire real-time positioning information;

[0071] A second acquisition module 12, used to acquire configuration rules;

[0072] A first filtering module 13, used to filter positioning information;

[0073] A generating module 14, used for generating clusters;

[0074] A merging module 15, used for merging clusters;

[0075] Update module 16, used to update redis cache cluster information;

[0076] The second filtering module 17 is used to filter the redis cache cluster information;

[0077] The output module 18 is used to output the results.

[0078] The device of this embodiment can be used to perform Figure 1 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.

[0079] Preferably, in the first acquisition module 11, MQTT technology is used to obtain real-time location information of personnel, including latitude and longitude, positioning card number, time and floor.

[0080] Preferably, in the second acquisition module 12, mybatisPlus is used to obtain configuration information from the mysql database, including the silent area, the gathering radius, the gathering alarm time threshold and the alarm notification personnel information;

[0081] Preferably, in the first filtering module 13, real-time positioning information is traversed, silent area points and vehicle points are intercepted.

[0082] Preferably, in the generating module 14, valid positioning information is traversed, and all personnel within the aggregation radius are calculated to form a cluster with the person as the center, and the aggregation information is saved in a hash table;

[0083] Preferably, in the merging module 15, the clusters are circulated, and the non-repeatability of HashSet is used to determine whether there are duplicate personnel in the clusters. If there are duplicate personnel, the clusters are merged.

[0084] Preferably, in the update module 16, the cluster is traversed in a loop to obtain all personnel in the current cluster and match the data in the redis cache. If the cluster information does not exist in the redis cache, indicating that it is the first cluster, the cluster is put into the cache, and the cached cluster start time and end time are the current time; if the cluster information exists in the redis cache, the cluster and the redis personnel are merged, and the cached cluster end time is updated.

[0085] Preferably, in the second filtering module 17, if the cluster in the redis cache is not updated in the updating module 16, it means that the cluster has disappeared, and the data is deleted in the redis cache.

[0086] Preferably, the output module 18 determines whether the gathering time and the number of people in the cluster meet the alarm standard through the data of the update module 16. If yes, the cluster is converted into alarm data and stored in the Mysql database.

[0087] An embodiment of the present invention further provides an electronic device, Figure 3 This is a schematic diagram of the structure of an embodiment of the electronic device of the present invention, which can implement the present invention. Figure 1 The process of the embodiment shown is as follows: Figure 3 As shown, the electronic device may include: a housing 41, a processor 42, a memory 43, a circuit board 44 and a power supply circuit 45, wherein the circuit board 44 is arranged inside the space enclosed by the housing 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; the power supply circuit 45 is used to supply power to various circuits or devices of the electronic device; the memory 43 is used to store executable program codes; the processor 42 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 43, so as to execute the method described in any of the aforementioned method embodiments.

[0088] For details on the specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code, please refer to the present invention. Figure 1 The description of the illustrated embodiment will not be repeated here.

[0089] This electronic device exists in many forms, including but not limited to:

[0090] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.

[0091] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.

[0092] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.

[0093] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.

[0094] (5) Other electronic devices with data interaction functions.

[0095] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any of the above method embodiments are implemented.

[0096] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0097] Each embodiment in this specification is described in a related manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. For the convenience of description, the description of the above device is divided into various units / modules according to their functions and described separately. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or one or more software and / or hardware.

[0098] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0099] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for predicting crowd gathering based on crowd positioning, characterized in that: include: Step 1: Obtain real-time positioning information; Step 2: Get configuration rules; Step 3: Filter positioning information; Step 4: Generate clusters; Step 5: Merge clusters; Step 6: Update the redis cache cluster information; Step 7: Filter the redis cache cluster information; Step 8: Output the results.

2. The method according to claim 1, characterized in that: The step 1 comprises: MQTT technology is used to obtain real-time location information of personnel, including latitude and longitude, positioning card number, time and floor.

3. The method according to claim 1, characterized in that The step 2 comprises: Use mybatisPlus to obtain configuration information from the MySQL database, including silent areas, aggregation radius, aggregation alarm time threshold, and alarm notification personnel information; And / or, step 3 comprises: Traverse the real-time positioning information, intercept silent area points, and intercept vehicle points.

4. The method according to claim 1, characterized in that: The step 4 comprises: Traverse the valid positioning information, take the person as the center, calculate all the people within the aggregation radius to form a cluster, and save the aggregation information through the hash table; And / or, step 5 comprises: Circulate the clusters and use the non-repeatability of HashSet to determine whether there are duplicate personnel in the clusters. If there are duplicate personnel, merge the clusters.

5. The method according to claim 1, characterized in that The step 6 comprises: Loop through the clusters, get all the people in the current cluster, match the data in the redis cache, if there is no cluster information in the redis cache, it means it is the first cluster, then put the cluster into the cache, and the cached cluster start time and end time are the current time; if the cluster information exists in the redis cache, merge the cluster and the redis people, and update the cached cluster end time.

6. The method according to claim 5, characterized in that The step 7 comprises: If the cluster in the redis cache is not updated in step 6, it means that the cluster has disappeared, and the data is deleted from the redis cache.

7. The method according to claim 5, characterized in that The step 8 comprises: Through the data of step 6, it is determined whether the gathering time and the number of people in the cluster meet the alarm standard. If they do, the cluster is converted into alarm data and stored in the MySQL database.

8. A personnel gathering prediction device based on personnel positioning, characterized in that: include: A first acquisition module, used to acquire real-time positioning information; The second acquisition module is used to acquire configuration rules; A first filtering module, used for filtering positioning information; A generation module, used to generate clusters; Merge module, used to merge clusters; Update module, used to update redis cache cluster information; The second filtering module is used to filter the redis cache cluster information; Output module, used to output results.

9. An electronic device, characterized in that: The electronic device comprises: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in any one of claims 1 to 7 above.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in any one of claims 1 to 7.