Edge computing device sound detection method and system

By deploying the Mob i l eNet model on edge computing devices for sound detection, local event detection and timely notification uploading are realized, which solves the problem of sound detection delay on edge computing devices and improves detection timeliness and security.

CN118609588APending Publication Date: 2024-09-06FUJIAN NEWLAND COMM SCI TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410765873.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Due to resource constraints, existing edge computing device sound detection methods need to rely on cloud computing, resulting in high delays and inability to achieve timely sound detection.

Method used

Create and train a sound detection model through Mob i l eNet, write the model to the edge computing device, use the microphone to collect sound signals in real time for preprocessing and fast Fourier transform, extract sound features, and perform sound event detection locally, only in Generate and encrypt alert notifications uploaded to the server when an event is detected.

Benefits of technology

It achieves the timeliness of sound detection for edge computing devices, reduces model complexity, reduces the amount of data uploaded, reduces bandwidth pressure, and improves the security of alarm notifications through multiple security measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609588A
    Figure CN118609588A
Patent Text Reader

Abstract

The invention provides an edge computing device sound detection method and system in the technical field of sound detection, and the method comprises the steps: S1, building a sound detection model based on MobileNet, training the sound detection model, and writing the trained sound detection model into an edge computing device; s2, the edge computing device collects sound signals in the environment in real time through a microphone, and the sound signals are preprocessed; s3, performing fast Fourier transform on the preprocessed sound signal to obtain a frequency domain signal, and extracting sound features from the frequency domain signal; s4, inputting the sound features into a sound detection model to detect a sound event, and generating an alarm notification based on the detected sound event; and S5, encrypting the alarm notification into an encrypted notification, and uploading the encrypted notification to a server through a TLS protocol. The method has the advantage that the timeliness of sound detection of the edge computing device is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of sound detection technology, and in particular to a sound detection method and system for edge computing equipment. Background Art

[0002] With the rapid development of the Internet of Things and edge computing, more and more devices need to perform intelligent processing at the edge, and sound detection, as an important function, is widely used in security monitoring, smart home, industrial detection and other fields. However, for sound detection of edge computing devices, due to the limited resources of edge computing devices, existing sound detection methods often need to rely on cloud computing, resulting in high delays in sound detection.

[0003] Therefore, how to provide a sound detection method and system for edge computing devices to improve the timeliness of sound detection of edge computing devices has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method and system for sound detection of edge computing devices, so as to improve the timeliness of sound detection of edge computing devices.

[0005] In a first aspect, the present invention provides a method for detecting sound of an edge computing device, comprising the following steps:

[0006] Step S1: creating a sound detection model based on MobileNet, training the sound detection model, and writing the trained sound detection model into an edge computing device;

[0007] Step S2: The edge computing device collects sound signals in the environment in real time through a microphone and pre-processes the sound signals;

[0008] Step S3: The edge computing device performs a fast Fourier transform on the preprocessed sound signal to obtain a frequency domain signal, and extracts sound features from the frequency domain signal;

[0009] Step S4: The edge computing device inputs the sound feature into a sound detection model to detect a sound event, and generates an alarm notification based on the detected sound event;

[0010] Step S5: The edge computing device encrypts the alarm notification into an encrypted notification, and uploads the encrypted notification to the server via the TLS protocol.

[0011] Furthermore, the step S1 is specifically as follows:

[0012] The server creates a sound detection model for sound event detection based on MobileNet, sets a loss function of the sound detection model, obtains a large number of historical sound signals, and sequentially performs preprocessing including at least noise reduction, gain adjustment, fast Fourier transform, and sound feature labeling on each of the historical sound signals to construct a sound data set;

[0013] Dividing the sound data set into a training set and a validation set based on a ratio of 7:3, training the sound detection model through the training set until the loss value of the loss function is less than a preset loss threshold, and continuously optimizing the hyperparameters of the sound detection model including at least a random deactivation rate, a weight decay rate, and a learning rate during the training process;

[0014] The trained sound detection model is verified through the verification set to determine whether the detection accuracy is greater than the preset accuracy threshold. If so, the verification is passed and the sound detection model is written into the edge computing device; if not, the training set is expanded to continue training the sound detection model.

[0015] Furthermore, the step S2 is specifically as follows:

[0016] After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is preprocessed including at least noise reduction and gain adjustment;

[0017] In step S3, the sound features include at least Mel-frequency cepstral coefficients, pitch, loudness, timbre, frequency, and amplitude.

[0018] Furthermore, the step S4 is specifically as follows:

