Discrimination device and storage medium for distinguishing audio using audio discrimination model
The audio discrimination model is used to extract frequency domain and time series features of cough audio, combined with the classification of the fully connected layer, to solve the problem of identifying specific pneumonia information in cough audio, and to achieve accurate identification of cough sound features of diseases such as new coronavirus pneumonia.
Patent Information
- Application Number
- CN202210046402.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-14
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-01-14
AI Technical Summary
How to accurately identify the designated pneumonia information carried by cough audio, especially information related to new coronavirus pneumonia, given that the characteristics of cough sounds caused by different diseases are quite different, it is difficult to effectively distinguish them with existing technology.
Using an audio discrimination model, including a frequency domain feature extraction layer, a timing feature extraction layer and a classification layer, the cough audio is preprocessed, divided, frequency domain and timing feature extracted, and input into the classification layer to determine whether the cough audio contains specified pneumonia information. Probability. Specific steps include: the preprocessing module detects and extracts cough audio, the division module divides the mel spectrum features into low-frequency band and non-low-frequency band features, the frequency domain feature extraction module uses a residual network, and the temporal feature extraction module uses a bidirectional long short-term memory network. , the classification module is fused and fed into a fully connected layer to determine the probability.
It achieves accurate identification of cough audio carrying specified pneumonia information, and utilizes the differences in different frequency bands and timing information to improve the accuracy and reliability of pneumonia information detection.
Smart Images

