A continuous learning method for a multi-branch model system to distinguish cough sounds

By using spectral analysis and binary classification processing of a multi-branch model system, and training a new model with the data from incorrect judgments, the forgetting problem of deep learning models is solved, and the continuous learning ability is enhanced.

CN118430575BActive Publication Date: 2024-09-06CHINA JILIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410889363.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-06
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Existing deep learning models tend to forget previously learned content after learning new knowledge and lack continuous learning ability, especially when all training data cannot be obtained at once.

Method used

A multi-branch model system is adopted, which generates Mel-Cepstral diagrams through spectral analysis and performs binary classification using cough sound perception models in multiple parallel branches. Each branch is modeled independently, and new models are trained using data from incorrect judgments to expand the branches, forming a highly directional model.

Benefits of technology

It achieves continuous learning capability for multi-branch model systems, avoids the forgetting problem, and can autonomously expand new branches to ensure the system's learning ability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118430575B
    Figure CN118430575B
Patent Text Reader

Abstract

The present invention relates to the field of speech recognition and artificial intelligence technology, and in particular to a continuous learning method for a multi-branch model system for distinguishing cough sounds, comprising: performing spectrum analysis on audio data to be distinguished to generate a Mel-cepstral graph of the audio data to be distinguished; inputting the Mel-cepstral graph into a multi-branch model system capable of expanding branches to obtain a final binary classification result for indicating whether the audio data to be distinguished is a cough sound; wherein the multi-branch model system comprises n parallel branches, and each of the n parallel branches comprises a cough sound perception model, wherein the cough sound perception model in the nth branch is obtained after training with training sample data that are incorrectly distinguished by the cough sound perception models in the first n-1 branches, thereby solving the "forgetting" problem existing in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of speech recognition and artificial intelligence technology, and in particular to a continuous learning method of a multi-branch model system for distinguishing cough sounds. Background Art

[0002] Coughing is a physiological activity of the human respiratory system, and cough sounds are related to pathological / physiological changes in the upper and lower respiratory tracts. Existing studies have used cough sounds to diagnose lung diseases and detect physiological / pathological information.

[0003] At present, although the existing technology has realized the discrimination of cough sounds through deep learning models, the existing deep learning models have a major defect of "forgetting". The so-called forgetting refers to the almost complete forgetting of previously learned content after learning new knowledge, which makes the artificial intelligence model lack the ability to continuously adapt to the environment and continue (incrementally) learning like biological organisms. In addition, considering that in the real world, it is impossible to get all the training data at once for many tasks, this requires that the neural network must be able to use the constantly generated new data to continuously learn new knowledge and not forget the important content learned before. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a continuous learning method for a multi-branch model system for distinguishing cough sounds, which solves the technical problem of incremental learning in the prior art.

[0006] (II) Technical solution

[0007] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0008] In a first aspect, an embodiment of the present invention provides a continuous learning method for a multi-branch model system for distinguishing cough sounds, comprising: obtaining audio data to be distinguished; performing spectrum analysis on the audio data to be distinguished to generate a Mel-cepstrum of the audio data to be distinguished; inputting the Mel-cepstrum into a multi-branch model system capable of expanding branches for binary classification processing to obtain a final binary classification result for indicating whether the audio data to be distinguished is a cough sound; wherein the multi-branch model system comprises n parallel branches, and each of the n parallel branches comprises a cough sound perception model, wherein the cough sound perception model in the second branch is obtained after training with training sample data that is incorrectly distinguished by the cough sound perception model in the first branch, and the cough sound perception model in the third branch is obtained after training with training sample data that is incorrectly distinguished by the cough sound perception models in the first two branches, and so on, the cough sound perception model in the nth branch is obtained after training with training sample data that is incorrectly distinguished by the cough sound perception models in the first n-1 branches, and n is a positive integer greater than 2.

[0009] In some possible embodiments, each of the n parallel branches further includes an image similarity calculation module connected to the corresponding cough sound perception model, and the multi-branch model system further includes an image similarity sorting module connected to all the branches, and an image similarity judgment module and a category determination module connected to the image similarity sorting module in turn;