[0019] The edge computing device inputs the sound features into the sound detection model in real time, and the sound detection model outputs the identified sound events in real time to detect the sound events, and matches the sound events based on a preset alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location.

[0020] Furthermore, the step S5 is specifically as follows:

[0021] The edge computing device creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a secret key, performs MAC calculation on the alarm notification to obtain a MAC value, obtains the current timestamp, encrypts the alarm notification, the MAC value, and the timestamp through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, encrypts the mapping data and the secret key through the ECC algorithm to obtain an encrypted notification, and uploads the encrypted notification to the server in real time through the TLS protocol;

[0022] The server performs distributed backup of the received encrypted notification and forwards the encrypted notification to the pre-associated management terminal in real time;

[0023] The management terminal decrypts the received encrypted notification through the ECC algorithm to obtain mapping data and a key, decrypts the key through the EDA algorithm to obtain a public key, maps the mapping data through a preset mapping rule to obtain encrypted data, decrypts the encrypted data through the public key to obtain an alarm notification, a MAC value, and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the MAC value, and finally displays the alarm notification.

[0024] In a second aspect, the present invention provides an edge computing device sound detection system, comprising the following modules:

[0025] A sound detection model writing module, used to create a sound detection model based on MobileNet, train the sound detection model, and write the trained sound detection model into an edge computing device;

[0026] A sound signal acquisition module, which is used for the edge computing device to collect sound signals in the environment in real time through a microphone and pre-process the sound signals;

[0027] A sound feature extraction module is used for the edge computing device to perform fast Fourier transform on the pre-processed sound signal to obtain a frequency domain signal, and extract sound features from the frequency domain signal;

[0028] A sound event detection module, configured for an edge computing device to input the sound features into a sound detection model to detect a sound event, and to generate an alarm notification based on the detected sound event;

[0029] The alarm notification uploading module is used for the edge computing device to encrypt the alarm notification into an encrypted notification, and upload the encrypted notification to the server through the TLS protocol.

[0030] Furthermore, the sound detection model writing module is specifically used for:

[0031] The server creates a sound detection model for sound event detection based on MobileNet, sets a loss function of the sound detection model, obtains a large number of historical sound signals, and sequentially performs preprocessing including at least noise reduction, gain adjustment, fast Fourier transform, and sound feature labeling on each of the historical sound signals to construct a sound data set;

[0032] Dividing the sound data set into a training set and a validation set based on a ratio of 7:3, training the sound detection model through the training set until the loss value of the loss function is less than a preset loss threshold, and continuously optimizing the hyperparameters of the sound detection model including at least a random deactivation rate, a weight decay rate, and a learning rate during the training process;

[0033] The trained sound detection model is verified through the verification set to determine whether the detection accuracy is greater than the preset accuracy threshold. If so, the verification is passed and the sound detection model is written into the edge computing device; if not, the training set is expanded to continue training the sound detection model.

[0034] Furthermore, the sound signal acquisition module is specifically used for:

[0035] After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is preprocessed including at least noise reduction and gain adjustment;

[0036] In the sound feature extraction module, the sound features at least include Mel-frequency cepstral coefficients, pitch, loudness, timbre, frequency, and amplitude.

[0037] Furthermore, the sound event detection module is specifically used for:

[0038] The edge computing device inputs the sound features into the sound detection model in real time, and the sound detection model outputs the identified sound events in real time to detect the sound events, and matches the sound events based on a preset alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location.

[0039] Furthermore, the alarm notification uploading module is specifically used for:

[0040] The edge computing device creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a secret key, performs MAC calculation on the alarm notification to obtain a MAC value, obtains the current timestamp, encrypts the alarm notification, the MAC value, and the timestamp through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, encrypts the mapping data and the secret key through the ECC algorithm to obtain an encrypted notification, and uploads the encrypted notification to the server in real time through the TLS protocol;

[0041] The server performs distributed backup of the received encrypted notification and forwards the encrypted notification to the pre-associated management terminal in real time;

[0042] The management terminal decrypts the received encrypted notification through the ECC algorithm to obtain mapping data and a key, decrypts the key through the EDA algorithm to obtain a public key, maps the mapping data through a preset mapping rule to obtain encrypted data, decrypts the encrypted data through the public key to obtain an alarm notification, a MAC value, and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the MAC value, and finally displays the alarm notification.

[0043] The advantages of the present invention are:

