Sound and behavior recognition method and device, electronic equipment and computer storage medium

By extracting the acoustic features of the audio signal and performing pulse coding, combined with the multi-modal recognition model of the deep neural network, it solves the shortcomings of sound recognition in noisy environments and the accuracy of behavioral recognition feature extraction in the existing technology, achieving a higher recognition accuracy and adaptability.

CN118538202APending Publication Date: 2024-08-23SHENZHEN ZHONG XUN WANG LIAN SCI & TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410596728.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing voice recognition algorithms have poor recognition results in noisy environments, and the accuracy of feature extraction and pattern matching for behavior recognition is limited, resulting in limited recognition accuracy.

Method used

By receiving audio and video signals, extracting acoustic features and performing pulse coding, inputting it into the pre-trained deep neural network model to output azimuth angle and behavioral pattern, combined with the deep neural network to build a multi-modal recognition model to fuse audio and video data Recognition, and weighted multiplication in the recognition results to improve recognition accuracy.

Benefits of technology

It improves the accuracy of sound and behavior recognition, enhances the adaptability to different sound types and behavior scenarios, and improves the comprehensiveness and accuracy of recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538202A
    Figure CN118538202A
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a sound and behavior recognition method and device, electronic equipment and a computer storage medium. The method comprises the following steps: receiving a first target signal corresponding to a target user fed back by an acquisition device, when the first target signal is a first audio signal, extracting an acoustic feature of the first audio signal, executing a pulse coding operation on the acoustic feature to obtain a pulse signal, and finally inputting the pulse signal into a pre-trained target identification model to identify the target user. Outputting an azimuth angle corresponding to the target user; when the first target signal is a first video signal, sampling the first video signal to obtain target video data, preprocessing the target video data, and inputting the preprocessed target video data into a target recognition model to output a behavior pattern corresponding to the target user, the target recognition model can process the audio data and the video data in parallel and output the corresponding recognition result, so that the recognition precision of the sound and the behavior is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a sound and behavior recognition method, device, electronic device and computer storage medium. Background Art

[0002] At present, with the rapid development of artificial intelligence technology, sound recognition and behavior recognition have been widely used in many fields. In the prior art, when recognizing sound, the sound signal is usually captured by a microphone or a microphone array, and then the captured sound signal is pre-processed by denoising, filtering, etc., and a specific sound recognition algorithm (such as beamforming, delay estimation, etc.) is used to identify the direction and position of the sound source. When recognizing behavior, the behavior data is collected from the camera device, and the features that can represent different behaviors are extracted from the collected video stream including various behavior data, and the extracted features are matched with the predefined behavior pattern, and the corresponding behavior is identified based on the matching results.

[0003] For voice recognition, beamforming algorithms usually work better in locating and recognizing voices in a relatively quiet environment. In a noisy environment or for non-voice sounds such as music, the recognition may be disturbed and perform poorly. In addition, the speed and path of sound propagation in different propagation media may be affected by many factors, resulting in unstable delays for sound to reach different microphones, thus affecting the accuracy of delay estimation. For behavior recognition, due to the diversity of behavioral performance, environmental interference, posture changes, and insufficient data, the accuracy and adaptability of feature extraction and matching patterns are limited, affecting the comprehensiveness and accuracy of behavior recognition.

[0004] Therefore, the limitations of existing sound recognition algorithms and the limited behavioral patterns make it impossible to fully adapt to the recognition of all sound types and behavioral scenarios, resulting in limited recognition accuracy. Summary of the invention

[0005] In view of the above, the present application provides a sound and behavior recognition method, device, electronic device and computer storage medium to improve the accuracy of sound tracking and behavior recognition.

[0006] A first aspect of the present application provides a method for sound and behavior recognition, the method comprising: Receiving a first target signal corresponding to a target user fed back by a collection device, wherein the target user is a user who has authorized collection; When the first target signal is a first audio signal, extracting an acoustic feature of the first audio signal; Performing a pulse coding operation on the acoustic feature to obtain a pulse signal; Inputting the pulse signal into a pre-trained target recognition model to output the azimuth angle corresponding to the target user; When the first target signal is a first video signal, sampling the first video signal to obtain target video data; The target video data is preprocessed, and the preprocessed target video data is input into the target recognition model to output the behavior pattern corresponding to the target user.

[0007] In an optional embodiment, the method further comprises: Step 1: Acquire original audio data and original video data related to each user in the user group to obtain an original data set, wherein each of the original audio data and each of the original video data includes annotation information; Step 2: preprocess each original audio data and each original video data in the original data set to obtain a target training sample set; Step 3: Build an initial recognition model based on a deep neural network; Step 4: input the target training sample into the initial recognition model to obtain a recognition result corresponding to the target training sample, wherein the target training sample is any one of the target training sample sets; Step 5: Based on the difference between the recognition result and the annotation information corresponding to the target training sample, the loss function of the initial recognition model is adjusted by weighted loss; Step 6, iteratively executing steps 4 to 5 based on the adjusted loss function until a preset iteration termination condition is reached; Step 7: Determine the initial recognition model when the preset iteration termination condition is reached as the target recognition model.