[0010] Among them, the binary classification processing process of the multi-branch model system includes: inputting the Mel-cepstrum into the cough sound perception model in each branch, obtaining the perception map output by the cough sound perception model in each branch, and calculating the first image similarity between the corresponding perception map and the Mel-cepstrum through the image similarity calculation module in each branch; sorting the n first image similarities in descending order through the image similarity sorting module to obtain the image similarity sorting result; judging whether the largest first image similarity in the image similarity sorting result is greater than or equal to the preset image similarity threshold through the image similarity judgment module to obtain the judgment result; and obtaining the binary classification result based on the judgment result through the category determination module.

[0011] In some possible embodiments, obtaining a binary classification result based on the judgment result by the category determination module includes: when the judgment result is that the maximum first image similarity is greater than or equal to a preset image similarity threshold, using the perception map output by the cough sound perception model in the branch corresponding to the maximum first image similarity as the binary classification result by the category determination module.

[0012] In some possible embodiments, a binary classification result is obtained based on a judgment result by a category determination module, including: a weighted accumulation step: when the judgment result is that the largest first image similarity is less than a preset image similarity threshold, the category determination module performs weighted accumulation on n perceptual maps to obtain a candidate comprehensive perceptual map; the category determination module performs image comparison on the candidate comprehensive perceptual map and each perceptual map of the n perceptual maps to obtain a second image similarity between the candidate comprehensive perceptual map and each perceptual map; the category determination module updates a weighted value of the corresponding perceptual map based on the second image similarity of each perceptual map, and uses the updated weighted value to return to execute the weighted accumulation step until an iteration stop condition is met, then the iteration is stopped, and the final candidate comprehensive perceptual map is used as the binary classification result.

[0013] In some possible embodiments, the branch expansion process of the multi-branch model system includes: obtaining training sample data that are incorrectly judged by the cough sound perception models in the first m-1 branches; wherein m is a positive integer greater than or equal to n+1; using the training sample data that are incorrectly judged by the cough sound perception models in the first m-1 branches, training the mth cough sound perception model, and using the mth cough sound perception model and the image similarity calculation module corresponding to the mth cough sound perception model as the mth branch of the multi-branch model system.

[0014] In some possible embodiments, the process of acquiring training sample data of the multi-branch model system includes: acquiring conversion step: acquiring sampling rate F The audio is converted into a binary waveform image ; is a binary waveform image Construct a width t 2, and slide the sliding window along the time axis to intercept multiple candidate cough sounds; perform spectral analysis on each of the multiple candidate cough sounds to generate a Mel-cepstrum of each candidate cough sound; and manually mark the Mel-cepstrum of each candidate cough sound to obtain training sample data for the multi-branch model system.

[0015] In some possible embodiments, sliding a sliding window along a time axis to capture multiple candidate cough sounds includes: accumulating the amplitude of the captured waveform on the time axis to obtain a waveform amplitude accumulation value; if the waveform amplitude accumulation value at the characteristic time point between the current starting point and the end point is less than a preset threshold, determining the characteristic time point as the speech end point; taking the speech end point closest to the current starting point as the new end point; if the time length between the new end point and the current starting point meets the preset cough sound time length standard, capturing the waveform between the new end point and the current starting point, and taking the captured waveform as the candidate cough sound; if the time length between the new end point and the current starting point does not meet the preset cough sound time length standard, abandoning the waveform between the new end point and the current starting point, and starting the sliding window from the current end point position, returning to the acquisition conversion step, and re-capturing the candidate cough sound.

[0016] In some possible embodiments, sliding the sliding window along the time axis to intercept multiple candidate cough sounds further includes: if the waveform amplitude accumulation value at the characteristic time point between the current starting point and the end point is greater than or equal to a preset threshold, expanding from the current starting point to the target time point, and searching backward for the speech end point closest to the current starting point, and performing an acquisition conversion step starting from the position of the speech end point to re-intercept the candidate cough sound.

[0017] In a second aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to execute the method described in the first aspect or any optional implementation of the first aspect.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the method described in the first aspect or any optional implementation method of the first aspect is performed.

[0019] In a fourth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0020] (III) Beneficial effects