[0044] 1. Create a sound detection model through Mobil eNet and train it, and write the trained sound detection model into the edge computing device; the edge computing device collects sound signals in the environment in real time through a microphone and preprocesses them, performs fast Fourier transform on the preprocessed sound signals to obtain frequency domain signals, extracts sound features from the frequency domain signals, inputs the sound features into the sound detection model to detect sound events, generates alarm notifications based on the detected sound events, and encrypts the alarm notifications into encrypted notifications and uploads them to the server; because Mobil eNet reduces the number of parameters and the amount of calculation through deep separable convolution, it effectively reduces the complexity of the sound detection model, realizes the lightweight of the sound detection model, and is easy to deploy on resource-constrained edge computing devices. The sound detection model deployed on the edge computing device is used to detect local sound events without relying on cloud computing. Only when the sound event triggers the corresponding alarm, an alarm notification is generated and uploaded to the server. The amount of uploaded data is small, which reduces bandwidth pressure and ultimately greatly improves the timeliness of sound detection of edge computing devices.

[0045] 2. The sound data set is divided into a training set and a validation set in a ratio of 7:3. The sound detection model is trained with the training set until the loss value of the loss function is less than the preset loss threshold. During the training process, the hyperparameters including at least the random inactivation rate, weight decay rate and learning rate are continuously optimized. The trained sound detection model is then verified with the validation set. If the detection accuracy is less than the preset accuracy threshold, the training set is expanded to continue training the sound detection model. Since the hyperparameters are continuously optimized during the training process and the training is stopped only when the detection accuracy is greater than the accuracy threshold, the detection accuracy of the sound detection model is greatly guaranteed.

[0046] 3. After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is pre-processed including at least noise reduction and gain adjustment to facilitate subsequent sound feature extraction, thereby effectively improving the detection accuracy of the edge computing device sound detection.

[0047] 4. Match the sound events through the alarm table. When there is a matching sound event, generate an alarm notification that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location. The alarm notification can then be used to quickly locate the alarm area and obtain details of the alarm, thereby promptly handling the emergency.

[0048] 5. Create a pair of public and private keys through the RSA algorithm, encrypt the public key through the EDA algorithm to obtain the secret key, perform MAC calculation on the alarm notification to obtain the MAC value, obtain the current timestamp, encrypt the alarm notification, MAC value and timestamp through the private key to obtain encrypted data, map the encrypted data through the preset mapping rule to obtain the mapping data, encrypt the mapping data and the key through the ECC algorithm to obtain the encrypted notification, and upload the encrypted notification to the server in real time through the TLS protocol; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and the MAC calculation is based on the Hash function with a secret key, which is more secure than the ordinary hash calculation. The time validity check can be performed through the timestamp later. If the mapping rule is not known, the encrypted data cannot be restored. The TLS protocol is a secure transport layer protocol used to provide confidentiality, data integrity and authenticity. At least eight security measures are taken before and after (RSA algorithm, public and private keys, EDA algorithm, MAC calculation, timestamp, mapping rules, ECC algorithm, TLS protocol), which greatly improves the security of uploading alarm notifications.

[0049] 6. Distributed backup of received encrypted notifications is performed through the server, which not only ensures the security of the backup, but also facilitates later tracing. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.

[0051] Figure 1 It is a flow chart of a sound detection method for an edge computing device of the present invention.

[0052] Figure 2 It is a structural schematic diagram of a sound detection system for edge computing equipment of the present invention. DETAILED DESCRIPTION

[0053] The technical solution in the embodiments of the present application has the following overall idea: a sound detection model is created through Mob ile Net and deployed on an edge computing device to detect sound events. Since Mob ile Net reduces the number of parameters and the amount of calculation through deep separable convolution, the complexity of the sound detection model is effectively reduced, which is convenient for deployment on resource-constrained edge computing devices. Sound event detection does not need to rely on cloud computing. Only when a sound event triggers a corresponding alarm is an alarm notification generated and uploaded to the server. The amount of uploaded data is small, which reduces bandwidth pressure, thereby improving the timeliness of sound detection on edge computing devices.

[0054] Please refer to Figure 1 to Figure 2 As shown, a preferred embodiment of a sound detection method for an edge computing device of the present invention includes the following steps:

[0055] Step S1: creating a sound detection model based on Mobil eNet, training the sound detection model, and writing the trained sound detection model into an edge computing device;

[0056] Step S2: The edge computing device collects sound signals in the environment in real time through a microphone and pre-processes the sound signals to improve the quality of the sound signals;

[0057] Step S3: The edge computing device performs a fast Fourier transform (FFT) on the preprocessed sound signal to obtain a frequency domain signal, and extracts sound features from the frequency domain signal, that is, extracts the sound features with distinguishability;