[0008] In an optional embodiment, the initial recognition model includes: a convolutional layer, a fully connected layer, a maximum pooling layer, a normalization layer, an activation layer and a discard layer, wherein the convolution kernel size of the convolution layer is 3×3, the step size is 1, and the padding is 0, the number of convolution kernels contained in the convolution layer is 64, the weight of the fully connected layer is set to [512, 1024], the bias is 0, the pooling kernel size of the maximum pooling layer is 2×2, the step size is 2, the function used by the normalization layer is the softmax function, the function used by the activation layer is the ReLU function, and the discard rate of the discard layer is 0.2.

[0009] In an optional embodiment, the method further comprises: When the first target signal includes a second audio signal and a second video signal, outputting a sound recognition result corresponding to the second audio signal and a behavior recognition result corresponding to the second video signal based on the target recognition model; Fusing the sound recognition result and the behavior recognition result to obtain a fused recognition result; The fusion recognition result is matched with a preset fusion template to identify whether the behavior of the target user is abnormal.

[0010] In an optional implementation, the fusing the voice recognition result and the behavior recognition result to obtain a fused recognition result includes: Converting the sound recognition result into a first feature vector, and converting the behavior recognition result into a second feature vector; The first feature vector and the second feature vector are fused together using a weighted multiplication method to obtain the fused recognition result.

[0011] In an optional embodiment, the method further comprises: When the first target signal includes a third audio signal and a third video signal, extracting an audio fusion feature of the third audio signal and a video fusion feature of the third video signal; Fusion of the audio fusion feature with the video fusion feature to obtain a target audio and video fusion feature; The target fusion feature is input into a fusion recognition model to identify whether the behavior of the target user is abnormal. The fusion recognition model is obtained by pre-training a target training data set through a deep neural network. The target training data set includes the audio and video fusion features of each user in the user group and the annotation information corresponding to the audio and video features.

[0012] In an optional embodiment, the method further comprises: When it is determined that the behavior of the target user is abnormal, switching the collection device to a backup collection device; Determine whether the acquisition device is successfully switched to the backup acquisition device; When the acquisition device is successfully switched to the backup acquisition device, a second target signal corresponding to the target user fed back by the backup acquisition device is received; When the acquisition device fails to switch to the standby acquisition device successfully, the acquisition device is turned off.

[0013] A second aspect of the present application provides a sound and behavior recognition device, the device comprising: A receiving module, used to receive a first target signal corresponding to a target user fed back by a collection device, wherein the target user is a user who has authorized collection; an extraction module, configured to extract acoustic features of the first audio signal when the first target signal is a first audio signal; A pulse coding module, used for performing a pulse coding operation on the acoustic feature to obtain a pulse signal; A first output module, used for inputting the pulse signal into a pre-trained target recognition model to output an azimuth angle corresponding to the target user; a sampling module, configured to sample the first video signal to obtain target video data when the first target signal is a first video signal; The second output module is used to preprocess the target video data and input the preprocessed target video data into the target recognition model to output the behavior pattern corresponding to the target user.

[0014] A third aspect of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the sound and behavior recognition method when executing the computer program.

[0015] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned sound and behavior recognition method when executed by a processor.

[0016] In summary, the sound and behavior recognition method, device, electronic device and computer storage medium provided by the present application, when receiving an audio signal and / or a video signal, converts the audio signal into a pulse signal by extracting the acoustic features in the audio signal and performing a pulse coding operation, which helps to convert different types of sounds into signals with a unified form for subsequent processing. Secondly, the pre-trained target recognition model can accept different types of inputs and output corresponding azimuths and behavior patterns, and can learn and understand the characteristics of different sounds and behaviors, so that it has the recognition ability to adapt to different situations. At the same time, through the preprocessing of video data, it helps to improve the accuracy and stability of behavior pattern recognition. Finally, by combining the recognition results of audio data and video data, the behavior of the target user can be more comprehensively understood, and it can better adapt to the recognition needs of different sound types and behavior scenarios, thereby improving the recognition accuracy of sound and behavior. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of a method for sound and behavior recognition shown in an embodiment of the present application; Figure 2is a functional module diagram of a sound and behavior recognition device shown in an embodiment of the present application; Figure 3 It is a structural schematic diagram of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more of the listed items.

[0019] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0020] Reference Figure 1 , which is a flow chart of a method for sound and behavior recognition shown in an embodiment of the present application, and the method for sound and behavior recognition includes the following steps.

[0021] S11, receiving a first target signal corresponding to a target user fed back by a collection device.

[0022] The acquisition device may include an audio acquisition device and a video acquisition device. The target user refers to a user who has authorized the acquisition, that is, the user should be authorized, and the acquisition device has the right to collect the user's data so that the data can be used for subsequent analysis, identification or other operations.

[0023] When the collection device collects data of a target user among authorized users, the collection device will feed back a first target signal of the data related to the target user to the electronic device, so that the electronic device can process the first target signal.

[0024] In some embodiments, an audio acquisition device may be used to acquire audio data related to the authorized user in real time. The audio acquisition device may be built into the electronic device, such as a microphone of the electronic device, or may be independent of the electronic device. When the audio acquisition device is independent of the electronic device, the audio acquisition device may transmit the acquired audio data related to the authorized user to the electronic device in a wired or wireless manner.