[0021] The beneficial effects of the present invention are:

[0022] The embodiment of the present application provides a continuous learning method for a multi-branch model system for distinguishing cough sounds. Since the branches in the multi-branch model system of the present application are independent of each other and can be modeled in stages, each provides a strong directional model that memorizes the corresponding training data features, so that the multi-branch channel can be expanded autonomously. It only needs to continuously use the existing system to select erroneous data to train new models and add new branches to ensure the system's continuous learning ability, thereby solving the "forgetting" problem existing in the prior art.

[0023] In order to make the above-mentioned objectives, features and advantages to be achieved by the embodiments of the present application more obvious and understandable, the following specifically cites preferred embodiments and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A flowchart of a continuous learning method of a multi-branch model system for distinguishing cough sounds provided by an embodiment of the present application is shown;

[0026] Figure 2 A schematic diagram of a multi-branch model system provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0027] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0028] Based on the technical problems of incremental learning existing in the prior art, an embodiment of the present application provides a continuous learning method for a multi-branch model system for distinguishing cough sounds, by acquiring audio data to be distinguished, performing spectrum analysis on the audio data to be distinguished, generating a Mel-cepstral graph of the audio data to be distinguished, and inputting the Mel-cepstral graph into a multi-branch model system capable of expanding branches for binary classification processing, so as to obtain a final binary classification result for indicating whether the audio data to be distinguished is a cough sound, wherein the multi-branch model system includes n parallel branches, and each of the n parallel branches includes a cough sound perception model, wherein the cough sound perception model in the second branch is obtained after training with training sample data that is incorrectly distinguished by the cough sound perception model in the first branch, and the cough sound perception model in the third branch is obtained after training with training sample data that is incorrectly distinguished by the cough sound perception models in the first two branches, and so on, the cough sound perception model in the nth branch is obtained after training with training sample data that is incorrectly distinguished by the cough sound perception models in the first n-1 branches, and n is a positive integer greater than 2.

[0029] Therefore, each branch in the multi-branch model system of the present application is independent of each other and can be modeled in stages, each providing a strongly directional model that memorizes the corresponding training data features, so that the multi-branch channels can expand autonomously. It only needs to continuously use the existing system to select erroneous data to train new models and add new branches to ensure the system's continuous learning ability without the common "forgetting" problem.

[0030] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0031] See also Figure 1 , Figure 1 A flowchart of a continuous learning method of a multi-branch model system for distinguishing cough sounds provided by an embodiment of the present application is shown. It should be understood that the continuous learning method can be executed by a continuous learning device for a multi-branch model system for distinguishing cough sounds, and the specific device of the continuous learning device can be set according to actual needs, and the embodiment of the present application is not limited thereto. For example, the continuous learning device can be a computer, or a server, etc. Specifically, the continuous learning method includes:

[0032] Step S110, obtaining audio data to be identified.

[0033] It should be understood that the specific audio data of the audio data to be identified can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0034] For example, the audio data to be identified may be a child's cough audio, an adult's cough audio, an elderly person's cough audio, and the like.

[0035] Step S120 , performing frequency spectrum analysis on the audio data to be identified, and generating a Mel-cepstrum of the audio data to be identified.

[0036] Step S130, inputting the Mel-frequency cepstrum into a multi-branch model system capable of expanding branches for binary classification processing, so as to obtain a final binary classification result for indicating whether the audio data to be judged is a cough sound. The multi-branch model system includes n parallel branches, and each of the n parallel branches includes a cough sound perception model, wherein the cough sound perception model in the second branch is obtained after training with the training sample data that the cough sound perception model in the first branch misjudged, and the cough sound perception model in the third branch is obtained after training with the training sample data that the cough sound perception models in the first two branches misjudged, and so on, the cough sound perception model in the nth branch is obtained after training with the training sample data that the cough sound perception models in the first n-1 branches misjudged, and n is a positive integer greater than 2.

[0037] It should be understood that the process of acquiring training sample data of the multi-branch model system can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0038] Specifically, the minimum time length of a single cough sound can be set to t1 seconds, and the maximum time length can be set to t2 seconds, and a complete single cough sound waveform has a continuous amplitude absolute value greater than the threshold th1.

