Method, device and equipment for enhancing infant crying sound based on machine learning

Using machine learning technology to extract features of infant cries solves the problem of difficulty in distinguishing infant cries in noisy environments, improves the purity and recognition rate of cry signals, and improves the effect of intelligent care.

CN118609605BActive Publication Date: 2024-10-18NINGBO SIMSHINE INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411080693.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-18
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

In the existing technology, infant cries are difficult to accurately distinguish and extract in a noisy environment. Clean cry samples need to be manually pre-labeled, which increases data preparation costs and the cry quality is poor, affecting the recognition effect of intelligent care equipment.

Method used

Using a machine learning-based method, preprocessing and autoencoder model training are performed by obtaining audio data of infant cries, extracting characteristic information of infant cries, and improving the purity and recognition rate of cry signals through signal enhancement processing. .

Benefits of technology

It effectively extracts and enhances the cry of infants and young children from noisy environments, significantly improves the purity and recognition rate of cry signals, helps to pay attention to the status of infants and young children in real time, and improves the quality and efficiency of care.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609605B_ABST
    Figure CN118609605B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of audio processing technology, and solves the problem that the crying sounds of infants and young children collected in the prior art are limited by the interference of noises, and it is difficult to accurately distinguish and extract effective crying sounds of infants and young children, and provides a method, device and equipment for enhancing crying sounds of infants and young children based on machine learning. The method comprises: obtaining first audio data, wherein the first audio data comprises at least one section of audio data containing crying sounds of infants and young children; preprocessing the first audio data to obtain a spectrogram corresponding to the first audio data; inputting the spectrogram into an autoencoder model, and outputting audio feature information corresponding to the crying sounds of infants and young children in the first audio data; processing the audio data containing crying sounds of infants and young children according to the audio feature information to obtain enhanced second audio data. The present invention effectively extracts and enhances the crying sounds of infants and young children from a noisy environment, and significantly improves the purity and recognition rate of crying signals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of audio processing, and in particular to a method, device and equipment for enhancing infant crying sound based on machine learning. Background Art

[0002] The crying of infants, especially newborns and infants who cannot speak, is an important way to express their emotions and physiological needs, including hunger, pain, discomfort or the need for care. Most parents of infants and young children do not have much time to take care of their children due to their busy work, so the emergence of smart infant care equipment has become a trend. However, in a home environment or hospital ward, due to the interference of other sounds such as human voices, electrical noise, and environmental background sounds, infant care equipment cannot accurately identify whether there is an infant crying, or the collected infant crying cannot distinguish the type of infant crying from the infant crying due to the noisy environmental sounds, thus failing to play a good role in intelligent infant care.

[0003] Traditional methods may require manual monitoring and analysis, which is not only time-consuming and laborious, but also easily affected by subjective factors. In the prior art, there are methods that manually pre-label the pure crying audio of infants and young children, and then process the audio to enhance the sound of infants and young children crying; or by collecting infants and young children crying for training, the sound is divided into positive and negative samples and labeled separately, and then new virtual samples and labels are obtained through linear interpolation according to the hybrid enhancement method, increasing the sample data, thereby achieving an enhanced effect.

[0004] The collected crying sounds of infants and young children are subject to interference from multiple sound sources such as environmental noise, background music, and conversations among multiple people. It is difficult to accurately distinguish and extract valid data from the crying sounds of infants and young children. Clean crying samples need to be manually pre-labeled, which increases the cost of data preparation. In addition, due to the poor quality of the audio of the collected crying sounds of infants and young children, smart infant care devices that judge based on crying sounds find it difficult to accurately identify the type of crying sounds of infants and young children. Summary of the invention

[0005] In view of this, the present invention provides a method, device and equipment for enhancing the crying of infants based on machine learning, so as to solve the problem that the crying of infants collected in the prior art is limited by the interference of various sound sources such as environmental noise, background music, and conversations of multiple people, and it is difficult to accurately distinguish and extract the effective components of the crying of infants, and clean crying samples that are manually pre-labeled increase the cost of data preparation. The problem also that the intelligent care of infants based on crying is affected due to the poor quality of the audio of the collected crying of infants.

[0006] The technical solution adopted by the present invention is:

[0007] In a first aspect, the present invention provides a method for enhancing infant crying based on machine learning, the method comprising:

[0008] Acquire first audio data, wherein the first audio data includes at least one segment of audio data containing a crying sound of an infant;

[0009] Preprocessing the first audio data to obtain a frequency spectrum corresponding to the first audio data;

[0010] Inputting the spectrogram into an autoencoder model, and outputting audio feature information corresponding to the crying sound of an infant in the first audio data;

[0011] The audio data containing the crying sound of an infant is processed according to the audio feature information to obtain enhanced second audio data.

