Safety early warning method and system, storage medium and electronic equipment
By obtaining the actual traffic of people at the cultural activity site and analyzing abnormal situations, deciding whether to send safety warnings, the problem of poor warning accuracy in the existing technology is solved, and more efficient safety warnings and abnormal judgment accuracy in the activity area is achieved.
Patent Information
- Application Number
- CN202510049073.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-05-23
AI Technical Summary
The existing safety warning methods for cultural activities are poor in handling sudden abnormal situations, and it is difficult to conduct early warnings in a timely and accurate manner.
By obtaining the actual flow of people in each activity area of the target activity site, if the first flow threshold is exceeded, it is determined as an abnormal area, and based on the actual flow of people, the target flow range and the target area, the possibility of abnormal events is analyzed to decide whether to send an abnormal warning. If no warning is sent, the traffic threshold is adjusted to improve the accuracy of the judgment.
The accuracy of safety warnings for cultural activities is improved, the probability of abnormal events is reduced, the error triggering of early warnings is avoided, and the accuracy of abnormal judgment in the activity area is improved by dynamically adjusting the threshold.
Smart Images

Figure CN120032491A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of security warning technology, and specifically to a security warning method, system, storage medium and electronic device. Background Art
[0002] With the development of society, various large-scale cultural activities are increasing day by day. The vigorous development of cultural activities can enrich the cultural life of the people, encourage the people to fully accept the influence of excellent culture, improve their overall cultural quality and comprehensive ability, and improve the quality of life and happiness index of the people. In addition, cultural activities, as an important part of the construction of spiritual civilization, play an irreplaceable role in improving the overall civilization level of our society. At the same time, the increase in cultural activities makes the early warning and management of public safety during cultural activities particularly important. Effective safety early warning can better reduce the probability of abnormal events at the cultural event site and provide basic safety guarantees for on-site personnel.
[0003] At present, the security warning for cultural activities is usually carried out by monitoring the flow of people at the cultural activity site through video surveillance, and combining manual observation of the surveillance video and a simple threshold warning mechanism to issue a security warning for abnormal events at the cultural activity site. Due to the complex personnel situation at the activity site, once a sudden abnormal situation occurs temporarily, it is difficult to issue an accurate and timely warning using a simple threshold warning mechanism, resulting in poor accuracy of the security warning for cultural activities. Summary of the invention
[0004] In order to improve the accuracy of safety warnings for cultural activities, the present application provides a safety warning method, system, storage medium and electronic device.
[0005] In a first aspect of the present application, a safety early warning method is provided, which specifically includes: Obtain the actual flow of people in each activity area at the target activity site; If the actual human flow exceeds the corresponding first human flow threshold, the corresponding activity area is determined as an abnormal area, and based on the actual human flow in the abnormal area, the abnormal area, at least one target human flow range of the target activity site, and at least one corresponding target area, it is determined whether to issue an abnormal warning for the abnormal area, the target human flow range being a human flow range where human flow is prone to induce abnormal events, and the target area being an activity area where abnormal events are prone to occur under the corresponding target human flow range; If yes, an abnormal warning for the abnormal area is sent to the terminal of the security personnel; If not, a second human flow threshold adapted to the abnormal area is determined, and the first human flow threshold corresponding to the abnormal area is replaced by the second human flow threshold.
[0006] By adopting the above technical solution, after obtaining the actual flow of people in each activity area, if the actual flow of people exceeds the corresponding first flow threshold, it means that the corresponding activity area has a large flow of people, which is prone to crowding and abnormal events, and the corresponding activity area is determined as an abnormal area. Whether to issue an abnormal warning for the abnormal area requires further verification. Based on the target flow range and the corresponding at least one target area, the possibility of abnormal events in the current abnormal area is analyzed, and then it is accurately determined whether to issue a safety warning for the abnormal area. If it is determined to issue a warning for the abnormal area, an abnormal warning is sent to the security personnel to provide the accuracy of the warning and avoid false triggering of the warning; if it is determined not to issue a warning for the abnormal area, it means that the first flow threshold corresponding to the abnormal area is unreasonable, and then it is adjusted to improve the accuracy of abnormal area determination and improve the accuracy of safety warnings for cultural activities.
[0007] Optionally, the determining whether to issue an abnormal warning for the abnormal area based on the actual flow of people in the abnormal area, the abnormal area, at least one target flow range of people at the target activity site, and at least one corresponding target area specifically includes: Obtaining a first historical crowd flow range where the crowd flow is located when a historical abnormal event occurs in the activity area of the target activity site, counting the first occurrence times of each of the first historical crowd flow ranges, and selecting a first number of first historical crowd flow ranges from each of the first historical crowd flow ranges in descending order of the first occurrence times to determine as the target crowd flow range; Acquire historical abnormal areas in the target activity site where the flow of people is within a single target flow of people range, count the second occurrence number of each of the historical abnormal areas, and select a second number of historical abnormal areas from each of the historical abnormal areas in descending order of the second occurrence number to determine as target areas, the target area being a historical abnormal area corresponding to a single target flow of people range, and the historical abnormal area being an activity area where abnormal events have occurred in history; Determine a first weight for each of the target human flow ranges, and determine a second weight for each of the target areas corresponding to each of the target human flow ranges, wherein the first weight is a ratio of a first occurrence number of each target human flow range to a sum of first occurrence numbers of all target human flow ranges, and the second weight is a ratio of a second occurrence number of a single target area corresponding to the target human flow range to a sum of second occurrence numbers of all corresponding target areas; Whether to issue an abnormal warning for the abnormal area is determined according to the actual flow of people in the abnormal area, the abnormal area, the first weight and the corresponding second weights.
[0008] By adopting the above technical solution, the greater the number of first occurrences, the easier it is to induce abnormal events when the flow of people in the activity area is within the corresponding first historical flow range, and then determine the target flow range; the greater the number of second occurrences, the easier it is for abnormal events to occur in the corresponding historical abnormal area within a single target flow range, and then determine the target area. Finally, combined with the actual flow of people in the abnormal area, the possibility of abnormal events occurring in this abnormal area is analyzed, and then it is determined whether this abnormal area actually has an abnormal situation, thereby improving the accuracy of safety warnings.
[0009] Optionally, determining whether to issue an abnormal warning for the abnormal area according to the actual flow of people in the abnormal area, the abnormal area, the first weight and the corresponding second weights specifically includes: If the abnormal area exists in each target area corresponding to the target human flow range, the corresponding target human flow range is determined as a candidate range, and the candidate range where the actual human flow of the abnormal area is located is determined as a key range; Calculating a first product of a first weight of the key range and a second weight of a corresponding abnormal area, and comparing the first product with a preset first threshold; If the first product is greater than the first threshold, determining to issue an abnormal warning for the abnormal area; If the first product is not greater than the first threshold, the first pedestrian flow threshold corresponding to the abnormal area is verified, and after the verification passes, it is determined to issue an abnormal warning for the abnormal area.
[0010] By adopting the above technical solution, the larger the first product is, the greater the possibility that an abnormal event is currently occurring in the abnormal area. If the first product is greater than the preset first threshold, it means that the possibility that an abnormal event is currently occurring in this abnormal area is relatively high, then it is verified that this abnormal area does have a relatively high risk of an abnormal event occurring, and then it is determined to perform an abnormal warning for the abnormal area, thereby improving the accuracy of the abnormal warning and avoiding the false triggering of the abnormal warning.
[0011] Optionally, the checking of the first pedestrian flow threshold corresponding to the abnormal area specifically includes: If the human flow values in the selected range are not greater than the first human flow threshold corresponding to the abnormal area, the corresponding selected range is determined as the first range, and the selected ranges other than the first range in the selected ranges are determined as the second range; Calculate the second product of the first weight of each of the first ranges and the second weight of the corresponding abnormal area and sum them to obtain the sum of the first products, and calculate the third product of the first weight of each of the second ranges and the second weight of the corresponding abnormal area and sum them to obtain the sum of the second products; If the sum of the second products is greater than the sum of the first products, it is determined that the first pedestrian flow threshold corresponding to the abnormal area has passed the verification; If the sum of the second products is less than the sum of the first products, it is determined that the first pedestrian flow threshold check corresponding to the abnormal area has failed.
[0012] By adopting the above technical solution, the larger the sum of the first products is, the greater the possibility of abnormal events occurring in the abnormal area when the flow of people is lower than the first flow threshold; the larger the sum of the second products is, the greater the possibility of abnormal events occurring in the abnormal area when the flow of people is higher than the first flow threshold. If the sum of the second products is greater than the sum of the first products, it means that the possibility of abnormal events occurring in the abnormal area when the flow of people exceeds the first flow threshold is higher than the possibility of abnormal events occurring when the flow of people does not exceed the first flow threshold, indicating that the first flow threshold corresponding to the abnormal area is more reasonable, and it can more accurately determine whether the activity area is an abnormal area, and then determine that the verification has passed.
[0013] Optionally, the determining a second pedestrian flow threshold adapted to the abnormal area specifically includes: If the abnormal area exists in each target area corresponding to the target human flow range, the corresponding target human flow range is determined as the to-be-selected range; Calculate the fourth product of the first weight of each of the to-be-selected ranges and the second weight of the corresponding abnormal area, and sort the to-be-selected ranges in ascending order of the included human flow values to obtain a sorted result, wherein the smaller the included human flow value, the higher the corresponding to-be-selected range is sorted; Determine the first N candidate ranges in the sorted result as target candidate ranges, sum the fourth products corresponding to the target candidate ranges to obtain the sum of the third products, determine the candidate ranges other than the target candidate range as remaining candidate ranges, sum the fourth products corresponding to the remaining candidate ranges to obtain the sum of the fourth products; If the sum of the third products is not greater than the sum of the fourth products, the first N+1 selected ranges in the sorted results are determined as target selected ranges, and the step of summing the fourth products corresponding to each target selected range is repeated; if the corresponding sum of the third products is greater than the corresponding sum of the fourth products, a second pedestrian flow threshold adapted to the abnormal area is determined based on the Nth selected range.
[0014] By adopting the above technical solution, if the sum of the third products is not greater than the sum of the fourth products, it means that the overall possibility of abnormal events occurring in abnormal areas under the first N selected ranges does not exceed the overall possibility of abnormal events occurring in abnormal areas under the remaining selected ranges. Further, if the corresponding sum of the third products is greater than the corresponding sum of the fourth products, it means that the critical value for judging whether there is an abnormal risk in the abnormal area is within the Nth selected range, thereby accurately matching the second human flow threshold of this abnormal area, and realizing reasonable adjustment of the human flow threshold of this abnormal area.
[0015] Optionally, the method further includes: If there is no abnormal area in the target activity site, then for each of the activity areas, a second historical human flow range in which the human flow was located when the historical abnormal event occurred is obtained, the first occurrence frequency of each of the second historical human flow ranges is counted, and a third number of second historical human flow ranges are selected from each of the second historical human flow ranges in descending order of the first occurrence frequency to determine as important human flow ranges; Obtaining the associated correlation factors that appear when the flow of people is within a single important flow of people range and a historical abnormal event occurs, counting the second occurrence frequency of each of the correlation factors, and selecting a fourth number of correlation factors from the correlation factors in descending order of the second occurrence frequency to determine as important correlation factors, wherein the correlation factors are influencing factors that induce abnormal events, and the important correlation factors are correlation factors corresponding to a single key flow of people range; Determine a third weight for each of the important human flow ranges, and determine a fourth weight for each of the important correlation factors corresponding to each of the important human flow ranges, wherein the third weight is a ratio of a first occurrence frequency of each important human flow range to a sum of first occurrence frequencies of all important human flow ranges, and the fourth weight is a ratio of a second occurrence frequency of a single important correlation factor corresponding to an important human flow range to a sum of second occurrence frequencies of all corresponding important correlation factors; According to the third weight of each of the activity areas and the corresponding fourth weights, a result that no abnormal area exists in the target activity site is verified.
[0016] By adopting the above technical solution, the greater the first occurrence frequency, the more likely a single activity area is to have abnormal events under the corresponding second historical flow range, thereby determining the important flow range; the greater the second occurrence frequency, the more likely the corresponding correlation factor is to induce abnormal events, thereby determining the important correlation factor. Finally, combined with the third weight of the activity area and the corresponding fourth weights, the probability of abnormal events occurring in each activity area is analyzed and determined, thereby more accurately verifying the results of no abnormal areas.
[0017] Optionally, verifying the result that there is no abnormal area in the target activity site according to the third weight of each activity area and the corresponding fourth weights specifically includes: Acquire at least one actual correlation factor appearing at the target activity site, and if there is at least one actual correlation factor among the important correlation factors corresponding to the important human flow range, determine the corresponding important human flow range as a reference range; If the actual flow of people in a single activity area is within the corresponding reference range, the corresponding reference range is determined as the final range, and the fifth product of the third weight of the final range and the fourth weight of each corresponding actual correlation factor is calculated, and the fifth products are summed to obtain the sum of the fifth products of the corresponding activity area; If the sum of the fifth products is greater than a preset second threshold, the corresponding activity area is determined as an area to be adjusted, and the first pedestrian flow threshold corresponding to the area to be adjusted is adjusted.
[0018] By adopting the above technical solution, the larger the sum of the fifth products is, the greater the possibility of abnormal events occurring in the corresponding activity area under the actual correlation factor currently occurring. Further, if the sum of the fifth products is greater than the preset second threshold, it means that the possibility of abnormal events occurring in the corresponding activity area is relatively high, and the corresponding activity area is likely to have abnormal events, but its actual human flow does not exceed the corresponding first human flow threshold, indicating that the corresponding first human flow threshold is incorrect, and then the corresponding first human flow threshold is adjusted to improve the accuracy of the human flow threshold corresponding to the activity area.
[0019] In a second aspect of the present application, a safety early warning system is provided, which specifically includes: An information acquisition module is used to obtain the actual flow of people in each activity area at the target activity site; an early warning determination module, configured to determine the corresponding activity area as an abnormal area if the actual human flow exceeds the corresponding first human flow threshold, and determine whether to issue an abnormal early warning for the abnormal area based on the actual human flow in the abnormal area, the abnormal area, at least one target human flow range of the target activity site, and at least one corresponding target area, wherein the target human flow range is a human flow range where human flow is prone to induce abnormal events, and the target area is an activity area where abnormal events are prone to occur under the corresponding target human flow range; An abnormal warning module is used to send an abnormal warning for the abnormal area to the terminal of the security personnel if so; The threshold adjustment module is used to determine a second human flow threshold adapted to the abnormal area if no, and replace the first human flow threshold corresponding to the abnormal area with the second human flow threshold.
[0020] By adopting the above technical solution, the information acquisition module obtains the actual flow of people in each activity area, and then the warning judgment module determines whether to issue an abnormal warning for the abnormal area. Then, when the abnormal warning module determines to issue an abnormal warning for the abnormal area, it sends an abnormal warning for the abnormal area to the terminal of the security personnel. Finally, when the threshold adjustment module determines not to issue an abnormal warning for the abnormal area, it replaces the first flow threshold corresponding to the abnormal area with the second flow threshold.
[0021] In a third aspect of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is loaded and executed by a processor, the method steps described in any one of the first aspects are performed.
[0022] In a fourth aspect of the present application, an electronic device is provided, specifically comprising: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the processor is used to load and execute the computer program stored in the memory so that the electronic device performs the method as described in any one of the first aspects.
[0023] In summary, the present application includes at least one of the following beneficial technical effects: If the actual flow of people exceeds the corresponding first flow threshold, it means that the corresponding activity area has a large flow of people, which is prone to crowding and abnormal events, and the corresponding activity area is determined as an abnormal area. Whether to issue an abnormal warning for the abnormal area requires further verification. Based on the target flow range and at least one corresponding target area, the possibility of abnormal events in the current abnormal area is analyzed, and then it is accurately determined whether to issue a safety warning for the abnormal area. If it is determined to issue a warning for the abnormal area, an abnormal warning is sent to the security personnel to improve the accuracy of the warning and avoid false triggering of the warning; if it is determined not to issue a warning for the abnormal area, it means that the first flow threshold corresponding to the abnormal area is unreasonable, and then it is adjusted to improve the accuracy of abnormal area determination and improve the accuracy of safety warnings for cultural activities. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flowchart of a safety warning method provided in an embodiment of the present application; Figure 2 It is a flowchart of another safety warning method provided in an embodiment of the present application; Figure 3 It is a structural schematic diagram of a safety warning system provided in an embodiment of the present application; Figure 4It is a structural diagram of another safety warning system provided in an embodiment of the present application.
[0025] Explanation of the accompanying drawings: 11. Information acquisition module; 12. Warning determination module; 13. Abnormal warning module; 14. Threshold adjustment module; 15. Result verification module. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.
[0027] In the description of the embodiments of the present application, words such as "illustrative", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "illustrative", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "illustrative", "for example" or "for example" is intended to present related concepts in a concrete way.
[0028] In the description of the embodiments of the present application, the term "and / or" is only a kind of association relationship describing the associated objects, indicating that there may be three kinds of relationships, for example, A and / or B, which can represent: A exists alone, B exists alone, and A and B exist at the same time. In addition, unless otherwise specified, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" can explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0029] See also Figure 1 The present application embodiment discloses a flow chart of a safety warning method, which can be implemented by a computer program or run on a safety warning system based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application, specifically including: S101: Obtain the actual flow of people in each activity area at the target activity site.
[0030] Specifically, in an embodiment of the present application, the target activity site refers to the site of a cultural activity, which may be a large-scale music festival, or a crowded activity such as a sports event or a festival celebration. The activity area refers to the area where people are distributed in the target activity site. Exemplarily, if the target activity site is a large-scale music festival, the activity area may be an equipment area, various audience areas, and a ticket inspection area, etc. Furthermore, the actual flow of people refers to the total number of people passing through the activity area during a specific period of time. The larger the actual flow of people, the more likely the corresponding activity area is to be crowded. The specific period of time may be the flow of people within 5 minutes before the current time, or it may be the flow of people within 1 minute before the current time.
[0031] Furthermore, the execution subject of a security warning method disclosed in an embodiment of the present application may be a server, and the server is wirelessly connected to the terminal of the security personnel at the target activity site. The terminal may be a smart phone or a personal computer, and a client or applet related to security warning is installed in the terminal. The server may be a background server of the client or applet, and may be an independent physical server or a server cluster composed of multiple physical servers. Finally, a feasible way to obtain the actual flow of people is to obtain the actual flow of people in the corresponding activity area through a smart camera with AI analysis function preset in each activity area, that is, to realize the flow of people statistics in the corresponding activity area. A smart camera refers to a camera that integrates artificial intelligence technology, which can perform in-depth analysis of captured images or videos, and realize intelligent functions such as recognition, tracking, and detection.
[0032] S102: If the actual flow of people exceeds the corresponding first flow threshold, the corresponding activity area is determined as an abnormal area, and based on the actual flow of people in the abnormal area, the abnormal area, at least one target flow range of the target activity site and at least one corresponding target area, it is determined whether to issue an abnormal warning for the abnormal area.
[0033] Specifically, the target flow range is the flow range of people that are prone to induce abnormal events, and the target area is the activity area where abnormal events are prone to occur under the corresponding target flow range. Among them, abnormal events refer to emergency events that occur suddenly at the activity site and may cause harm or damage to participants, staff and the surrounding environment. In the embodiment of the present application, the abnormal event can be crowding and trampling of the audience, and in other embodiments, the abnormal event can be a fire accident on the scene. Further, if the actual flow of people exceeds the corresponding first flow threshold, it means that the flow of people in the corresponding activity area is large, and it is easy to have crowding and abnormal events, then the corresponding activity area is determined as an abnormal area. Further, the historical statistical records of abnormal events stored in the database are retrieved, and the historical statistical records include information such as the flow of people when historical abnormal events occur in different activity areas. Based on this historical statistical record, the first historical flow range of people where the flow of people is located when the historical abnormal events occur in the activity area of the target activity site is obtained, and the first occurrence number of each first historical flow range is counted. The larger the first occurrence number, the easier it is to induce abnormal events when the flow of people in the activity area is in the corresponding first historical flow range. Then, in the order of the first occurrence number from large to small, a first number of first historical flow ranges are selected from each first historical flow range to be determined as the target flow range. Then, the historical abnormal area where the flow of people is within the single target flow range is obtained at the target activity site, and the second occurrence number of each historical abnormal area is counted. The larger the second occurrence number, the more likely it is that the corresponding historical abnormal area will have abnormal events under the single target flow range, and in the order of the second occurrence number from large to small, a second number of historical abnormal areas are selected from each historical abnormal area to be determined as the target area corresponding to the target flow range. Among them, the historical abnormal area is the activity area where abnormal events have occurred in history.
[0034] Further, a first weight of each target flow range is determined, the first weight being the ratio of the first occurrence number of each target flow range to the sum of the first occurrence numbers of all target flow ranges. A second weight of each target area corresponding to each target flow range is determined, the second weight being the ratio of the second occurrence number of a single target area corresponding to the target flow range to the sum of the second occurrence numbers of all corresponding target areas.
[0035] Furthermore, if this abnormal area exists in each target area corresponding to the target human flow range, then the corresponding target human flow range is determined as the selected range, and the selected range where the actual human flow in the abnormal area is located is determined as the key range. Next, the first product of the first weight of the key range and the second weight of the corresponding abnormal area is calculated. The larger the first product, the greater the possibility that an abnormal event currently occurs in the abnormal area. If the first product is greater than the preset first threshold, it means that the possibility of an abnormal event currently occurring in this abnormal area is relatively high, then it is verified that there is indeed a greater risk of abnormal events occurring in this abnormal area, and then it is determined to perform an abnormal warning for the abnormal area, thereby improving the accuracy of the abnormal warning and avoiding the false triggering of the abnormal warning. In addition, the first human flow threshold corresponding to this abnormal area can be verified and passed.
[0036] If the first product is not greater than the first threshold, it means that the possibility of abnormal events occurring in the abnormal area is small. Then, it is necessary to verify the rationality of the first human flow threshold corresponding to the abnormal area, and then verify whether to issue an abnormal warning. A feasible verification method is: if the human flow values in the selected range are not greater than the first human flow threshold corresponding to the abnormal area, then the corresponding selected range is determined as the first range, and the selected ranges other than the first range in each selected range are determined as the second range. For example, the selected ranges are 10~20, 25~30, and the first human flow threshold is 24, then the first range is 10~20, and the second range is 25~30.
[0037] Further, the second product of the first weight of each first range and the second weight of the corresponding abnormal area is calculated and summed to obtain the sum of the first products. The larger the sum of the first products is, the greater the possibility of abnormal events occurring in the abnormal area when the flow of people is lower than the first flow threshold. The third product of the first weight of each second range and the second weight of the corresponding abnormal area is calculated and summed to obtain the sum of the second products. The larger the sum of the second products is, the greater the possibility of abnormal events occurring in the abnormal area when the flow of people is higher than the first flow threshold. Finally, if the sum of the second products is greater than the sum of the first products, it means that when the flow of people exceeds the first flow threshold, the possibility of abnormal events occurring in the abnormal area is higher than when the flow of people does not exceed the first flow threshold, indicating that the first flow threshold corresponding to the abnormal area is more reasonable and can more accurately determine whether the activity area is an abnormal area, then it is determined that the verification is passed. Otherwise, it is determined that the verification of the first flow threshold corresponding to the abnormal area has not passed. Finally, after the first human flow threshold corresponding to the abnormal area is verified, the actual human flow in the abnormal area exceeds the first human flow threshold, indicating that there is indeed a risk of abnormal events occurring in the abnormal area, and then an abnormal warning is determined for the abnormal area.
[0038] S103: If yes, an abnormal warning for the abnormal area is sent to the terminal of the security personnel.
[0039] Specifically, if it is determined that an abnormal warning is required for an abnormal area, an abnormal warning for this abnormal area will be sent to the terminal of the security personnel, thereby reminding the security personnel to go to the relevant activity area of the target activity site in time to maintain order and supervise, thereby reducing the risk of abnormal events to a certain extent. Once an abnormal event occurs, it can also be intervened and handled in time. In other embodiments, based on the position of the security personnel and the position of the abnormal area, at least one moving path is planned, and the activity area of the path in a single moving path is determined as the path area. If the actual flow of people in the path area is in each target area corresponding to the target flow range, and the path area exists, then the product of the first weight of the target flow range where the actual flow of people in this path area is located and the second weight of the corresponding path area is calculated, and the products corresponding to the single moving path are summed to obtain the sum of the products of the corresponding moving paths. The maximum sum of the products is selected from the sums of the products, and the moving path corresponding to the maximum sum of the products is determined as the best path to go. The possibility of abnormal events occurring in the activity area of the path in this best path to go is relatively high, and based on this best path to go, an abnormal warning for the abnormal area is sent to the terminal of the security personnel. When the security personnel follow this best path to go to the abnormal area, they can better prevent and handle abnormal events that may occur along the way.
[0040] S104: If not, determine a second human flow threshold adapted to the abnormal area, and replace the first human flow threshold corresponding to the abnormal area with the second human flow threshold.
[0041] Specifically, if it is determined that no abnormal warning is performed for this abnormal area, it means that the first human flow threshold corresponding to the abnormal area is wrong, resulting in inaccurate judgment of the abnormal area, then the first human flow threshold corresponding to the abnormal area needs to be adjusted. In the embodiment of the present application, a feasible adjustment method is: after the selected range is determined (see step S102 for details), the fourth product of the first weight of each selected range and the second weight of the corresponding abnormal area is calculated. The larger the fourth product, the greater the possibility of abnormal events when the actual human flow of the abnormal area is within the corresponding selected range. Then, the selected ranges are sorted in order from small to large in the order of the human flow values contained therein to obtain the sorted results. The smaller the human flow values in the selected range, the higher the ranking. Exemplarily, the selected ranges are as follows: 25~30, 10~20, 35~40, etc., then the sorted results are: 10~20, 25~30, 35~40. Furthermore, the first N selected ranges in the sorted result are determined as target selected ranges, the fourth products corresponding to each target selected range are summed to obtain the sum of the third products, and the selected ranges other than the target selected range are determined as remaining selected ranges, the fourth products corresponding to each remaining selected range are summed to obtain the sum of the fourth products. If the sum of the third products is not greater than the sum of the fourth products, it means that the overall possibility of abnormal events occurring in the abnormal areas under the first N candidate ranges does not exceed the overall possibility of abnormal events occurring in the abnormal areas under the remaining candidate ranges, then the first N+1 candidate ranges in the sorted results are re-determined as the target candidate ranges, and the step of summing the fourth products corresponding to each target candidate range is repeated to calculate the sum of the third products corresponding to the first N+1 candidate ranges and the sum of the fourth products corresponding to the remaining candidate ranges excluding the first N+1 candidate ranges. If the sum of the third products is greater than the sum of the fourth products at this time, it means that the critical value for judging whether there is an abnormal risk in the abnormal area is within the Nth candidate range, then the end value of the Nth candidate range is determined as the second human flow threshold adapted to the abnormal area, and the first human flow threshold corresponding to the abnormal area is replaced by the second human flow threshold. This achieves dynamic adjustment of the human flow threshold, and more accurately screens out abnormal activity areas.
[0042] See also Figure 2 The present application embodiment discloses a flowchart of another safety warning method, which can be implemented by a computer program or run on a safety warning system based on the von Neumann system. The computer program can be integrated into an application or run as an independent tool application, specifically including: S201: Obtain the actual flow of people in each activity area at the target activity site.
[0043] S202: If the actual flow of people exceeds the corresponding first flow threshold, the corresponding activity area is determined as an abnormal area, and based on the actual flow of people in the abnormal area, the abnormal area, at least one target flow range of the target activity site and the corresponding at least one target area, it is determined whether to issue an abnormal warning for the abnormal area.
[0044] S203: If yes, an abnormal warning for the abnormal area is sent to the terminal of the security personnel.
[0045] S204: If not, determine a second human flow threshold adapted to the abnormal area, and replace the first human flow threshold corresponding to the abnormal area with the second human flow threshold.
[0046] For details, please refer to steps S101-S104, which will not be described in detail here.
[0047] S205: If there is no abnormal area in the target activity site, then for each activity area, obtain the second historical human flow range where the human flow was when the historical abnormal event occurred, count the first occurrence frequency of each second historical human flow range, and select the third number of second historical human flow ranges from each second historical human flow range in order of the first occurrence frequency from large to small to determine as the important human flow range.
[0048] S206: Obtaining correlation factors that appear when the flow of people is within a single important flow of people and a historical abnormal event occurs, counting the second occurrence number of each correlation factor, and selecting a fourth number of correlation factors from the correlation factors in descending order of the second occurrence number to determine as important correlation factors.
[0049] Specifically, if each activity area in the target activity site does not exceed the corresponding first human flow threshold, it means that there is no abnormal area in the target activity site, then the abnormal event occurrence record is generated, and the abnormal event occurrence record includes the activity area where the abnormal event occurred, as well as the human flow and correlation factors when the abnormal event occurred. Based on the abnormal event occurrence record, for a single activity area, the second historical human flow range where the human flow was located when the historical abnormal event occurred is obtained, the first occurrence frequency of each second historical human flow range is counted, and in the order of the first occurrence frequency from large to small, the third number of second historical human flow ranges are selected from each second historical human flow range to determine as an important human flow range, that is, the human flow range where the abnormal event is likely to occur in the activity area. Further, when the human flow is within a single important human flow range and a historical abnormal event occurs, the associated factors that appear with it are obtained, the second occurrence frequency of each associated factor is counted, the larger the second occurrence frequency, the more likely the corresponding associated factor is to induce an abnormal event, and in the order of the second occurrence frequency from large to small, the fourth number of associated factors are selected from each associated factor to determine as the important associated factors corresponding to the important human flow range, that is, the associated factors that are likely to induce abnormal events. Among them, the correlation factor is the influencing factor that induces abnormal events. The correlation factor can be weather conditions, such as rain, wind or snow. In other embodiments, the correlation factor can also be the temporary suspension of activities, which will affect the order of the crowd on site, cause crowding and eventually cause abnormal events.
[0050] S207: Determine a third weight for each important range of human flow, and determine a fourth weight for each important correlation factor corresponding to each important range of human flow.
[0051] S208: Verify the result that there is no abnormal area in the target activity site according to the third weight of each activity area and the corresponding fourth weights.
[0052] Specifically, in the embodiment of the present application, the third weight is the ratio of the first occurrence frequency of each important flow range to the sum of the first occurrence frequencies of all important flow ranges, and the fourth weight is the ratio of the second occurrence frequency of a single important correlation factor corresponding to the important flow range to the sum of the second occurrence frequencies of all corresponding important correlation factors. Further, at least one actual correlation factor currently appearing at the target activity site can be obtained through a preset meteorological tool. If there is at least one actual correlation factor for each important correlation factor corresponding to the important flow range, the corresponding important flow range is determined as the reference range. Then, if the actual flow of people in a single activity area is within the reference range corresponding to the activity area, the corresponding reference range is determined as the final range, and then for the activity area, the third weight of the final range and the fifth product of the fourth weight of each corresponding actual correlation factor are calculated, and each fifth product is summed to obtain the sum of the fifth products of the activity area. The larger the sum of the fifth products, the greater the possibility of abnormal events occurring in the corresponding activity area under the actual correlation factor currently appearing. Furthermore, if the sum of the fifth products is greater than the preset second threshold, it means that the corresponding activity area is more likely to have an abnormal event, and the corresponding activity area is likely to have an abnormal event, but its actual human flow does not exceed the corresponding first human flow threshold, indicating that the corresponding first human flow threshold is incorrect, then the activity area is determined as the area to be adjusted, and the first human flow threshold corresponding to the area to be adjusted is adjusted. The specific adjustment process is: receiving a new human flow threshold sent by the terminal of the receiving personnel, and this new human flow threshold is less than the actual human flow of the area to be adjusted.
[0053] The implementation principle of a safety warning method in an embodiment of the present application is as follows: if the actual flow of people exceeds the corresponding first flow threshold, it means that the corresponding activity area has a large flow of people, and it is easy to be crowded and abnormal events occur, then the corresponding activity area is determined as an abnormal area. Whether to issue an abnormal warning for the abnormal area requires further verification. Based on the target flow range and the corresponding at least one target area, the possibility of abnormal events occurring in the current abnormal area is analyzed, and then it is accurately determined whether to issue a safety warning for the abnormal area. If it is determined to issue a warning for the abnormal area, then an abnormal warning is sent to the security personnel to improve the accuracy of the warning and avoid false triggering of the warning; if it is determined not to issue a warning for the abnormal area, it means that the first flow threshold corresponding to the abnormal area is unreasonable, then it is adjusted, thereby improving the accuracy of abnormal area determination and improving the accuracy of safety warnings for cultural activities.
[0054] The following is a system embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the system embodiment of the present application, please refer to the method embodiment of the present application.
[0055] See also Figure 3 , is a schematic diagram of the structure of the security warning system provided in the embodiment of the present application. The application in the security warning system can be realized as all or part of the system through software, hardware or a combination of both. The system includes an information acquisition module 11, a warning determination module 12, an abnormal warning module 13 and a threshold adjustment module 14.
[0056] The information acquisition module 11 is used to obtain the actual flow of people in each activity area at the target activity site; The early warning determination module 12 is used to determine the corresponding activity area as an abnormal area if the actual human flow exceeds the corresponding first human flow threshold, and determine whether to issue an abnormal early warning for the abnormal area based on the actual human flow in the abnormal area, the abnormal area, at least one target human flow range of the target activity site, and the corresponding at least one target area, wherein the target human flow range is the human flow range where the human flow is likely to induce abnormal events, and the target area is the activity area where abnormal events are likely to occur under the corresponding target human flow range; The abnormal warning module 13 is used to send an abnormal warning for the abnormal area to the terminal of the security personnel if so; The threshold adjustment module 14 is used to determine a second human flow threshold adapted to the abnormal area if no, and replace the first human flow threshold corresponding to the abnormal area with the second human flow threshold.
[0057] Optionally, the early warning determination module 12 is specifically used for: Obtaining the first historical crowd flow range where the crowd flow is located when a historical abnormal event occurs in the activity area of the target activity site, counting the first occurrence times of each first historical crowd flow range, and selecting the first number of first historical crowd flow ranges from each first historical crowd flow range in descending order of the first occurrence times to determine as the target crowd flow range; Obtain historical abnormal areas in the target activity site where the flow of people is within the range of a single target flow of people, count the second occurrence times of each historical abnormal area, and select a second number of historical abnormal areas from each historical abnormal area in descending order of the second occurrence times to determine as target areas, the target area being the historical abnormal area corresponding to the range of a single target flow of people, and the historical abnormal area being an activity area where abnormal events have occurred in history; Determine a first weight for each target flow range, and determine a second weight for each target area corresponding to each target flow range, wherein the first weight is a ratio of a first occurrence number of each target flow range to a sum of first occurrence numbers of all target flow ranges, and the second weight is a ratio of a second occurrence number of a single target area corresponding to the target flow range to a sum of second occurrence numbers of all corresponding target areas; Whether to issue an abnormal warning for the abnormal area is determined according to the actual flow of people in the abnormal area, the abnormal area, the first weight and the corresponding second weights.
[0058] Optionally, the early warning determination module 12 is specifically used for: If there are abnormal areas in each target area corresponding to the target passenger flow range, the corresponding target passenger flow range is determined as the candidate range, and the candidate range where the actual passenger flow in the abnormal area is located is determined as the key range; Calculate a first product of a first weight of a key range and a second weight of a corresponding abnormal area, and compare the first product with a preset first threshold; If the first product is greater than the first threshold, it is determined that an abnormal warning is issued for the abnormal area; If the first product is not greater than the first threshold, the first pedestrian flow threshold corresponding to the abnormal area is verified, and after the verification passes, it is determined to issue an abnormal warning for the abnormal area.
[0059] Optionally, the early warning determination module 12 is specifically used for: If the human flow values in the candidate range are not greater than the first human flow threshold corresponding to the abnormal area, the corresponding candidate range is determined as the first range, and the candidate ranges other than the first range in the candidate ranges are determined as the second range; Calculate the second product of the first weight of each first range and the second weight of the corresponding abnormal area and sum them to obtain the sum of the first products, and calculate the third product of the first weight of each second range and the second weight of the corresponding abnormal area and sum them to obtain the sum of the second products; If the sum of the second products is greater than the sum of the first products, it is determined that the first pedestrian flow threshold corresponding to the abnormal area has passed the verification; If the sum of the second products is less than the sum of the first products, it is determined that the first pedestrian flow threshold value check corresponding to the abnormal area has failed.
[0060] Optionally, the threshold adjustment module 14 is specifically used to: If there are abnormal areas in each target area corresponding to the target passenger flow range, the corresponding target passenger flow range is determined as the candidate range; Calculate the fourth product of the first weight of each candidate range and the second weight of the corresponding abnormal area, and sort the candidate ranges in ascending order of the included human flow values to obtain the sorted result. The smaller the included human flow value, the higher the corresponding candidate range is ranked; Determine the first N candidate ranges in the sorted results as target candidate ranges, sum the fourth products corresponding to the target candidate ranges to obtain the sum of the third products, determine the candidate ranges other than the target candidate range as remaining candidate ranges, sum the fourth products corresponding to the remaining candidate ranges to obtain the sum of the fourth products; If the sum of the third products is not greater than the sum of the fourth products, the first N+1 selected ranges in the sorted results are determined as target selected ranges, and the step of summing the fourth products corresponding to each target selected range is repeated; if the corresponding sum of the third products is greater than the corresponding sum of the fourth products, the second pedestrian flow threshold adapted to the abnormal area is determined based on the Nth selected range.
[0061] Optional, such as Figure 4 As shown, the system also includes a result verification module 15, which is specifically used for: If there is no abnormal area in the target activity site, then for each activity area, obtain the second historical human flow range where the human flow was located when the historical abnormal event occurred, count the first occurrence frequency of each second historical human flow range, and select the third number of second historical human flow ranges from each second historical human flow range in descending order of the first occurrence frequency to determine as the important human flow range; Obtaining the associated factors that appear when the flow of people is within a single important flow range and a historical abnormal event occurs, counting the second occurrence frequency of each association factor, and selecting a fourth number of association factors from each association factor in descending order of the second occurrence frequency to determine as important association factors, the association factor is an influencing factor that induces the abnormal event, and the important association factor is the association factor corresponding to a single key flow range; Determine the third weight of each important human flow range, and determine the fourth weight of each important correlation factor corresponding to each important human flow range, the third weight is the ratio of the first occurrence frequency of each important human flow range to the sum of the first occurrence frequencies of all important human flow ranges, and the fourth weight is the ratio of the second occurrence frequency of a single important correlation factor corresponding to the important human flow range to the sum of the second occurrence frequencies of all corresponding important correlation factors; According to the third weight of each activity area and the corresponding fourth weights, the result that no abnormal area exists in the target activity site is verified.
[0062] Optionally, the result verification module 15 is specifically used for: Obtain at least one actual correlation factor that appears at the target activity site, and if there is at least one actual correlation factor among the important correlation factors corresponding to the important flow range, determine the corresponding important flow range as a reference range; If the actual flow of people in a single activity area is within the corresponding reference range, the corresponding reference range is determined as the final range, and the fifth product of the third weight of the final range and the fourth weight of each corresponding actual correlation factor is calculated, and each fifth product is summed to obtain the sum of the fifth products of the corresponding activity area; If the sum of the fifth products is greater than the preset second threshold, the corresponding activity area is determined as the area to be adjusted, and the first pedestrian flow threshold corresponding to the area to be adjusted is adjusted.
[0063] It should be noted that the security warning system provided in the above embodiment only uses the division of the above functional modules as an example when executing the security warning method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the security warning system provided in the above embodiment and the security warning method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0064] An embodiment of the present application further discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, a security warning method of the above embodiment is adopted.
[0065] Among them, the computer program can be stored in a computer-readable medium, the computer program includes computer program code, the computer program code can be in the form of source code, object code, executable file or certain middleware, etc. The computer-readable medium includes any entity or system that can carry the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the computer-readable medium includes but is not limited to the above-mentioned components.
[0066] Among them, through this computer-readable storage medium, a security warning method of the above embodiment is stored in a computer-readable storage medium, and is loaded and executed on a processor to facilitate the storage and application of the above method.
[0067] An embodiment of the present application further discloses an electronic device, in which a computer program is stored in a computer-readable storage medium, and when the computer program is loaded and executed by a processor, the above-mentioned security warning method is adopted.
[0068] The electronic device may be a desktop computer, a laptop computer, a cloud server or other electronic device, and the electronic device includes but is not limited to a processor and a memory. For example, the electronic device may also include input and output devices, a network access device, and a bus.
[0069] Among them, the processor can adopt a central processing unit (CPU). Of course, according to actual usage, other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. can also be adopted. The general-purpose processor can adopt a microprocessor or any conventional processor, etc., and this application does not impose any restrictions on this.
[0070] Among them, the memory can be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device, or it can be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SMC), a secure digital card (SD) or a flash memory card (FC) equipped on the electronic device. Moreover, the memory can also be a combination of an internal storage unit and an external storage device of the electronic device. The memory is used to store computer programs and other programs and data required by the electronic device. The memory can also be used to temporarily store data that has been output or is to be output, and this application does not impose any restrictions on this.
[0071] Among them, through this electronic device, a safety warning method of the above embodiment is stored in the memory of the electronic device, and is loaded and executed on the processor of the electronic device, which is convenient for use.
[0072] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. This application is intended to cover any variation, use or adaptive change of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.
Claims
1. A safety early warning method, characterized in that: The method comprises: Obtain the actual flow of people in each activity area at the target activity site; If the actual human flow exceeds the corresponding first human flow threshold, the corresponding activity area is determined as an abnormal area, and based on the actual human flow in the abnormal area, the abnormal area, at least one target human flow range of the target activity site, and at least one corresponding target area, it is determined whether to issue an abnormal warning for the abnormal area, the target human flow range being a human flow range where human flow is prone to induce abnormal events, and the target area being an activity area where abnormal events are prone to occur under the corresponding target human flow range; If yes, an abnormal warning for the abnormal area is sent to the terminal of the security personnel; If not, a second human flow threshold adapted to the abnormal area is determined, and the first human flow threshold corresponding to the abnormal area is replaced by the second human flow threshold.
2. The safety warning method according to claim 1, characterized in that: The determining whether to issue an abnormal warning for the abnormal area based on the actual flow of people in the abnormal area, the abnormal area, at least one target flow range of people at the target activity site, and at least one corresponding target area specifically includes: Obtaining a first historical crowd flow range where the crowd flow is located when a historical abnormal event occurs in the activity area of the target activity site, counting the first occurrence times of each of the first historical crowd flow ranges, and selecting a first number of first historical crowd flow ranges from each of the first historical crowd flow ranges in descending order of the first occurrence times to determine as the target crowd flow range; Acquire historical abnormal areas in the target activity site where the flow of people is within a single target flow of people range, count the second occurrence number of each of the historical abnormal areas, and select a second number of historical abnormal areas from each of the historical abnormal areas in descending order of the second occurrence number to determine as target areas, the target area being a historical abnormal area corresponding to a single target flow of people range, and the historical abnormal area being an activity area where abnormal events have occurred in history; Determine a first weight for each of the target human flow ranges, and determine a second weight for each of the target areas corresponding to each of the target human flow ranges, wherein the first weight is a ratio of a first occurrence number of each target human flow range to a sum of first occurrence numbers of all target human flow ranges, and the second weight is a ratio of a second occurrence number of a single target area corresponding to the target human flow range to a sum of second occurrence numbers of all corresponding target areas; Whether to issue an abnormal warning for the abnormal area is determined according to the actual flow of people in the abnormal area, the abnormal area, the first weight and the corresponding second weights.
3. The safety warning method according to claim 2, characterized in that: The determining whether to issue an abnormal warning for the abnormal area according to the actual flow of people in the abnormal area, the abnormal area, the first weight and the corresponding second weights specifically includes: If the abnormal area exists in each target area corresponding to the target human flow range, the corresponding target human flow range is determined as a candidate range, and the candidate range where the actual human flow of the abnormal area is located is determined as a key range; Calculating a first product of a first weight of the key range and a second weight of a corresponding abnormal area, and comparing the first product with a preset first threshold; If the first product is greater than the first threshold, determining to issue an abnormal warning for the abnormal area; If the first product is not greater than the first threshold, the first pedestrian flow threshold corresponding to the abnormal area is verified, and after the verification passes, it is determined to issue an abnormal warning for the abnormal area.
4. The safety warning method according to claim 3, characterized in that: The checking of the first human flow threshold corresponding to the abnormal area specifically includes: If the human flow values in the selected range are not greater than the first human flow threshold corresponding to the abnormal area, the corresponding selected range is determined as the first range, and the selected ranges other than the first range in the selected ranges are determined as the second range; Calculate the second product of the first weight of each of the first ranges and the second weight of the corresponding abnormal area and sum them to obtain the sum of the first products, and calculate the third product of the first weight of each of the second ranges and the second weight of the corresponding abnormal area and sum them to obtain the sum of the second products; If the sum of the second products is greater than the sum of the first products, it is determined that the first pedestrian flow threshold corresponding to the abnormal area has passed the verification; If the sum of the second products is less than the sum of the first products, it is determined that the first pedestrian flow threshold check corresponding to the abnormal area has failed.
5. The safety warning method according to claim 2, characterized in that: The determining of a second human flow threshold adapted to the abnormal area specifically includes: If the abnormal area exists in each target area corresponding to the target human flow range, the corresponding target human flow range is determined as the to-be-selected range; Calculate the fourth product of the first weight of each of the to-be-selected ranges and the second weight of the corresponding abnormal area, and sort the to-be-selected ranges in ascending order of the included human flow values to obtain a sorted result, wherein the smaller the included human flow value, the higher the corresponding to-be-selected range is sorted; Determine the first N candidate ranges in the sorted result as target candidate ranges, sum the fourth products corresponding to the target candidate ranges to obtain the sum of the third products, determine the candidate ranges other than the target candidate range as remaining candidate ranges, sum the fourth products corresponding to the remaining candidate ranges to obtain the sum of the fourth products; If the sum of the third products is not greater than the sum of the fourth products, the first N+1 selected ranges in the sorted results are determined as target selected ranges, and the step of summing the fourth products corresponding to each target selected range is repeated; if the corresponding sum of the third products is greater than the corresponding sum of the fourth products, a second pedestrian flow threshold adapted to the abnormal area is determined based on the Nth selected range.
6. The safety warning method according to claim 1, characterized in that: The method further comprises: If there is no abnormal area in the target activity site, then for each of the activity areas, a second historical human flow range in which the human flow was located when the historical abnormal event occurred is obtained, the first occurrence frequency of each of the second historical human flow ranges is counted, and a third number of second historical human flow ranges are selected from each of the second historical human flow ranges in descending order of the first occurrence frequency to determine as important human flow ranges; Obtaining the associated correlation factors that appear when the flow of people is within a single important flow of people range and a historical abnormal event occurs, counting the second occurrence frequency of each of the correlation factors, and selecting a fourth number of correlation factors from the correlation factors in descending order of the second occurrence frequency to determine as important correlation factors, wherein the correlation factors are influencing factors that induce abnormal events, and the important correlation factors are correlation factors corresponding to a single key flow of people range; Determine a third weight for each of the important human flow ranges, and determine a fourth weight for each of the important correlation factors corresponding to each of the important human flow ranges, wherein the third weight is a ratio of a first occurrence frequency of each important human flow range to a sum of first occurrence frequencies of all important human flow ranges, and the fourth weight is a ratio of a second occurrence frequency of a single important correlation factor corresponding to an important human flow range to a sum of second occurrence frequencies of all corresponding important correlation factors; According to the third weight of each of the activity areas and the corresponding fourth weights, a result that no abnormal area exists in the target activity site is verified.
7. The safety warning method according to claim 6, characterized in that: The verifying, based on the third weight of each activity area and the corresponding fourth weights, that there is no abnormal area in the target activity site specifically includes: Acquire at least one actual correlation factor appearing at the target activity site, and if there is at least one actual correlation factor among the important correlation factors corresponding to the important human flow range, determine the corresponding important human flow range as a reference range; If the actual flow of people in a single activity area is within the corresponding reference range, the corresponding reference range is determined as the final range, and the fifth product of the third weight of the final range and the fourth weight of each corresponding actual correlation factor is calculated, and the fifth products are summed to obtain the sum of the fifth products of the corresponding activity area; If the sum of the fifth products is greater than a preset second threshold, the corresponding activity area is determined as an area to be adjusted, and the first pedestrian flow threshold corresponding to the area to be adjusted is adjusted.
8. A safety warning system, characterized in that: include: An information acquisition module (11) is used to acquire the actual flow of people in each activity area at the target activity site; An early warning determination module (12) is used to determine the corresponding activity area as an abnormal area if the actual human flow exceeds the corresponding first human flow threshold, and determine whether to issue an abnormal early warning for the abnormal area based on the actual human flow in the abnormal area, the abnormal area, at least one target human flow range of the target activity site, and at least one corresponding target area, wherein the target human flow range is a human flow range where human flow is likely to induce abnormal events, and the target area is an activity area where abnormal events are likely to occur under the corresponding target human flow range; An abnormal warning module (13) is used to send an abnormal warning for the abnormal area to the terminal of the security personnel if so; A threshold adjustment module (14) is used to determine a second human flow threshold adapted to the abnormal area if no, and replace the first human flow threshold corresponding to the abnormal area with the second human flow threshold.
9. A computer-readable storage medium having a computer program stored therein, characterized in that: When the computer program is loaded and executed by a processor, the method according to any one of claims 1 to 7 is adopted.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor loads and executes the computer program, the method according to any one of claims 1 to 7 is adopted.