[0058] Step S4: The edge computing device inputs the sound feature into a sound detection model to detect a sound event, and generates an alarm notification based on the detected sound event; in specific implementation, a preset operation may also be automatically performed based on the sound event, such as starting a recording function;

[0059] Step S5: The edge computing device encrypts the alarm notification into an encrypted notification, and uploads the encrypted notification to the server via the TLS protocol.

[0060] When implemented, the present invention can be applied to smart homes, industrial monitoring, public safety, environmental monitoring, and the automotive industry;

[0061] ① Smart home: used for home security systems such as intrusion detection, baby monitoring, elderly fall detection, etc., to provide real-time alerts and notifications. ② Industrial monitoring: in industrial environments, used for machine fault detection and abnormal sound recognition to prevent equipment damage and improve production efficiency. ③ Public safety: in public places such as shopping malls, stations, airports, etc., used to monitor abnormal sounds such as screaming, breaking sounds, etc., to quickly respond to emergencies. ④ Environmental monitoring: in the wild or in specific areas, used to monitor animal calls, gunshots, etc., for wildlife protection or illegal hunting monitoring. ⑤ Automotive industry: in vehicles, used for driver fatigue monitoring, in-vehicle environment monitoring, etc., to improve driving safety.

[0062] The step S1 is specifically as follows:

[0063] The server creates a sound detection model for sound event detection based on MobileNet, sets a loss function of the sound detection model, obtains a large number of historical sound signals, and sequentially performs preprocessing including at least noise reduction, gain adjustment, fast Fourier transform, and sound feature labeling on each of the historical sound signals to construct a sound data set;

[0064] Dividing the sound data set into a training set and a validation set based on a ratio of 7:3, training the sound detection model through the training set until the loss value of the loss function is less than a preset loss threshold, and continuously optimizing the hyperparameters of the sound detection model including at least a random deactivation rate, a weight decay rate, and a learning rate during the training process;

[0065] The trained sound detection model is verified through the verification set to determine whether the detection accuracy is greater than the preset accuracy threshold. If so, the verification is passed and the sound detection model is written into the edge computing device; if not, the training set is expanded to continue training the sound detection model.

[0066] The sound data set is divided into a training set and a validation set in a ratio of 7:3. The sound detection model is trained with the training set until the loss value of the loss function is less than the preset loss threshold. During the training process, the hyperparameters including at least the random inactivation rate, the weight decay rate and the learning rate are continuously optimized. The trained sound detection model is then verified with the validation set. If the detection accuracy is less than the preset accuracy threshold, the training set is expanded to continue training the sound detection model. Since the hyperparameters are continuously optimized during the training process and the training is stopped only when the detection accuracy is greater than the accuracy threshold, the detection accuracy of the sound detection model is greatly guaranteed.

[0067] The step S2 is specifically as follows:

[0068] After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is preprocessed including at least noise reduction and gain adjustment;

[0069] In step S3, the sound features include at least Mel-frequency cepstral coefficients (MFCCs), pitch, loudness, timbre, frequency, and amplitude.

[0070] After the edge computing device is powered on and initialized, the sound signals in the environment are collected in real time through the microphone, and the sound signals are pre-processed including at least noise reduction and gain adjustment to facilitate subsequent sound feature extraction, thereby effectively improving the detection accuracy of sound detection of the edge computing device.

[0071] The step S4 is specifically as follows:

[0072] The edge computing device inputs the sound features into the sound detection model in real time, and the sound detection model outputs the identified sound events in real time to detect the sound events, and matches the sound events based on a preset alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location.

[0073] Sound events are matched through the alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location. The alarm notification can then be used to quickly locate the alarm area and obtain details of the alarm, thereby promptly handling the emergency.

[0074] The step S5 is specifically as follows:

[0075] The edge computing device creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a secret key, performs MAC calculation on the alarm notification to obtain a MAC value, obtains the current timestamp, encrypts the alarm notification, the MAC value, and the timestamp through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, encrypts the mapping data and the secret key through the ECC algorithm to obtain an encrypted notification, and uploads the encrypted notification to the server in real time through the TLS protocol;