[0012] Preferably, the preprocessing of the first audio data to obtain a frequency spectrum corresponding to the first audio data comprises:

[0013] Setting the first audio data to have the same sampling rate;

[0014] The first audio data set to the same sampling rate is processed in segments, wherein each segmented audio data includes a portion of the first audio data, and two adjacent segmented audio data have some overlapping audio data;

[0015] Convert each of the segmented audio data to obtain a frequency spectrum corresponding to the segmented audio data;

[0016] Each of the frequency spectrograms is enhanced according to a preset feature enhancement processing method to obtain an enhanced frequency spectrogram.

[0017] Preferably, the preset feature enhancement processing method includes: a logarithmic conversion processing method, a frequency axis adjustment processing method or a spectrum smoothing processing method.

[0018] Preferably, the step of inputting the spectrogram into an autoencoder model and outputting audio feature information corresponding to the crying sound of an infant in the first audio data comprises:

[0019] The spectrum graph is normalized to obtain a normalized spectrum graph;

[0020] Build an autoencoder model for extracting infant crying features;

[0021] Input the autoencoder model according to the standardized spectrum graph for training to obtain a trained autoencoder model;

[0022] The standardized spectrogram is input into the trained autoencoder model to output audio feature information corresponding to the crying sound of an infant in the first audio data.

[0023] Preferably, the audio data containing the crying sound of an infant is processed according to the audio feature information to obtain the enhanced second audio data, which includes:

[0024] Reconstructing the spectrogram corresponding to the first audio data according to the infant crying feature to obtain a second spectrogram;

[0025] Converting the second spectrogram to obtain audio data corresponding to the second spectrogram;

[0026] Signal enhancement processing is performed on the audio data corresponding to the second spectrum graph to obtain enhanced second audio data.

[0027] Preferably, performing signal enhancement processing on the audio data corresponding to the second spectrogram to obtain enhanced second audio data includes:

[0028] Obtaining a preset energy threshold value, wherein the preset energy threshold value is used to distinguish between crying sounds and non-crying sounds;

[0029] The portion of the audio data corresponding to the second spectrum graph whose signal energy value is greater than the preset energy threshold value is enhanced, and the portion of the audio data corresponding to the second spectrum graph whose signal energy value is less than the preset energy threshold value is suppressed.

[0030] Preferably, the method for enhancing infant crying sound based on machine learning comprises:

[0031] Acquiring third audio data of crying sounds of multiple infants and young children;

[0032] Performing sound source localization processing on the third audio data to obtain crying information corresponding to each infant;

[0033] According to each of the crying sound information, the third audio data is subjected to sound source separation processing to obtain crying sound audio data corresponding to each infant.

[0034] In a second aspect, the present invention provides a device for enhancing infant crying based on machine learning, the device comprising:

[0035] A first audio data acquisition module: used to acquire first audio data, wherein the first audio data includes at least one segment of audio data containing the crying sound of an infant;

[0036] Preprocessing module: used for preprocessing the first audio data to obtain a frequency spectrum corresponding to the first audio data;

[0037] A crying feature extraction module: used for inputting the spectrogram into an autoencoder model, and outputting audio feature information corresponding to the crying of an infant in the first audio data;

[0038] Audio data enhancement module: used to process the audio data containing the crying sound of infants and young children according to the audio feature information to obtain enhanced second audio data.

[0039] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which, when executed by the processor, implement the method of the first aspect in the above-mentioned embodiment.

[0040] In a fourth aspect, an embodiment of the present invention further provides a storage medium on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect in the above-mentioned embodiment is implemented.

[0041] In summary, the beneficial effects of the present invention are as follows:

[0042] The present invention provides a method, device and equipment for enhancing infant crying based on machine learning, firstly obtaining first audio data, wherein the first audio data includes at least one audio data containing infant crying; preprocessing the first audio data to obtain a spectrogram corresponding to the first audio data; inputting the spectrogram into an autoencoder model, outputting audio feature information corresponding to infant crying in the first audio data; processing the audio data containing infant crying according to the audio feature information to obtain enhanced second audio data. Overall, the infant crying is effectively extracted and enhanced from a noisy environment, significantly improving the purity and recognition rate of the crying signal, which helps to pay immediate attention to the infant status and improve the quality and efficiency of nursing. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solution of the embodiment of the present invention, the drawings required for use in the embodiment of the present invention will be briefly introduced below. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work, and these are all within the protection scope of the present invention.

[0044] Figure 1 This is a schematic diagram of the overall working process of the method for enhancing infant crying sound based on machine learning in Example 1 of the present invention;

[0045] Figure 2 This is a schematic diagram of the process of audio data preprocessing in Embodiment 1 of the present invention;

[0046] Figure 3This is a schematic diagram of the process of extracting infant crying features in Example 1 of the present invention;