[0025] In some embodiments, a video acquisition device may be used to acquire video data related to the authorized user, and the video acquisition device may be built into the electronic device, such as a camera of the electronic device, or may be independent of the electronic device. When the video acquisition device is independent of the electronic device, the video acquisition device may transmit the acquired video data related to the authorized user to the electronic device in a wired or wireless manner.

[0026] S12: When the first target signal is a first audio signal, extract an acoustic feature of the first audio signal.

[0027] When the first target signal is the first audio data, that is, the acquisition device only acquires the audio data related to the target user, and converts the audio data to obtain the corresponding first audio signal.

[0028] The acoustic features may include, but are not limited to: sound length, sound intensity, pitch, sound quality, phase, etc. In some embodiments, the electronic device may extract acoustic features from the first audio signal based on a deep learning acoustic feature extraction method. Specifically, the electronic device first pre-processes the audio data using a filter to remove noise and smooth the first audio signal, and inputs the pre-processed first audio signal into a pre-trained deep learning model to output the acoustic features of the first audio signal. Specifically, the deep learning model is trained through the following steps: first, audio data sets of different sounds in different environments of multiple authorized user groups are collected, and the audio data sets are pre-processed, such as editing, sampling rate adjustment, denoising, etc. Then, audio processing technology (such as short-time Fourier change, Mel cepstral coefficients and audio energy, etc.) is used to extract the audio features of each audio data in the audio data set, and the audio features are trained into a deep learning model of deep learning (such as convolutional neural network, long short-term memory network, etc.).

[0029] Through the above optional implementation, the deep learning model is used to extract acoustic features of the first audio signal, which can effectively capture the key features in the audio data, improve the robustness and generalization ability of the acoustic feature extraction, and help to more accurately analyze and understand the audio data in the subsequent process to determine the location of the sound source.

[0030] S13, performing a pulse coding operation on the acoustic feature to obtain a pulse signal.

[0031] Among them, pulse coding operation is a method of converting a continuous signal into a discrete pulse signal. In some embodiments, the electronic device can first quantize the continuous acoustic features, and use coding technology (for example, direct coding, differential coding, etc.) to map the quantized acoustic features to a corresponding pulse sequence to obtain a pulse signal.

[0032] Through the above optional implementation, the continuous acoustic characteristic signal is converted into a discrete pulse signal, which can achieve data compression and reduce storage and transmission costs; secondly, the pulse signal usually has good anti-interference ability, can be transmitted and processed more stably, and is suitable for complex environments.

[0033] S14, inputting the pulse signal into a pre-trained target recognition model to output the azimuth angle corresponding to the target user.

[0034] Furthermore, the pulse signal obtained through the pulse coding operation is input into a target recognition model pre-trained based on a deep neural network (DNN).

[0035] Among them, the target recognition model can identify and determine the azimuth of the target user based on the input pulse signal. By inputting the pulse signal into the target recognition model, the target recognition model will process and analyze the pulse signal, such as analyzing the arrival phase difference of the sound received by multiple sound collection devices, and calculating the position of the sound source, that is, the azimuth corresponding to the target user.

[0036] S15: When the first target signal is a first video signal, sample the first video signal to obtain target video data.

[0037] When the first target signal is the first video signal, that is, the acquisition device only acquires video data related to the target user. In some embodiments, the electronic device first needs to determine the sampling frequency and sampling method. Among them, the sampling frequency refers to the number of times the first video signal is acquired per second. The higher the sampling rate, the higher the quality of the target video data obtained. The sampling method may include periodic sampling and random sampling. According to the selected sampling rate and sampling method, start sampling the first video signal. For each sampling point, the electronic device can record the numerical value or pixel value of the first video signal, and convert the continuous first video signal value into discrete target video data, and finally store the sampled target video data in the electronic device for recognition processing.

[0038] S16, preprocessing the target video data, and inputting the preprocessed target video data into the target recognition model to output a behavior pattern corresponding to the target user.

[0039] In some embodiments, the electronic device may pre-process the target video data using a switchable normalization (SN) method. Specifically, the optimization parameters are first normalized using a softmax function to ensure that the values ​​of the optimization parameters are between 0 and 1, and the sum of the values ​​of the normalized optimization parameters is 1. The optimization parameters refer to adjustment parameters for SN, and the normalization method can be dynamically adjusted according to the characteristics of the input data to improve the model performance. Further, the electronic device calculates weighted coefficients corresponding to different statistics (e.g., mean, variance, etc.). The weighted coefficients determine the contribution of different normalization methods to the final normalized result. Finally, the target video data is normalized according to the calculated weighted coefficients.

[0040] After the normalization process is completed, the normalized target video data is input into the target recognition model, so that the target recognition model outputs the behavior pattern of the target user corresponding to the target video data.

[0041] Through the above optional implementations, SN can adaptively select a suitable normalization method according to the characteristics of the video data to adapt to different types of video data, and effectively preprocess the video data before model input, thereby improving the performance and stability of the target recognition model.