[0076] A pair of public and private keys are created through the RSA algorithm, the public key is encrypted through the EDA algorithm to obtain the secret key, the alarm notification is MAC calculated to obtain the MAC value, the current timestamp is obtained, the alarm notification, MAC value and timestamp are encrypted through the private key to obtain encrypted data, the encrypted data is mapped through the preset mapping rule to obtain the mapping data, the mapping data and the key are encrypted through the ECC algorithm to obtain the encrypted notification, and the encrypted notification is uploaded to the server in real time through the TLS protocol; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and the MAC calculation is based on the Hash function with a secret key, which is more secure than the ordinary hash calculation. The time validity check can be performed through the timestamp later. If the mapping rule is not known, the encrypted data cannot be restored. The TLS protocol is a secure transport layer protocol used to provide confidentiality, data integrity and authenticity. At least eight security measures are taken before and after (RSA algorithm, public and private keys, EDA algorithm, MAC calculation, timestamp, mapping rules, ECC algorithm, TLS protocol), which greatly improves the security of uploading alarm notifications.

[0077] The server performs distributed backup of the received encrypted notification and forwards the encrypted notification to the pre-associated management terminal in real time;

[0078] Distributed backup of received encrypted notifications through the server not only ensures the security of the backup, but also facilitates later tracing.

[0079] The management terminal decrypts the received encrypted notification through the ECC algorithm to obtain mapping data and a key, decrypts the key through the EDA algorithm to obtain a public key, maps the mapping data through a preset mapping rule to obtain encrypted data, decrypts the encrypted data through the public key to obtain an alarm notification, a MAC value, and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the MAC value, and finally displays the alarm notification.

[0080] A preferred embodiment of a sound detection system for an edge computing device of the present invention includes the following modules:

[0081] A sound detection model writing module, used to create a sound detection model based on MobileNet, train the sound detection model, and write the trained sound detection model into an edge computing device;

[0082] The sound signal acquisition module is used for the edge computing device to collect sound signals in the environment in real time through a microphone and pre-process the sound signals to improve the quality of the sound signals;

[0083] A sound feature extraction module is used for the edge computing device to perform a fast Fourier transform (FFT) on the preprocessed sound signal to obtain a frequency domain signal, and extract sound features from the frequency domain signal, that is, to extract the sound features with distinguishability;

[0084] A sound event detection module is used for the edge computing device to input the sound features into the sound detection model to detect the sound event, and generate an alarm notification based on the detected sound event; in specific implementation, a preset operation may also be automatically executed based on the sound event, such as starting a video recording function;

[0085] The alarm notification uploading module is used for the edge computing device to encrypt the alarm notification into an encrypted notification, and upload the encrypted notification to the server through the TLS protocol.

[0086] When implemented, the present invention can be applied to smart homes, industrial monitoring, public safety, environmental monitoring, and the automotive industry;

[0087] ① Smart home: used for home security systems such as intrusion detection, baby monitoring, elderly fall detection, etc., to provide real-time alerts and notifications. ② Industrial monitoring: in industrial environments, used for machine fault detection and abnormal sound recognition to prevent equipment damage and improve production efficiency. ③ Public safety: in public places such as shopping malls, stations, airports, etc., used to monitor abnormal sounds such as screaming, breaking sounds, etc., to quickly respond to emergencies. ④ Environmental monitoring: in the wild or in specific areas, used to monitor animal calls, gunshots, etc., for wildlife protection or illegal hunting monitoring. ⑤ Automotive industry: in vehicles, used for driver fatigue monitoring, in-vehicle environment monitoring, etc., to improve driving safety.

[0088] The sound detection model writing module is specifically used for:

[0089] The server creates a sound detection model for sound event detection based on MobileNet, sets a loss function of the sound detection model, obtains a large number of historical sound signals, and sequentially performs preprocessing including at least noise reduction, gain adjustment, fast Fourier transform, and sound feature labeling on each of the historical sound signals to construct a sound data set;

[0090] Dividing the sound data set into a training set and a validation set based on a ratio of 7:3, training the sound detection model through the training set until the loss value of the loss function is less than a preset loss threshold, and continuously optimizing the hyperparameters of the sound detection model including at least a random deactivation rate, a weight decay rate, and a learning rate during the training process;

[0091] The trained sound detection model is verified through the verification set to determine whether the detection accuracy is greater than the preset accuracy threshold. If so, the verification is passed and the sound detection model is written into the edge computing device; if not, the training set is expanded to continue training the sound detection model.

[0092] The sound data set is divided into a training set and a validation set in a ratio of 7:3. The sound detection model is trained with the training set until the loss value of the loss function is less than the preset loss threshold. During the training process, the hyperparameters including at least the random inactivation rate, the weight decay rate and the learning rate are continuously optimized. The trained sound detection model is then verified with the validation set. If the detection accuracy is less than the preset accuracy threshold, the training set is expanded to continue training the sound detection model. Since the hyperparameters are continuously optimized during the training process and the training is stopped only when the detection accuracy is greater than the accuracy threshold, the detection accuracy of the sound detection model is greatly guaranteed.