[0047] Figure 4 Schematic diagram of the process of audio data processing in Embodiment 1 of the present invention;

[0048] Figure 5 is a structural block diagram of a device for enhancing infant crying sound based on machine learning in Embodiment 3 of the present invention;

[0049] Figure 6 It is a schematic diagram of the structure of an electronic device in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution in the embodiment of the present invention will be clearly and completely described in conjunction with the drawings in the embodiment of the present invention. It should be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In the description of the present invention, it should be understood that the orientation or position relationship indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such a process, method, article or device. In the absence of further restrictions, the elements defined by the phrase "comprising..." do not exclude the existence of other identical elements in the process, method, article or device comprising the elements. If there is no conflict, the embodiments of the present invention and the various features in the embodiments can be combined with each other, all within the protection scope of the present invention.

[0051] Example 1

[0052] The present invention proposes a method for enhancing the crying of infants based on machine learning, which is mainly aimed at infants in noisy environments such as hospitals, infant entertainment venues, schools, and homes, etc., indoor and outdoor environments. When using smart care equipment for care, due to the influence of environmental noise, it is difficult to distinguish the crying of infants and young children, and it is also difficult to identify the type of crying of infants and young children, which greatly affects the care effect of the smart care equipment.

[0053] See also Figure 1 Embodiment 1 of the present invention discloses a method for enhancing infant crying based on machine learning, the method comprising:

[0054] S1: Acquire first audio data, wherein the first audio data includes at least one segment of audio data containing a crying sound of an infant;

[0055] Specifically, when an infant cries, the audio data of the infant's crying sound is automatically collected. Due to the different environments in which infants are cared for, the components of the collected audio data of the infant's crying sound are also different. The collected audio data of the infant's crying sound includes not only the infant's crying sound, but also other non-infant crying sounds, such as other human voices, electrical noise, music, etc. For example, when caring for an infant in a family environment, the collected infant's crying sound includes the sound of a fan, air conditioner, TV, or the voice of the caregiver; for another example, if the sound receiving device encounters signal interference from other electrical appliances, the electromagnetic noise of the device will appear.

[0056] S2: preprocessing the first audio data to obtain a frequency spectrum corresponding to the first audio data;

[0057] Specifically, since the first audio data collected may come from different sound receiving devices, the audio data from different audio collection devices are first processed at a unified sampling rate, that is, the audio data with different sampling rates are set to audio data with the same sampling rate, thereby maintaining the consistency of the audio data and facilitating the subsequent processing of the audio data. Since the crying of infants and young children in the audio data is discontinuous, the audio data with a unified sampling rate needs to be segmented by windowing. Methods such as Hamming windows, rectangular windows or black grid windows can be used to segment the audio in order to reduce the impact of spectrum leakage during Fourier transform. Then, a fast Fourier transform is performed on a small segment of audio data in each window, and the audio data is converted from the time domain to the frequency domain. The spectrum diagram corresponding to each segment of audio data is output. Finally, each spectrum diagram is processed by frequency refinement, logarithmic conversion or frequency domain filtering. The processed audio can better reflect the human ear's perception characteristics of crying than the unprocessed audio.

[0058] In one embodiment, see Figure 2 , the preprocessing of the first audio data to obtain a frequency spectrum corresponding to the first audio data includes:

[0059] S21: setting the first audio data to have the same sampling rate;

[0060] Specifically, since there is more than one device collecting the audio signal of the crying baby, and the sampling rates of the audio signals collected by each device may be different, the sampling rates of the collected audio data are first set to the same sampling rate to facilitate subsequent processing.

[0061] S22: segmenting the first audio data set to the same sampling rate, wherein each segmented audio data includes a portion of the first audio data, and two adjacent segmented audio data have some overlapping audio data;

[0062] Specifically, the collected audio data is processed in segments. There are many methods for segmentation processing, for example, the audio data can be processed by windowing and segmentation, such as methods similar to Hamming window, rectangular window or Heiger window. Here, the audio data is processed in segments using Hamming window. Each audio segment is processed in segments using Hamming window. Each window contains a small part of the audio signal, and there are overlapping parts between windows. Since the collected crying of infants and young children may be intermittent, the method of segmenting the audio signal using Hamming window not only reduces the calculation of useless audio, but also reduces the impact of spectrum leakage during transformation. The crying of infants and young children often contains rich transient and time-varying characteristics. For example, the start, duration and end stages of crying have different tones and intensity changes. The use of Hamming window to segment the audio signal ensures that the audio signal in each segment is relatively stable to a certain extent.

[0063] S23: converting each of the segmented audio data to obtain a frequency spectrum corresponding to the segmented audio data;