[0042] It should be noted that in the embodiment of the present application, in order to quickly respond to the speed of data processing, each time an audio signal fed back by a sound collection device is received, or each time a video signal fed back by a behavior collection device is received, the electronic device immediately responds and processes in real time. That is, each time an audio signal, or a video signal, or both an audio signal and a video signal fed back by a collection device is received, the received signal is immediately identified to determine whether the target user has abnormal behavior.

[0043] In an optional implementation, the electronic device may pre-train an object recognition model through the following steps: Step 1: Acquire original audio data and original video data related to each user in the user group to obtain an original data set, wherein each of the original audio data and each of the original video data includes annotation information.

[0044] Among them, the user group is also a user who has been authorized to obtain audio data and video data. In this step, the electronic device can obtain the original audio data corresponding to each user in the user group to obtain an original audio data set, wherein each original audio data in the original audio data set includes the annotation information corresponding to the original audio data. In addition, the electronic device can also obtain the original video data corresponding to each user in the user group to obtain an original video data set, wherein each original video data in the original video data set also includes the annotation information corresponding to the original video data. After the original audio data set and the original video data set are obtained, they are integrated into an original data set.

[0045] Step 2: preprocess each original audio data and each original video data in the original data set to obtain a target training sample set.

[0046] In this step, each original audio data is traversed, each original audio data is adaptively normalized to obtain standard audio data; and each original video data is traversed, each original video data is adaptively normalized to obtain standard video data. After obtaining the standard audio data and standard video data, they are integrated into a target training sample set.

[0047] In some embodiments, after obtaining the standard audio data and the standard video data, the electronic device may further perform random noise addition and Gaussian filtering on the standard audio data and the standard video data.

[0048] Step 3: Build an initial recognition model based on deep neural network.

[0049] In this step, the electronic device can build an initial recognition model based on DNN. The initial recognition model includes: a convolution layer, a fully connected layer, a maximum pooling layer, a normalization layer, an activation layer, and a dropout layer, wherein the convolution kernel size of the convolution layer is 3×3, the step size is 1, and the padding is 0, the number of convolution kernels contained in the convolution layer is 64, the weight of the fully connected layer is set to [512, 1024], the bias is 0, the pooling kernel size of the maximum pooling layer is 2×2, the step size is 2, the function used by the normalization layer is the softmax function, the function used by the activation layer is the ReLU function, and the dropout rate of the dropout layer is 0.2.

[0050] It should be noted that the fully connected layer is usually used to convert the feature map extracted by the convolution layer into a classification or regression output. The weights are set to [512, 1024] to represent two fully connected layers, where the number of output nodes of the first fully connected layer is 512 and the number of output nodes of the second fully connected layer is 1024, which can gradually increase the complexity and expressiveness of the model to better capture the characteristics of the input data.

[0051] Step 4: input the target training sample into the initial recognition model to obtain a recognition result corresponding to the target training sample, wherein the target training sample is any one of the target training sample sets.

[0052] In this step, the electronic device can select any training sample from the target training sample set as the target training sample, and input the target training sample into the initial recognition model to obtain the recognition result corresponding to the target training sample. Specifically, when audio data and video data with different modalities are input into the initial recognition model, the initial recognition model can simultaneously learn the features of multiple audio data and video data of different modalities, and fuse the features so that a multimodal deep learning model can be trained later.

[0053] Step 5: Based on the difference between the recognition result and the labeling information corresponding to the target training sample, adjust the loss function of the initial recognition model by means of weighted loss.

[0054] In this step, since each training sample in the target training sample set includes labeling information, the electronic device recognizes the target training sample through the initial recognition model. After obtaining the recognition result, the loss function of the initial recognition model can be adjusted based on the difference between the recognition result and the labeling information corresponding to the target training sample.

[0055] In the embodiment of the present application, the electronic device uses the cross entropy loss function as the loss function of the initial recognition model when training the deep neural network through each step of the training sample set, and adjusts the loss function using the weighted loss method. At the same time, a learning rate is set during the training process, and an adaptive learning rate is used, and the RMSSprop optimization algorithm is used to automatically adjust the learning rate according to the historical gradient.

[0056] By adjusting the loss function through the weighted loss method, the problem of imbalance in the number of samples of different categories in the data set can be solved. By weighting the loss function, the model pays more attention to categories with smaller numbers during training.

[0057] Step 6: Iteratively execute steps 4 to 5 based on the adjusted loss function until a preset iteration termination condition is reached.

[0058] Step 7: Determine the initial recognition model when the preset iteration termination condition is reached as the target recognition model.

[0059] During the iterative training process, each time a training is performed, the electronic device will determine whether the preset iteration termination condition is currently met. If so, the iteration is stopped and step 7 is executed. If not, steps 4 and 5 are repeated.

[0060] In some embodiments, the electronic device may pre-set an iteration number threshold, and when it is determined that the current iteration number meets the preset iteration number threshold, it may be determined that the preset iteration termination condition is met. In other embodiments, the electronic device may also determine whether the loss function converges, that is, the loss function of the initial recognition model no longer changes significantly after multiple iterations, and if so, it is determined that the preset iteration termination condition is met.

