Distributed monitoring campus safety early warning method and system

By building a combination of sound database and image monitoring, the sound characteristics and crowd behavior in campus activities are identified, and the monitoring sensitivity is dynamically adjusted, and the problem of false alarms of campus automatic alarm system is solved, achieving intelligent and efficient response to campus safety.

CN118887598APending Publication Date: 2024-11-01HUNAN SENNA INFORMATION TECH CO LTD
View PDF 0 Cites 12 Cited by

Patent Information

Application Number
CN202410795331.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing campus automatic alarm system is prone to false alarms due to students' cheers and shouts in vibrant campus activities, making it difficult to accurately identify normal activity noise and emergency sounds, and lacks environmental adaptability, which affects activity order and student emotions.

Method used

By building a sound database, identifying the fundamental frequency and harmonic characteristics of the sound, combining image monitoring and sentiment analysis, dynamically adjusting the monitoring sensitivity, distinguishing between normal activities and emergency situations, monitoring crowd behavior and facial features in real time, and dynamically adjusting the camera focus area and video recordings Quality to deal with different scenarios.

Benefits of technology

It significantly reduces false alarms and missed reports, improves the accuracy and response efficiency of campus safety warnings, and provides intelligent and adaptive security guarantees to ensure that alarms can be triggered quickly and effectively in emergencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887598A_ABST
    Figure CN118887598A_ABST
Patent Text Reader

Abstract

The invention provides a campus safety early warning method and system based on distributed monitoring, and the method comprises the steps: obtaining sound samples, such as a cheering, a palm sound and a shouting, of a normal activity, and recognizing the type of a sound event; analyzing the sound data and comparing the sound data with database features to evaluate a matching degree; comparing the emotion recognition result with the emergency sound feature, and judging whether the emergency sound exists in the field activity sound or not; monitoring the direction and speed of the movement track of the crowd and the emotional characteristics of students through image and video data; setting sensitivity parameters of the monitoring system according to the real-time activity information and the time division places of the scene; adjusting sensitivity parameters of the monitoring system according to the dynamic change of the people flow density in different stages of the campus activity; and adjusting the focusing area, the video quality and the monitoring coverage range of the camera in the monitoring node according to the emotion recognition of the sound and the crowd behavior analysis result. According to the method provided by the invention, false alarm and missing alarm are remarkably reduced, and reliable campus safety guarantee is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology, and in particular to a distributed monitoring campus safety early warning method and system. Background Art

[0002] On campus, when holding activities such as selection or entertainment, students usually express their opinions and reactions, which may include loud noises, applause, or even shouting. If such a scene is combined with an automatic alarm system, a technical challenge will arise, namely how to accurately distinguish between student expressions in normal activities and emergency situations that actually require alarms. Current alarm systems may be mainly based on, for example, the decibel of the sound. In a vibrant campus activity, students' cheering and shouting can easily reach the alarm system's warning threshold, resulting in false alarms. Such false alarms not only interfere with the activities, but also have a negative impact on students' emotions and behaviors, and may cause students to distrust the alarm system. The core of the technical problem is that the alarm system must be intelligent enough to distinguish between normal activity noise and real danger signals. This includes identifying sound features in different scenarios and distinguishing them from sound patterns in emergency situations. At the same time, the alarm system also needs to be able to understand and adapt to different activity environments, and may also combine contextual information, such as the nature, time, location, and expected noise level of the activity. Therefore, how to improve the environmental adaptability and recognition accuracy of the alarm system, avoid false alarms caused by normal sound stimulation in campus activities, and ensure that the alarm can be triggered quickly and effectively in a real emergency is an issue that needs to be solved urgently. Summary of the invention

[0003] The present invention provides a distributed monitoring campus safety early warning method, which mainly includes:

[0004] Build a sound database based on the cheering, applause, and shouting sound samples recorded during campus activities, identify and record the frequency and amplitude of the fundamental frequency and harmonics, determine the sound starting characteristics and sound ending characteristics of the sound samples, and build a sound event recognition model to determine the sound event type of the sound samples;

[0005] Extract the standard feature set of normal activities according to the sound database, obtain the sound data of the live activity, and compare it with the features in the sound database to obtain the matching degree between the live activity sound and the normal activity sound. If the matching degree is lower than the threshold, use fast Fourier transform to extract the fundamental frequency of the live sound, and then perform sound emotion recognition;

[0006] According to the sound emotion recognition results and the emergency sound features in the database, determine whether the on-site sound belongs to the emergency sound;

[0007] Obtain on-site image recognition and video surveillance data, judge emergency situations based on real-time sound data and mark abnormal video data, monitor the direction and speed of crowd movement in real time, extract students' facial feature points and judge their emotional state, use FaceNet for identity authentication and track individuals;

[0008] Set monitoring sensitivity parameters based on real-time activity information and the time and location of the scene, measure the ambient noise level through sound sensors and adjust audio monitoring sensitivity, and use ambient light sensor data to adjust camera exposure settings and image enhancement functions;

[0009] Adaptively adjust the sensitivity parameters of the monitoring system according to the dynamic changes in crowd density at different stages of the event;

[0010] Based on the results of emotion recognition and crowd behavior analysis, the source of abnormal sounds and the location of abnormal events are recorded, and the focus area, video quality and monitoring coverage of the cameras in the monitoring nodes are dynamically adjusted.

[0011] Further optionally, the method of constructing a sound database based on the cheering, applause, and shouting sound samples recorded during campus activities, identifying and recording the frequency and amplitude of the fundamental frequency and harmonics, determining the sound start characteristics and sound end characteristics of the sound samples, and constructing a sound event recognition model to determine the sound event type of the sound samples includes:

[0012] During campus activities, monitoring equipment is used to record sound samples of cheers, applause, and shouts in different activity venues to build a sound database; background noise is removed through audio editing software; the recording samples are divided into multiple short time periods, and each short time period is subjected to fast Fourier transform to obtain its spectrum diagram, and the distribution and relative intensity of the high-frequency, medium-frequency, and low-frequency components of each short time period are recorded to form a spectrum feature database; the recording samples are divided into short time periods, and short-time Fourier transform is applied to each time period to obtain the spectrum diagram of each time period, and the dynamic characteristics of the sound are extracted, including rhythm and speed; through the spectrum diagram, the frequency component with the largest amplitude is identified as the fundamental frequency, and the frequency value of the fundamental frequency is recorded, and it is used as the main pitch feature of the sound sample; through the spectrum diagram, the peak value at the integer multiple frequency of the fundamental frequency is identified as the harmonic, and the frequency and amplitude value of each harmonic is recorded, and the calculation and record The amplitude ratio between each harmonic and the fundamental frequency forms the harmonic structure feature; the frequency and amplitude relationship between the fundamental frequency and each harmonic is organized into a table, and the amplitude ratio between the fundamental frequency and each harmonic is recorded; the start and end time periods of the sound are determined according to the frequency and amplitude changes of each time period of the recording sample divided into short time periods; according to the spectrum diagram of each time period, the frequency component and amplitude value of the sound start time period are obtained to form the sound start feature, and the frequency component and amplitude value of the sound end time period are obtained to form the sound end feature; according to the sound start feature and sound end feature of the sound sample, a complete spectral feature is integrated; according to the spectral features of the sound samples with marked sound events, a recurrent neural network algorithm is used for model training, a sound event recognition model is constructed, and the sound event type of the sound sample is determined. The sound event types include cheering, applause, shouting, alarms, conflicts, and screams.

[0013] Further optionally, the extracting of a standard feature set of normal activities according to a sound database, obtaining live activity sound data, and comparing the data with the features in the sound database to obtain a matching degree between the live activity sound and the normal activity sound, and if the matching degree is lower than a threshold, extracting the fundamental frequency of the live sound using a fast Fourier transform, and then performing sound emotion recognition, includes:

[0014] A standard feature set of normal activity sounds is extracted through a sound database, the standard feature set including frequency features, time-frequency distribution features, fundamental frequency and harmonic structure features of cheering, applause and shouting; live activity sound data is acquired in real time through a recording device; the live activity sound data and the standard feature set data of normal activity sounds are respectively represented as time series, and the two sets of time series data are input into a DTW algorithm to generate a distance matrix, in which each element in the distance matrix represents the distance between two time points; the minimum distance between the two sets of time series data is calculated to obtain the matching degree of normal activity sounds and live activity sounds; if the matching degree between the live activity sound data and the normal activity sound data is lower than a preset matching degree threshold, the fundamental frequency of the live activity sound is extracted using a fast Fourier transform; if the fundamental frequency is greater than a preset fundamental frequency threshold, it indicates the presence of tension or panic.

[0015] Further optionally, judging whether the on-site sound is an emergency sound according to the sound emotion recognition result and the emergency sound features in the database includes:

[0016] If the on-site event sound data contains language components, the on-site event sound data is transcribed through the ASR system to generate the on-site event sound text; based on the on-site event sound text, the TF-IDF algorithm is used to extract language content features, including keywords, sentence structure, and emergency terms; emotion recognition is performed based on the fundamental frequency of the speaker's voice; the sound event recognition model is used to determine the sound event type of the on-site event sound, and the number of occurrences of different types of sound events is counted as context information features; based on the language content features, emotion recognition results, and context information features obtained at the event site, the support vector machine algorithm is used to train the model, classify the on-site event sound data, and determine whether there is an emergency sound in the current on-site event sound; if there is an emergency sound in the on-site event sound, the emergency response alarm is triggered to notify relevant personnel to handle the emergency.

[0017] Further optionally, the acquisition of on-site image recognition and video surveillance data, judging emergency situations based on real-time sound data and marking abnormal video data, real-time monitoring of the direction and speed of crowd movement trajectories, extracting student facial feature points and judging the student emotional state, using FaceNet for identity authentication and tracking individuals, includes:

[0018] The video data of the activity site is obtained through the camera, and the date and time of each frame are automatically recorded to form a time tag; the geographical location information of the monitoring scene is obtained through the GPS positioning system; the exposure and focus parameters of the camera are adjusted according to the light conditions and weather conditions to optimize the video quality; based on the real-time sound data of the activity environment, it is determined whether the sound of the on-site activity is an emergency sound. If the judgment result is an emergency sound, the abnormal video data is marked; the video data marked as abnormal is analyzed frame by frame, the type and duration of the activity are recorded, and the optical flow method is used to detect abnormal behaviors of students' movement and stay in the video; the YOLO algorithm is used to detect each The algorithm detects people and continuously tracks each detected individual using the SORT algorithm, obtains the motion trajectory of each person in the video, records their positions at different time points, segments the motion trajectory of each person, calculates the direction and speed of each trajectory, uses a path map to visualize the flow path of the crowd, and displays the main movement direction and flow path of the crowd; divides the video scene into grid-shaped areas, counts the number of people in each grid area, obtains the density distribution at each time point, uses a heat map to visualize the density of the crowd, and identifies high-density areas with a density higher than the preset density threshold; uses the MTCNN algorithm to extract the facial position of the students in each frame of the video, and uses the Facial Landmark Detection algorithm to extract the feature points of each facial area, including eyes, eyebrows, nose, mouth and facial contours; uses the convolutional neural network algorithm to train the model based on the extracted feature points of the facial area to judge the emotional state of the students; uses FaceNet for facial identity verification, confirms the identity of the individual, and continuously tracks the individual students; if the video data shows that there is a fall or fight in the crowd, an alarm is triggered to notify the security personnel to handle it.

[0019] Further optionally, the monitoring sensitivity parameters are set according to the time and location of the real-time activity information and the scene, the ambient noise level is measured by a sound sensor and the audio monitoring sensitivity is adjusted, and the camera exposure setting and image enhancement function are adjusted using ambient light sensor data, including:

[0020] Through the intelligent cameras deployed in various areas of the campus, real-time video of activity scenes is obtained, and the YOLO algorithm is used to identify the activity types in the video, and the occurrence time and duration of each activity type are recorded. Activity types include breaks, sports activities, and assemblies; the location of the activity is determined based on the activity type identification results and campus map data, and the activity area is marked using the camera's GPS positioning information and the preset campus map; the monitoring sensitivity parameters are set according to different activity types and activity locations; the real-time environmental noise level is measured through the sound sensor and compared with the preset background noise level threshold. If the real-time noise level is higher than the threshold, the sensitivity of audio monitoring is reduced; if the real-time noise level is lower than the threshold, the sensitivity of audio monitoring is increased; real-time lighting condition data is obtained through the ambient light sensor, and the camera's exposure settings and image enhancement functions are adjusted according to the lighting conditions; the stability of the monitoring system is monitored in real time, including the hardware status and software operation status, and a fault alarm mechanism is set to promptly notify maintenance personnel to handle it.

[0021] Further optionally, the adaptive adjustment of the sensitivity parameters of the monitoring system according to the dynamic changes of the density of human traffic at different stages of campus activities includes:

[0022] Acquire sound and image data in different types of activities, including sound frequency, volume, and student behavior in images; acquire historical activity data from the monitoring system, including sound and image features of the same type of activity, as well as records of emergencies; use the YOLO algorithm to count the flow of people on video frames, and obtain the real-time flow and density of people in the current activity venue; acquire real-time sound data, determine the baseline volume and frequency distribution of the current environmental sound, and evaluate whether there are abnormal sound performances in the current activity, including determining whether there are abnormal sound frequencies and volume changes; acquire real-time image data, and use the optical flow method to determine the movement of objects and crowd behavior in the activity venue, and identify abnormal behaviors in the activity venue, including fast running and crowding; acquire the sensitivity parameters of the current monitoring system through historical activity data, calculate the deviation between the current sound and image data and the historical activity data, and dynamically adjust the sensitivity parameters of the monitoring system if the deviation exceeds the preset threshold; adjust the sensitivity of the monitoring system according to the progress of the activity, including the start, ongoing, and end stages, according to the needs of each stage, and obtain instant feedback results through real-time monitoring, and the feedback results are sound and image alarm trigger data.

[0023] Further optionally, the recording of the source of abnormal sound and the location of abnormal event according to the results of emotion recognition and crowd behavior analysis of sound, and the dynamic adjustment of the focus area, video quality and monitoring coverage of the camera in the monitoring node include:

[0024] Acquire the abnormal data marked in the results of voice emotion recognition and crowd behavior analysis, including the source of abnormal sound, the location of abnormal event and its time information; by comparing the abnormal marks in the sound and image data, determine whether there are coordinated abnormal events, which are abnormal events that occur simultaneously at the same location and time range; if the judgment result is indeed an abnormal event, issue an instruction to adjust the monitoring node; according to the location information of the abnormal event, send an instruction to adjust the focus area; if the location of the abnormal event is outside the current monitoring range, send the instruction to the camera closest to the current camera for monitoring coverage; automatically increase the video resolution and frame rate of the monitoring area marked as abnormal; if it is determined that the monitoring coverage needs to be expanded, call the backup camera or adjust the monitoring angle of the existing camera to conduct all-round monitoring; transmit data and control instructions in real time through the communication and data transmission network; when the abnormal event is marked and confirmed, record the information of the abnormal event, including time, location, type and handling measures, and save related video clips; present real-time monitoring data through the user interface, including the results of voice emotion recognition and crowd behavior analysis, as well as the real-time status and adjustment of the camera.