[0093] The sound signal acquisition module is specifically used for:

[0094] After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is preprocessed including at least noise reduction and gain adjustment;

[0095] In the sound feature extraction module, the sound features include at least Mel-frequency cepstral coefficients (MFCCs), pitch, loudness, timbre, frequency, and amplitude.

[0096] After the edge computing device is powered on and initialized, the sound signals in the environment are collected in real time through the microphone, and the sound signals are pre-processed including at least noise reduction and gain adjustment to facilitate subsequent sound feature extraction, thereby effectively improving the detection accuracy of sound detection of the edge computing device.

[0097] The sound event detection module is specifically used for:

[0098] The edge computing device inputs the sound features into the sound detection model in real time, and the sound detection model outputs the identified sound events in real time to detect the sound events, and matches the sound events based on a preset alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location.

[0099] Sound events are matched through the alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location. The alarm notification can then be used to quickly locate the alarm area and obtain details of the alarm, thereby promptly handling the emergency.

[0100] The alarm notification uploading module is specifically used for:

[0101] The edge computing device creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a secret key, performs MAC calculation on the alarm notification to obtain a MAC value, obtains the current timestamp, encrypts the alarm notification, the MAC value, and the timestamp through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, encrypts the mapping data and the secret key through the ECC algorithm to obtain an encrypted notification, and uploads the encrypted notification to the server in real time through the TLS protocol;

[0102] A pair of public and private keys are created through the RSA algorithm, the public key is encrypted through the EDA algorithm to obtain the secret key, the alarm notification is MAC calculated to obtain the MAC value, the current timestamp is obtained, the alarm notification, MAC value and timestamp are encrypted through the private key to obtain encrypted data, the encrypted data is mapped through the preset mapping rules to obtain the mapping data, the mapping data and the key are encrypted through the ECC algorithm to obtain the encrypted notification, and the encrypted notification is uploaded to the server in real time through the TLS protocol; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and the MAC calculation is based on the Hash function with a secret key, which is more secure than the ordinary hash calculation. The time validity check can be performed through the timestamp later. If the mapping rules are not known, the encrypted data cannot be restored. The TLS protocol is a secure transport layer protocol used to provide confidentiality, data integrity and authenticity. At least eight security measures are taken before and after (RSA algorithm, public and private keys, EDA algorithm, MAC calculation, timestamp, mapping rules, ECC algorithm, TLS protocol), which greatly improves the security of alarm notification upload.

[0103] The server performs distributed backup of the received encrypted notification and forwards the encrypted notification to the pre-associated management terminal in real time;

[0104] Distributed backup of received encrypted notifications through the server not only ensures the security of the backup, but also facilitates later tracing.

[0105] The management terminal decrypts the received encrypted notification through the ECC algorithm to obtain mapping data and a key, decrypts the key through the EDA algorithm to obtain a public key, maps the mapping data through a preset mapping rule to obtain encrypted data, decrypts the encrypted data through the public key to obtain an alarm notification, a MAC value, and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the MAC value, and finally displays the alarm notification.

[0106] In summary, the advantages of the present invention are:

[0107] 1. Create a sound detection model through Mob il eNet and train it, and write the trained sound detection model into the edge computing device; the edge computing device collects sound signals in the environment in real time through a microphone and preprocesses them, performs fast Fourier transform on the preprocessed sound signals to obtain frequency domain signals, extracts sound features from the frequency domain signals, inputs the sound features into the sound detection model to detect sound events, generates alarm notifications based on the detected sound events, and encrypts the alarm notifications into encrypted notifications and uploads them to the server; because Mob il eNet reduces the number of parameters and the amount of calculation through deep separable convolution, it effectively reduces the complexity of the sound detection model, realizes the lightweight of the sound detection model, and is easy to deploy on resource-constrained edge computing devices. The sound detection model deployed on the edge computing device is used to detect local sound events without relying on cloud computing. Only when the sound event triggers the corresponding alarm, an alarm notification is generated and uploaded to the server. The amount of uploaded data is small, which reduces bandwidth pressure, and ultimately greatly improves the timeliness of sound detection of edge computing devices.