[0064] Specifically, the audio data segmented by the Hamming window is Fourier transformed, and the segmented audio data is converted from the time domain to the frequency domain to obtain a spectrum diagram corresponding to each segment of audio data, and the spectrum diagram records the characteristics including the crying sound of infants and young children.

[0065] S24: performing enhancement processing on each of the spectrum graphs according to a preset feature enhancement processing method to obtain an enhanced spectrum graph.

[0066] Specifically, the preset feature enhancement processing methods include logarithmic conversion processing method, frequency axis adjustment processing method or spectrum smoothing processing method. Here, the spectrum graph corresponding to each segment of audio data is logarithmically converted. Since the human auditory system's perception of sound intensity is nonlinear and follows the Weber-Fechner law, that is, the human ear's perception of changes in sound intensity increases roughly logarithmically, therefore, converting the spectrum of the audio signal into a logarithmic scale (decibels) can more accurately reflect the actual difference in sound intensity perceived by the human ear, and can better reflect the human ear's perception characteristics of crying.

[0067] S3: inputting the spectrogram into an autoencoder model, and outputting audio feature information corresponding to the crying sound of an infant in the first audio data;

[0068] Specifically, each processed spectrogram is first standardized to enhance the contrast of the spectrogram, and then an autoencoder model is constructed. The autoencoder network architecture is preset to process the standardized spectrogram. In the process of inputting the spectrogram into the training process of the autoencoder model, custom rules are added, such as regularization and sparsity constraints. The addition of regularization and sparsity constraint rules is to improve the effect of crying feature extraction. Then, the autoencoder is trained by the directional propagation algorithm, and then the crying features are extracted from the standardized spectrogram from the trained autoencoder. This method has the effect of training the autoencoder, and can effectively learn and extract the crying features of infants and young children.

[0069] In one embodiment, see Figure 3 , the step of inputting the spectrogram into the autoencoder model and outputting the infant crying sound features corresponding to the first audio data comprises:

[0070] S31: performing standardization processing on the spectrum graph to obtain a standardized spectrum graph;

[0071] Specifically, Gaussian normalization is used to process the spectrum graph, and the formula is: Where X is the original spectrum data, μ is the mean of the data, σ is the standard deviation, X norm It is a spectrum diagram after standardization. The mean and standard deviation of the audio data are calculated, and the spectrum diagram after Gaussian standardization is obtained using the obtained mean and standard deviation.

[0072] S32: Construct an autoencoder model for extracting infant crying features;

[0073] Specifically, since the characteristics of each infant's cry may be different, such as the pitch and loudness of the infant's cry are inconsistent, and the complexity of the infant's cry is relatively high, it is necessary to build a deep autoencoder network. By increasing the depth of the network, that is, adding more hidden layers, it is possible to learn more abstract and complex feature representations, and build an encoder to process the standardized spectrogram X norm , each layer conversion of the encoder is expressed as: , where h (l+1) : the output of the l+1th layer of neurons, σ: activation function, which can be sigmoid, ReLU, tanh, etc., W (l) : The weight matrix of the lth layer, used to calculate the weights from the lth layer to the l+1th layer, h (l) : Output of the lth layer of neurons, b (l) : The bias term of the lth layer, which is a constant.

[0074] S33: inputting the autoencoder model into the standardized spectrum graph for training to obtain a trained autoencoder model;

[0075] Specifically, the autoencoder is trained by the back propagation algorithm. Rules such as regularization and sparsity constraints are input during the training process of the autoencoder. The crying feature extraction ability of the model is improved by regularization and sparsity constraints. Here, L1 regularization and KL divergence are used to implement sparsity constraints. The regularization term added to the loss function is: , where W i,j is the weight vector of the model, λ is the regularization parameter, β is the weight parameter of KL divergence, : KL divergence, used to measure the difference between two probability distributions, here it represents the probability distribution ρ predicted by the model and the expected probability distribution The difference between ρ: the probability distribution predicted by the model, : Expected probability distribution. The expression of loss function is: , where L total : total loss function, It is the reconstructed spectrum output by the autoencoder. After training, it improves the generalization ability of the model and the pertinence of feature extraction, reduces noise interference, and improves the purity of the crying features.

[0076] S34: Inputting the standardized spectrogram into the trained autoencoder model, and outputting the audio feature information corresponding to the crying sound of the infant in the first audio data.

[0077] Specifically, the standardized spectrogram is input into the trained autoencoder model to extract the crying features in the standardized spectrogram. The crying features include: frequency features, energy features, harmonic structure, time-frequency features, etc. Among them, the frequency features include: fundamental frequency: the basic frequency of crying, which reflects the rate of vocal cord vibration and is related to the age and emotional state of infants and young children; frequency bandwidth: the bandwidth of the energy distribution of crying, which can indicate the sharpness or roughness of the sound; frequency peak: the frequency points with the highest energy in the crying spectrum, which may correspond to the specific harmonic structure of crying. Through deep learning, different types of crying of infants and young children can be identified from the features, such as hunger, discomfort, pain, or seeking attention.