[0061] When it is determined that the current iteration meets the preset iteration termination condition, the electronic device can determine the initial recognition model when the preset iteration termination condition is met as the target recognition model, thereby terminating the model training.

[0062] It should be noted that when the electronic device performs model training based on the original audio data and the original video data, the original audio data and the original video data are used as inputs of different modalities of the initial recognition model, and a multimodal deep learning model, namely the target recognition model, is obtained after joint training. Therefore, the target recognition model can process audio data and video data in parallel.

[0063] Through the above optional implementation, the multimodal learning of the target recognition model can process information from different sources at the same time, that is, it can process audio data and video data at the same time, and utilize the complementary information between different modalities to improve the accuracy and robustness of recognition.

[0064] In an optional embodiment, the method further comprises: When the first target signal includes a second audio signal and a second video signal, outputting a sound recognition result corresponding to the second audio signal and a behavior recognition result corresponding to the second video signal based on the target recognition model; Fusing the sound recognition result and the behavior recognition result to obtain a fused recognition result; The fusion recognition result is matched with a preset fusion template to identify whether the behavior of the target user is abnormal.

[0065] When the acquisition device simultaneously feeds back the audio signal and the video signal, that is, the acquisition device simultaneously acquires the audio data and the video data of the target user, according to the same embodiment of step S12 to step S14, the sound recognition result corresponding to the second audio signal can be obtained. At the same time, according to the same embodiment of step S15 and step S16, the behavior recognition result corresponding to the second video signal can be obtained.

[0066] After the second audio signal is recognized separately to obtain a sound recognition result and the second video signal is recognized to obtain a behavior recognition result, the electronic device may fuse the sound recognition result and the behavior recognition result to obtain a fused recognition result.

[0067] In an optional implementation, the fusing the voice recognition result and the behavior recognition result to obtain a fused recognition result includes: Converting the sound recognition result into a first feature vector, and converting the behavior recognition result into a second feature vector; The first feature vector and the second feature vector are fused together using a weighted multiplication method to obtain the fused recognition result.

[0068] In some embodiments, after obtaining the sound recognition result and the behavior recognition result, the electronic device converts the sound recognition result and the behavior recognition result into corresponding feature vectors respectively. For the convenience of distinction, the feature vector corresponding to the sound recognition result is called the first feature vector, and the feature vector corresponding to the behavior recognition result is called the second feature vector. Among them, since the sound recognition result is the azimuth of the sound source, the acquisition device is used as a reference, and the azimuth of the sound source is expressed as an angle value, for example, within the range of 0 to 360 degrees. The behavior recognition result is represented by a unique hot encoding, and each behavior corresponds to a vector, and the length of the vector is equal to the number of behavior categories. Among them, only one element is 1, and the rest of the elements are 0. For example, if there are three behaviors: "walking", "standing" and "running", the above three behaviors can be represented by the encoding vectors [1, 0, 0], [0, 1, 0] and [0, 0, 1] respectively.

[0069] In an embodiment of the present application, the azimuth angle of the sound source is used as a weighted weight and multiplied by the corresponding element in the encoding vector of the behavior recognition result to achieve the fusion of the sound recognition result and the behavior recognition result to obtain a new fusion recognition result. Further, the electronic device can compare the fusion recognition result with a pre-known fusion template to determine which behavior pattern in the fusion template the fusion recognition result belongs to. Among them, the fusion template includes normal behavior patterns and abnormal behavior patterns. When it is determined that the fusion recognition result matches any behavior pattern in the normal behavior pattern, it can be determined that the target user does not have abnormal behavior. When it is determined that the fusion recognition result matches any behavior pattern in the abnormal behavior pattern, it can be determined that the target user has abnormal behavior.

[0070] Through the above optional implementation, by combining the sound recognition result and the behavior recognition result, the user's behavior state is more accurately reflected, thereby improving the recognition accuracy of abnormal behavior.

[0071] In some embodiments, after the second audio signal is separately identified to obtain a sound recognition result and the second video signal is identified to obtain a behavior recognition result, the electronic device can compare the sound recognition result with a preset abnormal sound (for example, loud screaming, howling, etc.) to determine whether the target user has abnormal behavior. Secondly, the behavior recognition result is compared with the preset abnormal behavior (for example, falling, fighting, etc.) to determine whether the target user has abnormal behavior. Whenever any of the comparison results is abnormal, that is, the sound recognition result matches the preset abnormal sound, and / or the behavior recognition result matches the preset abnormal behavior, it can be determined that the target user has abnormal behavior.

[0072] In some embodiments, when the electronic device simultaneously receives the audio signal and the video signal fed back by the acquisition device, the audio signal and the video signal can be processed in parallel. In the embodiment of the present application, since the audio signal is usually more timely and can provide richer information, and secondly, processing the audio signal may consume less resources than processing the video signal, the electronic device can give priority to processing the audio signal for some specific scenarios.