[0039] And, audio with sampling rate Fs can be input and converted into a binary waveform image , and is a binary waveform image A sliding window with a width of t2 that can slide along the time axis is constructed, so that the waveform data of t2*Fs points can be intercepted as candidate cough sound waveforms, and the interception starting point is the first time point on the starting side of the time axis where the waveform amplitude is greater than th1, and the interception end point is the time point t2*Fs points after the starting point.

[0040] Furthermore, the amplitude of the intercepted waveform is first accumulated on the time axis to obtain the waveform amplitude accumulation value.

[0041] If the accumulated value of the waveform amplitude at the characteristic time points (or certain time points) between the current starting point and the end point is less than the preset threshold th2, it means that the speech amplitude at these characteristic time points is too low, so that the characteristic time points can be determined as the speech end points. Subsequently, the speech end point closest to the current starting point can be used as the new end point. If the time length between the new end point and the current starting point meets the preset cough sound time length standard (that is, greater than or equal to t1 seconds and less than or equal to t2 seconds), the waveform between the new end point and the current starting point is intercepted, and the intercepted waveform is used as a candidate cough sound; if the time length between the new end point and the current starting point does not meet the preset cough sound time length standard (that is, its time is less than t1 seconds), the waveform between the new end point and the current starting point is abandoned, and the sliding window starts from the current end point position and returns to the above "obtaining audio with a sampling rate of Fs, and converting the audio into a binary waveform image." " step to re-intercept the candidate cough sound.

[0042] If the waveform amplitude accumulation value at the characteristic time point between the current starting point and the end point is greater than or equal to the preset threshold value th2, it means that the intercepted waveform exceeds the cough sound length standard and is not suitable as a candidate cough sound. The waveform is expanded from the current starting point to the target time point, and the speech end point closest to the current starting point is searched backwards, and the above "obtaining audio with a sampling rate of Fs and converting the audio into a binary waveform image" is performed from the position of the speech end point. " step to re-intercept the candidate cough sound.

[0043] Subsequently, a spectrum analysis may be performed on each of the multiple candidate cough sounds to generate a Mel-cepstrogram of each candidate cough sound, and the Mel-cepstrogram is a Mel-cepstrogram of a standard time length to enhance the expressiveness of the speech frequency domain. The specific expression is as follows:

[0044] ;

[0045] in, represents the Mel-frequency cepstrum; represents the Mel cepstral coefficient; Indicates candidate cough sounds.

[0046] Finally, the mel-cepstogram of each candidate cough sound can be manually labeled to collect the mel-cepstograms manually labeled as cough sounds and non-cough sounds, thereby obtaining a training sample data set for the multi-branch model system.

[0047] It should also be understood that the specific value of t1, the specific value of t2, the specific value of th1, the specific value of the sampling rate Fs, the specific value of th2 and the specific time point of the target time point can all be set according to actual needs, and the embodiments of the present application are not limited to this.

[0048] For example, t1 may be 0.2 seconds; t2 may be 0.5 seconds; th1 may be 0; and the target time point may be 1*Fs.

[0049] It should also be understood that the construction process of the multi-branch model system can also be set according to actual needs, and the embodiments of the present application are not limited to this.

[0050] Specifically, the training data Input into the original cough sound perception model model_0, and obtain the perception map output by the original cough sound perception model model_0. Among them, the cough sound perception model model_0 is a two-class perception model; if the input training data is cough, the output graph is still unchanged, that is, the output of the model is the same as the input The graph is basically the same; if the input training data If it is not coughing, the output graph is all 0, that is, the output result of the model is consistent with the input The diagram is different.