[0078] S4: Processing the audio data containing the crying sound of an infant according to the audio feature information to obtain enhanced second audio data.

[0079] Specifically, a trained autoencoder is used to extract the crying features of infants and young children from the standardized spectrogram, the crying spectrogram is reconstructed using a decoder, and then it is inversely normalized back to the original frequency space. The reconstructed spectrogram is then converted from the frequency domain back to the time domain to obtain the corresponding audio data. The crying features of the reconstructed audio data are then enhanced and the non-crying features are suppressed. An energy-based dynamic threshold filter is used to enhance the crying component in the time domain while suppressing non-crying noise. Finally, after the processing is completed, the enhanced audio data is obtained, which effectively distinguishes the crying and non-crying parts, enhances the crying signal while suppressing the background noise, and improves the audio clarity and the recognizability of the infant's crying.

[0080] In one embodiment, see Figure 4 , said S4: processing the audio data containing the crying sound of infants and young children according to the audio feature information, and obtaining the enhanced second audio data includes:

[0081] S41: reconstructing the spectrogram corresponding to the first audio data according to the crying sound characteristics of the infant to obtain a second spectrogram;

[0082] Specifically, the autoencoder part h(l) is used as the crying sound feature, which includes frequency feature, energy feature, harmonic structure, time-frequency feature, etc., and the crying sound spectrum is reconstructed by the decoder corresponding to the autoencoder. , and then reconstruct the crying spectrum Inverse Gaussian normalization back to the original frequency space , and get the second spectrum , where μ is the mean of the spectrogram data and σ is the standard deviation. This step improves the recognizability of the crying features in the audio.

[0083] S42: converting the second spectrogram to obtain audio data corresponding to the second spectrogram;

[0084] Specifically, the second spectrum is transformed into Convert from frequency domain to time domain to get the corresponding audio signal. The formula is as follows: ,in, is the reconstructed spectrum, It is the converted time domain audio signal; IFFT is the inverse fast Fourier transform.

[0085] S43: Perform signal enhancement processing on the audio data corresponding to the second spectrum graph to obtain enhanced second audio data.

[0086] Specifically, an energy-based dynamic threshold filter is used to enhance the crying component in the time domain while suppressing non-crying noises. The formula is as follows: Where x(t) represents the intensity of the original audio signal at time point t, E(x(t)) represents the energy of the audio signal x(t) at time point t, where E(x(t))=|x(t)| 2 ; θ is a preset energy threshold value, which is used to distinguish between crying and non-crying parts. If the energy of the audio signal at a certain time point exceeds this energy threshold value, it is considered to be crying; otherwise, it is considered to be non-crying or background noise. α is a suppression factor between 0 and 1, which is used to reduce the volume of the non-crying part. When the energy of the audio signal is less than the threshold θ, the original signal x(t) will be multiplied by this factor α to reduce its intensity, and finally the enhanced second audio data will be obtained. For example, in a family environment, the audio data contains the sound of TV programs, the voices of parents of infants and young children, and the crying of infants and young children. At this time, if the sound of TV programs and the voices of parents of infants and young children are less than the set energy threshold value, the intensity of this part of the sound will be reduced, and the crying of infants and young children greater than the set energy threshold value will be enhanced.

[0087] In summary, this embodiment provides a method for enhancing infant crying based on machine learning. The method first obtains first audio data of infant crying, and then preprocesses the audio data. The preprocessing method includes: standardizing the infant crying audio, and then performing Hamming window segmentation processing to facilitate local analysis of the audio, and then converting the time domain signal of the audio into a frequency domain signal through fast Fourier transform, and performing feature enhancement processing on the spectrogram to make it more consistent with the natural characteristics of human ear perception of sound, and then constructing an autoencoder model, and inputting the spectrogram into the model for model learning and feature extraction, wherein the spectrogram is Gaussian standardized to make the audio data more evenly distributed. Through deep learning, the autoencoder automatically extracts the infant crying sound. Features, no need for manual labeling, reducing the cost of data preparation, and then through regularization and sparsity constraints to improve the generalization ability of the model and the pertinence of feature extraction, reduce noise interference, and improve the purity of crying features. Finally, the audio data is reconstructed according to the extracted features, and the spectrum diagram processed by the model is converted back to the time domain to obtain an enhanced audio signal. Dynamic processing based on the energy threshold can effectively distinguish between crying and non-crying parts, enhance the crying signal while suppressing background noise, improve the clarity of the audio and the recognizability of infant crying, effectively extract and enhance the crying of infants and young children from noisy environments, significantly improve the purity and recognition rate of crying signals, help to pay attention to the status of infants and young children in real time, and improve the quality and efficiency of care.