Figure CN114400024B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of audio processing technology, and more particularly to a discrimination device and a storage medium for discriminating audio using an audio discrimination model. Background Art
[0002] When people are sick, they usually have coughing symptoms. Since different diseases cause lesions in different parts of the body, the cough sounds (cough audio) caused by different diseases will also be different, that is, the information they carry is different. In some scenarios, the location of the lesion in the patient can be determined by the patient's cough, that is, the relevant information carried in the cough can be determined, and then the type of disease the patient has can be determined.
[0003] Considering the particularity of the lesion site of the novel coronavirus carrier, the cough sound of the carrier is quite different from that of ordinary patients, that is, the information carried is quite different. Therefore, how to provide a method to accurately judge the information carried by the cough audio has become an urgent problem to be solved. Summary of the invention
[0004] One or more embodiments of the present specification provide a discrimination device and storage medium for discriminating audio using an audio discrimination model, so as to discriminate the probability that cough audio carries specified pneumonia information.
[0005] According to a first aspect, a discrimination device for discriminating audio using an audio discrimination model is provided, for discriminating the probability that cough audio carries specified pneumonia information, wherein the audio discrimination model includes a frequency domain feature extraction layer, a time series feature extraction layer and a classification layer, and the device includes:
[0006] A first preprocessing module is configured to process the cough audio to be identified to obtain a target Mel spectrum feature;
[0007] A first division module is configured to divide the target Mel spectrum feature to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band;
[0008] a frequency domain feature extraction module, configured to input the first mel spectrum feature and the second mel spectrum feature into a frequency domain feature extraction layer, to obtain a first frequency domain feature including local information of the cough audio to be identified in the preset low frequency band, and a second frequency domain feature including local information of the cough audio to be identified in the preset non-low frequency band;
[0009] a time series feature extraction module, configured to input the first mel spectrum feature and the second mel spectrum feature into a time series feature extraction layer, to obtain a first time series feature including time series information of the cough audio to be identified in the preset low frequency band, and a second time series feature including time series information of the cough audio to be identified in the preset non-low frequency band;
[0010] The classification module is configured to input the first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature into a classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0011] In one possible implementation, the first preprocessing module is specifically configured to detect cough audio from the collected audio as the cough audio to be identified;
[0012] Extracting features of the cough audio to be identified to obtain initial Mel-spectrogram features;
[0013] The initial Mel spectrum feature is subjected to a preset weighted processing to obtain the target Mel spectrum feature, wherein the preset weighted processing is used to enhance the feature of the initial Mel spectrum feature in the preset low frequency band.
[0014] In one possible implementation, the classification module includes:
[0015] A first fusion unit is configured to fuse the first frequency domain feature and the first time series feature to obtain a first fusion feature;
[0016] A second fusion unit is configured to fuse the second frequency domain feature and the second time series feature to obtain a second fusion feature;
[0017] a splicing unit configured to splice the first fusion feature and the second fusion feature to obtain a spliced fusion feature;
[0018] The classification unit is configured to input the concatenated fusion features into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0019] In one possible implementation, the second Mel-spectrogram feature in the preset non-low frequency band includes a third Mel-spectrogram feature in the preset mid-frequency band and a fourth Mel-spectrogram feature in the preset high frequency band;
[0020] The second frequency domain feature includes: a third frequency domain feature in the preset middle frequency band and a fourth frequency domain feature in the preset high frequency band; the second time sequence feature includes: a third time sequence feature in the preset middle frequency band and a fourth time sequence feature in the preset high frequency band;
[0021] The second fusion unit is specifically configured to fuse the third frequency domain feature and the third time series feature to obtain a third fusion feature;
[0022] Fusing the fourth frequency domain feature and the fourth time series feature to obtain a fourth fused feature;
[0023] The splicing unit is specifically configured to splice the first fusion feature, the third fusion feature and the fourth fusion feature to obtain a spliced fusion feature.
[0024] In one possible implementation, the classification layer includes: a first fully connected layer and a second fully connected layer, the first fully connected layer includes a first linear transformation and a first activation function, and the second fully connected layer includes a second activation function;
[0025] The classification unit is specifically configured to input the spliced fusion features into a first fully connected layer, so that the first fully connected layer performs a first linear transformation on the spliced fusion features to obtain a first linear transformation result; and determine an intermediate feature using a first activation function and the first linear transformation result;
[0026] The intermediate feature is input into the second fully connected layer, so that the second fully connected layer uses the second activation function and the intermediate feature to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0027] In one possible implementation, the frequency domain feature extraction layer includes: a first residual network corresponding to a preset low frequency band, and a second residual network corresponding to a preset non-low frequency band;
[0028] The frequency domain feature extraction module is specifically configured to input the first Mel spectrum feature into the first residual network to obtain the first frequency domain feature; and input the second Mel spectrum feature into the second residual network to obtain the second frequency domain feature.
[0029] In one possible implementation, the temporal feature extraction layer includes: a first bidirectional long short-term memory network corresponding to a preset low-frequency band, and a second bidirectional long short-term memory network corresponding to a preset non-low-frequency band;
[0030] The temporal feature extraction module is specifically configured to input the first mel spectrum feature into the first bidirectional long short-term memory network to obtain the first temporal feature; and input the second mel spectrum feature into the second bidirectional long short-term memory network to obtain the second temporal feature.
[0031] According to a second aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method for discriminating audio using an audio discriminant model, for discriminating the probability that cough audio carries specified pneumonia information, wherein the audio discriminant model includes a frequency domain feature extraction layer, a time series feature extraction layer, and a classification layer, and the method includes:
[0032] Process the cough audio to be identified to obtain the target Mel spectrum feature;
[0033] The target Mel spectrum feature is divided to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band;
[0034] Inputting the first Mel-spectrogram feature and the second Mel-spectrogram feature into a frequency domain feature extraction layer to obtain a first frequency domain feature including local information of the cough audio to be identified in the preset low frequency band, and a second frequency domain feature including local information of the cough audio to be identified in the preset non-low frequency band;
[0035] Inputting the first mel-spectrogram feature and the second mel-spectrogram feature into a time series feature extraction layer to obtain a first time series feature including time series information of the cough audio to be identified in the preset low frequency band, and a second time series feature including time series information of the cough audio to be identified in the preset non-low frequency band;
[0036] The first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature are input into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0037] In one possible implementation, obtaining the probability that the cough audio to be identified carries specified pneumonia information includes:
[0038] Fusing the first frequency domain feature and the first time series feature to obtain a first fused feature;
[0039] Fusing the second frequency domain feature and the second time series feature to obtain a second fused feature;
[0040] Splicing the first fusion feature and the second fusion feature to obtain a spliced fusion feature;
[0041] Based on the spliced fusion features, the probability that the cough audio to be identified carries specified pneumonia information is obtained.
[0042] According to the discrimination device and storage medium for discriminating audio using an audio discrimination model provided in an embodiment of the present specification, first, a first division module divides the target Mel spectrum feature of the cough audio to be discriminated, and obtains a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band; then, a frequency domain feature extraction module inputs the two into a frequency domain feature extraction layer, so as to respectively extract a first frequency domain feature containing local information of a preset low frequency band and a second frequency domain feature containing local information of a preset non-low frequency band from the two, so as to reflect the difference in local information of the cough audio to be discriminated in different frequency bands; and a time series feature extraction module inputs the first Mel spectrum feature and the second Mel spectrum feature into a time series feature extraction layer, so as to obtain a first time series feature containing time series information of a preset low frequency band and a second time series feature containing time series information of a preset non-low frequency band, so as to reflect the difference in time series information of the cough audio to be discriminated in different frequency bands. Then, the classification module inputs the first frequency domain feature, the second frequency domain feature, the first time series feature and the second time series feature into the classification layer to obtain the probability that the cough audio to be judged carries the specified pneumonia information, thereby realizing the judgment of the probability that the cough audio carries the specified pneumonia information. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A schematic diagram of an implementation framework of an embodiment disclosed in this specification;
[0045] FIG. 2( a ) and FIG. 2( b ) are respectively exemplary diagrams of a cough audio with specified pneumonia information and a cough audio without specified pneumonia information provided by an embodiment;
[0046] FIG3(a) and FIG3(b) are schematic diagrams of frequency spectrum features of a cough audio with specified pneumonia information and a cough audio without specified pneumonia information provided by an embodiment, respectively;
[0047] Figure 4 A schematic block diagram of a discrimination device provided in an embodiment;
[0048] Figure 5A Another schematic block diagram of a discrimination device provided in an embodiment;
[0049] Figure 5B A schematic block diagram of an audio discrimination model;
[0050] Figure 6A schematic block diagram of a storage medium provided in an embodiment. DETAILED DESCRIPTION
[0051] The technical solutions of the embodiments of this specification will be described in detail below with reference to the accompanying drawings.
[0052] As mentioned above, different diseases cause lesions in different locations, and the cough sounds (i.e., cough audio) caused by different diseases will also be different, i.e., the information carried by the cough audio is different. Considering the particularity of the lesion location of the novel coronavirus carrier, the cough sound of the carrier is quite different from that of ordinary patients, i.e., the information carried by the corresponding cough audio is quite different.
[0053] In view of this, the inventor proposes a discrimination device that uses an audio discrimination model to discriminate audio, which is used to discriminate the probability that cough audio carries specified pneumonia information, wherein the specified pneumonia information may be related information of the novel coronavirus pneumonia. Figure 1 FIG. 2 shows a schematic diagram of an implementation framework according to an embodiment disclosed in this specification. Figure 1 As shown, the audio discrimination model includes a frequency domain feature extraction layer, a time series feature extraction layer and a classification layer, wherein the audio discrimination model is pre-trained based on multiple sample cough audios and the label probability corresponding to each sample cough audio, wherein the label probability represents the probability that the corresponding sample cough audio carries the specified pneumonia information. In one case, the label probability can be 0 or 1, wherein 0 indicates that the corresponding sample cough audio carries non-specified pneumonia information, that is, does not carry the specified pneumonia information, and 1 indicates that the corresponding sample cough audio carries the specified pneumonia information.
[0054] The discrimination device comprises: a first preprocessing module, a first division module, a frequency domain feature extraction module, a time series feature extraction module and a classification module.
[0055] By detecting a large number of cough audios carrying designated pneumonia information (hereinafter referred to as the first type of cough audios) and cough audios carrying non-designated pneumonia information (hereinafter referred to as the second type of cough audios), it is found that the first type of cough audios are special compared to the second type of cough audios. For example, as shown in Figures 2(a) and 2(b), the duration of the cough audio carrying designated pneumonia information (Figure 2(b)) is usually longer than that of the cough audio carrying non-designated pneumonia information (Figure 2(a)), and there is a longer tail wave at the end of the cough audio carrying designated pneumonia information (that is, when the person who generates the cough audio is about to end a cough); and, as shown in Figure 3(b) (corresponding to the cough audio shown in Figure 2(b)), the frequency spectrum feature diagram of the cough audio carrying designated pneumonia information shows that it has higher energy and more obvious harmonic structure in the low-frequency region; while as shown in Figure 3(a) (corresponding to the cough audio shown in Figure 2(a)), the frequency spectrum feature diagram of the cough audio carrying non-designated pneumonia information shows that it contains relatively more information in the high-frequency region.
[0056] In view of the difference between the first type of cough audio and the second type of cough audio, Figure 1 As shown, first, a first preprocessing module is configured to process the cough audio to be identified to obtain a target Mel spectrum feature. A first division module is configured to divide the target Mel spectrum feature to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band, wherein the first Mel spectrum feature includes relevant information of the cough audio to be identified in the preset low frequency band, and the second Mel spectrum feature includes relevant information of the cough audio to be identified in the preset non-low frequency band.
[0057] The frequency domain feature extraction module is configured to input the first mel spectrum feature and the second mel spectrum feature into the frequency domain feature extraction layer, so as to perform frequency domain feature extraction on the first mel spectrum feature and the second mel spectrum feature respectively through the frequency domain feature extraction layer, and obtain the first frequency domain feature containing the local information of the cough audio to be identified in the preset low frequency band, and the second frequency domain feature containing the local information of the cough audio to be identified in the preset non-low frequency band. The time series feature extraction module is configured to input the first mel spectrum feature and the second mel spectrum feature into the time series feature extraction layer, so as to perform time series feature extraction on the first mel spectrum feature and the second mel spectrum feature respectively through the time series feature extraction layer, and obtain the first time series feature containing the time series information of the cough audio to be identified in the preset low frequency band, and the second time series feature containing the time series information of the cough audio to be identified in the preset non-low frequency band. The classification module is configured to input the first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature into the classification layer, and obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0058] In this embodiment, the discrimination device uses an audio discrimination model to perform frequency domain feature extraction and time series feature extraction on the first Mel spectrum feature and the second Mel spectrum feature, respectively, and then classifies the extracted first frequency domain feature (including local information of the cough audio to be discriminated in a preset low frequency band), the first time series feature (including time series information of the cough audio to be discriminated in a preset low frequency band), the second frequency domain feature (including local information of the cough audio to be discriminated in a preset non-low frequency band), and the second time series feature (including time series information of the cough audio to be discriminated in a preset non-low frequency band) to obtain the probability that the cough audio to be discriminated carries the specified pneumonia information. Based on the difference between the cough audio carrying the specified pneumonia information and the cough audio carrying the non-specified pneumonia information, that is, the local information and time series information of the two in different frequency bands, the probability of the cough audio to be discriminated carrying the specified pneumonia information is discriminated.
[0059] The identification device provided in this specification is described in detail below in conjunction with specific embodiments.
[0060] Figure 4 A schematic block diagram of a discrimination device for discriminating audio using an audio discrimination model in one embodiment of this specification is shown. The discrimination device 400 can be implemented by any device, equipment, platform, equipment cluster, etc. with computing and processing capabilities. The discrimination device 400 is used to discriminate the probability that cough audio carries specified pneumonia information, and the audio discrimination model includes a frequency domain feature extraction layer, a time series feature extraction layer, and a classification layer. Among them, the audio discrimination model can be set in the discrimination device, and can also be set in other devices different from the discrimination device. The discrimination device 400 includes:
[0061] The first preprocessing module 410 is configured to process the cough audio to be identified to obtain a target Mel-spectrogram feature.
[0062] In one case, when collecting the cough audio to be identified, the collected audio may contain a lot of noise or other sounds unrelated to the cough sound. Accordingly, in order to ensure the accuracy of the identification result, the cough audio can be first detected and extracted from the collected audio to obtain the cough audio to be identified.
[0063] In order to better utilize the unique features of the first type of cough audio relative to the second type of cough audio, based on the differences between the above two types of cough audio in the time series and frequency domain, the embodiment of this specification provides a preset weighted processing to determine the band-weighted Mel spectrum features, that is, the band-weighted MFCC (Mel Frequency Cepstrum Coefficient, MFCC) features, that is, giving different weights to MFCC features of different frequency bands (frequency bands) to enhance the features in the low frequency bands, so that the audio discrimination model can better extract information from the band-weighted Mel spectrum features (that is, the target Mel spectrum features) to help discriminate the probability that the cough audio carries the specified pneumonia information.
[0064] Accordingly, in one implementation, the first preprocessing module 410 is specifically configured to detect cough audio from the collected audio as the cough audio to be identified;
[0065] Extract features of the cough audio to be identified and obtain initial Mel spectrum features;
[0066] The initial Mel spectrum feature is subjected to a preset weighted processing to obtain a target Mel spectrum feature, wherein the preset weighted processing is used to enhance the features in the initial Mel spectrum feature that are in a preset low frequency band.
[0067] In one implementation, the process of obtaining the initial Mel spectrum feature may be: pre-emphasize the cough audio to be identified to compensate for the high-frequency components therein to obtain the corresponding emphasized audio; frame the emphasized audio to obtain the corresponding sub-cough audio, wherein, in order to ensure the continuity of the sub-cough audio after framing, there is overlap between adjacent sub-cough audios after framing; window each sub-cough audio, wherein the window may be a Hamming window; perform a fast Fourier transform on each windowed sub-cough audio to obtain the spectrum of each windowed sub-cough audio, square the value corresponding to the spectrum of each windowed sub-cough audio to obtain the energy spectrum of each windowed sub-audio; input the energy spectrum of each windowed sub-cough audio into a Mel filter to obtain the Mel spectrum feature corresponding to each windowed sub-cough audio, that is, to obtain the initial Mel spectrum feature. In which, the Mel filter may be set to multiple, for example, N, and accordingly, the Mel spectrum feature corresponding to each windowed sub-cough audio is an N-dimensional Mel spectrum feature.
[0068] Subsequently, the first preprocessing module 410 may perform preset weighted processing on the mel spectrum features corresponding to each cough sub-audio by a preset weighted formula to obtain a target mel spectrum feature, wherein the preset weighted formula may be a weighted formula based on prime number distribution. In one case, the preset weighted formula may be expressed as:
[0069]
[0070] Among them, x i represents the Mel spectrum feature corresponding to the i-th cough audio, y i represents the Mel spectrum feature after preset weighted processing corresponding to the i-th cough sub-audio in the target Mel spectrum feature, λ i It is determined based on the eigenvalues corresponding to each Mel-spectrogram feature in the Mel-spectrogram feature corresponding to the i-th sub-cough audio.
[0071] It can be understood that the Mel spectrum feature corresponding to the i-th cough audio sub-audio is an N-dimensional Mel spectrum feature, and its first N / 3-dimensional Mel spectrum feature can be used as a feature in a preset low-frequency band, and its last 2N / 3-dimensional Mel spectrum feature can be used as a feature in a preset non-low-frequency band, where λ i It can include two, namely: λ corresponding to the characteristics of the preset low frequency band i1 and λ corresponding to the characteristics of the preset non-low frequency band i2 ,λ i1 is equal to the ratio of the sum of the eigenvalues corresponding to the Mel-spectrogram features of the first N / 3 dimensions to the sum of the total eigenvalues corresponding to the Mel-spectrogram features corresponding to the i-th cough audio sub-audio; i2 is equal to the ratio of the sum of the eigenvalues corresponding to the Mel spectrum features of the last 2N / 3 dimensions to the sum of the total eigenvalues mentioned above. Correspondingly, the above formula can be specifically understood as: i The eigenvalues corresponding to the first N / 3 dimensions of the Mel spectrum features are The product of i The eigenvalues corresponding to the first N / 3 dimensions of the Mel spectrum features, x i The eigenvalues corresponding to the 2N / 3-dimensional Mel spectrum features are The product of i The eigenvalues corresponding to the 2N / 3-dimensional Mel spectrum features.
[0072] In another implementation, the preset non-low frequency band includes a preset mid-frequency band and a preset high-frequency band, that is, the Mel spectrum feature corresponding to the i-th cough audio sub-audio is an N-dimensional Mel spectrum feature, the middle N / 3-dimensional Mel spectrum feature is used as a feature in the preset mid-frequency band, and the last N / 3-dimensional Mel spectrum feature is used as a feature in the preset high-frequency band. In this case, λ i It can include three, which are λ corresponding to the characteristics of the preset low frequency band. i1 , corresponding to the characteristics of the preset mid-frequency band i21 and λ corresponding to the characteristics of the preset high frequency band i22 , where λ i21 and λ i22 The specific calculation process of can refer to the above λ i1 The calculation process of x is not described here. iThe eigenvalues corresponding to the intermediate N / 3-dimensional Mel spectrum features are The product of i The eigenvalue corresponding to the mel spectrum feature of the middle N / 3 dimension; x i The eigenvalues corresponding to the mel spectrum features of the N / 3 dimensions are respectively The product of i The eigenvalues corresponding to the mel spectrum features of the last N / 3 dimensions.
[0073] After obtaining the target Mel spectrum feature, the first division module 420 is configured to divide the target Mel spectrum feature to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band. The preset non-low frequency band may include a preset mid-frequency band and a preset high-frequency band.
[0074] The frequency domain feature extraction module 430 is configured to input the first mel spectrum feature and the second mel spectrum feature into the frequency domain feature extraction layer to obtain a first frequency domain feature including local information of the cough audio to be identified in a preset low frequency band, and a second frequency domain feature including local information of the cough audio to be identified in a preset non-low frequency band.
[0075] It can be understood that the audio discrimination model is pre-trained based on multiple sample cough audios and the label probabilities corresponding to each sample cough audio, that is, the frequency domain feature extraction layer, the time series feature extraction layer and the classification layer included therein are pre-trained. The frequency domain feature extraction layer can extract the frequency domain features contained therein for the input data. Correspondingly, the frequency domain feature extraction module 430 inputs the first Mel spectrum feature and the second Mel spectrum feature into the frequency domain feature extraction layer, and the frequency domain feature extraction layer can respectively extract the local information of the preset low frequency band from the first Mel spectrum feature, and obtain the first frequency domain feature containing the local information of the cough audio to be discriminated in the preset low frequency band, and extract the local information of the preset non-low frequency band from the second Mel spectrum feature, and obtain the second frequency domain feature containing the local information of the cough audio to be discriminated in the preset non-low frequency band.
[0076] The time series feature extraction module 440 is configured to input the first Mel spectrum feature and the second Mel spectrum feature into the time series feature extraction layer, and obtain the first time series feature including the time series information of the cough audio to be identified in the preset low frequency band, and the second time series feature including the time series information of the cough audio to be identified in the preset non-low frequency band. The time series feature extraction layer can extract the time series features contained therein for the input data. Accordingly, the time series feature extraction module 440 inputs the first Mel spectrum feature and the second Mel spectrum feature into the time series feature extraction layer, and the time series feature extraction layer extracts the time series information of the preset low frequency band from the first Mel spectrum feature, and obtains the first time series feature including the time series information of the cough audio to be identified in the preset low frequency band, and extracts the time series information of the preset non-low frequency band from the second Mel spectrum feature, and obtains the second time series feature including the time series information of the cough audio to be identified in the preset non-low frequency band.
[0077] The classification module 450 is configured to input the first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0078] In one implementation, the classification module 450 includes:
[0079] The first fusion unit is configured to fuse the first frequency domain feature and the first time series feature to obtain a first fusion feature.
[0080] The second fusion unit is configured to fuse the second frequency domain feature and the second time series feature to obtain a second fusion feature.
[0081] The splicing unit is configured to splice the first fusion feature and the second fusion feature to obtain a spliced fusion feature.
[0082] The classification unit is configured to input the concatenated fusion features into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0083] The fusion may refer to concatenating, dot-wise multiplying, or adding corresponding frequency domain features and time series features.
[0084] In another implementation, the classification module 450 can also directly input the first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature into the classification layer. Accordingly, the classification layer fuses the first frequency domain feature and the first time series feature to obtain a first fused feature; fuses the second frequency domain feature and the second time series feature to obtain a second fused feature; and splices the first fused feature and the second fused feature to obtain a spliced fused feature, and then processes the spliced fused feature to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0085] In one case, in order to better utilize the information of each frequency band of the cough audio to be identified and ensure the accuracy of the identification result, when the first division module divides the target Mel spectrum feature, it can continue to divide the second Mel spectrum feature in the preset non-low frequency band into a third Mel spectrum feature in the preset mid-frequency band and a fourth Mel spectrum feature in the preset high-frequency band. Correspondingly, the second frequency domain feature includes: a third frequency domain feature in the preset mid-frequency band and a fourth frequency domain feature in the preset high-frequency band, wherein the third frequency domain feature contains the local information of the cough audio to be identified in the preset mid-frequency band, and the fourth frequency domain feature contains the local information of the cough audio to be identified in the preset high-frequency band;
[0086] The second time series feature includes: a third time series feature in a preset middle frequency band and a fourth time series feature in a preset high frequency band, wherein the third time series feature includes time series information of the cough audio to be identified in the preset middle frequency band, and the fourth time series feature includes time series information of the cough audio to be identified in the preset high frequency band;
[0087] The second fusion unit is specifically configured to fuse the third frequency domain feature and the third time series feature to obtain a third fusion feature containing local information and time series information of the cough audio to be identified in a preset mid-frequency band; and fuse the fourth frequency domain feature and the fourth time series feature to obtain a fourth fusion feature containing local information and time series information of the cough audio to be identified in a preset high-frequency band.
[0088] Furthermore, the splicing unit is specifically configured to splice the first fusion feature, the third fusion feature, and the fourth fusion feature to obtain a spliced fusion feature. The spliced fusion feature includes the local information and timing information of the cough audio to be identified in each frequency band (preset low frequency band, preset middle frequency band, and preset high frequency band) after fusion. Subsequently, the classification layer can obtain a more accurate discrimination result based on the spliced fusion feature.
[0089] In this embodiment, the discrimination device can use the audio discrimination model to extract local information and timing information of each frequency band from the cough audio to be discriminated, and then based on the local information and timing information of each frequency band, it can discriminate the probability that the cough audio to be discriminated carries the specified pneumonia information, thereby achieving the purpose of using the cough audio to perform specified pneumonia detection.
[0090] In one embodiment of the present specification, the frequency domain feature extraction layer includes: a first residual network (Residual Networks, ResNets) corresponding to a preset low frequency band, and a second residual network corresponding to a preset non-low frequency band; wherein the first residual network and the second residual network are set in parallel;
[0091] The frequency domain feature extraction module 430 is specifically configured to input the first Mel spectrum feature into the first residual network to obtain the first frequency domain feature; and input the second Mel spectrum feature into the second residual network to obtain the second frequency domain feature.
[0092] Among them, the first residual network and the second residual network can both include several layers of residual network layers. Through the residual structure of the residual network (including the first residual network and the second residual network), the local information of the preset low frequency band and the preset non-low frequency band (including the preset medium frequency band and the preset high frequency band) corresponding to the cough audio to be identified can be better extracted, so that the extracted frequency domain features mainly focus on the local information of the first type of cough audio and the second type of cough audio in different frequency bands and the differences between them, so as to make the accuracy of the discrimination results of the subsequent classification layer higher.
[0093] In one implementation, when the second mel spectrum feature in the preset non-low frequency band includes a third mel spectrum feature in the preset mid-frequency band and a fourth mel spectrum feature in the preset high frequency band, the second residual network includes a third residual network corresponding to the preset mid-frequency band and a fourth residual network corresponding to the preset high frequency band that are arranged in parallel. Accordingly, the frequency domain feature extraction module 430 inputs the third mel spectrum feature into the third residual network to obtain a third frequency domain feature containing local information of the cough audio to be identified in the preset mid-frequency band, and inputs the fourth mel spectrum feature into the fourth residual network to obtain a fourth frequency domain feature containing local information of the cough audio to be identified in the preset high frequency band.
[0094] In one embodiment of the present specification, the temporal feature extraction layer includes: a first bidirectional long short-term memory network (Bi-directional Long Short-Term Memory, Bi-LSTM) corresponding to a preset low frequency band, and a second bidirectional long short-term memory network corresponding to a preset non-low frequency band; the first bidirectional long short-term memory network and the second bidirectional long short-term memory network are arranged in parallel;
[0095] The time series feature extraction module 440 is specifically configured to input the first mel spectrum feature into the first bidirectional long short-term memory network to obtain the first time series feature including the time series information of the cough sound to be identified in the preset low frequency band; input the second mel spectrum feature into the second bidirectional long short-term memory network to obtain the second time series feature including the time series information of the cough sound to be identified in the preset non-low frequency band.
[0096] The first bidirectional long short-term memory network and the second bidirectional long short-term memory network can each include several bidirectional long short-term memory network layers. The first bidirectional long short-term memory network and the second bidirectional long short-term memory network can respectively focus on the temporal information of the first type of cough audio and the second type of cough audio in different frequency bands and the differences between them, so as to make the discrimination results of the subsequent classification layer more accurate.
[0097] In one implementation, when the second mel spectrum feature in the preset non-low frequency band includes the third mel spectrum feature in the preset mid-frequency band and the fourth mel spectrum feature in the preset high frequency band, the second bidirectional long short-term memory network includes the third bidirectional long short-term memory network corresponding to the preset mid-frequency band and the fourth bidirectional long short-term memory network corresponding to the preset high frequency band arranged in parallel. Accordingly, the temporal feature extraction module 440 inputs the third mel spectrum feature into the third bidirectional long short-term memory network to obtain the third temporal feature containing the temporal information of the cough audio to be identified in the preset mid-frequency band, and inputs the fourth mel spectrum feature into the fourth bidirectional long short-term memory network to obtain the fourth temporal feature containing the temporal information of the cough audio to be identified in the preset high frequency band.
[0098] In one embodiment of the present specification, the classification layer includes: a first fully connected layer and a second fully connected layer, the first fully connected layer includes a first linear transformation and a first activation function, and the second fully connected layer includes a second activation function;
[0099] The classification unit is specifically configured to input the concatenated fusion features into the first fully connected layer, so that the first fully connected layer performs a first linear transformation on the concatenated fusion features to obtain a first linear transformation result; determine the intermediate features using the first activation function and the first linear transformation result; and input the intermediate features into the second fully connected layer, so that the second fully connected layer uses the second activation function and the intermediate features to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0100] It is understandable that the spliced fusion feature includes the information corresponding to the cough audio to be identified in different frequency bands, and the classification unit inputs the spliced fusion feature into the classification layer, that is, the first fully connected layer and the second fully connected layer of the classification layer can be used to distinguish the audio to be identified and determine the probability of it carrying the specified pneumonia information. Specifically, the spliced fusion feature is input into the first fully connected layer so that the first fully connected layer performs a first linear transformation on the spliced fusion feature to obtain a high-dimensional feature of the information in different frequency bands in the fused spliced fusion feature, that is, the first linear transformation result, and then the first linear transformation result is activated by the first activation function to obtain the intermediate feature; the intermediate feature is input into the second fully connected layer so that the second fully connected layer uses the second activation function to activate the intermediate feature to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0101] Among them, the first activation function can adopt the ReLu function, and the ReLu activation function is expressed as:
[0102]
[0103] Among them, X represents the splicing fusion feature.
[0104] The second activation function can be a sigmoid function, which is expressed as:
[0105]
[0106] Among them, Z represents the intermediate feature. According to the sigmoid function expression, the value of s(Z) is between 0 and 1, and has good symmetry. The classification layer selects the sigmoid function as the activation function, which can provide the accuracy of the classification result, that is, the discrimination result, to a certain extent.
[0107] Corresponding to the above-mentioned identification device, in one embodiment of the present specification, as Figure 5A As shown, another discrimination device for discriminating audio using an audio discrimination model is also provided, which is used to discriminate the probability that cough audio carries specified pneumonia information. The audio discrimination model includes a frequency domain feature extraction layer, a time series feature extraction layer and a classification layer. The device includes:
[0108] A second preprocessing module is configured to process the cough audio to be identified and obtain a Mel spectrum feature to be processed;
[0109] A second division module is configured to divide the target Mel spectrum feature to obtain a fifth Mel spectrum feature in a preset low frequency band and a sixth Mel spectrum feature in a preset non-low frequency band;
[0110] The model input module is configured to input the fifth Mel-spectrogram feature and the sixth Mel-spectrogram feature into the audio discrimination model, so that the audio discrimination model performs frequency domain feature extraction on the fifth Mel-spectrogram feature and the sixth Mel-spectrogram feature through a frequency domain feature extraction layer, respectively, to obtain a fifth frequency domain feature containing local information of the cough audio to be discriminated in the preset low frequency band, and a sixth frequency domain feature containing local information of the cough audio to be discriminated in the preset non-low frequency band; performs time series feature extraction on the fifth Mel-spectrogram feature and the sixth Mel-spectrogram feature through a time series feature extraction layer, respectively, to obtain a fifth time series feature containing time series information of the cough audio to be discriminated in the preset low frequency band, and a sixth time series feature containing time series information of the cough audio to be discriminated in the preset non-low frequency band; processes the fifth frequency domain feature and the sixth frequency domain feature, and the fifth time series feature and the sixth time series feature through a classification layer, to obtain a probability that the cough audio to be discriminated carries specified pneumonia information, and outputs it;
[0111] The receiving module is configured to receive the probability.
[0112] Among them, the audio discrimination model also includes a feature fusion layer; the audio discrimination model fuses the fifth Mel-spectrogram feature and the fifth time series feature through the feature fusion layer to obtain a fifth fusion feature; fuses the sixth frequency domain feature and the sixth time series feature to obtain a sixth fusion feature; splices the fifth fusion feature and the sixth fusion feature to obtain a spliced feature; inputs the spliced feature into the classification layer; accordingly, the audio discrimination model processes the spliced feature through the classification layer to obtain the probability that the cough audio to be discriminated carries the specified pneumonia information.
[0113] The specific implementation process of the second preprocessing module can refer to the specific implementation process of the first preprocessing module 410, and the specific implementation process of the second segmentation module can refer to the specific implementation process of the first segmentation module 420, which will not be repeated here. The to-be-processed mel spectrum feature can be the same as the aforementioned target mel spectrum feature, the fifth mel spectrum feature can be the same as the aforementioned first mel spectrum feature, and the sixth mel spectrum feature can be the same as the aforementioned second mel spectrum feature.
[0114] It can be understood that the sixth mel spectrum feature in the preset non-low frequency band may include: the seventh mel spectrum feature in the preset mid-frequency band and the eighth mel spectrum feature in the preset high-frequency band. Figure 5B As shown, it is a schematic block diagram of an audio discrimination model. Among them, the frequency domain feature extraction layer of the audio discrimination model includes a first residual network, a third residual network and a fourth residual network arranged in parallel. The time series feature extraction layer of the audio discrimination model includes a first bidirectional long short-term memory network, a third bidirectional long short-term memory network and a fourth bidirectional long short-term memory network arranged in parallel. And the audio discrimination model also includes a feature fusion layer to fuse the outputs of the frequency domain feature extraction layer and the time series feature extraction layer, and then input the fusion result (concatenated fusion feature) into the classification layer.
[0115] like Figure 5B As shown, after the audio discrimination model obtains the fifth Mel-spectrogram feature, the seventh Mel-spectrogram feature and the eighth Mel-spectrogram feature input by the model input module, the first residual network, the third residual network and the fourth residual network arranged in parallel respectively perform frequency domain feature extraction on the fifth Mel-spectrogram feature, the seventh Mel-spectrogram feature and the eighth Mel-spectrogram feature to obtain the corresponding fifth frequency domain feature, the seventh frequency domain feature and the eighth frequency domain feature.
[0116] In addition, the audio discrimination model performs time series feature extraction on the fifth mel-spectrogram feature, the seventh mel-spectrogram feature and the eighth mel-spectrogram feature through the first bidirectional long short-term memory network, the third bidirectional long short-term memory network and the fourth bidirectional long short-term memory network set in parallel to obtain the corresponding fifth time series feature, the seventh time series feature and the eighth time series feature.
[0117] Next, the audio discrimination model fuses the fifth frequency domain feature and the fifth time series feature through the feature fusion layer, fuses the seventh frequency domain feature and the seventh time series feature, and fuses the eighth frequency domain feature and the eighth time series feature; and then splices the above three fusion results to obtain a spliced fusion feature. Then the audio discrimination model processes the spliced fusion feature through the classification layer (with a first fully connected layer and a second fully connected layer) to obtain the probability that the cough audio to be discriminated carries the specified pneumonia information, and outputs it. Correspondingly, the discrimination device 500 obtains the probability that the cough audio to be discriminated carries the specified pneumonia information through the receiving module 540.
[0118] It can be understood that the audio discrimination model is pre-trained based on multiple sample cough audios and their corresponding probability labels.
[0119] Among them, the training process of the audio discrimination model can be:
[0120] A sample cough audio and its corresponding probability label are obtained, wherein the probability label represents the probability of carrying the specified pneumonia information; the sample cough audio is processed to obtain a sample Mel spectrum feature corresponding to the sample cough audio (see the processing process for distinguishing the cough audio for details); the sample Mel spectrum feature is divided to obtain a first sample Mel spectrum feature in a preset low frequency band and a second sample Mel spectrum feature in a preset non-low frequency band; the first sample Mel spectrum feature and the second sample Mel spectrum feature are input into the frequency domain feature extraction layer to be trained to obtain the first sample frequency domain feature and the second sample frequency domain feature corresponding to each other ... The Mel spectrum feature and the second sample Mel spectrum feature are input into the time series feature extraction layer to be trained to obtain the corresponding first sample time series feature and second sample time series feature; the first sample frequency domain feature and the second sample frequency domain feature, as well as the first sample time series feature and the second sample time series feature are input into the classification layer to be trained to obtain the predicted probability that the sample cough audio carries the specified pneumonia information; based on the probability label and the predicted probability, a first loss value is determined; with the goal of minimizing the first loss value, the parameters of the frequency domain feature extraction layer to be trained, the time series feature extraction layer to be trained, and the classification layer to be trained are adjusted to obtain the audio discrimination model.
[0121] The foregoing describes certain embodiments of the present specification, and other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in an order different from that in the embodiments, and the desired results may still be achieved. In addition, the processes depicted in the accompanying drawings do not necessarily have to be performed in the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0122] Corresponding to the above-mentioned discrimination device embodiment, the present specification embodiment provides a computer-readable storage medium 600, whose schematic block diagram is as follows: Figure 6 As shown, a computer program 610 is stored thereon. When the computer program is executed in a computer, the computer is instructed to execute a method for discriminating audio using an audio discrimination model, for discriminating the probability that the cough audio carries specified pneumonia information. The audio discrimination model includes a frequency domain feature extraction layer, a time series feature extraction layer, and a classification layer. The method includes:
[0123] Process the cough audio to be identified to obtain the target Mel spectrum feature;
[0124] The target Mel spectrum feature is divided to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band;
[0125] Inputting the first Mel-spectrogram feature and the second Mel-spectrogram feature into a frequency domain feature extraction layer to obtain a first frequency domain feature including local information of the cough audio to be identified in the preset low frequency band, and a second frequency domain feature including local information of the cough audio to be identified in the preset non-low frequency band;
[0126] Inputting the first mel-spectrogram feature and the second mel-spectrogram feature into a time series feature extraction layer to obtain a first time series feature including time series information of the cough audio to be identified in the preset low frequency band, and a second time series feature including time series information of the cough audio to be identified in the preset non-low frequency band;
[0127] The first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature are input into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0128] In one possible implementation, obtaining the target Mel spectrum feature includes:
[0129] Extracting features of the cough audio to be identified to obtain initial Mel-spectrogram features;
[0130] The initial Mel spectrum feature is subjected to a preset weighted processing to obtain the target Mel spectrum feature, wherein the preset weighted processing is used to enhance the feature of the initial Mel spectrum feature in the preset low frequency band.
[0131] In one possible implementation, obtaining the probability that the cough audio to be identified carries specified pneumonia information includes:
[0132] Fusing the first frequency domain feature and the first time series feature to obtain a first fused feature;
[0133] Fusing the second frequency domain feature and the second time series feature to obtain a second fused feature;
[0134] Splicing the first fusion feature and the second fusion feature to obtain a spliced fusion feature;
[0135] Based on the spliced fusion features, the probability that the cough audio to be identified carries specified pneumonia information is obtained.
[0136] In one possible implementation, the second Mel-spectrogram feature in the preset non-low frequency band includes a third Mel-spectrogram feature in the preset mid-frequency band and a fourth Mel-spectrogram feature in the preset high frequency band;
[0137] The second frequency domain feature includes: a third frequency domain feature in the preset middle frequency band and a fourth frequency domain feature in the preset high frequency band; the second time sequence feature includes: a third time sequence feature in the preset middle frequency band and a fourth time sequence feature in the preset high frequency band;
[0138] The obtaining of the second fusion feature comprises:
[0139] Fusing the third frequency domain feature and the third time series feature to obtain a third fused feature;
[0140] Fusing the fourth frequency domain feature and the fourth time series feature to obtain a fourth fused feature;
[0141] The obtaining of the spliced fusion feature includes: splicing the first fusion feature, the third fusion feature and the fourth fusion feature to obtain the spliced fusion feature.
[0142] In one possible implementation, the classification layer includes: a first fully connected layer and a second fully connected layer, the first fully connected layer includes a first linear transformation and a first activation function, and the second fully connected layer includes a second activation function;
[0143] The step of splicing the first fusion feature, the third fusion feature and the fourth fusion feature to obtain a spliced fusion feature includes:
[0144] Inputting the concatenated fusion features into a first fully connected layer, so that the first fully connected layer performs a first linear transformation on the concatenated fusion features to obtain a first linear transformation result; determining an intermediate feature using a first activation function and the first linear transformation result;
[0145] The intermediate feature is input into the second fully connected layer, so that the second fully connected layer uses the second activation function and the intermediate feature to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
[0146] In one possible implementation, the frequency domain feature extraction layer includes: a first residual network corresponding to a preset low frequency band, and a second residual network corresponding to a preset non-low frequency band;
[0147] The obtaining of the first frequency domain feature including the local information of the cough audio to be identified in the preset low frequency band, and the second frequency domain feature including the local information of the cough audio to be identified in the preset non-low frequency band, includes:
[0148] The first mel spectrum feature is input into the first residual network to obtain the first frequency domain feature; and the second mel spectrum feature is input into the second residual network to obtain the second frequency domain feature.
[0149] In one possible implementation, the temporal feature extraction layer includes: a first bidirectional long short-term memory network corresponding to a preset low-frequency band, and a second bidirectional long short-term memory network corresponding to a preset non-low-frequency band;
[0150] The obtaining of the first time sequence feature including the time sequence information of the cough audio to be identified in the preset low frequency band, and the second time sequence feature including the time sequence information of the cough audio to be identified in the preset non-low frequency band, includes:
[0151] The first mel-spectrogram feature is input into the first bidirectional long short-term memory network to obtain the first time series feature; and the second mel-spectrogram feature is input into the second bidirectional long short-term memory network to obtain the second time series feature.
[0152] Corresponding to the above-mentioned discrimination device embodiment, an embodiment of this specification provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method for discriminating audio using an audio discrimination model to discriminate the probability that the cough audio carries specified pneumonia information. The audio discrimination model includes a frequency domain feature extraction layer, a time series feature extraction layer, and a classification layer. The method includes:
[0153] Process the cough audio to be identified to obtain the target Mel spectrum feature;
[0154] The target Mel spectrum feature is divided to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band;
[0155] Input the first Mel-spectrogram feature and the second Mel-spectrogram feature into an audio discrimination model, so that the audio discrimination model performs frequency domain feature extraction on the first Mel-spectrogram feature and the second Mel-spectrogram feature through a frequency domain feature extraction layer, respectively, to obtain a fifth frequency domain feature containing local information of the cough audio to be discriminated in the preset low frequency band, and a sixth frequency domain feature containing local information of the cough audio to be discriminated in the preset non-low frequency band; perform time series feature extraction on the first Mel-spectrogram feature and the second Mel-spectrogram feature through a time series feature extraction layer, respectively, to obtain a fifth time series feature containing time series information of the cough audio to be discriminated in the preset low frequency band, and a sixth time series feature containing time series information of the cough audio to be discriminated in the preset non-low frequency band; process the fifth frequency domain feature and the sixth frequency domain feature, and the fifth time series feature and the sixth time series feature through a classification layer, obtain a probability that the cough audio to be discriminated carries specified pneumonia information, and output it;
[0156] The probability is received.
[0157] The above storage medium embodiment corresponds to the discrimination device embodiment. For specific description, please refer to the description of the discrimination device embodiment part, which will not be repeated here. The storage medium embodiment is obtained based on the corresponding discrimination device embodiment and has the same technical effect as the corresponding discrimination device embodiment. For specific description, please refer to the corresponding discrimination device embodiment.
[0158] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the storage medium, since it is basically similar to the discrimination device embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the discrimination device embodiment.
[0159] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0160] The specific implementation methods described above further describe the purpose, technical solutions and beneficial effects of the embodiments of the present invention in detail. It should be understood that the above description is only a specific implementation method of the embodiments of the present invention and is not intended to limit the scope of protection of the present invention. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the scope of protection of the present invention.
Claims
1. A discrimination device for discriminating audio using an audio discrimination model, used to discriminate the probability that cough audio carries specified pneumonia information, the audio discrimination model comprising a frequency domain feature extraction layer, a time series feature extraction layer and a classification layer, the device comprising: A first preprocessing module is configured to process the cough audio to be identified to obtain a target Mel spectrum feature; A first division module is configured to divide the target Mel spectrum feature to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band; a frequency domain feature extraction module, configured to input the first mel spectrum feature and the second mel spectrum feature into a frequency domain feature extraction layer, to obtain a first frequency domain feature including local information of the cough audio to be identified in the preset low frequency band, and a second frequency domain feature including local information of the cough audio to be identified in the preset non-low frequency band; a time series feature extraction module, configured to input the first mel spectrum feature and the second mel spectrum feature into a time series feature extraction layer, to obtain a first time series feature including time series information of the cough audio to be identified in the preset low frequency band, and a second time series feature including time series information of the cough audio to be identified in the preset non-low frequency band; The classification module is configured to input the first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature into a classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
2. The device according to claim 1, wherein: The first preprocessing module is specifically configured to detect cough audio from the collected audio as the cough audio to be identified; Extracting features of the cough audio to be identified to obtain initial Mel-spectrogram features; The initial Mel spectrum feature is subjected to a preset weighted processing to obtain the target Mel spectrum feature, wherein the preset weighted processing is used to enhance the feature of the initial Mel spectrum feature in the preset low frequency band.
3. The device of claim 1, wherein: The classification module comprises: A first fusion unit is configured to fuse the first frequency domain feature and the first time series feature to obtain a first fusion feature; A second fusion unit is configured to fuse the second frequency domain feature and the second time series feature to obtain a second fusion feature; a splicing unit configured to splice the first fusion feature and the second fusion feature to obtain a spliced fusion feature; The classification unit is configured to input the concatenated fusion features into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
4. The device as claimed in claim 3, wherein: The second Mel spectrum feature in the preset non-low frequency band includes a third Mel spectrum feature in the preset mid-frequency band and a fourth Mel spectrum feature in the preset high frequency band; The second frequency domain feature includes: a third frequency domain feature in the preset middle frequency band and a fourth frequency domain feature in the preset high frequency band; the second time sequence feature includes: a third time sequence feature in the preset middle frequency band and a fourth time sequence feature in the preset high frequency band; The second fusion unit is specifically configured to fuse the third frequency domain feature and the third time series feature to obtain a third fusion feature; Fusing the fourth frequency domain feature and the fourth time series feature to obtain a fourth fused feature; The splicing unit is specifically configured to splice the first fusion feature, the third fusion feature and the fourth fusion feature to obtain a spliced fusion feature.
5. The device of claim 3, wherein: The classification layer includes: a first fully connected layer and a second fully connected layer, the first fully connected layer includes a first linear transformation and a first activation function, and the second fully connected layer includes a second activation function; The classification unit is specifically configured to input the spliced fusion features into a first fully connected layer, so that the first fully connected layer performs a first linear transformation on the spliced fusion features to obtain a first linear transformation result; and determine an intermediate feature using a first activation function and the first linear transformation result; The intermediate feature is input into the second fully connected layer, so that the second fully connected layer uses the second activation function and the intermediate feature to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
6. The device according to any one of claims 1 to 5, wherein: The frequency domain feature extraction layer includes: a first residual network corresponding to a preset low frequency band, and a second residual network corresponding to a preset non-low frequency band; The frequency domain feature extraction module is specifically configured to input the first Mel spectrum feature into the first residual network to obtain the first frequency domain feature; and input the second Mel spectrum feature into the second residual network to obtain the second frequency domain feature.
7. The device according to any one of claims 1 to 5, wherein: The temporal feature extraction layer includes: a first bidirectional long short-term memory network corresponding to a preset low-frequency band, and a second bidirectional long short-term memory network corresponding to a preset non-low-frequency band; The temporal feature extraction module is specifically configured to input the first mel spectrum feature into the first bidirectional long short-term memory network to obtain the first temporal feature; and input the second mel spectrum feature into the second bidirectional long short-term memory network to obtain the second temporal feature.
8. A computer-readable storage medium having a computer program stored thereon, which, when executed in a computer, causes the computer to execute a method for discriminating audio using an audio discrimination model, for discriminating the probability that cough audio carries specified pneumonia information, wherein the audio discrimination model comprises a frequency domain feature extraction layer, a time series feature extraction layer, and a classification layer, and the method comprises: Process the cough audio to be identified to obtain the target Mel spectrum feature; The target Mel spectrum feature is divided to obtain a first Mel spectrum feature in a preset low frequency band and a second Mel spectrum feature in a preset non-low frequency band; Inputting the first Mel-spectrogram feature and the second Mel-spectrogram feature into a frequency domain feature extraction layer to obtain a first frequency domain feature including local information of the cough audio to be identified in the preset low frequency band, and a second frequency domain feature including local information of the cough audio to be identified in the preset non-low frequency band; Inputting the first mel-spectrogram feature and the second mel-spectrogram feature into a time series feature extraction layer to obtain a first time series feature including time series information of the cough audio to be identified in the preset low frequency band, and a second time series feature including time series information of the cough audio to be identified in the preset non-low frequency band; The first frequency domain feature and the second frequency domain feature, and the first time series feature and the second time series feature are input into the classification layer to obtain the probability that the cough audio to be identified carries the specified pneumonia information.
9. The storage medium according to claim 8, wherein: The obtaining of the probability that the cough audio to be identified carries the specified pneumonia information includes: Fusing the first frequency domain feature and the first time series feature to obtain a first fused feature; Fusing the second frequency domain feature and the second time series feature to obtain a second fused feature; Splicing the first fusion feature and the second fusion feature to obtain a spliced fusion feature; Based on the spliced fusion features, the probability that the cough audio to be identified carries specified pneumonia information is obtained.
10. The storage medium according to claim 9, wherein: The second Mel spectrum feature in the preset non-low frequency band includes a third Mel spectrum feature in the preset mid-frequency band and a fourth Mel spectrum feature in the preset high frequency band; The second frequency domain feature includes: a third frequency domain feature in the preset middle frequency band and a fourth frequency domain feature in the preset high frequency band; the second time sequence feature includes: a third time sequence feature in the preset middle frequency band and a fourth time sequence feature in the preset high frequency band; The obtaining of the second fusion feature comprises: Fusing the third frequency domain feature and the third time series feature to obtain a third fused feature; Fusing the fourth frequency domain feature and the fourth time series feature to obtain a fourth fused feature; The obtaining of the spliced fusion feature includes: splicing the first fusion feature, the third fusion feature and the fourth fusion feature to obtain the spliced fusion feature.