[0025] It also includes: determining the relative distance between each monitoring node based on the unique identifier and location information of each monitoring node on campus, obtaining the resource status of the nearest node based on the detected abnormal event and the positional relationship between the nodes, determining the optimal resource scheduling plan, automatically mobilizing the monitoring equipment of the nearest node to adjust the angle and focal length, focusing on the area where the abnormality occurs and recording the abnormal event data.

[0026] The method determines the relative distance between each monitoring node based on the unique identifier and location information of each monitoring node in the campus, obtains the resource status of the nearest node based on the detected abnormal event and the positional relationship between the nodes, determines the best resource scheduling plan, automatically mobilizes the monitoring equipment of the nearest node to adjust the angle and focal length, focuses on the abnormal occurrence area and records the abnormal event data, specifically including:

[0027] Based on the unique identifier and location information of each monitoring node on campus, the geographic information system GIS is used to mark the geographical location of each monitoring node, and the connection relationship and network topology structure of each monitoring node are determined through the network topology map; the Euclidean distance calculation formula is used to calculate the relative distance between each monitoring node, and the network connection relationship of each node is determined through the network topology map; based on the detected abnormal events and the positional relationship between the nodes, the resource status of the nearest node is obtained, including the availability, bandwidth and current load of the camera, to determine the best resource scheduling plan; based on the best resource scheduling plan, the monitoring equipment of the nearest node is automatically mobilized, its angle and focal length are adjusted, the area where the abnormality occurs, and the abnormal event image data and sound data are recorded; the network bandwidth and routing are dynamically managed and optimized through the network control protocol and software-defined network SDN; the network traffic and bandwidth usage are monitored in real time, and the bandwidth allocation is dynamically adjusted according to the traffic situation to give priority to the transmission of abnormal event data.

[0028] The present invention provides a distributed monitoring campus safety early warning system, which mainly includes:

[0029] A sound data collection module is used to collect sound samples such as cheering, applause and shouting in normal activities, and identify the type of sound events;

[0030] A sound feature analysis module, which is used to analyze sound data and compare it with database features to evaluate the match;

[0031] An emergency situation determination module is used to compare the emotion recognition results with the emergency situation sound features to determine whether there is an emergency situation sound in the on-site activity sound;

[0032] Real-time monitoring and analysis module, used to monitor the direction, speed and emotional characteristics of crowd movement through image and video data;

[0033] The monitoring system sensitivity setting module is used to set the sensitivity parameters of the monitoring system according to the time and location of real-time activity information and scenes;

[0034] The monitoring system sensitivity adjustment module is used to adjust the sensitivity parameters of the monitoring system according to the dynamic changes in the density of human traffic at different stages of campus activities;

[0035] The monitoring system status adjustment module is used to adjust the focus area, video quality and monitoring coverage of the camera in the monitoring node according to the results of sound emotion recognition and crowd behavior analysis.

[0036] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0037] The present invention discloses a campus safety early warning method with distributed monitoring and the same below. The present invention collects sounds of various normal activities such as cheering, applause, shouting, etc., distinguishes normal activity noise from real danger signals, and solves the problem of false alarms caused by students' cheering and shouting reaching the alarm threshold during the activity. In addition, according to real-time activity information and the time and location parameters of the scene, the sensitivity of the distributed monitoring system is automatically adjusted to cope with different monitoring needs. When an abnormality is found according to the results of sound emotion recognition and crowd behavior analysis, the focus area, video quality and monitoring coverage of the camera in the distributed monitoring node are dynamically adjusted to effectively cope with possible emergencies. The present invention provides an intelligent and adaptive alarm method, which significantly reduces false alarms and missed alarms, provides reliable campus safety protection, can quickly and effectively trigger alarms in emergency situations, and improves the safety and management efficiency of campus activities. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 The present invention is a flow chart of a distributed monitoring campus safety early warning method.

[0039] Figure 2 A schematic diagram of a distributed monitoring campus safety early warning system of the present invention. DETAILED DESCRIPTION

[0040] 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 specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0041] like Figure 1 In this embodiment, a distributed monitoring campus safety early warning method may specifically include:

[0042] Step S101, build a sound database based on the cheering, applause, and shouting sound samples recorded during campus activities, identify and record the frequency and amplitude of the fundamental frequency and harmonics, determine the sound starting characteristics and sound ending characteristics of the sound samples, and build a sound event recognition model to determine the sound event type of the sound samples.

[0043] During campus activities, monitoring equipment is used to record the sound samples of cheers, applause, and shouts in different activity venues to build a sound database. Background noise is removed by audio editing software. The recording samples are divided into multiple short periods, and the fast Fourier transform is used for each short period to obtain its spectrum diagram. The distribution and relative intensity of the high-frequency, medium-frequency, and low-frequency components of each short period are recorded to form a spectrum feature database. The recording samples are divided into short periods, and short-time Fourier transform is applied to each period to obtain the spectrum diagram of each period, and the dynamic characteristics of the sound are extracted. The dynamic characteristics include rhythm and speed. Through the spectrum diagram, the frequency component with the largest amplitude is identified as the fundamental frequency, and the frequency value of the fundamental frequency is recorded, and it is used as the main pitch feature of the sound sample. Through the spectrum diagram, the peak at the integer multiple frequency of the fundamental frequency is identified as the harmonic, and the frequency and amplitude value of each harmonic is recorded. The amplitude ratio between each harmonic and the fundamental frequency is calculated and recorded to form the harmonic structure feature. The frequency and amplitude relationship between the fundamental frequency and each harmonic is organized into a table, and the amplitude ratio between the fundamental frequency and each harmonic is recorded. According to the frequency and amplitude changes of each period of the recording sample divided into short periods, the start and end periods of the sound are determined. According to the spectrum diagram of each period, the frequency components and amplitude values ​​of the start period of the sound are obtained to form the sound start characteristics, and the frequency components and amplitude values ​​of the end period of the sound are obtained to form the sound end characteristics. According to the sound start characteristics and sound end characteristics of the sound sample, they are integrated into a complete spectral feature. According to the spectral features of the sound samples with marked sound events, the recurrent neural network algorithm is used for model training, a sound event recognition model is constructed, and the sound event type of the sound sample is determined. The sound event types include cheering, applause, shouting, alarms, conflict sounds, and screaming.

[0044] Specifically, during a campus activity, a 10-second cheer was recorded on the playground through monitoring equipment. After removing the background noise through audio editing software, the recording sample was divided into 10 short periods of 1 second each. Use fast Fourier transform for each short period to obtain its spectrum. If in the spectrum of the first second, the low-frequency components are concentrated in 100Hz-300Hz, the medium-frequency components are concentrated in 500Hz-1000Hz, and the high-frequency components are above 2000Hz, and the relative intensities of the low-frequency, medium-frequency, and high-frequency components are 60%, 30%, and 10%, respectively. Obtain the spectrum through short-time Fourier transform and analyze the dynamic characteristics of each period. For example, in the spectrum of the first second, the rhythm is 120BPM and the speed is 2Hz. Identify the frequency component with the largest amplitude as 250Hz and record it as the fundamental frequency. Further identify the peaks at the integer multiple frequencies of the fundamental frequency. If there are harmonics at 500Hz, 750Hz, and 1000Hz, respectively, record their frequency and amplitude values ​​as (500Hz, 40%), (750Hz, 30%), and (1000Hz, 20%), and calculate the amplitude ratio between its frequency and the fundamental frequency to form the harmonic structure feature. Organize these data into a table, and record the amplitude ratio between the fundamental frequency and each harmonic as 100%:40%, 100%:30%, and 100%:20% respectively. According to the changes in frequency and amplitude, the start time period of the sound is determined to be the 1st second, and the end time period is the 10th second. Extract the frequency components and amplitude values ​​of the start time period of the sound, such as the frequency components of (250Hz, 60%), (500Hz, 40%), and (750Hz, 30%) in the 1st second, to form the sound start feature. In the 10th second, the frequency components and amplitude values ​​are similar, forming the sound termination feature, and integrating this information to form a complete spectrum feature. By labeling the spectral features of the sound samples of the sound events, the recurrent neural network algorithm is used for model training, and finally a sound event recognition model is constructed, which can identify this recording sample as a cheering type.