[0051] Furthermore, an image similarity calculation module corresponding to the original cough sound perception model model_0 can be established, so that the input of the original cough sound perception model model_0 can be compared through the image similarity calculation module. The image similarity between the input image and the output perception image can be used to detect the completeness of the model's perception of the input information. If the image similarity is greater than or equal to the preset image similarity threshold, it indicates that the original cough sound perception model model_0 is familiar with the input information (has memory), and it has a strong directionality; if the image similarity is less than the preset image similarity threshold, it indicates that the original cough sound perception model model_0 is unfamiliar with the input information (has no memory), and its directionality is weak. The specific value of the preset image similarity threshold can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0052] And, in order to achieve continuous learning, it is necessary to build There are multiple cough sound perception models with strong directionality. Specifically, it is required that before constructing each new cough sound perception model, the new training samples obtained in the task should be input into the current multi-branch model system, and the new training data should be selected based on the existing model. Only when the new training set is constructed with specific training data that the existing model cannot correctly distinguish, can the corresponding strong directionality model be trained. For example, based on the original cough sound perception model model_0, the newly collected cough sounds and non-cough sounds are distinguished. If the detection is correct, the sample is ignored. If the detection is wrong, the corresponding sample is collected. A certain number of training samples with incorrect judgment are accumulated to form a new training set, and a new cough sound discrimination model model_1 is trained with the new training set, and training samples that are incorrectly judged by both the original cough sound perception model model_0 and the new cough sound discrimination model model_1 are collected. After reaching a certain number, a new cough sound discrimination model model_2 is trained. By analogy, n cough sound discrimination models can be trained, and n cough sound discrimination models can be used to construct a multi-branch model system that can expand branches. Specifically, Figure 2 shown.

[0053] It should be noted here that Figure 2 The cough sound perception model 1 corresponds to the original cough sound perception model model_0, and the cough sound perception model 2 corresponds to the cough sound discrimination model model_1, and so on. The subsequent corresponding relationships will not be explained one by one.

[0054] like Figure 2 As shown, the multi-branch model system may include n branches, and each of the n branches includes a cough sound perception model and an image similarity calculation module connected to the cough sound perception model, and the multi-branch model system further includes an image similarity sorting module connected to all the branches and an image similarity judgment module and a category determination module connected to the image similarity sorting module in turn.

[0055] In the above Figure 2 Based on the structure of the multi-branch model system shown, the Mel-cepstrum of the audio data to be identified can be input into the cough sound perception model in each branch to obtain the perception map output by the cough sound perception model in each branch, and the image similarity calculation module in each branch calculates the first image similarity of its corresponding perception map and the Mel-cepstrum, and the image similarity sorting module sorts the n first image similarities in descending order to obtain the image similarity sorting result, and the image similarity judgment module judges whether the largest first image similarity in the image similarity sorting result is greater than or equal to a preset image similarity threshold to obtain a judgment result.

[0056] When the judgment result is that the maximum first image similarity is greater than or equal to the preset image similarity threshold, it means that the multi-branch model system is relatively familiar with the input information and has strong directionality, and the perception result obtained by the branch corresponding to the maximum first image similarity is the most complete and reliable, then the perception map output by the cough sound perception model in the branch corresponding to the maximum first image similarity can be used as the binary classification result through the category determination module. For example, when the first image similarity corresponding to the third branch has strong directionality, the perception map output by the cough sound perception model in the third branch can be used as the final binary classification result.

[0057] When the judgment result is that the largest first image similarity is less than the preset image similarity threshold, it means that the multi-branch model system is not familiar with the input information and has weak directivity. In this case, positive feedback can be performed through the category determination module. Specifically:

[0058] When the judgment result is that the largest first image similarity is less than the preset image similarity threshold, the category determination module performs weighted accumulation on the n perception maps to obtain a candidate comprehensive perception map, and the specific expression is as follows:

[0059] (1);

[0060] (2);

[0061] In the formula, B represents a candidate comprehensive perceptual map; represents weighted accumulation; n represents the number of branches in the multi-branch model system; Indicates i The weight value corresponding to the perception map output by the cough sound perception model in each branch, and the weight value indicates the contribution rate of each branch to the output result; Indicates i Perceptual maps output by the cough perception model in the branches.

[0062] It should be noted here that the initial weight values ​​corresponding to the perception maps output by the cough sound perception model in the n branches are all 1 / n.

[0063] Furthermore, the category determination module may perform image comparison between the candidate comprehensive perceptual map and each of the n perceptual maps to obtain a second image similarity between the candidate comprehensive perceptual map and each of the perceptual maps.