[0088] Example 2

[0089] Furthermore, due to the presence of infants and young children gathering in some places, there are more than one infant and young children, such as hospitals (hospitals where infants and young children are born), which is usually interfered by the crying of other infants and young children. The infant crying sound enhancement method based on machine learning of the present invention can be used to distinguish and enhance the crying sounds of two or more infants and young children. In one embodiment, in the same infant crying sound collection environment, there are multiple infants and young children crying at the same time. In order to distinguish the crying sounds of different infants and young children and enhance them separately, the preprocessing of the first audio data to obtain the spectrum diagram corresponding to the first audio data also includes:

[0090] S01: Acquire third audio data of crying sounds of multiple infants and young children;

[0091] S02: performing sound source localization processing on the third audio data to obtain crying information corresponding to each infant;

[0092] S03: performing sound source separation processing on the third audio data according to the crying sound information to obtain crying sound audio data corresponding to each infant.

[0093] Specifically, a high-sensitivity microphone array is set in the area where multiple infants and young children are active to capture the sound in the entire environment, and the microphone array is used to capture sounds in different directions as the third audio data, including an audio data set of multiple infants and young children crying at the same time. The sound source localization technology is used, for example, to measure the time difference of different microphones receiving the same sound source signal based on the arrival time difference method, that is, in the same place, relative to the same microphone, if infants and young children cry at the same time, the sound received by the infants and young children closer to the microphone will be earlier, and the sound received by the infants and young children farther away will be later. The time difference of the sound source signal received by the microphone is used to estimate the position of the sound source through a geometric or optimization method, and the position of the infant and young child making the sound is determined, so that the infant and young child at the position can be labeled according to the position, thereby distinguishing different infants. Or the position of the sound source is obtained through a method based on the arrival angle. It is known which position of the infant these crying information corresponds to, that is, which infant the crying information corresponds to, and then the third audio data is subjected to sound source separation, that is, the crying audio data of different infants in the third audio data are separated. The sound source separation processing method can adopt blind source separation (BSS) technology, among which independent component analysis is a common BSS algorithm. The crying information corresponding to different infants is analyzed, so as to separate the crying sounds of different infants from the third audio data. Further, as in Example 1, the respective crying audio data are enhanced. This method can separate the crying sound of each baby from the mixed crying sound signal, improve the clarity of the audio and the recognizability of the crying sound of infants, effectively extract and enhance the crying sound of infants from noisy environments, significantly improve the purity and recognition rate of the crying sound signal, and help to pay attention to the status of infants in real time, and improve the quality and efficiency of nursing.

[0094] Example 3

[0095] See also Figure 5 Embodiment 3 of the present invention further provides a device 200 for enhancing infant crying sound based on machine learning, the device comprising:

[0096] The first audio data acquisition module 201 is used to acquire first audio data, wherein the first audio data includes at least one segment of audio data containing the crying sound of an infant;

[0097] Preprocessing module 202: used to preprocess the first audio data to obtain a frequency spectrum corresponding to the first audio data;

[0098] Crying sound feature extraction module 203: used for inputting the spectrogram into the autoencoder model, and outputting the crying sound feature of the infant corresponding to the first audio data;

[0099] The audio data enhancement module 204 is used to process the audio data containing the crying sound of infants and young children according to the audio feature information to obtain enhanced second audio data.

[0100] In summary, the present embodiment provides a device for enhancing the crying sound of infants and young children based on machine learning, wherein the first audio data acquisition module is used to acquire the first audio data, wherein the first audio data includes at least one segment of audio data containing the crying sound of infants and young children, the preprocessing module is used to preprocess the first audio data to obtain a frequency spectrum corresponding to the first audio data, and the crying feature extraction module is used to input the frequency spectrum into the autoencoder model, and output the crying sound features of infants and young children corresponding to the first audio data, thereby improving the model's audio processing capability, helping to distinguish crying sounds from other sounds, and improving the generalization capability of the model and the pertinence of feature extraction, reducing noise interference, and improving the purity of crying sound features, and the audio data enhancement module is used to process the audio data containing the crying sound of infants and young children according to the audio feature information to obtain enhanced second audio data, which effectively extracts and enhances the crying sound of infants and young children from a noisy environment as a whole, significantly improving the purity and recognition rate of the crying sound signal, and helping to pay immediate attention to the status of infants and young children, and improving the quality and efficiency of care.

[0101] Example 4

[0102] In addition, combined Figure 1 The method for enhancing infant crying sound based on machine learning described in Example 1 of the present invention can be implemented by an electronic device. Figure 6 A schematic diagram of the hardware structure of an electronic device provided in Embodiment 4 of the present invention is shown.