[0045] Step S102, extracting a standard feature set of normal activities according to the sound database, obtaining live activity sound data, and comparing it with the features in the sound database to obtain the degree of match between the live activity sound and the normal activity sound. If the degree of match is lower than a threshold, fast Fourier transform is used to extract the fundamental frequency of the live sound, and then sound emotion recognition is performed.

[0046] The standard feature set of normal activity sounds is extracted from the sound database. The standard feature set includes frequency features, time-frequency distribution features, fundamental frequency and harmonic structure features of cheering, applause and shouting. The live activity sound data is obtained in real time through the recording device. The live activity sound data and the standard feature set data of normal activity sounds are respectively represented as time series, and the two sets of time series data are input into the DTW algorithm to generate a distance matrix. Each element in the distance matrix represents the distance between two time points. The minimum distance between the two sets of time series data is calculated to obtain the matching degree of normal activity sounds and live activity sounds. If the matching degree between the live activity sound data and the normal activity sound data is lower than the preset matching degree threshold, the fundamental frequency of the live activity sound is extracted using fast Fourier transform. If the fundamental frequency is greater than the preset fundamental frequency threshold, it indicates the presence of tension or panic.

[0047] Specifically, in a certain campus activity, the standard feature set of normal activities was extracted through the sound database, among which the frequency characteristics of cheering were the fundamental frequency of 250Hz, the harmonic frequencies of 500Hz and 750Hz, and the time-frequency distribution characteristics showed that the relative strengths of low-frequency, medium-frequency, and high-frequency components were 60%, 30%, and 10%, respectively. The fundamental frequency of applause was 350Hz, the harmonic frequencies were 700Hz and 1050Hz, and the relative strengths of low-frequency, medium-frequency, and high-frequency components were 50%, 40%, and 10%, respectively. The fundamental frequency of shouting was 400Hz, the harmonic frequencies were 800Hz and 1200Hz, and the relative strengths of low-frequency, medium-frequency, and high-frequency components were 70%, 20%, and 10%, respectively. The sound data of live activities on the playground was obtained in real time through recording equipment, and it was found that the fundamental frequency was around 260Hz, and the relative strengths of low-frequency, medium-frequency, and high-frequency components were 55%, 35%, and 10%, respectively. The standard feature set data of live event sound data and normal event sound are represented as time series and input into the DTW algorithm to generate a distance matrix. Assume that the element value of the distance matrix is ​​between 0 and 100, representing the distance between two time points. The minimum distance between live event sound and normal event sound is calculated to be 25, which is far below the preset matching threshold of 50. Since the matching degree is lower than the preset threshold, the live event sound data is further extracted using fast Fourier transform, and it is found that the fundamental frequency of the live sound is 260Hz, while the preset fundamental frequency threshold is 300Hz. The fundamental frequency does not exceed the threshold, indicating that although the live event sound has a low matching degree with the normal event sound, there is no significant abnormality in the fundamental frequency, and no obvious tension or panic emotions have been found for the time being.

[0048] Step S103, judging whether the on-site sound belongs to an emergency sound according to the sound emotion recognition result and the emergency sound features in the database.

[0049] If the live event sound data contains language components, the live event sound data is transcribed through the ASR system to generate live event sound text. Based on the live event sound text, the TF-IDF algorithm is used to extract language content features, including keywords, sentence structure, and emergency terms. Emotion recognition is performed based on the fundamental frequency of the speaker's voice. The sound event recognition model is used to determine the sound event type of the live event sound, and the number of occurrences of different types of sound events is counted as context information features. Based on the language content features, emotion recognition results, and context information features obtained at the event site, the support vector machine algorithm is used for model training to classify the live event sound data and determine whether there is emergency sound in the current live event sound. If there is emergency sound in the live event sound, the emergency response alarm is triggered to notify relevant personnel to handle the emergency.

[0050] Specifically, during a campus activity, the sound data of the live activities on the playground were obtained in real time through the recording equipment, and it was found that there were language components in them. These data were input into the ASR system for transcription to generate the live activity sound text. If the transcribed text contains "Run! What happened? Is anyone injured?". The TF-IDF algorithm was used to extract the language content features, and the keywords included "Run", "Injured", and "Happened". The emergency terms "Run" and "Injured" were identified, and the sentence structure showed an obvious emergency situation. According to the fundamental frequency of the speaker's voice, it was found that its fundamental frequency was 350Hz, indicating that the emotion recognition results showed tension and panic. The sound event recognition model was used to analyze the live event sound, and the sound event types were counted as cheering, applause, and shouting, and it was found that the number of shouting sounds increased significantly. Based on the extracted language content features, emotion recognition results, and context information features, the support vector machine algorithm was used for model training to determine whether the current sound belongs to an emergency sound. The model analysis results show that the language content of the live event sound contains emergency terms, the emotion recognition results show tension and panic, and the frequency of shouting is high. It is comprehensively judged that the current sound belongs to an emergency sound. Subsequently, the system triggered the emergency response alarm, notifying relevant personnel to carry out emergency processing to ensure the safety and order of the event site.

[0051] Step S104, obtain on-site image recognition and video surveillance data, judge emergency situations based on real-time sound data and mark abnormal video data, monitor the direction and speed of crowd movement in real time, extract students' facial feature points and judge their emotional state, use FaceNet to authenticate and track individuals.

[0052] The video data of the activity site is obtained through the camera, and the date and time of each frame are automatically recorded to form a time tag. The geographical location information of the monitoring scene is obtained through the GPS positioning system. The exposure and focus parameters of the camera are adjusted according to the light conditions and weather conditions to optimize the video quality. According to the real-time sound data of the activity environment, it is judged whether the sound of the on-site activity belongs to the sound of emergency. If the judgment result is the sound of emergency, the abnormal video data is marked. The video data marked as abnormal is analyzed frame by frame, the type and duration of the activity are recorded, and the optical flow method is used to detect the abnormal behavior of students' movement and stay in the video. The YOLO algorithm is used to detect each person in the video, and the SORT algorithm is used to continuously track each detected individual, obtain the movement trajectory of each person in the video, record their position at different time points, segment each person's movement trajectory, calculate the direction and speed of each trajectory, and use the path map to visualize the flow path of the crowd, showing the main movement direction and flow path of the crowd. The video scene is divided into grid-shaped areas, the number of people in each grid area is counted, and the density distribution at each time point is obtained. The density of the crowd is visualized using a heat map, and the high-density area with a density higher than the preset density threshold is identified. The MTCNN algorithm is used to extract the facial position of the students in each frame of the video, and the Facial Landmark Detection algorithm is used to extract the feature points of each facial area, including eyes, eyebrows, nose, mouth and facial contour. Based on the feature points of the extracted facial area, the convolutional neural network algorithm is used to train the model and judge the emotional state of the students. FaceNet is used for facial authentication to confirm the identity of the individual and continuously track the individual students. If the video data shows that there is a fall or fight in the crowd, an alarm is triggered to notify the security personnel to handle it.