[0064] And, based on the second image similarity of each perceptual map, the weighted value of the corresponding perceptual map is updated. The specific expression is as follows:

[0065] (3);

[0066] In the formula, Indicates i The similarity between the perception map output by the cough sound perception model in the branch and the second image of the candidate comprehensive perception map.

[0067] Therefore, the updated weighted value can be determined by the above formula (3), and the updated weighted value can be used to return to the step of "weighted accumulation of n perception maps by the category determination module to obtain a candidate comprehensive perception map", thereby forming a positive feedback loop until the iteration stop condition is met, then the iteration is stopped, and the final candidate comprehensive perception map is used as the final binary classification result.

[0068] The iteration stopping condition may be that the candidate comprehensive perception map of the new round is unchanged compared with the candidate comprehensive perception map of the previous round, or that the weight value of the next round is unchanged compared with the weight value of the previous round, or that a preset number of times is reached.

[0069] In addition, the branches in the multi-branch model system of the present application can be continuously expanded and updated. For example, obtain the training sample data that are incorrectly judged by the cough sound perception models in the first m-1 branches; where m is a positive integer greater than or equal to n+1; use the training sample data that are incorrectly judged by the cough sound perception models in the first m-1 branches to train the mth cough sound perception model, and use the image similarity calculation module corresponding to the mth cough sound perception model and the mth cough sound perception model as the mth branch of the multi-branch model system.

[0070] Therefore, with the help of the above-mentioned technical scheme, each branch in the multi-branch model system of the present application is independent of each other and can be modeled in stages, each providing a strong directional model that memorizes the corresponding training data characteristics, so that the multi-branch channel can be expanded autonomously. It only needs to continuously use the existing system to select erroneous data to train new models and add new branches to ensure the system's continuous learning ability, thereby solving the technical problem of "forgetting" existing in the prior art.

[0071] It should be understood that the above-mentioned continuous learning method of the multi-branch model system for distinguishing cough sounds is only exemplary, and those skilled in the art may make various modifications based on the above-mentioned method, and the modified or deformed content is also within the scope of protection of this application.

[0072] The present application also provides a storage medium, on which a computer program is stored. When a processor runs the computer program, the method described in the method embodiment is executed.

[0073] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.

[0074] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0075] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0076] It should be noted that the word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising a number of different components and by means of a suitably programmed computer. Among the several means listed, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the name of the component.

[0077] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0078] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the technical solution should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0079] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the technical solution of the present invention and its equivalent technology, the present invention should also include these modifications and variations.

Claims

1. A continuous learning method for a multi-branch model system for distinguishing cough sounds, It is characterized in that include: Obtaining audio data to be identified; Performing frequency spectrum analysis on the audio data to be identified to generate a Mel-cepstrum graph of the audio data to be identified; The Mel-cepstral graph is input into the multi-branch model system capable of expanding branches for binary classification processing to obtain a final binary classification result for indicating whether the audio data to be identified is a cough sound; wherein the multi-branch model system includes n parallel branches, and each of the n parallel branches includes a cough sound perception model, wherein the cough sound perception model in the second branch is obtained after training with training sample data that is incorrectly identified by the cough sound perception model in the first branch, and the cough sound perception model in the third branch is obtained after training with training sample data that is incorrectly identified by the cough sound perception models in the first two branches, and so on, the cough sound perception model in the nth branch is obtained after training with training sample data that is incorrectly identified by the cough sound perception models in the first n-1 branches, and n is a positive integer greater than 2.

2. The continuous learning method according to claim 1, It is characterized in that Each of the n parallel branches further includes an image similarity calculation module connected to the corresponding cough sound perception model, and the multi-branch model system further includes an image similarity sorting module connected to all the branches and an image similarity judgment module and a category determination module connected to the image similarity sorting module in turn; The binary classification process of the multi-branch model system includes: Inputting the Mel-cepstrum into the cough sound perception model in each branch to obtain a perception map output by the cough sound perception model in each branch, and calculating the first image similarity between the corresponding perception map and the Mel-cepstrum through the image similarity calculation module in each branch; Sorting the n first image similarities in descending order by the image similarity sorting module to obtain an image similarity sorting result; The image similarity judgment module judges whether the largest first image similarity in the image similarity sorting result is greater than or equal to a preset image similarity threshold, and obtains a judgment result; The binary classification result is obtained by the category determination module based on the judgment result.