[0103] The electronic device may include a processor and a memory storing computer program instructions.

[0104] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0105] The memory may include a large capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a particular embodiment, the memory is a non-volatile solid-state memory. In a particular embodiment, the memory includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0106] The processor implements any one of the infant crying enhancement methods based on machine learning in the above embodiments by reading and executing computer program instructions stored in the memory.

[0107] In one example, the electronic device may further include a communication interface and a bus. Figure 6 As shown, the processor, memory, and communication interface are connected via a bus and communicate with each other.

[0108] The communication interface is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiments of the present invention.

[0109] The bus includes hardware, software or both, and the components of the device are coupled to each other. For example, but not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-side bus (FSB), a hypertransport (HT) interconnection, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnection, a low pin count (LPC) bus, a memory bus, a microchannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable bus or a combination of two or more of these. Where appropriate, the bus may include one or more buses. Although the embodiments of the present invention describe and illustrate a specific bus, the present invention contemplates any suitable bus or interconnection.

[0110] Example 5

[0111] In addition, in combination with the infant crying enhancement method based on machine learning in the above embodiment 1, the present invention can also provide a computer-readable storage medium for implementation in embodiment 5. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any of the infant crying enhancement methods based on machine learning in the above embodiments is implemented.

[0112] In summary, embodiments 1-5 of the present invention provide a method, device and equipment for enhancing infant crying based on machine learning.

[0113] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by the party, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0114] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0115] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0116] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

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

Claims

1. A method for enhancing infant crying based on machine learning, characterized in that: The method comprises: Acquire first audio data, wherein the first audio data includes at least one segment of audio data containing a crying sound of an infant; Preprocessing the first audio data to obtain a frequency spectrum corresponding to the first audio data; Inputting the spectrogram into an autoencoder model, and outputting audio feature information corresponding to the crying sound of an infant in the first audio data; Processing the audio data containing the crying sound of an infant according to the audio feature information to obtain enhanced second audio data; The step of inputting the spectrogram into the autoencoder model and outputting the audio feature information corresponding to the crying sound of the infant in the first audio data comprises: The spectrum graph is normalized to obtain a normalized spectrum graph, wherein the normalization processing method adopts Gaussian normalization processing, and the formula is: , where X is the spectrogram data, μ is the mean of the spectrogram data, σ is the standard deviation of the spectrogram data, X norm is the normalized spectrum; An autoencoder model for extracting infant crying features is constructed, where the conversion formula for each layer of the autoencoder model is: , where h (l+1) : the output of the l+1th layer of neurons, σ: activation function, including sigmoid, ReLU, tanh, W (l) : The weight matrix of the lth layer, used to calculate the weights from the lth layer to the l+1th layer, h (l) : Output of the lth layer of neurons, b (l) : The bias term of the lth layer, which is a constant; The autoencoder model is input into the standardized spectrum graph for training to obtain a trained autoencoder model, wherein the autoencoder model is trained by a back propagation algorithm, and the expression of the loss function of the back propagation algorithm is: , where L total : total loss function, is the reconstructed spectrogram output by the autoencoder, To add the regularization term to the loss function, the formula is: , where W i,j is the weight vector of the model, λ is the regularization parameter, β is the weight parameter of KL divergence, : KL divergence, ρ: probability distribution predicted by the model, : expected probability distribution; Inputting the standardized spectrogram into the trained autoencoder model, and outputting audio feature information corresponding to the crying sound of an infant in the first audio data; The audio data containing the crying sound of an infant is processed according to the audio feature information to obtain the enhanced second audio data, which includes: According to the infant crying feature, the spectrogram corresponding to the first audio data is reconstructed to obtain a second spectrogram, wherein the inverse Gaussian normalization formula is: ,in, is the second spectrum diagram, is the reconstructed spectrogram output by the autoencoder, μ is the mean of the spectrogram data, and σ is the standard deviation of the spectrogram data; The second spectrogram is converted to obtain audio data corresponding to the second spectrogram, wherein the second spectrogram is converted from the frequency domain to the time domain using an inverse fast Fourier transform, and the formula is: ,in, is the second spectrum graph, It is the converted time domain audio signal; IFFT is the inverse fast Fourier transform; Signal enhancement processing is performed on the audio data corresponding to the second spectrum graph to obtain enhanced second audio data.

2. The method for enhancing infant crying sound based on machine learning according to claim 1, characterized in that: The preprocessing of the first audio data to obtain a frequency spectrum corresponding to the first audio data includes: Setting the first audio data to have the same sampling rate; The first audio data set to the same sampling rate is processed in segments, wherein each segmented audio data includes a portion of the first audio data, and two adjacent segmented audio data have some overlapping audio data; Convert each of the segmented audio data to obtain a frequency spectrum corresponding to the segmented audio data; Each of the frequency spectrograms is enhanced according to a preset feature enhancement processing method to obtain an enhanced frequency spectrogram.