[0053] Specifically, during a campus activity, the camera acquires live video data in real time, automatically records the date and time of each frame, forms a time tag, and obtains the geographic location information of the monitored scene through the GPS system. According to the light conditions and weather conditions, the camera's exposure and focus parameters are adjusted to optimize the video quality. According to the real-time sound data, the system determines that the live sound belongs to the sound of an emergency, so the corresponding video data is marked as abnormal. These abnormal videos are analyzed frame by frame, and the activity type is recorded as a student assembly, which lasts for 10 minutes. The optical flow method is used to detect the abnormal movement and stay of students in the video, and it is found that several students suddenly gather and move quickly. The YOLO algorithm is used to detect each person in the video, and each individual is continuously tracked by the SORT algorithm to obtain the movement trajectory of each person in the video. A student is obtained from position A to position B. The trajectory shows that he moves 20 meters in 10 seconds, with an average speed of 2 meters / second. The movement trajectory of each person is segmented, and the direction and speed of each segment are calculated. The flow path of the crowd is visualized using a path map, showing that the main movement direction of the crowd is the center of the playground. The video scene is divided into grid-shaped areas, and the number of people in each grid area is counted to obtain the density distribution at each time point. It is found that at a certain moment, the number of people in the grid area on the north side of the playground reaches 50, exceeding the preset density threshold of 30 people. The heat map visualization shows that the area is a high-density area. The MTCNN algorithm is used to extract the facial position of the students in each frame of the video, and the Facial Landmark Detection algorithm is used to extract facial feature points, including eyes, eyebrows, nose, mouth and facial contours. According to the extracted facial feature points, the convolutional neural network algorithm is used to judge the emotional state. The results show that some students are panicking. FaceNet is used for facial identity authentication, individual identity is confirmed, and students are continuously tracked. It is found that student A is continuously tracked in the video. After confirming his identity, it is found that he appears frequently in the high-density area. If there is a student falling or fighting in the crowd in the video data, the alarm is immediately triggered to notify the security personnel to deal with it. Through this comprehensive monitoring and analysis method, the safety and order of campus activities are guaranteed.

[0054] Step S105, according to the real-time activity information and the time and location of the scene, set the monitoring sensitivity parameters, measure the ambient noise level through the sound sensor and adjust the audio monitoring sensitivity, and use the ambient light sensor data to adjust the camera exposure settings and image enhancement functions.

[0055] Through the smart cameras deployed in various areas of the campus, real-time video of activity scenes is obtained. The YOLO algorithm is used to identify the activity types in the video and record the occurrence time and duration of each activity type, including breaks, sports activities, and assemblies. According to the activity type identification results and campus map data, the location of the activity is determined, and the activity area is marked using the GPS positioning information of the camera and the preset campus map. The monitoring sensitivity parameters are set according to different activity types and activity locations. The real-time environmental noise level is measured by the sound sensor and compared with the preset background noise level threshold. If the real-time noise level is higher than the threshold, the sensitivity of audio monitoring is reduced. If the real-time noise level is lower than the threshold, the sensitivity of audio monitoring is increased. The real-time lighting condition data is obtained through the ambient light sensor, and the exposure setting and image enhancement function of the camera are adjusted according to the lighting conditions. The stability of the monitoring system is monitored in real time, including the hardware status and software operation status, and a fault alarm mechanism is set to notify maintenance personnel in time for processing.

[0056] Specifically, a smart camera was deployed on a campus to obtain real-time video of activity scenes. The YOLO algorithm was used to identify the activity types in the video and record the occurrence time and duration of each activity. During the break time on a certain day, the smart camera identified that a sports activity occurred on the playground, which lasted for 30 minutes from 10:00 to 10:30. At the same time, a rally was identified in front of the teaching building, which lasted for 15 minutes from 10:15. Based on these recognition results and campus map data, it was determined that the sports activity occurred on the playground and the rally occurred in front of the teaching building, and the GPS positioning information of the camera and the preset campus map were used to mark these activity areas. According to the type of activity and the location of occurrence, the monitoring sensitivity was adjusted. For example, the sports activity on the playground was set to a lower monitoring sensitivity because it was noisy, while the rally in front of the teaching building was set to a higher monitoring sensitivity. The sound sensor measured the real-time environmental noise level. If the real-time noise level on the playground was detected to be 75dB, and the preset background noise threshold was 70dB, the sensitivity of audio monitoring was reduced. In front of the teaching building, the real-time noise level is 55dB, which is lower than the preset threshold of 60dB, so the sensitivity of audio monitoring is increased. The ambient light sensor obtains real-time lighting condition data. On cloudy days, it detects a light level of 300l ux, automatically adjusts the camera's exposure settings and enables image enhancement to ensure clear video quality. The monitoring system also monitors the hardware status and software operation status in real time, and sets a fault alarm mechanism. If a camera detects that the temperature is too high, reaching 80 degrees Celsius, exceeding the preset threshold of 60 degrees Celsius, it will immediately trigger an alarm to notify maintenance personnel to handle it. Through these measures, effective monitoring and rapid response to various activities on campus are ensured, ensuring the safety and stability of the campus environment.

[0057] Step S106, adaptively adjusting the sensitivity parameters of the monitoring system according to the dynamic changes in the density of people flow at different stages of the activity.

[0058] Acquire sound and image data in different types of activities, including sound frequency, volume, and student behavior in the image. Acquire historical activity data from the monitoring system, including sound and image features of the same type of activity, as well as records of emergencies. Use the YOLO algorithm to count the flow of people on the video frames to obtain the real-time flow and density of people in the current activity venue. Acquire real-time sound data, determine the baseline volume and frequency distribution of the current environmental sound, and evaluate whether there are abnormal sound performances in the current activity, including judging whether there are abnormal sound frequencies and volume changes. Acquire real-time image data, use the optical flow method to judge the movement of objects and crowd behavior in the activity venue, and identify abnormal behaviors in the activity venue, including fast running and crowding. Acquire the sensitivity parameters of the current monitoring system through historical activity data, calculate the deviation between the current sound and image data and the historical activity data, and dynamically adjust the sensitivity parameters of the monitoring system if the deviation exceeds the preset threshold. According to the progress of the activity, including the start, ongoing, and end stages, adjust the sensitivity of the monitoring system according to the needs of each stage, and obtain instant feedback results through real-time monitoring. The feedback results are sound and image alarm trigger data.

[0059] Specifically, in the sports activities held in the school, the sound and image data at the scene are obtained. In the initial multidimensional data set obtained, the sound data shows that the audio frequency is mainly concentrated between 125Hz and 1000Hz, and the average volume level is 70 decibels. The image data shows that the student behavior is mainly walking and jogging. In the last sports activity, the average volume level was 65 decibels, and the frequency distribution was similar to this time, while the image features showed that the student behavior included jumping and applause. The YOLO algorithm is used to count the flow of people in the video frame, and the current flow of people in the gymnasium is about 300 people. The sound detection threshold of the current monitoring system is set to 80 decibels, and the image change detection threshold is that the student movement speed exceeds 2 meters per second. By comparing real-time data and historical data, the monitoring team judged that in the current activity, due to the increase in the flow of people in the gymnasium, the sound detection threshold should be adjusted to 75 decibels, and the image change detection threshold should be adjusted to the student movement speed of more than 5 meters per second. After adjustment, the adaptively adjusted sensitivity parameters of the monitoring system more accurately monitor student activities and ensure timely response to events. Analyze the progress of the event, including the start, ongoing, and end stages, and adjust the sensitivity of the monitoring system according to the specific needs of each stage to match the actual situation of the event. At the beginning of the event, the density of people is relatively large and concentrated, and congestion and chaos may occur. At this time, the monitoring system will automatically increase the sound detection threshold, and be particularly sensitive to abnormal sounds such as sudden screams and cries for help. At the same time, it will increase the image change detection frequency and reduce the image change threshold to quickly identify conflicts, falls, or other emergencies in the crowd. In the ongoing stage of the event, the flow of people on site tends to be stable, but the audience may have large emotional fluctuations due to changes in the performance content, such as exciting singing parts, and produce normal noises such as cheering and applause. The monitoring system will adjust the sound detection parameters in a timely manner, ignore the normal crowd reaction sounds, and focus on the sound alarms related to safety, such as sudden high-decibel noises or sharp abnormal sounds. At the same time, maintain appropriate image change detection sensitivity to monitor potential risks such as abnormal personnel flow and movement of objects in the venue. At the end of the activity, when the crowd becomes dense again as students leave, the monitoring system will increase the sensitivity of sound and image detection to deal with possible emergencies, such as stampedes, panic running, etc. By analyzing crowd density information in real time and dynamically adjusting the monitoring threshold, it ensures that any potential safety hazards can be quickly captured and warned, effectively ensuring the safety of the evacuation process.