3. The continuous learning method according to claim 2, It is characterized in that The obtaining of the binary classification result based on the judgment result by the category determination module includes: When the judgment result is that the maximum first image similarity is greater than or equal to the preset image similarity threshold, the category determination module uses the perception map output by the cough sound perception model in the branch corresponding to the maximum first image similarity as the binary classification result.

4. The continuous learning method according to claim 2, It is characterized in that The obtaining of the binary classification result based on the judgment result by the category determination module includes: Weighted accumulation step: when the judgment result is that the maximum first image similarity is less than the preset image similarity threshold, weighted accumulation is performed on the n perception maps by the category determination module to obtain a candidate comprehensive perception map; By means of the category determination module, the candidate comprehensive perceptual map is respectively compared with each perceptual map of the n perceptual maps to obtain a second image similarity between the candidate comprehensive perceptual map and each perceptual map; The category determination module updates the weighted value of the corresponding perceptual map based on the second image similarity of each perceptual map, and uses the updated weighted value to return to execute the weighted accumulation step until the iteration stop condition is met, then stops the iteration, and uses the final candidate comprehensive perceptual map as the binary classification result.

5. The continuous learning method according to any one of claims 1 to 4, It is characterized in that The branch expansion process of the multi-branch model system includes: Obtain training sample data that are incorrectly judged by the cough sound perception models in the first m-1 branches; wherein m is a positive integer greater than or equal to n+1; The m-th cough sound perception model is trained by using the training sample data that are incorrectly judged by the cough sound perception models in the first m-1 branches, and the m-th cough sound perception model and the image similarity calculation module corresponding to the m-th cough sound perception model are used as the m-th branch of the multi-branch model system.

6. The continuous learning method according to claim 1, It is characterized in that The process of acquiring training sample data of the multi-branch model system includes: Get conversion steps: Get sampling rate F The audio is converted into a binary waveform image ; is the binary waveform image Construct a width t 2, and sliding the sliding window along the time axis to intercept multiple candidate cough sounds; Performing spectrum analysis on each candidate cough sound among the multiple candidate cough sounds to generate a Mel-cepstral graph of each candidate cough sound; The Mel-frequency cepstrum of each candidate cough sound is manually labeled to obtain training sample data for the multi-branch model system.

7. The continuous learning method according to claim 6, It is characterized in that The sliding window is slid along the time axis to intercept a plurality of candidate cough sounds, including: Accumulate the amplitude of the intercepted waveform on the time axis to obtain the waveform amplitude accumulation value; If the waveform amplitude accumulation value at the characteristic time point between the current starting point and the end point is less than a preset threshold, the characteristic time point is determined to be the speech end point; Taking the speech ending point closest to the current starting point as the new ending point; If the time length between the new end point and the current start point meets the preset cough sound time length standard, intercepting the waveform between the new end point and the current start point, and using the intercepted waveform as the candidate cough sound; If the time length between the new end point and the current start point does not meet the preset cough sound time length standard, the waveform between the new end point and the current start point is abandoned, and the sliding window starts from the current end point position, returns to the acquisition conversion step, and re-intercepts the candidate cough sound.

8. The continuous learning method according to claim 7, It is characterized in that The step of sliding the sliding window along the time axis to intercept a plurality of candidate cough sounds further includes: If the waveform amplitude accumulation value at the characteristic time point between the current starting point and the end point is greater than or equal to the preset threshold, the current starting point is expanded to the target time point, and the speech end point closest to the current starting point is searched backward, and the acquisition conversion step is performed starting from the position of the speech end point to re-intercept the candidate cough sound.

9. A storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is executed by the processor, the continuous learning method of the multi-branch model system for distinguishing cough sounds according to any one of claims 1 to 8 is executed.

10. An electronic device, It is characterized in that The electronic device includes: a processor, a memory and a bus, the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the continuous learning method of the multi-branch model system for distinguishing cough sounds according to any one of claims 1 to 8 is performed.