[0108] 2. The sound data set is divided into a training set and a validation set in a ratio of 7:3. The sound detection model is trained with the training set until the loss value of the loss function is less than the preset loss threshold. During the training process, the hyperparameters including at least the random inactivation rate, weight decay rate and learning rate are continuously optimized. The trained sound detection model is then verified with the validation set. If the detection accuracy is less than the preset accuracy threshold, the training set is expanded to continue training the sound detection model. Since the hyperparameters are continuously optimized during the training process and the training is stopped only when the detection accuracy is greater than the accuracy threshold, the detection accuracy of the sound detection model is greatly guaranteed.

[0109] 3. After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is pre-processed including at least noise reduction and gain adjustment to facilitate subsequent sound feature extraction, thereby effectively improving the detection accuracy of the edge computing device sound detection.

[0110] 4. Match the sound events through the alarm table. When there is a matching sound event, generate an alarm notification that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location. The alarm notification can then be used to quickly locate the alarm area and obtain details of the alarm, thereby promptly handling the emergency.

[0111] 5. Create a pair of public and private keys through the RSA algorithm, encrypt the public key through the EDA algorithm to obtain the secret key, perform MAC calculation on the alarm notification to obtain the MAC value, obtain the current timestamp, encrypt the alarm notification, MAC value and timestamp through the private key to obtain encrypted data, map the encrypted data through the preset mapping rule to obtain the mapping data, encrypt the mapping data and the key through the ECC algorithm to obtain the encrypted notification, and upload the encrypted notification to the server in real time through the TLS protocol; since the data encrypted by the private key can only be decrypted by the public key, the public key is encrypted multiple times, and the MAC calculation is based on the Hash function with a secret key, which is more secure than the ordinary hash calculation. The time validity check can be performed through the timestamp later. If the mapping rule is not known, the encrypted data cannot be restored. The TLS protocol is a secure transport layer protocol used to provide confidentiality, data integrity and authenticity. At least eight security measures are taken before and after (RSA algorithm, public and private keys, EDA algorithm, MAC calculation, timestamp, mapping rules, ECC algorithm, TLS protocol), which greatly improves the security of uploading alarm notifications.

[0112] 6. Distributed backup of received encrypted notifications is performed through the server, which not only ensures the security of the backup, but also facilitates later tracing.

[0113] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.

Claims

1. A sound detection method for an edge computing device, characterized in that: The steps include: Step S1, creating a sound detection model based on MobileNet, training the sound detection model, and writing the trained sound detection model into an edge computing device; Step S2: The edge computing device collects sound signals in the environment in real time through a microphone and pre-processes the sound signals; Step S3: The edge computing device performs a fast Fourier transform on the preprocessed sound signal to obtain a frequency domain signal, and extracts sound features from the frequency domain signal; Step S4: The edge computing device inputs the sound feature into a sound detection model to detect a sound event, and generates an alarm notification based on the detected sound event; Step S5: The edge computing device encrypts the alarm notification into an encrypted notification, and uploads the encrypted notification to the server via the TLS protocol.

2. The edge computing device sound detection method according to claim 1, characterized in that: The step S1 is specifically as follows: The server creates a sound detection model for sound event detection based on MobileNet, sets a loss function of the sound detection model, obtains a large number of historical sound signals, and sequentially performs preprocessing including at least noise reduction, gain adjustment, fast Fourier transform, and sound feature labeling on each of the historical sound signals to construct a sound data set; Dividing the sound data set into a training set and a validation set based on a ratio of 7:3, training the sound detection model through the training set until the loss value of the loss function is less than a preset loss threshold, and continuously optimizing the hyperparameters of the sound detection model including at least a random deactivation rate, a weight decay rate, and a learning rate during the training process; The trained sound detection model is verified through the verification set to determine whether the detection accuracy is greater than the preset accuracy threshold. If so, the verification is passed and the sound detection model is written into the edge computing device; if not, the training set is expanded to continue training the sound detection model.

3. The edge computing device sound detection method according to claim 1, characterized in that: The step S2 is specifically as follows: After the edge computing device is powered on and initialized, the sound signal in the environment is collected in real time through the microphone, and the sound signal is preprocessed including at least noise reduction and gain adjustment; In step S3, the sound features include at least Mel-frequency cepstral coefficients, pitch, loudness, timbre, frequency, and amplitude.

4. The edge computing device sound detection method according to claim 1, characterized in that: The step S4 is specifically as follows: The edge computing device inputs the sound features into the sound detection model in real time, and the sound detection model outputs the identified sound events in real time to detect the sound events, and matches the sound events based on a preset alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location.