[0060] Step S107, based on the results of emotion recognition and crowd behavior analysis of the sound, record the source of the abnormal sound and the location where the abnormal event occurred, and dynamically adjust the focus area, video quality and monitoring coverage of the camera in the monitoring node.

[0061] Obtain the abnormal data marked in the results of voice emotion recognition and crowd behavior analysis, including the source of abnormal sound, the location of abnormal event and its time information. By comparing the abnormal marks in the sound and image data, determine whether there is a coordinated abnormal event. The coordinated abnormal event is an abnormal event that occurs simultaneously at the same location and time range. If the judgment result is indeed an abnormal event, issue an instruction to adjust the monitoring node. According to the location information of the abnormal event, send an instruction to adjust the focus area. If the location of the abnormal event is outside the current monitoring range, send the instruction to the camera closest to the current camera for monitoring coverage. Automatically increase the video resolution and frame rate of the monitoring area marked as abnormal. If it is determined that the monitoring coverage needs to be expanded, call the backup camera or adjust the monitoring angle of the existing camera for all-round monitoring. Transmit data and control instructions in real time through the communication and data transmission network. When the abnormal event is marked and confirmed, record the information of the abnormal event, including time, location, type and handling measures, and save the relevant video clips. Present real-time monitoring data through the user interface, including the results of voice emotion recognition and crowd behavior analysis, as well as the real-time status and adjustment of the camera.

[0062] Specifically, based on the ambient sound data, it is determined that 75% of the emotional features in a recording belong to fear, and the event is marked as a potential abnormal event. At the same time, the surveillance camera captures that 30% of the people in an area show abnormal behavior, including fast movement or fighting. According to the specific location of the abnormal event, the abnormal event is located at the entrance of the playground, and instructions are issued to the nearest group of cameras at the entrance of the playground through the camera control interface to adjust the angle and focal length to cover the entrance area. The video resolution of the marked area is increased from the standard 480p to 1080p, and the frame rate is increased from 30fps to 60fps to ensure clearer picture quality. If it is necessary to expand the monitoring range, activate the backup camera, or adjust the monitoring angle of the existing adjacent camera by 10 degrees to 20 degrees to achieve a wider field of view. In terms of the data transmission network, all data and control instructions can be transmitted within 5 milliseconds, ensuring a rapid response to abnormal situations. Once the abnormal event is marked and confirmed, the video record of that period is automatically saved, and a snapshot is captured within 5 seconds before and after the time point to provide detailed data for subsequent analysis. Finally, the user interface displays all relevant monitoring information in real time, including voice emotion analysis data showing 75% fear, crowd behavior analysis showing 30% abnormal behavior, and the state of the camera focusing on the playground entrance. The operator can use the interface to determine whether manual intervention is needed and dispatch security personnel to the area.

[0063] Based on the unique identifier and location information of each monitoring node on campus, the relative distance between each monitoring node is determined. Based on the detected abnormal events and the positional relationship between the nodes, the resource status of the nearest node is obtained, the optimal resource scheduling plan is determined, and the monitoring equipment of the nearest node is automatically mobilized to adjust the angle and focal length, focus on the abnormal area and record the abnormal event data.

[0064] According to the unique identifier and location information of each monitoring node on campus, the geographic information system GIS is used to mark the geographical location of each monitoring node, and the connection relationship and network topology of each monitoring node are determined through the network topology map. The relative distance between each monitoring node is calculated using the Euclidean distance calculation formula, and the network connection relationship of each node is determined through the network topology map. According to the detected abnormal events and the location relationship between the nodes, the resource status of the nearest node is obtained, including the availability, bandwidth and current load of the camera, and the best resource scheduling plan is determined. According to the best resource scheduling plan, the monitoring equipment of the nearest node is automatically mobilized, its angle and focal length are adjusted, the area where the abnormality occurs is focused, and the abnormal event image data and sound data are recorded. The network bandwidth and routing are dynamically managed and optimized through the network control protocol and software defined network SDN. Real-time monitoring of network traffic and bandwidth usage, dynamic adjustment of bandwidth allocation according to traffic conditions, and priority transmission of abnormal event data.

[0065] Specifically, a student rally was held on the playground on campus. Each node in the monitoring system has a unique identifier and location information. Through the geographic information system GIS annotation, the location of each monitoring node is clearly visible on the map. Through the network topology diagram, the connection relationship and network structure of each node can be seen. Using the Euclidean distance calculation formula, the relative distance between monitoring nodes A and B is calculated to be 50 meters, and the distance between nodes A and C is 70 meters. During the activity, the monitoring system detected an abnormal event in the southeast corner of the playground, such as crowding and chaos caused by the gathering of students. According to the positional relationship between the nodes, the system determines that the nearest node is node B. At this time, the camera of node B is available, the bandwidth is 100Mbps, and the current load is 50%. According to these resource conditions, node B is determined to be the best resource scheduling node, and the monitoring equipment of node B is automatically mobilized, and its camera angle and focal length are adjusted to focus on the abnormal area in the southeast corner, and record the picture and sound data of the abnormal event. Through the network control protocol and software-defined network SDN, the network bandwidth and routing are dynamically managed and optimized to ensure the priority transmission of abnormal event data. Real-time monitoring shows that the network traffic is 300Mbps and the total bandwidth usage reaches 80%. According to the traffic situation, the system dynamically adjusts the bandwidth allocation, giving priority to the transmission of abnormal event data, ensuring security management and real-time response.

[0066] like Figure 2 In this embodiment, a distributed monitoring campus safety early warning system may specifically include:

[0067] The sound data acquisition module is used to build a sound database based on the cheering, applause, and shouting sound samples recorded during campus activities, identify and record the frequency and amplitude of the fundamental frequency and harmonics, determine the sound starting characteristics and sound ending characteristics of the sound samples, and build a sound event recognition model to determine the sound event type of the sound samples.

[0068] The sound feature analysis module is used to extract the standard feature set of normal activities based on the sound database, obtain the sound data of the live activity, and compare it with the features in the sound database to obtain the matching degree between the live activity sound and the normal activity sound. If the matching degree is lower than the threshold, the fast Fourier transform is used to extract the fundamental frequency of the live sound, and then the sound emotion recognition is performed.

[0069] The emergency situation determination module is used to determine whether there is emergency situation sound in the on-site activity sound based on the sound emotion recognition results and the emergency situation sound features in the database.

[0070] The real-time monitoring and analysis module is used to obtain on-site image recognition and video surveillance data, judge emergency situations based on real-time sound data and mark abnormal video data, monitor the direction and speed of crowd movement in real time, extract students' facial feature points and judge their emotional state, and use FaceNet for identity authentication and tracking individuals.