[0073] In an optional embodiment, the method further comprises: When the first target signal includes a third audio signal and a third video signal, extracting an audio fusion feature of the third audio signal and a video fusion feature of the third video signal; Fusion of the audio fusion feature with the video fusion feature to obtain a target audio and video fusion feature; The target fusion feature is input into a fusion recognition model to identify whether the behavior of the target user is abnormal. The fusion recognition model is obtained by pre-training a target training data set through a deep neural network. The target training data set includes the audio and video fusion features of each user in the user group and the annotation information corresponding to the audio and video features.

[0074] In some embodiments, according to the same embodiment as above, the electronic device can also obtain a fusion recognition model based on DNN pre-training. Specifically, the target training data set includes original audio data and original video data, and both the original audio data and the original video data include their corresponding annotation information, that is, the original audio data includes its corresponding azimuth, and the original video data includes its corresponding behavior pattern. During the training process, the initial recognition model constructed based on DNN can capture the timing information of audio data and video data to build a timing feature sequence, and associate and fuse the sound features and behavior features in the same position in the timing feature sequence to obtain audio and video fusion features, and obtain a fusion recognition model based on audio and video fusion feature training.

[0075] When the audio signal and the video signal fed back by the acquisition device are received at the same time, the audio fusion feature of the third audio signal and the video fusion feature of the third video signal are extracted according to the same embodiment as above. The audio fusion feature and the video fusion feature are input into the fusion recognition model. The fusion recognition model can capture the timing information of the audio data and the video data to build a timing feature sequence, and associate and fuse the sound fusion feature and the behavior feature at the same position in the timing feature sequence to obtain the target audio and video fusion feature. Based on the target audio and video fusion feature, the fusion recognition model can output its corresponding recognition result. Based on the recognition result, the electronic device can determine whether the target user has abnormal behavior.

[0076] Through the above optional implementation, by associating and fusing the features of audio data and video data, the accuracy and reliability of abnormal behavior are improved, which can be effectively applied to various scenarios and improves the ability to recognize user voices and behaviors.

[0077] In an optional embodiment, the method further comprises: When it is determined that the behavior of the target user is abnormal, switching the collection device to a backup collection device; Determine whether the acquisition device is successfully switched to the backup acquisition device; When the acquisition device is successfully switched to the backup acquisition device, a second target signal corresponding to the target user fed back by the backup acquisition device is received; When the acquisition device fails to switch to the standby acquisition device successfully, the acquisition device is turned off.

[0078] In some embodiments, when the target user is identified to have abnormal behavior, the electronic device can immediately trigger the interrupt switching mechanism. Specifically, the first step is to switch the acquisition device that collects the audio and video data of the target user to a backup acquisition device, so that the backup acquisition device can collect the audio and video data of the target user, ensure timely response in abnormal situations, and ensure the continuity and integrity of the data. If the backup device is successfully configured and connected, that is, the acquisition device is successfully switched to the backup acquisition device, the backup acquisition device can be used to collect the audio and video data of the target user, and the second target signal related to the audio and video data is returned to the electronic device for subsequent sound and behavior recognition. If the backup acquisition device is not successfully configured and connected, that is, the acquisition device is not successfully switched to the backup acquisition device, the acquisition device is automatically turned off. Further, the acquisition device is turned on within a preset time period to detect whether the abnormal behavior of the target user has ended. When it is determined that the abnormal behavior has ended, the acquisition device continues to be used to collect the audio and video data of the target user; when it is determined that the abnormal behavior has not ended, the above-mentioned interrupt switching mechanism can continue to be executed. In other embodiments, it is also possible to manually detect whether the abnormal behavior of the target has ended. If the abnormal behavior has ended, the acquisition device is manually turned on.

[0079] In some embodiments, the electronic device can also obtain the device status of the acquisition device to monitor whether the acquisition device has a fault. When it is determined that the acquisition device has a fault, an interrupt switching mechanism can also be executed to switch to a standby acquisition device to collect the audio and video data of the target user.

[0080] In order to more clearly understand the technical solution of the present application, the embodiments of the present application can be applied to the scenario of online meetings. When abnormal behavior of the target user is detected, the microphone and camera in the electronic device can be switched to other backup acquisition devices, or the microphone and camera of the online meeting can be turned off to avoid affecting the quality and progress of the meeting. For example, assuming that the target user A has abnormal behavior, the microphone and camera of the online meeting of the target user B can be switched to, or the microphone and camera of the online meeting of the target user A can be turned off.

[0081] Through the above optional implementation, the automatic switching mechanism can reduce data loss or inaccuracy caused by failure or abnormality of the collection device, thereby improving the reliability and robustness of the electronic device and ensuring the effective monitoring and data collection of the target user's behavior by the electronic device.

[0082] Reference Figure 2 , which is a functional module diagram of a sound and behavior recognition device shown in an embodiment of the present application.

[0083] In some embodiments, the sound and behavior recognition device 20 may include a plurality of functional modules composed of computer program segments. The computer programs of the various program segments of the sound and behavior recognition device 20 may be stored in a memory of an electronic device and executed by at least one processor to perform (see Figure 1 Description) Function of sound and behavior recognition.

[0084] In this embodiment, the sound and behavior recognition device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a receiving module 201, an extraction module 202, a pulse encoding module 203, a first output module 204, a sampling module 205, a second output module 206, a training module 207 and an abnormal interrupt module 208. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

