Noise reduction method based on personal data and artificial neural network
Technical field
The invention belongs to hearing aid noise cancelling alorithm design fields, are related to one kind based on user's personal data and BP people
The digital deaf-aid noise reduction algorithm positioned at Portable intelligent terminal that artificial neural networks are realized.
Background technique
Currently, world's Aging Problem is got worse, Chinese Aged ratio is also increasing year by year, and China is made to become the world
Upper aging of population one of country with the fastest developing speed.The middle of this century is expected, China there will be nearly 500,000,000 population to reach the world
The elderly's standard of health organization.
Hearing loss is then one of most common several chronic diseases of the elderly.According to the World Health Organization in 2015
Statistics, the 5% of world population suffers from disabling hearing loss, and most of among these is the elderly.Hearing loss may
Cause cognitive function decline, depression, the more serious psychological problems such as happiness reduction.Even studies have shown that: it is light, in, again
The old man of hearing loss is spent, the illness rate of Alzheimer disease is 2 times, 3 times and 5 times of the normal old man of hearing respectively.It can be seen that
Hearing loss is the serious health problems urgently to be resolved occurred with whole world aging.
Hearing aid can play great booster action for the hearing improved of hearing loss person.Hearing aid can not only mention
The social contact ability and personal lifestyle quality of high hearing loss person, and the generation of disease can be managed to avoid severe cardiac.Therefore,
With the raising of people's economic level and the continuous pursuit to high-quality life, the ratio of hearing aid is used in hearing loss person
It is being continuously improved.In the use process of hearing aid, voice signal inevitably will receive the influence of ambient noise, make
Obtain the identification degree decline of voice signal.And since hearing loss person is more insensitive to sound, hearing aid usage experience meeting
It is influenced by compared to normal person is bigger.Therefore the voice de-noising function of hearing aid is most important.The main mesh of voice de-noising
Be that elimination noise improves signal-to-noise ratio (signal to noise ratio, SNR) as much as possible to improve voice quality, and
Thus loss person is improved one's hearing to the identification of voice.
Since the daily local environment of each hearing aid user and Communicator are different, therefore voice signal and noise are believed
Number the characteristics of be also the noise reduction effect that has very big difference, therefore reached together using conventional noise reduction algorithm not ten sub-argument
Think.So we should be directed to noise reduction formula according to the surroundings of each user and the exclusive feature of Communicator
Property adjust automatically, to achieve the purpose that accurate noise reduction.Unlike regular speech noise-reduction method, ideal voice de-noising algorithm
The individual differences for user should be focused on, this can greatly improve the hearing aid usage experience of target hearing loss person.
Summary of the invention
In order to overcome the deficiencies of the prior art, the present invention is directed to propose it is a kind of based on BP (back propagation, reverse biography
Broadcast) the digital deaf-aid noise reduction algorithm of artificial neural network.The parameter that the noise reduction algorithm obtains a large amount of random voice data
As initial parameter, the voice signal that user is received constantly train as training data, to BP artificial neural network,
Obtain the mature noise reduction algorithm of fitting individual subscriber.For this reason, the technical scheme adopted by the present invention is that based on personal data and manually
The Noise reduction method of neural network, the voice signal received by analyzing hearing aid user, identifies and stores words
Section, is trained BP artificial neural network using the sufficient amount of voice messaging of storage.It is each to neural network by training
The weight of layer and optimizing and revising for threshold value, to obtain mature BP artificial neural network, to correct conventional voice de-noising formula,
And then hearing aid user is enabled to obtain voice after the noise reduction being more clear optimized for its people.
Further, noise reduction algorithm is set to the operation of hearing aid end, neural network algorithm is set to smart machine fortune
Row, smart machine are wirelessly connect with hearing aid.User can independently set voice accumulation, whenever the voice of accumulation
When amount reaches user's setting value, hearing aid sends smart machine by bluetooth module for these voice data automatically, and by intelligence
Energy equipment is stored and is handled, and smart machine is trained artificial neural network using these voice data, and will train
Parameter afterwards is sent to hearing aid, is used with adjusting noise reduction algorithm fitting individual subscriber.User can with unrestricted choice by voice,
Neural network parameter data upload to cloud or download from cloud, to realize the data sharing between multiple smart machines.
The topological structure of BP artificial neural network includes: input layer, hidden layer and output layer three-decker, due to input
Voice signal needs to extract phonetic feature by mel cepstrum coefficients method, and voice signal is by becoming 24 after Meier filter group
Dimensional feature signal, therefore input layer includes 24 neurodes, initial hidden layer includes 25 neurodes, and number of nodes
It can be adjusted with the variation of training data, output layer then includes 30 neurodes, and is exported for multichannel, corresponding noise reduction
Subtracting coefficient, gain compensation factor parameter, the company of input layer and hidden layer, hidden layer and output layer are crossed under different frequency in algorithm
Connecing weight is respectively ωij,ωjk, hidden layer threshold value a, output layer threshold value is b, ωij、ωjk, a, b these parameters initial value
The neural network practiced from training on trial, i.e., the neural network obtained using a large amount of random voice data training, training process are used
BP artificial neural network commonly trains formula, and input layer, hidden layer, output layer number of nodes are denoted as m, l, n in formula:
Step 1: hidden layer, which is calculated, using general hidden layer excitation function exports, H in formulajWith ajRespectively correspond the hidden of j-th of node
Containing layer output and hidden layer threshold value
Step 2: calculating output layer error, O in formulakWith ekRespectively correspond the output and output error of k-th of node, YkFor
Desired output from training data
ek=Yk-Ok
K=1,2 ..., l
Step 3: updating weight and threshold value, η is learning rate, b in formulakFor the output layer threshold value of k-th of node
ωjk=ωjk+ηHjek
bk=bk+ek
Continuous iteration is carried out using above-mentioned formula, the number of iterations until reaching setting.
The training process of neural network used is as follows: when user has accumulated enough voices in hearing aid use process
After data, neural network algorithm can start to run in smart machine end, and when operation can independently set BP artificial neural network first
The structure of network, the number of nodes including the number of plies Yu each layer, and by the parameter settings such as the threshold value of each layer, weight be program give it is initial
Value, connect it is lower by data by Meier filter group and start train artificial neural network, after reaching the number of iterations of setting, journey
Sequence can send output parameter to hearing aid and thus adjust noise reduction algorithm, and hereafter hearing aid enters the routine use stage, until
After having accumulated enough new speech data, algorithm can select new data and legacy data to input neural network according to a certain percentage,
It is trained again.
The features of the present invention and beneficial effect are:
Compared to other Noise reduction algorithms, the digital deaf-aid based on BP artificial neural network that the present invention uses drops
Algorithm of making an uproar is more mature.And since the algorithm is intended to be adjusted for users personal data, noise reduction precision also can be big
It is big to improve, can preferably optimize the usage experience of user, allow users to receive be more clear, comfortable voice.
Detailed description of the invention:
Fig. 1 is the topology diagram of BP artificial neural network used in the present invention.
Fig. 2 is the training flow chart of neural network used in the present invention.
Fig. 3 is hearing aid in the present invention, smart machine and the relational graph in cloud.
Specific embodiment
The invention belongs to hearing aid noise cancelling alorithm design fields, are related to one kind based on user's personal data and BP people
The digital deaf-aid noise reduction algorithm positioned at Portable intelligent terminal that artificial neural networks are realized.The invention is made by analyzing hearing aid
The voice signal that user receives identifies and stores words section, manually refreshing to BP using the sufficient amount of voice messaging of storage
It is trained through network.By training to the weight of each layer of neural network and optimizing and revising for threshold value, to obtain mature BP people
Artificial neural networks to correct conventional voice de-noising formula, and then enable hearing aid user obtain being directed to what its people optimized
Voice after the noise reduction being more clear.
The present invention provides a kind of digital deaf-aid noise reduction algorithm based on BP artificial neural network.The noise reduction algorithm will be a large amount of
The parameter that random voice data obtains is as initial parameter, and the voice signal that user is received is as training data, to BP
Artificial neural network constantly train, and obtains the mature noise reduction algorithm of fitting individual subscriber.
BP artificial neural network is a kind of multilayer feedforward neural network according to error backpropagation algorithm training, and
Current most widely used artificial neural network.BP artificial neural network since 1986 are born, manage by network performance and application
By etc. it is very mature, can satisfy the functional requirement of noise reduction algorithm.The BP artificial neural network that the present invention uses point
For input layer, hidden layer, output layer three-decker, every layer includes multiple neurodes.The present invention uses hearing aid using user
When the voice signal that receives, identify and store it is therein have words section, be supplied to neural network as training data and be trained.
Training data will be constantly updated with the time, to match the variation of user's living environment.
The present invention is divided into hearing aid, smart machine, cloud three parts.Wherein noise reduction algorithm is located at the DSP at hearing aid end
In (Digital Signal Processing, Digital Signal Processing) chip or the dedicated speech processing chip of hearing aid, with
Reach real-time necessary to hearing aid, and can satisfy the demand that off line uses.Neural network algorithm is located at the intelligence such as mobile phone, plate
In the mating APP of hearing aid of energy equipment end, operation is carried out using smart machine hardware, and pass through bluetooth module with hearing aid and carry out
Connection.Hearing aid sends smart machine by bluetooth module for the voice data received, and is stored by smart machine
With processing.Smart machine is trained artificial neural network using these voice data, and by the parameter after training via indigo plant
Tooth is sent to hearing aid, is used with adjusting noise reduction algorithm fitting individual subscriber.User can be with unrestricted choice by voice, nerve net
The data such as network parameter upload to cloud or download from cloud, to realize the data sharing between multiple smart machines.
Present invention be described in more detail with specific example with reference to the accompanying drawing.
Fig. 1 is the topological structure of BP artificial neural network used in the present invention.The major part of the BP neural network is defeated
Enter layer, hidden layer and output layer three-decker.Since the voice signal of input needs to extract voice by mel cepstrum coefficients method
Feature, and voice signal becomes 24 dimensional feature signals after passing through Meier filter group, therefore input layer includes 24 neurodes.
Initial hidden layer includes 25 neurodes, and number of nodes can be adjusted with the variation of training data.Output layer is then
Exported comprising 30 neurodes, and for multichannel, in corresponding noise reduction algorithm under different frequency cross subtracting coefficient, gain compensation because
The parameters such as son.The connection weight of input layer and hidden layer, hidden layer and output layer is respectively ωij,ωjk, hidden layer threshold value a,
Output layer threshold value is b.The neural network that the initial value of these parameters is practiced from training on trial is instructed using a large amount of random voice data
The neural network got out.Training process commonly trains formula using BP artificial neural network, input layer in formula, hidden layer,
Output layer number of nodes is denoted as m, l, n:
Step 1: hidden layer, which is calculated, using general hidden layer excitation function exports, H in formulajWith ajRespectively correspond the hidden of j-th of node
Containing layer output and hidden layer threshold value.
Step 2: calculating output layer error, O in formulakWith ekRespectively correspond the output and output error of k-th of node, YkFor
Desired output from training data.
ek=Yk-Ok
(k=1,2 ..., l)
Step 3: updating weight and threshold value.η is learning rate in formula, can freely be adjusted, bkFor the output of k-th of node
Layer threshold value.
ωjk=ωjk+ηHjek
bk=bk+ek
Continuous iteration is carried out using above-mentioned formula, the number of iterations until reaching setting.
Fig. 2 is the training flow chart of neural network used in the present invention.When user has accumulated foot in hearing aid use process
After enough voice data, neural network algorithm can start to run in smart machine end.BP can be independently set when operation first
The structure of artificial neural network, the number of nodes including the number of plies Yu each layer, and be program by parameter settings such as the threshold value of each layer, weights
Given initial value.Connect it is lower by data by Meier filter group and start train artificial neural network.Scheming this part
It is specifically described in one.After reaching the number of iterations of setting, program can send output parameter to hearing aid and thus
Adjust noise reduction algorithm.Hereafter hearing aid enters the routine use stage, after having accumulated enough new speech data, algorithm meeting
Selection new data and legacy data input neural network according to a certain percentage, are trained again.
Fig. 3 is hearing aid in the present invention, smart machine and cloud relational graph.Hearing aid and smart machine are carried out by bluetooth
Connection, hearing aid can be handled the voice data transmission received to smart machine after connection, and smart machine then may be used
The obtained parameter after neural metwork training is transferred to hearing aid, to modify the noise reduction algorithm configuration of hearing aid.Intelligence is set
Standby then be connected with cloud server by internet, user can upload and download personal data with unrestricted choice, to reach multiple
The shared purpose of device data between intelligence.Also, user can download new firmware packet from cloud server, then be upgraded by bluetooth
The firmware of hearing aid makes hearing aid keep latest function.