AI intelligent sound wave assisted campus anti-bullying system
The campus anti-bullying system assisted by AI intelligent sound waves uses sound sensors and machine learning algorithms to identify bullying behaviors, and combines data from cameras and temperature sensors for comprehensive monitoring. It solves the problem of traditional systems being unable to monitor and warn in real time, and realizes the prevention of bullying behaviors. Accurate identification and timely response improve campus security.
Patent Information
- Application Number
- CN202410685832.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-30
AI Technical Summary
The traditional campus safety monitoring system cannot monitor and warn against bullying in real time, and lacks effective preventive measures, resulting in frequent bullying and damage to the physical and mental health of teachers and students.
The campus anti-bullying system using AI intelligent sound wave assistance captures environmental sounds through multiple sound sensors, combines spectrum, amplitude and duration characteristics, uses machine learning classification algorithms to identify bullying behaviors, and combines data from cameras and temperature sensors for comprehensive monitoring. Trigger an alarm and pinpoint the exact location.
It achieves real-time monitoring of the campus environment and accurate identification of bullying behaviors, improves campus security, promptly responds to and handles bullying incidents, and protects the physical and mental health of teachers and students.
Smart Images

Figure CN118262475B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of campus prevention alarm technology, and in particular to an AI intelligent sound wave-assisted campus anti-bullying system. Background Art
[0002] With the development of society and the popularization of education, campus safety issues have received increasing attention. Bullying has become a serious social problem on campus, causing serious harm to students' physical and mental health. Traditional campus safety monitoring systems usually rely on equipment such as cameras and alarms, but these devices can only record the occurrence of events, lack real-time monitoring and early warning functions, and cannot effectively prevent bullying. Therefore, there is an urgent need for an innovative campus anti-bullying system that can monitor the campus environment in real time and accurately identify bullying behavior, so as to improve campus safety and protect the physical and mental health of teachers and students.
[0003] In response to the above problems, the present invention proposes a campus anti-bullying system based on AI intelligent sound wave assistance. By deploying multiple sound sensors and quick alarm buttons at key locations on campus, the sound feature extraction module is used to monitor the sound signals in the campus environment in real time, and the presence of bullying behavior is accurately identified based on the results of comparative analysis, thereby improving campus safety and protecting the physical and mental health of teachers and students. Summary of the invention
[0004] Based on the above objectives, the present invention provides an AI intelligent sound wave assisted campus anti-bullying system.
[0005] AI intelligent sound wave-assisted campus anti-bullying system includes:
[0006] Ambient sound is captured through multiple sound sensors deployed throughout the campus;
[0007] A sound feature extraction module is introduced. The sound feature extraction module analyzes the spectrum, amplitude, and duration of the sound signal, extracts the sound features related to bullying behavior, and builds a sound pattern library of bullying behavior. The sound pattern library integrates a machine learning classification algorithm, monitors the sound signals in the environment in real time, and imports the real-time extracted sound signal features into the machine learning classification algorithm. Based on the analysis results, it is determined whether there is bullying behavior.
[0008] Introducing an environmental monitoring module, which uses cameras and temperature sensors deployed inside the campus. When the environmental monitoring module detects abnormal gatherings of people or temperature changes, combined with the analysis results of the sound feature extraction module, it assists in determining bullying behavior.
[0009] When bullying behavior is identified, an alarm is triggered and relevant information is sent to a preset receiving device, including the campus security office or the smartphone of the relevant faculty and staff;
[0010] The positioning module is introduced to determine the exact location of the alarm event through the location information of the sound sensor and combined with the positioning algorithm analysis, and transmit it to the receiving device.
[0011] Furthermore, the sound sensors are arranged according to different areas on campus, including classrooms, corridors, playgrounds, canteens, libraries, and blind spots in stairs.
[0012] Furthermore, the sound feature extraction module specifically includes:
[0013] Spectrum analysis: Use the fast Fourier transform algorithm to convert the sound signal into a spectrum graph. Apply spectrum analysis technology to extract the frequency distribution characteristics in the spectrum graph, including the main frequency and spectrum bandwidth. Based on the characteristics of the spectrum graph, identify the frequency range or spectrum form related to bullying behavior, including sharp sound waves and high-frequency noise;
[0014] Amplitude feature extraction: Use the amplitude detection algorithm to measure the amplitude of the sound signal and analyze the amplitude change trend. Based on the amplitude fluctuation, extract the amplitude features, including the amplitude change frequency and the absolute value of the amplitude. Analyze the relationship between the amplitude features and bullying behavior, and identify the amplitude pattern with bullying behavior characteristics. The amplitude calculation formula is: ,in, is the amplitude value, is the time domain signal, is the number of sampling points of the signal, which reflects the change of the sound amplitude in a short time based on the short-time amplitude change rate, expressed as:
[0015] ,in, is the short-time amplitude change rate, is the amplitude value at the current moment, is the amplitude value at the next moment, is the time interval;
[0016] Duration analysis: The duration analysis algorithm is used to calculate the duration of the sound signal and determine the continuity characteristics of the sound. The duration characteristics are combined with the spectrum and amplitude of the sound signal to comprehensively analyze the continuity of the sound signal to distinguish bullying behavior from other normal sounds. Duration analysis includes calculating the duration of the sound signal and determining the continuity characteristics of the sound. The duration calculation formula is:
[0017] ,in, is the duration, is the number of sampling points of the signal, is the sampling rate of the signal.
[0018] Furthermore, the machine learning classification algorithm adopts a support vector machine model to classify and pattern recognize the extracted sound features. Based on a large number of sound samples of known bullying behaviors, the model is trained to identify the sound features of bullying behaviors. According to the classification and pattern recognition, a sound pattern library of bullying behaviors is constructed, including the sound features of bullying behaviors and their corresponding classification labels, for subsequent sound recognition and behavior detection.
[0019] Furthermore, the support vector machine model classifies and recognizes the extracted sound features, including:
[0020] Extract spectrum features, amplitude features and duration features, and standardize the extracted sound features so that the features have the same dimension and scale;
[0021] Data division: The prepared sound sample data set is divided into a training set and a test set. The training set is used to train the support vector machine model, and the test set is used to evaluate the performance of the model.
[0022] Model training: The sound features and corresponding labels (bullying behavior or non-bullying behavior) of the training set are used to train the support vector machine model. The support vector machine model separates the two types of sound sample data by finding the best decision boundary, so that samples of the same category are close to the hyperplane and the shortest distance (i.e., interval) from the hyperplane is maximized;
[0023] Model evaluation: Use the sound features of the test set to evaluate the trained support vector machine model, calculate the model's accuracy, recall rate, F1 score and other indicators, evaluate the model's performance and generalization ability, and tune the support vector machine model's parameters based on the evaluation results;
[0024] The trained support vector machine model is used in real-time monitoring to classify and recognize patterns of sound features extracted in real time. When the sound features monitored in real time match the known sound features of bullying behavior, the support vector machine model will output the classification results of the bullying behavior, trigger an alarm and take corresponding measures.
[0025] Furthermore, the support vector machine model separates different categories of sound samples by learning an optimal decision boundary, and the decision function is expressed as:
[0026] ,in, Is a decision function used to judge the sample Which category it belongs to, i.e. bullying label or non-bullying label, is the Lagrange multiplier of the training sample, which is used to weight the support vectors. is the label of the training sample, indicating the category of the sample , is the feature vector of the training sample, is a kernel function used to measure the similarity between samples. is a bias term used to adjust the location of the decision boundary.
[0027] Furthermore, the environmental monitoring module specifically includes:
[0028] Camera image analysis: Use computer vision technology to monitor and analyze camera images on campus in real time, and use the target detection algorithm YOLO to identify crowded areas and analyze the density and aggregation of crowds;
[0029] Temperature sensor data analysis: Real-time temperature data of various areas on campus are collected, and the threshold of temperature change is set. When the temperature exceeds or falls below the set threshold, it is considered an abnormal situation;
[0030] The sound features extracted by the sound feature extraction module are combined with the data from the camera and temperature sensor for comprehensive decision analysis. When a crowded area or abnormal temperature changes are detected, the sound features are analyzed at the same time. If the sound features contain sound patterns related to bullying behavior, it is determined that bullying has occurred.
[0031] Furthermore, the comprehensive decision analysis is based on fuzzy logic, specifically including:
[0032] Analysis of camera data: Assume that the density of the crowd detected by the camera is represented by the variable Indicates that the value range is , where 0 means no one and 1 means extremely dense;
[0033] Analysis of temperature sensor data: The temperature changes detected by the temperature sensor are expressed as variables Indicates that the value range is , where 0 indicates normal temperature and 1 indicates abnormal change;
[0034] Analysis results of the sound feature extraction module: Assume that the sound feature of bullying behavior obtained by the sound feature extraction module is represented by the variable Indicates that the value range is , where 0 means no sound signature of bullying behavior is detected, and 1 means the sound signature of obvious bullying behavior is detected;
[0035] Comprehensive evaluation of fuzzy logic: Using fuzzy logic to integrate three variables Conduct a comprehensive assessment to obtain a comprehensive judgment result of bullying behavior:
[0036] Set the fuzzy rules and membership functions by The value of is input into fuzzy logic for fuzzy reasoning to obtain the probability of bullying behavior, which is expressed as a variable , the value range is , where 0 indicates no bullying behavior and 1 indicates obvious bullying behavior.
[0037] Furthermore, the positioning algorithm adopts a triangulation positioning algorithm, using the location information of the sound sensor, the location information includes the specific location coordinates of each sound sensor in the campus, and uses the triangulation positioning algorithm in combination with the arrival time difference information of the sound signal detected by the sound sensor to calculate the location where the sound event occurs, specifically including:
[0038] Record the location information of each sound sensor, including latitude and longitude coordinates or relative position relationship;
[0039] Measurement of the arrival time difference of sound signals: When a sound event occurs, the arrival time of the sound signal received by each sound sensor is recorded, and the relative position of the sound event is calculated using the arrival time difference;
[0040] The location information of the sound sensor and the time difference of arrival of the sound signal are input into the triangulation positioning algorithm to calculate the exact location coordinates of the sound event.
[0041] Furthermore, a quick alarm button is installed at the installation position of the multiple sound sensors, and the quick alarm button is connected to a preset receiving device.
[0042] Beneficial effects of the present invention:
[0043] The present invention deploys an AI intelligent sound wave-assisted campus anti-bullying system, combines multiple sound sensors and quick alarm buttons and arranges them at key locations on campus, thereby effectively improving the safety of the campus. A sound feature extraction module is used to build a sound pattern library of bullying behavior, so that the system can monitor the sound signals in the campus environment in real time, and accurately identify whether there is bullying behavior based on the results of classification analysis. At the same time, victims can quickly report the incident through the quick alarm button, and send relevant information to the campus security office or relevant faculty and staff in real time, thereby achieving timely response and disposal of bullying incidents and effectively improving the safety of the campus.
[0044] The present invention introduces an environmental monitoring module, which is combined with cameras, temperature sensors and other equipment deployed inside the campus to monitor environmental changes such as abnormal gatherings of people and temperature changes, thereby strengthening the campus's early warning and prevention mechanism. By comprehensively judging the analysis results of the environmental monitoring module and the sound feature extraction module, the auxiliary system can more accurately judge whether there is bullying behavior. At the same time, according to the campus map information and path planning, the search range of the event location is limited, thereby improving the accuracy and reliability of the early warning and prevention mechanism, and effectively reducing the occurrence of campus bullying incidents.
[0045] The present invention adopts a machine learning classification algorithm of a support vector machine to classify and recognize patterns of extracted sound features, and performs model training based on a large number of sound samples of known bullying behaviors, so that the system can more accurately identify the sound features of bullying behaviors. At the same time, according to the position information and positioning algorithm of the sound sensor, the location coordinates of the alarm event are accurately determined and transmitted to the receiving device, thereby optimizing the handling and rescue process, so that the campus security office or relevant faculty and staff can quickly understand the location and situation of the incident, and take effective measures to handle and rescue in time, thereby maximizing the safety and health of teachers and students. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 A schematic diagram of various functional modules of a system according to an embodiment of the present invention;
[0048] Figure 2 Schematic diagram of a machine learning classification algorithm according to an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.
[0050] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0051] like Figure 1-Figure 2 As shown in the figure, the AI intelligent sound wave-assisted campus anti-bullying system includes:
[0052] Ambient sound is captured through multiple sound sensors deployed throughout the campus;
[0053] A sound feature extraction module is introduced. The sound feature extraction module analyzes the spectrum, amplitude, and duration of the sound signal, extracts the sound features related to bullying behavior, and builds a sound pattern library of bullying behavior. The sound pattern library integrates a machine learning classification algorithm, monitors the sound signals in the environment in real time, and imports the real-time extracted sound signal features into the machine learning classification algorithm. Based on the analysis results, it is determined whether there is bullying behavior.
[0054] An environmental monitoring module is introduced. The environmental monitoring module uses cameras and temperature sensors deployed inside the campus. When the environmental monitoring module detects abnormal gatherings of people or temperature changes, it is combined with the analysis results of the sound feature extraction module to assist in determining bullying behavior. The environmental monitoring module first uses the cameras deployed inside the campus to monitor the activities of people in various areas of the campus in real time. Through image analysis technology, the system can identify abnormal gatherings of people, such as dense crowds or someone besieging a student. At the same time, temperature sensors are used to monitor temperature changes in various areas of the campus. Abnormal temperature changes may indicate abnormal personnel activities, such as crowds or some people being emotionally agitated. When the environmental monitoring module detects abnormal gatherings of people or temperature changes, the system will make a comprehensive judgment based on the analysis results of the sound feature extraction module;
[0055] When bullying behavior is identified, an alarm is triggered and relevant information is sent to a preset receiving device, including the campus security office or the smartphone of the relevant faculty and staff;
[0056] The positioning module is introduced to determine the exact location of the alarm event through the location information of the sound sensor and combined with the positioning algorithm analysis, and transmit it to the receiving device.
[0057] Sound sensors are arranged in different areas of the campus, including classrooms, corridors, playgrounds, cafeterias, libraries, and blind spots in stairs, which are hidden areas prone to school bullying.
[0058] Classrooms: Install a sound sensor in each corner or on the ceiling to ensure full coverage of the classroom sound and minimize blind spots;
[0059] Corridor: Sound sensors are placed along both sides of the corridor to ensure that the sounds of students' activities and conversations in the corridor can be captured;
[0060] Playground: sound sensors are set up around the playground or at high places to cover every corner of the playground to monitor student activities on the playground;
[0061] Canteen: Install sound sensors on the ceiling or walls of the canteen to monitor the conversations and quarrels among students;
[0062] Library: Sound sensors are installed in the reading and study areas of the library to monitor students’ learning environment.
[0063] The sound feature extraction module specifically includes:
[0064] Spectrum analysis: The fast Fourier transform algorithm is used to convert the sound signal into a spectrum graph. The spectrum analysis technology is applied to extract the frequency distribution characteristics in the spectrum graph, including the main frequency and spectrum bandwidth. Based on the characteristics of the spectrum graph, the frequency range or spectrum form related to bullying behavior is identified, including sharp sound waves and high-frequency noise. The fast Fourier transform algorithm converts the time domain signal into the frequency domain signal. The formula is:
[0065] ,in, is the spectrum signal, is the input time domain signal, is the number of sampling points of the signal, It is the index of the spectrum component. It collects the sound signals in the campus environment and converts them into a spectrum graph through the fast Fourier transform algorithm. The spectrum graph is used to analyze the frequency distribution characteristics of the sound signal.
[0066] Amplitude feature extraction: Use the amplitude detection algorithm to measure the amplitude of the sound signal and analyze the amplitude change trend. Based on the amplitude fluctuation, extract the amplitude features, including the amplitude change frequency and the absolute value of the amplitude. Analyze the relationship between the amplitude features and bullying behavior, and identify the amplitude pattern with bullying behavior characteristics. The amplitude calculation formula is: ,in, is the amplitude value, is the time domain signal, is the number of sampling points of the signal, which reflects the change of the sound amplitude in a short time based on the short-time amplitude change rate, expressed as:
[0067] ,in, is the short-time amplitude change rate, is the amplitude value at the current moment, is the amplitude value at the next moment, is the time interval;
[0068] Duration analysis: The duration analysis algorithm is used to calculate the duration of the sound signal and determine the continuity characteristics of the sound. The duration characteristics are combined with the spectrum and amplitude of the sound signal to comprehensively analyze the continuity of the sound signal to distinguish bullying behavior from other normal sounds. Duration analysis includes calculating the duration of the sound signal and determining the continuity characteristics of the sound. The duration calculation formula is:
[0069] ,in, is the duration, is the number of sampling points of the signal, is the sampling rate of the signal, and the duration of the sound signal is comprehensively analyzed to distinguish bullying behavior from other normal sounds. Sounds with longer duration and abnormal spectral or amplitude characteristics indicate bullying behavior.
[0070] The machine learning classification algorithm uses a support vector machine model to classify and pattern recognize the extracted sound features. Based on a large number of sound samples of known bullying behaviors, the model is trained to identify the sound features of bullying behaviors. Based on classification and pattern recognition, a sound pattern library of bullying behaviors is constructed, including the sound features of bullying behaviors and their corresponding classification labels, for subsequent sound recognition and behavior detection.
[0071] The extracted sound features are stored as sample data in the pattern library. Each sample is associated with a bullying behavior, and each sound sample has a label indicating that it belongs to the category of bullying behavior. The sound pattern library of bullying behavior is regularly updated and maintained to ensure that it is consistent with the actual situation. Newly collected sound samples of bullying behavior need to be added to the pattern library after feature extraction. Each sound sample should record relevant detailed information, such as the time, location, and specific content of the sound, for subsequent analysis and reference.
[0072] The steps of classifying and pattern recognizing the extracted sound features by the support vector machine model include:
[0073] Extract spectrum features, amplitude features and duration features, and standardize the extracted sound features so that the features have the same dimension and scale;
[0074] Data division: The prepared sound sample data set is divided into a training set and a test set. The training set is used to train the support vector machine model, and the test set is used to evaluate the performance of the model.
[0075] Model training: The sound features and corresponding labels (bullying behavior or non-bullying behavior) of the training set are used to train the support vector machine model. The support vector machine model separates the two types of sound sample data by finding the best decision boundary, so that samples of the same category are close to the hyperplane and the shortest distance (i.e., interval) from the hyperplane is maximized;
[0076] Model evaluation: Use the sound features of the test set to evaluate the trained support vector machine model, calculate the model's accuracy, recall rate, F1 score and other indicators, evaluate the model's performance and generalization ability, and tune the support vector machine model's parameters based on the evaluation results;
[0077] The trained support vector machine model is used in real-time monitoring to classify and recognize patterns of sound features extracted in real time. When the sound features monitored in real time match the known sound features of bullying behavior, the support vector machine model will output the classification results of the bullying behavior, trigger an alarm and take corresponding measures.
[0078] The support vector machine model separates different categories of sound samples by learning an optimal decision boundary. The decision function is expressed as:
[0079] ,in, Is a decision function used to judge the sample Which category it belongs to, i.e. bullying label or non-bullying label, is the Lagrange multiplier of the training sample, which is used to weight the support vectors. is the label of the training sample, indicating the category of the sample , is the feature vector of the training sample, is a kernel function used to measure the similarity between samples. is a bias term used to adjust the location of the decision boundary.
[0080] The environmental monitoring module specifically includes:
[0081] Camera image analysis: Use computer vision technology to monitor and analyze camera images on campus in real time, and use the target detection algorithm YOLO to identify crowded areas and analyze the density and aggregation of crowds;
[0082] Temperature sensor data analysis: Real-time temperature data of various areas on campus are collected, and the threshold of temperature change is set. When the temperature exceeds or falls below the set threshold, it is considered an abnormal situation;
[0083] The sound features extracted by the sound feature extraction module are combined with the data from the camera and temperature sensor for comprehensive decision analysis. When a crowded area or abnormal temperature change is detected, the sound features are analyzed at the same time. If the sound features contain sound patterns related to bullying, bullying is determined to have occurred, thereby improving accuracy. Sound patterns related to bullying include screaming and quarreling. More specific sounds include “Help / Help / I’m hitting someone / I’m going to hit you to death / Don’t hit me / Don’t hit me anymore / I’m going to hit you to death if you keep shouting / Teacher, come quickly”.
[0084] Comprehensive decision analysis based on fuzzy logic includes:
[0085] Analysis of camera data: Assume that the density of the crowd detected by the camera is represented by the variable Indicates that the value range is , where 0 means no one and 1 means extremely dense;
[0086] Analysis of temperature sensor data: The temperature changes detected by the temperature sensor are expressed as variables Indicates that the value range is , where 0 indicates normal temperature and 1 indicates abnormal change;
[0087] Analysis results of the sound feature extraction module: Assume that the sound feature of bullying behavior obtained by the sound feature extraction module is represented by the variable Indicates that the value range is , where 0 means no sound signature of bullying behavior is detected, and 1 means the sound signature of obvious bullying behavior is detected;
[0088] Comprehensive evaluation of fuzzy logic: Using fuzzy logic to integrate three variables Conduct a comprehensive assessment to obtain a comprehensive judgment result of bullying behavior:
[0089] Set the fuzzy rules and membership functions by The value of is input into fuzzy logic for fuzzy reasoning to obtain the probability of bullying behavior, which is expressed as a variable , the value range is , where 0 indicates no bullying behavior and 1 indicates obvious bullying behavior.
[0090] The fuzzy rules and membership functions are as follows.
[0091] Blurring of camera data: Crowd density It is divided into three membership functions: Low, Medium, and High. The membership functions are defined as follows:
[0092] Low: exist The range is Decrease linearly within the range;
[0093] Medium: exist The range is and Linear increase within the range;
[0094] High: exist The range is Linear increase within the range;
[0095] Fuzzification of temperature sensor data: Temperature changes It is divided into three membership functions: Low, Medium, and High. The membership functions are defined as follows:
[0096] Low: exist The range is Decrease linearly within the range;
[0097] Medium: exist The range is and Linear increase within the range;
[0098] High: exist The range is Linear increase within the range;
[0099] Fuzzification of sound feature data: sound features It is divided into two membership functions: Low and High. The membership functions are defined as follows:
[0100] Low: exist The range is Decrease linearly within the range;
[0101] High: exist The range is The range increases linearly.
[0102] The fuzzy rules are defined as follows:
[0103] IF is High AND is High AND is High THEN is High (when crowd density, temperature changes, and sound characteristics are all high, bullying may be present);
[0104] IF is Low AND is Low AND is Low THEN is Low (When crowd density, temperature changes, and sound characteristics are low, bullying may not exist).
[0105] Other fuzzy rules can be further defined based on actual situations and empirical knowledge.
[0106] The positioning algorithm uses a triangulation positioning algorithm, which uses the location information of the sound sensor. The location information includes the specific location coordinates of each sound sensor on campus. The triangulation positioning algorithm is combined with the arrival time difference information of the sound signal detected by the sound sensor to calculate the location where the sound event occurred, including:
[0107] Record the location information of each sound sensor, including latitude and longitude coordinates or relative position relationship;
[0108] Measurement of the arrival time difference of sound signals: When a sound event occurs, the arrival time of the sound signal received by each sound sensor is recorded, and the relative position of the sound event is calculated using the arrival time difference;
[0109] The location information of the sound sensor and the time difference of arrival of the sound signal are input into the triangulation positioning algorithm to calculate the exact location coordinates of the sound event.
[0110] Assume there are three sound sensors, their locations are , and When a sound event occurs, the sensor records the arrival time as and , assuming that the distances from the sound sensor to the event location are and ;
[0111] Calculate the distance from the sensor to the event location: using arrival time and speed of sound Calculate the distance from the sound sensor to the event location:
[0112] ;
[0113] ;
[0114] ;
[0115] in, The moment when the event occurred.
[0116] Calculate the event location coordinates: Based on the three sides of the triangle, use the triangulation positioning algorithm to calculate the event location coordinates , first, calculate the relative distance by the arrival time difference:
[0117] ;
[0118] ;
[0119] The corresponding relative distance is:
[0120] ;
[0121] .
[0122] Using triangulation, the following formula is derived to calculate the location of the event: :
[0123] ;
[0124] .
[0125] The positioning algorithm also includes combining campus map information to obtain campus map information, including buildings, room layouts, floor structures, etc. This information is obtained through campus floor plans or three-dimensional modeling.
[0126] Map the location information of the sound sensors onto the campus map to determine the specific location of each sensor on the map.
[0127] The campus map information is introduced into the positioning algorithm as a constraint condition to limit the event location within the search range. Using the constrained optimization method, the boundaries of the campus map and the known building outlines are used as constraints, so that the positioning algorithm takes these constraints into account when searching for the event location, ensuring that the results are within a reasonable range.
[0128] Make sure the calculated location coordinates match the actual layout on the campus map so that the event can be accurately located.
[0129] A quick alarm button is also installed at the installation position of the multiple sound sensors, and the quick alarm button is connected to a preset receiving device.
[0130] Quick alarm buttons are set up near locations where sound sensors are installed, including corridors, classroom entrances, playgrounds and other places on campus where bullying is likely to occur. The buttons are installed so that victims can trigger the alarm at any time.
[0131] The quick alarm button is designed to be easy to identify and trigger. The button is designed to be red and marked with the word alarm or warning pattern so that victims can quickly identify it in an emergency.
[0132] When the victim triggers the alarm button, an alarm signal is immediately sent to the preset receiving device. The alarm signal includes information about the victim's location. The quick alarm button supports two-way communication to stop bullying.
[0133] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present invention is limited to these examples. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity.
[0134] The present invention is intended to cover all such substitutions, modifications and variations that fall within the broad scope of the claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. AI intelligent sound wave assisted campus anti-bullying system, characterized by: include: Ambient sound is captured through multiple sound sensors deployed throughout the campus; A sound feature extraction module is introduced. The sound feature extraction module analyzes the spectrum, amplitude, and duration of the sound signal, extracts the sound features related to bullying behavior, and builds a sound pattern library of bullying behavior. The sound pattern library integrates a machine learning classification algorithm, monitors the sound signals in the environment in real time, and imports the real-time extracted sound signal features into the machine learning classification algorithm. Based on the analysis results, it is determined whether there is bullying behavior. Introducing an environmental monitoring module, which uses cameras and temperature sensors deployed inside the campus. When the environmental monitoring module detects abnormal gatherings of people or temperature changes, combined with the analysis results of the sound feature extraction module, it assists in determining bullying behavior. When bullying behavior is identified, an alarm is triggered and relevant information is sent to a preset receiving device, including the campus security office or the smartphone of the relevant faculty and staff; The positioning module is introduced to determine the exact location of the alarm event through the location information of the sound sensor and combined with the positioning algorithm analysis, and transmit it to the receiving device; The positioning algorithm adopts a triangulation positioning algorithm, using the location information of the sound sensor, the location information includes the specific location coordinates of each sound sensor in the campus, and uses the triangulation positioning algorithm combined with the arrival time difference information of the sound signal detected by the sound sensor to calculate the location where the sound event occurs, specifically including: Record the location information of each sound sensor, including latitude and longitude coordinates or relative position relationship; Measurement of the arrival time difference of sound signals: When a sound event occurs, the arrival time of the sound signal received by each sound sensor is recorded, and the relative position of the sound event is calculated using the arrival time difference; The location information of the sound sensor and the time difference of arrival of the sound signal are input into the triangulation positioning algorithm to calculate the exact location coordinates of the sound event; Assume there are three sound sensors, their locations are , and When a sound event occurs, the sensor records the arrival time as and , assuming that the distances from the sound sensor to the event location are and ; Calculate the distance from the sensor to the event location: using arrival time and speed of sound Calculate the distance from the sound sensor to the event location: ; ; ; in, The moment when the event occurred; Calculate the event location coordinates: Based on the three sides of the triangle, use the triangulation positioning algorithm to calculate the event location coordinates , first, calculate the relative distance by the arrival time difference: ; ; The corresponding relative distance is: ; ; Using triangulation, the following formula is derived to calculate the location of the event: : ; ; The positioning algorithm also includes combining campus map information to obtain campus map information, including buildings, room layouts, and floor structures; Map the location information of the sound sensors onto the campus map to determine the specific location of each sensor on the map; The campus map information is introduced as a constraint condition into the positioning algorithm to limit the event location within the search range. The constraint optimization method is used to take the boundaries of the campus map and the known building outlines as constraints so that the positioning algorithm considers these constraints when searching for the event location, ensuring that the results are within a reasonable range. Ensure that the calculated location coordinates match the actual layout on the campus map so that the event can be accurately located; The sound feature extraction module specifically includes: Spectrum analysis: Use the fast Fourier transform algorithm to convert the sound signal into a spectrum graph. Apply spectrum analysis technology to extract the frequency distribution characteristics in the spectrum graph, including the main frequency and spectrum bandwidth. Based on the characteristics of the spectrum graph, identify the frequency range or spectrum form related to bullying behavior, including sharp sound waves and high-frequency noise; Amplitude feature extraction: Use the amplitude detection algorithm to measure the amplitude of the sound signal and analyze the amplitude change trend. Based on the amplitude fluctuation, extract the amplitude features, including the amplitude change frequency and the absolute value of the amplitude. Analyze the relationship between the amplitude features and bullying behavior, and identify the amplitude pattern with bullying behavior characteristics. The amplitude calculation formula is: ,in, is the amplitude value, is the time domain signal, is the number of sampling points of the signal, which reflects the change of the sound amplitude in a short time based on the short-time amplitude change rate, expressed as: ,in, is the short-time amplitude change rate, is the amplitude value at the current moment, is the amplitude value at the next moment, is the time interval; Duration analysis: The duration analysis algorithm is used to calculate the duration of the sound signal and determine the continuity characteristics of the sound. The duration characteristics are combined with the spectrum and amplitude of the sound signal to comprehensively analyze the continuity of the sound signal to distinguish bullying behavior from other normal sounds. Duration analysis includes calculating the duration of the sound signal and determining the continuity characteristics of the sound. The duration calculation formula is: ,in, is the duration, is the number of sampling points of the signal, is the sampling rate of the signal; The machine learning classification algorithm uses a support vector machine model to classify and pattern recognize the extracted sound features, and based on the sound samples of known bullying behaviors, trains the model to recognize the sound features of bullying behaviors, and builds a sound pattern library of bullying behaviors based on classification and pattern recognition, including the sound features of bullying behaviors and their corresponding classification labels, for subsequent sound recognition and behavior detection; The steps of classifying and pattern recognizing the extracted sound features by the support vector machine model include: Extract spectrum features, amplitude features and duration features, and standardize the extracted sound features so that the features have the same dimension and scale; Data division: The prepared sound sample data set is divided into a training set and a test set. The training set is used to train the support vector machine model, and the test set is used to evaluate the performance of the model. Model training: Use the sound features and corresponding labels of the training set to train the support vector machine model. The support vector machine model separates the two types of sound sample data by finding the optimal decision boundary. Model evaluation: Use the sound features of the test set to evaluate the trained support vector machine model, and tune the parameters of the support vector machine model based on the evaluation results; The trained support vector machine model is used in real-time monitoring to classify and recognize the sound features extracted in real time. When the sound features monitored in real time match the known sound features of bullying behavior, the support vector machine model will output the classification results of the bullying behavior, trigger an alarm and take corresponding measures. The support vector machine model separates different categories of sound samples by learning an optimal decision boundary. The decision function is expressed as: ,in, Is a decision function used to judge the sample Which category it belongs to, i.e. bullying label or non-bullying label, is the Lagrange multiplier of the training sample, which is used to weight the support vectors. is the label of the training sample, indicating the category of the sample, is the feature vector of the training sample, is a kernel function used to measure the similarity between samples. is a bias term used to adjust the position of the decision boundary; The environmental monitoring module specifically includes: Camera image analysis: Use computer vision technology to monitor and analyze camera images on campus in real time, and use the target detection algorithm YOLO to identify crowded areas and analyze the density and aggregation of crowds; Temperature sensor data analysis: Real-time temperature data of various areas on campus are collected, and the threshold of temperature change is set. When the temperature exceeds or falls below the set threshold, it is considered an abnormal situation; The sound features extracted by the sound feature extraction module are combined with the data from the camera and temperature sensor for comprehensive decision analysis. When a crowded area or abnormal temperature changes are detected, the sound features are analyzed at the same time. If the sound features contain sound patterns related to bullying behavior, it is determined that bullying has occurred.
2. The AI intelligent sound wave assisted campus anti-bullying system according to claim 1 is characterized in that: The sound sensors are arranged according to different areas on campus, including classrooms, corridors, playgrounds, canteens, libraries and blind spots in stairs.
3. The AI intelligent sound wave assisted campus anti-bullying system according to claim 1 is characterized in that: The comprehensive decision analysis is based on fuzzy logic and specifically includes: Analysis of camera data: Assume that the density of the crowd detected by the camera is represented by the variable Indicates that the value range is , where 0 means no one and 1 means extremely dense; Analysis of temperature sensor data: The temperature changes detected by the temperature sensor are expressed as variables Indicates that the value range is , where 0 indicates normal temperature and 1 indicates abnormal change; Analysis results of the sound feature extraction module: Assume that the sound feature of bullying behavior obtained by the sound feature extraction module is represented by the variable Indicates that the value range is , where 0 means no sound signature of bullying behavior is detected, and 1 means the sound signature of obvious bullying behavior is detected; Comprehensive evaluation of fuzzy logic: Using fuzzy logic to integrate three variables Conduct a comprehensive assessment to obtain a comprehensive judgment result of bullying behavior: Set the fuzzy rules and membership functions by The value of is input into fuzzy logic for fuzzy reasoning to obtain the probability of bullying behavior, which is expressed as a variable , the value range is , where 0 indicates no bullying behavior and 1 indicates obvious bullying behavior.
4. The AI intelligent sound wave assisted campus anti-bullying system according to claim 1 is characterized in that: A quick alarm button is also installed at the installation position of the multiple sound sensors, and the quick alarm button is connected to a preset receiving device.
Citation Information
Patent Citations
Children speech emotion recognition method
CN101685634A
Intelligent door and window anti-invasion system
CN103198595A
Intelligent campus big data safety early warning platform based on cloud platform
CN109147267A
Intelligent monitoring system for campus security and protection based on Internet of Things technology
CN109920203A
Adaptive background noise detection method and system and medium
CN114220446A
Cited By
Safety management method and system based on smart campus
CN120707349A