5. The edge computing device sound detection method according to claim 1, characterized in that: The step S5 is specifically as follows: The edge computing device creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a secret key, performs MAC calculation on the alarm notification to obtain a MAC value, obtains the current timestamp, encrypts the alarm notification, the MAC value, and the timestamp through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, encrypts the mapping data and the secret key through the ECC algorithm to obtain an encrypted notification, and uploads the encrypted notification to the server in real time through the TLS protocol; The server performs distributed backup of the received encrypted notification and forwards the encrypted notification to the pre-associated management terminal in real time; The management terminal decrypts the received encrypted notification through the ECC algorithm to obtain mapping data and a key, decrypts the key through the EDA algorithm to obtain a public key, maps the mapping data through a preset mapping rule to obtain encrypted data, decrypts the encrypted data through the public key to obtain an alarm notification, a MAC value, and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the MAC value, and finally displays the alarm notification.

6. An edge computing device sound detection system, characterized in that: Includes the following modules: A sound detection model writing module is used to create a sound detection model based on MobileNet, train the sound detection model, and write the trained sound detection model into an edge computing device; A sound signal acquisition module, which is used for the edge computing device to collect sound signals in the environment in real time through a microphone and pre-process the sound signals; A sound feature extraction module is used for the edge computing device to perform fast Fourier transform on the pre-processed sound signal to obtain a frequency domain signal, and extract sound features from the frequency domain signal; A sound event detection module, configured for an edge computing device to input the sound features into a sound detection model to detect a sound event, and to generate an alarm notification based on the detected sound event; The alarm notification uploading module is used for the edge computing device to encrypt the alarm notification into an encrypted notification, and upload the encrypted notification to the server through the TLS protocol.

7. The edge computing device sound detection system according to claim 6, characterized in that: The sound detection model writing module is specifically used for: The server creates a sound detection model for sound event detection based on MobileNet, sets a loss function of the sound detection model, obtains a large number of historical sound signals, and sequentially performs preprocessing including at least noise reduction, gain adjustment, fast Fourier transform, and sound feature labeling on each of the historical sound signals to construct a sound data set; Dividing the sound data set into a training set and a validation set based on a ratio of 7:3, training the sound detection model through the training set until the loss value of the loss function is less than a preset loss threshold, and continuously optimizing the hyperparameters of the sound detection model including at least a random deactivation rate, a weight decay rate, and a learning rate during the training process; The trained sound detection model is verified through the verification set to determine whether the detection accuracy is greater than the preset accuracy threshold. If so, the verification is passed and the sound detection model is written into the edge computing device; if not, the training set is expanded to continue training the sound detection model.

8. The edge computing device sound detection system according to claim 6, characterized in that: The sound signal acquisition module is specifically used for: After the edge computing device is powered on and initialized, the microphone collects sound signals in the environment in real time, and performs preprocessing on the sound signals including at least noise reduction and gain adjustment; In the sound feature extraction module, the sound features at least include Mel-frequency cepstral coefficients, pitch, loudness, timbre, frequency, and amplitude.

9. The edge computing device sound detection system according to claim 6, characterized in that: The sound event detection module is specifically used for: The edge computing device inputs the sound features into the sound detection model in real time, and the sound detection model outputs the identified sound events in real time to detect the sound events, and matches the sound events based on a preset alarm table. When there is a matching sound event, an alarm notification is generated that carries at least the sound event, alarm time, edge computing device model, edge computing device serial number, and edge computing device installation location.

10. The edge computing device sound detection system according to claim 6, characterized in that: The alarm notification uploading module is specifically used for: The edge computing device creates a pair of public and private keys based on the RSA algorithm, encrypts the public key through the EDA algorithm to obtain a secret key, performs MAC calculation on the alarm notification to obtain a MAC value, obtains the current timestamp, encrypts the alarm notification, the MAC value, and the timestamp through the private key to obtain encrypted data, maps the encrypted data through a preset mapping rule to obtain mapping data, encrypts the mapping data and the secret key through the ECC algorithm to obtain an encrypted notification, and uploads the encrypted notification to the server in real time through the TLS protocol; The server performs distributed backup of the received encrypted notification and forwards the encrypted notification to the pre-associated management terminal in real time; The management terminal decrypts the received encrypted notification through the ECC algorithm to obtain mapping data and a key, decrypts the key through the EDA algorithm to obtain a public key, maps the mapping data through a preset mapping rule to obtain encrypted data, decrypts the encrypted data through the public key to obtain an alarm notification, a MAC value, and a timestamp, performs a timeliness check through the timestamp, and then performs an integrity check through the MAC value, and finally displays the alarm notification.

Citation Information

Cited By

  • Oil and gas pipeline optical fiber early warning method and system

    CN120101062A