[0071] The monitoring system sensitivity setting module is used to set monitoring sensitivity parameters according to the time and location of real-time activity information and scenes, measure the ambient noise level through sound sensors and adjust the audio monitoring sensitivity, and use ambient light sensor data to adjust camera exposure settings and image enhancement functions.

[0072] The monitoring system sensitivity adjustment module is used to adaptively adjust the sensitivity parameters of the monitoring system according to the dynamic changes in the density of people flow at different stages of campus activities.

[0073] The monitoring system status adjustment module is used to record the source of abnormal sounds and the location of abnormal events based on the results of sound emotion recognition and crowd behavior analysis, and dynamically adjust the focus area, video quality and monitoring coverage of the cameras in the monitoring nodes.

[0074] The above is only a specific implementation method of this specification. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of this specification is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this specification, and these modifications or replacements should be covered within the protection scope of this specification.

Claims

1. A distributed monitoring campus safety early warning method, characterized in that: The method comprises: Build a sound database based on the cheering, applause, and shouting sound samples recorded during campus activities, identify and record the frequency and amplitude of the fundamental frequency and harmonics, determine the sound starting characteristics and sound ending characteristics of the sound samples, and build a sound event recognition model to determine the sound event type of the sound samples; Extract the standard feature set of normal activities according to the sound database, obtain the sound data of the live activity, and compare it with the features in the sound database to obtain the matching degree between the live activity sound and the normal activity sound. If the matching degree is lower than the threshold, use fast Fourier transform to extract the fundamental frequency of the live sound, and then perform sound emotion recognition; According to the sound emotion recognition results and the emergency sound features in the database, determine whether the on-site sound belongs to the emergency sound; Obtain on-site image recognition and video surveillance data, judge emergency situations based on real-time sound data and mark abnormal video data, monitor the direction and speed of crowd movement in real time, extract students' facial feature points and judge their emotional state, use FaceNet for identity authentication and track individuals; Set monitoring sensitivity parameters based on real-time activity information and the time and location of the scene, measure the ambient noise level through sound sensors and adjust audio monitoring sensitivity, and use ambient light sensor data to adjust camera exposure settings and image enhancement functions; Adaptively adjust the sensitivity parameters of the monitoring system according to the dynamic changes in crowd density at different stages of the event; Based on the results of emotion recognition and crowd behavior analysis, the source of abnormal sounds and the location of abnormal events are recorded, and the focus area, video quality and monitoring coverage of the cameras in the monitoring nodes are dynamically adjusted.

2. The method according to claim 1, wherein: The method of constructing a sound database based on the cheering, applause, and shouting sound samples recorded during campus activities, identifying and recording the frequency and amplitude of the fundamental frequency and harmonics, determining the sound start characteristics and sound end characteristics of the sound samples, and constructing a sound event recognition model to determine the sound event type of the sound samples includes: During campus activities, the monitoring equipment is used to record the sound samples of cheers, applause, and shouts in different activity venues to build a sound database; Remove background noise using audio editing software; The recording sample is divided into multiple short time periods, and a fast Fourier transform is applied to each short time period to obtain its spectrum diagram, and the distribution and relative strength of the high-frequency, medium-frequency, and low-frequency components of each short time period are recorded to form a spectrum feature database; the recording sample is divided into short time periods, and a short-time Fourier transform is applied to each time period to obtain a spectrum diagram of each time period, and the dynamic characteristics of the sound are extracted, and the dynamic characteristics include rhythm and speed; through the spectrum diagram, the frequency component with the largest amplitude is identified as the fundamental frequency, and the frequency value of the fundamental frequency is recorded, and it is used as the main pitch feature of the sound sample; through the spectrum diagram, the peak value at the integer multiple frequency of the fundamental frequency is identified as the harmonic, and the frequency and amplitude value of each harmonic is recorded, and the amplitude ratio between each harmonic and the fundamental frequency is calculated and recorded to form a harmonic structure feature; the frequency and amplitude relationship between the fundamental frequency and each harmonic is sorted into a table, and the amplitude ratio between the fundamental frequency and each harmonic is recorded; Determine the start and end time periods of the sound according to the frequency and amplitude changes of each time period of the recording sample divided into short time periods; obtain the frequency component and amplitude value of the start time period of the sound according to the spectrum diagram of each time period to form the sound start feature, and obtain the frequency component and amplitude value of the end time period of the sound to form the sound end feature; According to the sound starting characteristics and sound ending characteristics of the sound sample, a complete sound spectrum feature is integrated; According to the spectral features of the sound samples with labeled sound events, a recurrent neural network algorithm is used for model training, a sound event recognition model is constructed, and the sound event types of the sound samples are determined. The sound event types include cheering, applause, shouting, alarms, conflict sounds, and screaming.

3. The method according to claim 1, wherein: The method extracts a standard feature set of normal activities according to the sound database, obtains the live activity sound data, and compares it with the features in the sound database to obtain the matching degree between the live activity sound and the normal activity sound. If the matching degree is lower than the threshold, the base frequency of the live sound is extracted by fast Fourier transform, and then the sound emotion recognition is performed, including: Extract the standard feature set of normal activity sounds through the sound database, the standard feature set includes the frequency characteristics, time-frequency distribution characteristics, fundamental frequency and harmonic structure characteristics of cheering, applause and shouting; obtain the live activity sound data in real time through the recording equipment; represent the live activity sound data and the standard feature set data of normal activity sounds as time series respectively, and input the two sets of time series data into the DTW algorithm to generate a distance matrix, each element in the distance matrix represents the distance between two time points; calculate the minimum distance between the two sets of time series data to obtain the matching degree of normal activity sounds and live activity sounds; If the matching degree between the live activity sound data and the normal activity sound data is lower than the preset matching degree threshold, the fundamental frequency of the live activity sound is extracted using fast Fourier transform; if the fundamental frequency is greater than the preset fundamental frequency threshold, it indicates the presence of tension or panic.

4. The method according to claim 1, wherein: The step of judging whether the on-site sound belongs to an emergency sound according to the sound emotion recognition result and the emergency sound features in the database includes: If the live event sound data contains language components, the live event sound data is transcribed through the ASR system to generate live event sound text; based on the live event sound text, the TF-IDF algorithm is used to extract language content features, including keywords, sentence structure, and emergency terms; Emotion recognition is performed based on the fundamental frequency of the speaker's voice; Using the sound event recognition model, the sound event types of the live event sounds are determined, and the occurrence times of different types of sound events are counted as context information features; Based on the language content features, emotion recognition results and context information features obtained at the event site, the support vector machine algorithm is used to train the model, classify the on-site event sound data, and determine whether there is an emergency sound in the current on-site event sound; If there are emergency sounds in the on-site activities, the emergency response alarm will be triggered to notify relevant personnel to handle the emergency.

5. The method according to claim 1, wherein: The acquisition of on-site image recognition and video surveillance data, judging emergency situations based on real-time sound data and marking abnormal video data, real-time monitoring of the direction and speed of crowd movement, extraction of student facial feature points and judgment of student emotional state, and use of FaceNet for identity authentication and tracking of individuals include: The video data of the activity site is acquired through the camera, and the date and time of each frame are automatically recorded to form a time tag; Obtain the geographical location information of the monitoring scene through the GPS positioning system; Adjust the camera's exposure and focus parameters to optimize video quality based on lighting and weather conditions; Based on the real-time sound data of the activity environment, determine whether the on-site activity sound is an emergency sound. If the judgment result is an emergency sound, mark the abnormal video data; Analyze the video data marked as abnormal frame by frame, record the type and duration of the activity, and use the optical flow method to detect abnormal behaviors of students' movement and stay in the video; use the YOLO algorithm to detect each person in the video, and use the SORT algorithm to continuously track each detected individual, obtain the movement trajectory of each person in the video, record their position at different time points, segment each person's movement trajectory, calculate the direction and speed of each trajectory, and use the path map to visualize the flow path of the crowd, showing the main movement direction and flow path of the crowd; divide the video scene into grid-like areas, count the number of people in each grid area, obtain the density distribution at each time point, use the heat map to visualize the crowd density, and identify high-density areas with density higher than the preset density threshold; use the MTCNN algorithm to extract the facial position of the students in each frame of the video, and use the Facial The Landmark Detection algorithm extracts feature points from each facial area, including eyes, eyebrows, nose, mouth, and facial contours. Based on the extracted feature points of the facial area, a convolutional neural network algorithm is used to train the model and determine the emotional state of the students. FaceNet is used for facial identity verification to confirm individual identities and continuously track individual students. If the video data shows a fall or fight in the crowd, an alarm is triggered to notify security personnel to handle the situation.