[0085] The receiving module 201 is used to receive a first target signal corresponding to a target user fed back by a collection device, where the target user is a user who has authorized collection.

[0086] The extraction module 202 is configured to extract acoustic features of the first audio signal when the first target signal is a first audio signal.

[0087] The pulse coding module 203 is used to perform a pulse coding operation on the acoustic feature to obtain a pulse signal.

[0088] The first output module 204 is used to input the pulse signal into a pre-trained target recognition model to output the azimuth angle corresponding to the target user.

[0089] The sampling module 205 is used for sampling the first video signal to obtain target video data when the first target signal is a first video signal.

[0090] The second output module 206 is used to preprocess the target video data and input the preprocessed target video data into the target recognition model to output the behavior pattern corresponding to the target user.

[0091] The training module 207 is used to: Step 1: Acquire original audio data and original video data related to each user in the user group to obtain an original data set, wherein each of the original audio data and each of the original video data includes annotation information; Step 2: preprocess each original audio data and each original video data in the original data set to obtain a target training sample set; Step 3: Build an initial recognition model based on a deep neural network; Step 4: input the target training sample into the initial recognition model to obtain a recognition result corresponding to the target training sample, wherein the target training sample is any one of the target training sample sets; Step 5: Based on the difference between the recognition result and the annotation information corresponding to the target training sample, the loss function of the initial recognition model is adjusted by weighted loss; Step 6, iteratively executing steps 4 to 5 based on the adjusted loss function until a preset iteration termination condition is reached; Step 7: Determine the initial recognition model when the preset iteration termination condition is reached as the target recognition model.

[0092] The first output module 204 or the second output module 206 is further configured to: When the first target signal includes a second audio signal and a second video signal, outputting a sound recognition result corresponding to the second audio signal and a behavior recognition result corresponding to the second video signal based on the target recognition model; Fusing the sound recognition result and the behavior recognition result to obtain a fused recognition result; The fusion recognition result is matched with a preset fusion template to identify whether the behavior of the target user is abnormal.

[0093] The first output module 204 or the second output module 206 is further specifically configured to: Converting the sound recognition result into a first feature vector, and converting the behavior recognition result into a second feature vector; The first feature vector and the second feature vector are fused together using a weighted multiplication method to obtain the fused recognition result.

[0094] The first output module 204 or the second output module 206 is further configured to: When the first target signal includes a third audio signal and a third video signal, extracting an audio fusion feature of the third audio signal and a video fusion feature of the third video signal; Fusion of the audio fusion feature with the video fusion feature to obtain a target audio and video fusion feature; The target fusion feature is input into a fusion recognition model to identify whether the behavior of the target user is abnormal. The fusion recognition model is obtained by pre-training a target training data set through a deep neural network. The target training data set includes the audio and video fusion features of each user in the user group and the annotation information corresponding to the audio and video features.

[0095] The abnormal interruption module 208 is used for: When it is determined that the behavior of the target user is abnormal, switching the collection device to a backup collection device; Determine whether the acquisition device is successfully switched to the backup acquisition device; When the acquisition device is successfully switched to the backup acquisition device, a second target signal corresponding to the target user fed back by the backup acquisition device is received; When the acquisition device fails to switch to the standby acquisition device successfully, the acquisition device is turned off.

[0096] It should be understood that the various variations and specific embodiments of the sound and behavior recognition method provided in the above embodiments are also applicable to the sound and behavior recognition device of the present embodiment. Through the above detailed description of the sound and behavior recognition method, those skilled in the art can clearly know the implementation method of the sound and behavior recognition device of the present embodiment. For the sake of brevity of the specification, it will not be described in detail here.

[0097] Reference Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. In a preferred embodiment of the present application, the electronic device 3 includes a memory 31 , at least one processor 32 and at least one communication bus 33 .

[0098] Those skilled in the art should understand that Figure 3 The structure of the electronic device shown does not constitute a limitation of the embodiments of the present application, and may be either a bus structure or a star structure. The electronic device 3 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.

[0099] In some embodiments, the electronic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 3 may also include user equipment, which includes but is not limited to any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad, or voice control device, such as a personal computer, tablet computer, smart phone, digital camera, etc.

[0100] It should be noted that the electronic device 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0101] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the above-mentioned sound and behavior recognition method are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data. Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function, etc.; the storage data area may store data created according to the use of the blockchain node, etc. The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0102] In some embodiments, the at least one processor 32 is the control core (ControlUnit) of the electronic device 3, and uses various interfaces and lines to connect the various components of the entire electronic device 3, and executes various functions and processes data of the electronic device 3 by running or executing the program or module stored in the memory 31, and calling the data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the above-mentioned sound and behavior recognition method in the embodiment of the present application; or implements all or part of the functions of the sound and behavior recognition device. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors, and various control chips.

[0103] In some embodiments, the at least one communication bus 33 is configured to realize the connection and communication between the memory 31 and the at least one processor 32. Although not shown, the electronic device 3 may also include a power supply (such as a battery) for powering each component. Preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to realize the functions of managing charging, discharging, and power consumption management through the power management device. The power supply may also include any components such as one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0104] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling an electronic device (which can be a personal computer, electronic device, or network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.

[0105] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0106] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.