3. The method for enhancing infant crying sound based on machine learning according to claim 2, characterized in that: The preset feature enhancement processing method includes: a logarithmic conversion processing method, a frequency axis adjustment processing method or a spectrum smoothing processing method.

4. The method for enhancing infant crying sound based on machine learning according to claim 3, characterized in that: The performing signal enhancement processing on the audio data corresponding to the second spectrum graph to obtain enhanced second audio data comprises: Obtaining a preset energy threshold value, wherein the preset energy threshold value is used to distinguish between crying sounds and non-crying sounds; The portion of the audio data corresponding to the second spectrum graph whose signal energy value is greater than the preset energy threshold value is enhanced, and the portion of the audio data corresponding to the second spectrum graph whose signal energy value is less than the preset energy threshold value is suppressed.

5. The method for enhancing infant crying sound based on machine learning according to claim 1, characterized in that: Before the preprocessing of the first audio data to obtain a frequency spectrum diagram corresponding to the first audio data further includes: Acquiring third audio data of crying sounds of multiple infants and young children; Performing sound source localization processing on the third audio data to obtain crying information corresponding to each infant; According to each of the crying sound information, the third audio data is subjected to sound source separation processing to obtain crying sound audio data corresponding to each infant.

6. A device for enhancing infant crying based on machine learning, characterized in that: The device comprises: A first audio data acquisition module: used to acquire first audio data, wherein the first audio data includes at least one segment of audio data containing the crying sound of an infant; Preprocessing module: used for preprocessing the first audio data to obtain a frequency spectrum corresponding to the first audio data; A crying feature extraction module: used for inputting the spectrogram into an autoencoder model, and outputting audio feature information corresponding to the crying of an infant in the first audio data; An audio data enhancement module: used for processing the audio data containing the crying sound of infants and young children according to the audio feature information to obtain enhanced second audio data; The step of inputting the spectrogram into the autoencoder model and outputting the audio feature information corresponding to the crying sound of the infant in the first audio data comprises: The spectrum graph is normalized to obtain a normalized spectrum graph, wherein the normalization processing method adopts Gaussian normalization processing, and the formula is: , where X is the spectrogram data, μ is the mean of the spectrogram data, σ is the standard deviation of the spectrogram data, X norm is the normalized spectrum; An autoencoder model for extracting infant crying features is constructed, where the conversion formula for each layer of the autoencoder model is: , where h (l+1) : the output of the l+1th layer of neurons, σ: activation function, including sigmoid, ReLU, tanh, W (l) : The weight matrix of the lth layer, used to calculate the weights from the lth layer to the l+1th layer, h (l) : Output of the lth layer of neurons, b (l) : The bias term of the lth layer, which is a constant; The autoencoder model is input into the standardized spectrum graph for training to obtain a trained autoencoder model, wherein the autoencoder model is trained by a back propagation algorithm, and the expression of the loss function of the back propagation algorithm is: , where L total : total loss function, is the reconstructed spectrogram output by the autoencoder, To add the regularization term to the loss function, the formula is: , where W i,j is the weight vector of the model, λ is the regularization parameter, β is the weight parameter of KL divergence, : KL divergence, ρ: probability distribution predicted by the model, : expected probability distribution; Inputting the standardized spectrogram into the trained autoencoder model, and outputting audio feature information corresponding to the crying sound of an infant in the first audio data; The audio data containing the crying sound of an infant is processed according to the audio feature information to obtain the enhanced second audio data, which includes: According to the infant crying feature, the spectrogram corresponding to the first audio data is reconstructed to obtain a second spectrogram, wherein the inverse Gaussian normalization formula is: ,in, is the second spectrum diagram, is the reconstructed spectrogram output by the autoencoder, μ is the mean of the spectrogram data, and σ is the standard deviation of the spectrogram data; The second spectrogram is converted to obtain audio data corresponding to the second spectrogram, wherein the second spectrogram is converted from the frequency domain to the time domain using an inverse fast Fourier transform, and the formula is: ,in, is the second spectrum graph, It is the converted time domain audio signal; IFFT is the inverse fast Fourier transform; Signal enhancement processing is performed on the audio data corresponding to the second spectrum graph to obtain enhanced second audio data.

7. An electronic device, characterized in that: include: At least one processor, at least one memory, and computer program instructions stored in the memory, when the computer program instructions are executed by the processor, implement the infant cry enhancement method based on machine learning as described in any one of claims 1-5.

8. A storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method for enhancing infant crying based on machine learning as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Voice data enhancement method

    CN109346063A

  • Personalized Ambisonics speech enhancement method

    CN118212929A