6. The method according to claim 1, wherein: The method includes setting monitoring sensitivity parameters according to the time and location of real-time activity information and scenes, measuring the ambient noise level through sound sensors and adjusting the audio monitoring sensitivity, and using ambient light sensor data to adjust camera exposure settings and image enhancement functions, including: Through the intelligent cameras deployed in various areas of the campus, real-time video of activity scenes is obtained, and the YOLO algorithm is used to identify the activity types in the video, and the occurrence time and duration of each activity type are recorded. Activity types include breaks, sports activities, and assemblies; the location of the activity is determined based on the activity type identification results and campus map data, and the activity area is marked using the camera's GPS positioning information and the preset campus map; the monitoring sensitivity parameters are set according to different activity types and activity locations; the real-time environmental noise level is measured through the sound sensor and compared with the preset background noise level threshold. If the real-time noise level is higher than the threshold, the sensitivity of audio monitoring is reduced; if the real-time noise level is lower than the threshold, the sensitivity of audio monitoring is increased; real-time lighting condition data is obtained through the ambient light sensor, and the camera's exposure settings and image enhancement functions are adjusted according to the lighting conditions; the stability of the monitoring system is monitored in real time, including the hardware status and software operation status, and a fault alarm mechanism is set to promptly notify maintenance personnel to handle it.

7. The method according to claim 1, wherein: The method of adaptively adjusting the sensitivity parameters of the monitoring system according to the dynamic changes of the density of human traffic at different stages of campus activities includes: Acquire sound and image data for different types of activities, including sound frequency, volume, and student behavior in images; Obtain historical activity data from the monitoring system, including sound and image features of the same activity type, as well as records of emergencies; use the YOLO algorithm to count the flow of people on video frames to obtain the real-time flow and density of people at the current activity site; obtain real-time sound data, determine the baseline volume and frequency distribution of the current environmental sound, and evaluate whether there are abnormal sound performances in the current activity, including determining whether there are abnormal sound frequencies and volume changes; obtain real-time image data, use the optical flow method to determine the movement of objects and crowd behavior in the activity site, and identify abnormal behaviors in the activity site, including fast running and crowding; obtain the sensitivity parameters of the current monitoring system through historical activity data, calculate the deviation between the current sound and image data and the historical activity data, and dynamically adjust the sensitivity parameters of the monitoring system if the deviation exceeds the preset threshold; adjust the sensitivity of the monitoring system according to the progress of the activity, including the start, ongoing, and end stages, according to the needs of each stage, and obtain instant feedback results through real-time monitoring, and the feedback results are sound and image alarm trigger data.

8. The method according to claim 1, wherein: The method of recording the source of abnormal sound and the location of abnormal events based on the results of emotion recognition and crowd behavior analysis of the sound, and dynamically adjusting the focus area, video quality and monitoring coverage of the cameras in the monitoring nodes includes: Obtain abnormal data marked in the results of voice emotion recognition and crowd behavior analysis, including the source of abnormal sounds, the location and time of abnormal events; By comparing and contrasting the abnormal marks in the sound and image data, it is determined whether there are coordinated abnormal events. A coordinated abnormal event is an abnormal event that occurs simultaneously in the same place and time range; If the result of the judgment is indeed an abnormal event, an instruction to adjust the monitoring node is issued; according to the location information of the abnormal event, an instruction is sent to adjust the focus area; If the location of the abnormal event is outside the current monitoring range, the command will be sent to the camera closest to the current camera for monitoring coverage; Automatically improve the video resolution and frame rate of surveillance areas marked as abnormal; If it is determined that the monitoring coverage needs to be expanded, the backup camera is called or the monitoring angle of the existing camera is adjusted to conduct all-round monitoring; Transmit data and control instructions in real time through the communication and data transmission network; when an abnormal event is marked and confirmed, record the information of the abnormal event, including time, location, type and treatment measures, and save relevant video clips; Present real-time monitoring data through the user interface, including voice emotion recognition and crowd behavior analysis results, as well as the real-time status and adjustment of the camera; It also includes: determining the relative distance between each monitoring node based on the unique identifier and location information of each monitoring node on campus, obtaining the resource status of the nearest node based on the detected abnormal event and the positional relationship between the nodes, determining the best resource scheduling plan, and automatically mobilizing the monitoring equipment of the nearest node to adjust the angle and focal length, focusing on the abnormal area and recording the abnormal event data. Specifically, it includes: using the geographic information system GIS to mark the geographical location of each monitoring node based on the unique identifier and location information of each monitoring node on campus, and determining the connection relationship and network topology of each monitoring node through the network topology map; using the Euclidean distance calculation formula to calculate the distance between each monitoring node The relative distance between nodes is determined, and the network connection relationship of each node is determined through the network topology diagram; based on the detected abnormal events and the positional relationship between nodes, the resource status of the nearest node is obtained, including the availability, bandwidth and current load of the camera, and the best resource scheduling plan is determined; based on the best resource scheduling plan, the monitoring equipment of the nearest node is automatically mobilized, its angle and focal length are adjusted, the area where the abnormality occurs is focused, and the abnormal event image data and sound data are recorded; the network bandwidth and routing are dynamically managed and optimized through the network control protocol and software-defined network SDN; the network traffic and bandwidth usage are monitored in real time, and the bandwidth allocation is dynamically adjusted according to the traffic situation to give priority to the transmission of abnormal event data.

9. A distributed monitoring campus safety early warning system, characterized in that: The system comprises: A sound data collection module is used to obtain sound samples such as cheering, applause and shouting in normal activities, and identify the type of sound events; A sound feature analysis module, which is used to analyze sound data and compare it with database features to evaluate the match; An emergency situation determination module is used to compare the emotion recognition results with the emergency situation sound features to determine whether there is an emergency situation sound in the on-site activity sound; Real-time monitoring and analysis module, used to monitor the direction, speed and emotional characteristics of crowd movement through image and video data; The monitoring system sensitivity setting module is used to set the sensitivity parameters of the monitoring system according to the time and location of real-time activity information and scenes; The monitoring system sensitivity adjustment module is used to adjust the sensitivity parameters of the monitoring system according to the dynamic changes in the density of human traffic at different stages of campus activities; The monitoring system status adjustment module is used to adjust the focus area, video quality and monitoring coverage of the camera in the monitoring node according to the results of sound emotion recognition and crowd behavior analysis.

Citation Information

Cited By

  • Security monitoring method and equipment

    CN119296045A

  • Passenger customs clearance checking method, system and device

    CN119600666A

  • Voice signal extraction and recognition method and device, electronic equipment and storage medium

    CN119724246A

  • Campus security abnormal event detection method, electronic device and computer program product

    CN119832475A

  • Campus safety monitoring method and system for smart campus based on Internet of Things

    CN120088729A