Claims

1. A method for voice and behavior recognition, It is characterized in that The method comprises: Receiving a first target signal corresponding to a target user fed back by a collection device, wherein the target user is a user who has authorized collection; When the first target signal is a first audio signal, extracting an acoustic feature of the first audio signal; Performing a pulse coding operation on the acoustic feature to obtain a pulse signal; Inputting the pulse signal into a pre-trained target recognition model to output the azimuth angle corresponding to the target user; When the first target signal is a first video signal, sampling the first video signal to obtain target video data; The target video data is preprocessed, and the preprocessed target video data is input into the target recognition model to output a behavior pattern corresponding to the target user.

2. The method for voice and behavior recognition according to claim 1, It is characterized in that The method further comprises: Step 1: Acquire original audio data and original video data related to each user in the user group to obtain an original data set, wherein each of the original audio data and each of the original video data includes annotation information; Step 2: preprocess each original audio data and each original video data in the original data set to obtain a target training sample set; Step 3: Build an initial recognition model based on a deep neural network; Step 4: input the target training sample into the initial recognition model to obtain a recognition result corresponding to the target training sample, wherein the target training sample is any one of the target training sample sets; Step 5: Based on the difference between the recognition result and the annotation information corresponding to the target training sample, the loss function of the initial recognition model is adjusted by weighted loss; Step 6, iteratively executing steps 4 to 5 based on the adjusted loss function until a preset iteration termination condition is reached; Step 7: Determine the initial recognition model when the preset iteration termination condition is reached as the target recognition model.

3. The method for voice and behavior recognition according to claim 2, It is characterized in that The initial recognition model includes: a convolutional layer, a fully connected layer, a maximum pooling layer, a normalization layer, an activation layer and a dropout layer, wherein the convolutional kernel size of the convolutional layer is 3×3, the step size is 1, and the padding is 0, the number of convolutional kernels contained in the convolutional layer is 64, the weight of the fully connected layer is set to [512, 1024], the bias is 0, the pooling kernel size of the maximum pooling layer is 2×2, the step size is 2, the function used by the normalization layer is the softmax function, the function used by the activation layer is the ReLU function, and the dropout rate of the dropout layer is 0.

2.

4. The method for voice and behavior recognition according to any one of claims 1 to 3, It is characterized in that The method further comprises: When the first target signal includes a second audio signal and a second video signal, outputting a sound recognition result corresponding to the second audio signal and a behavior recognition result corresponding to the second video signal based on the target recognition model; Fusing the sound recognition result and the behavior recognition result to obtain a fused recognition result; The fusion recognition result is matched with a preset fusion template to identify whether the behavior of the target user is abnormal.

5. According to the sound and behavior recognition method described in claim 4, It is characterized in that The fusing of the sound recognition result and the behavior recognition result to obtain a fused recognition result includes: Converting the sound recognition result into a first feature vector, and converting the behavior recognition result into a second feature vector; The first feature vector and the second feature vector are fused together using a weighted multiplication method to obtain the fused recognition result.

6. The method for voice and behavior recognition according to any one of claims 1 to 3, It is characterized in that The method further comprises: When the first target signal includes a third audio signal and a third video signal, extracting an audio fusion feature of the third audio signal and a video fusion feature of the third video signal; Fusion of the audio fusion feature with the video fusion feature to obtain a target audio and video fusion feature; The target fusion feature is input into a fusion recognition model to identify whether the behavior of the target user is abnormal. The fusion recognition model is obtained by pre-training a target training data set through a deep neural network. The target training data set includes the audio and video fusion features of each user in the user group and the annotation information corresponding to the audio and video features.

7. The method for voice and behavior recognition according to claim 4 or 6, It is characterized in that The method further comprises: When it is determined that the behavior of the target user is abnormal, switching the collection device to a backup collection device; Determine whether the acquisition device is successfully switched to the backup acquisition device; When the acquisition device is successfully switched to the backup acquisition device, a second target signal corresponding to the target user fed back by the backup acquisition device is received; When the acquisition device fails to switch to the standby acquisition device successfully, the acquisition device is turned off.

8. A sound and behavior recognition device, It is characterized in that The device comprises: A receiving module, used to receive a first target signal corresponding to a target user fed back by a collection device, wherein the target user is a user who has authorized collection; an extraction module, configured to extract acoustic features of the first audio signal when the first target signal is a first audio signal; A pulse coding module, used for performing a pulse coding operation on the acoustic feature to obtain a pulse signal; A first output module, used for inputting the pulse signal into a pre-trained target recognition model to output an azimuth angle corresponding to the target user; a sampling module, configured to sample the first video signal to obtain target video data when the first target signal is a first video signal; The second output module is used to preprocess the target video data and input the preprocessed target video data into the target recognition model to output the behavior pattern corresponding to the target user.

9. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the sound and behavior recognition method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the sound and behavior recognition method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Sensor array data transmission method and device

    CN119232954A

  • Linkage alarm crime prevention method based on AI dynamic adjustment lighting system

    CN119360837A