Docsity

Speech Recognition System-Implementation and Application in Computer Sciences-Project Report, Study Guides, Projects, Research of Applications of Computer Sciences

Toggle sidebar
bg1
Chapter 1
1 Speech Recognition System
The speech recognition is the process by which a computer or a system identifies the
spoken words. The speech recognition can be either speaker dependent or speaker
independent. They are also classified on the basis whether they recognize the isolated
words or the continuous speech.
Figure 1.1: Taxonomy of Speech Recognition
The two main aspects involved are
Feature extraction
It is the method of retrieving the information that distinguishes each phoneme.
Words are distinguished from each other due to the differences in the certain
characteristics of the sound. The characteristics of the sounds are pitch, timing
and frequency.
Classification
Speech Recognition
Speaker Dependent
Speaker Independent
Isolated Speech
Continuous Speech
docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Speech Recognition System-Implementation and Application in Computer Sciences-Project Report and more Study Guides, Projects, Research Applications of Computer Sciences in PDF only on Docsity!

Chapter 1

1 Speech Recognition System

The speech recognition is the process by which a computer or a system identifies the spoken words. The speech recognition can be either speaker dependent or speaker independent. They are also classified on the basis whether they recognize the isolated words or the continuous speech.

Figure 1.1: Taxonomy of Speech Recognition

The two main aspects involved are  Feature extraction It is the method of retrieving the information that distinguishes each phoneme. Words are distinguished from each other due to the differences in the certain characteristics of the sound. The characteristics of the sounds are pitch, timing and frequency.  Classification

Speech Recognition

Speaker Dependent Speaker Independent

Isolated Speech Continuous Speech

It is the process of matching the two sets of features, identifying whether they are identical or not. The two main phases of the system development will be  Training the system In training, we will take speech samples from different people. Using these samples the system will be trained.  Testing the system In this phase, speech signal will be given to the system and it will try to identify the word

2.2.1 Architecture

The arrangement of neurons into layers and connection patterns within and between layers is called the “net architecture”.

Neurons, in the same layer behave in the same manner and within a layer they mostly have the same activation function and the pattern connections to other neurons. The number of layers in the network can be defined as the number of weighted interconnected links between the slabs of the neurons. The input neurons are not counted as a layer as they do not perform any computation.

ANN can be categorized as  Feed-Forward Neural Networks  Recurrent Neural Networks

Feed-Forward Neural Networks In such networks the signal flows from the input neurons to the output neurons, in the forward direction.

Recurrent Neural Networks In recurrent networks, there are closed signal paths from a neuron back to itself. ANN can be classified into three classes  Single Layer Networks  Multi Layer Networks  Competitive Layer

2.2.1.1 Single Layer Networks

A single layer net has only one weighted layer of connection. There are input neurons and the output neurons. The input neurons receives signal and the output neurons gives the result according to the input. A single layer network is shown in the Figure 2.1. A single layer network can solve only linear separable problems.

Figure 2.1: Single Layer Network

2.2.1.2 Multi Layer Network

A multi layer net is a net with two or more weighted connection layer. The layers between the input and the output layer are known as hidden layers. They can solve difficult problems as compared to the single layer networks but the training of such networks also may become difficult. A single layer network and a multi layer network with a linear activation function have equal problem solving ability.

Figure 2.2: Multi-Layer Neural Network

2.2.1.3 Competitive Layer

In competitive layer nets, the decision that to which class the input belongs is based on the competition. Architecture of the competitive layer net is shown in Figure 2.3.

2.2.3.1 Identity Function

f(x) = x for all x

2.2.3.2 Binary Step Function

2.2.3.3 Binary Sigmoid

2.2.3.4 Bipolar Sigmoid

2.3 McCulloch-Pitts Neuron

The McCulloch-Pitts neuron is possibly the earliest neuron developed. The The requirements for McCulloch neuron are:

  1. The activation of a McCulloch-Pitts neuron is binary.
  2. McCulloch-Pitts neurons are connected by directed, weighted paths.
  3. A connection path is excitatory if the weight on the path is positive; otherwise it is inhibitory. All excitatory connections into a particular neuron have the same weights.

f(x) =

1 if x>= θ

0 if x < θ

f(x) = 1 1+ exp(-σx)

g(x) = 1 –^ exp(-σx) 1+ exp(-σx)

  1. Each neuron has a fixed threshold such that if the net input to the neuron is greater than the threshold, the neuron fires.
  2. The threshold is so that inhabitation is absolute i.e. any nonzero inhibitory input will prevent the neuron to from firing.
  3. It takes one time step for a signal to pass over one connection link.

Generally, McCulloch neuron can receive signal from a number of neurons. The weights can be either excitatory or inhibitory. All the excitatory weights coming to a particular unit should be same but the weights entering into a one unit can be different from the weights entering into the other neuron. A general architecture is shown in the Figure 2.4.

Figure 2.4: McCulloch Pitts Neuron

2.4 ANN for Pattern Classification

ANN can be trained to perform pattern classification. The basic architecture of the simplest possible neural network that can perform pattern classification consists of a layer of inputs and a single output unit. The numbers of input units are related to the components of the pattern to be classified.

The training data can be represented as binary data or bipolar. If we want the net to generalize then binary representation is not as good as bipolar. Using bipolar we can also distinguish between the missing data and the mistaken data.

The three methods for training single layer network for pattern classification are  Hebb Rule  Perceptron learning rule  Delta Rule

2.4.3 ADALINE

ADALINE is an acronym for Adaptive Linear Neuron. It uses bipolar bipolar activations for the inputs but the output can be binary or bipolar. The weights of ADALINE net are adjustable. ADALINE has only one output neuron. ADALINE is trained using delta rule also known as least mean square. ADALINE continues to learn even if a number of patterns are correctly classified.

2.4.4 MADALINE

MADALINE is an acronym of Many ADaptive LInear Neuron. A multi-layer combination of ADALINES is known as MADALINE. ADALINES are combined in a way that the output of the neuron becomes the input of the some neurons. The use of hidden layers increase the computational power of the net but it also complicates the training process.

Figure 2.6: A MADALINE

2.5 Pattern Association

Associative memory nets are single layer nets. The weights on the connection links are determined in such a way that it can store pattern associations. Each association is an input-output vector. If each target vector is same as the input vector to which it is associated, the net is called auto-associative. If each target vector is different from the input vector to which it is associated, the net is called hetro-associative.

The training algorithms for pattern association are  Hebb Rule  Delta Rule

2.6 Hetro-Associative Memory Neural Networks

Hetro-associative memory nets in which we determine weights in such a way that net can store a set of pattern associations. These weights can be found using Hebb rule or delta rule. The architecture of the hetro-associative net is shown in Figure 2.8.

Figure 2.7: A hetro-associative neural network

2.7 Auto-Associative Net

In autoassociative net, each unit in the net is connected to all or many of the other units. The feedforward autoassociative net is a special case of hetroasociative net. The input can be either binary or bipolar. The performance of the net is determined by its ability to reproduce a stored pattern from a noisy input. They mostly better for bipolar inputs. Autoassociative nets can be used to determine whether an input vector is known or not.

2.9 Backpropagation Neural Network

While training the ANN our basic objective is to achieve a balance between the memorization and the generalization of the network. A multi-layer net with one or more hidden layer can be used. The architecture of a multilayer net with one hidden layer is shown in Figure 2.10.

Figure 2.9: Backpropagation neural network with one hidden layer

Training the neural network by backpropagation consists of three phases  The feedforward of the input training pattern  The calculation and backpropagation of the associated error  The adjustments of the weights on the connection links

After training the testing or the application of the neural network involves only the feedforward phase.

During the first phase each input unit receives an input signal. This signal is broadcasted to the hidden layer, and then each hidden unit computes its activation function and sends it to the output unit. Each output unit also computes the activation function and generates the output value.

In the second phase of the training, compares the activation function to the target value and calculates the error. Error is then propagated back to the input layer. The error factor, δ, is determined for all layers. In the last phase when all the δ has been determined, weights are adjusted simultaneously.

The activation function that is to be used for the backpropagation net should have some characteristics. It should be  Continuous  Differentiable  Monotonically non-decreasing

For training the backpropagation net, initially weights can be chosen using two methods  Random Initialization  Nguyen-Widrow Initialization

2.10 Competition Based ANN

When we apply an input to the neural net, it may classify it to one or more classes. These output neurons compete with each other and one class may win. Such networks are competition based neural networks. The training of such a network can be either supervised or unsupervised. The learning methods in the competitive networks are  Competitive Learning  Kohonen Learning  Counter Propagation Networks  Adaptive Resonance Theory

3.2 Method

LPC model assumes that speech signal can be modeled by an excitation, passed through a time varying all-pole filter. This filter corresponds to the effect that the shape of the throat and mouth has on the signal produced by the voice box. This assumption corresponds fairly with our model of the vocal tract. The model used in LPC for speech generation is shown in Figure 3.1. In LPC, the excitation signal is taken as train of impulses for voiced sounds or as a random noise for unvoiced sounds.

Vocal tract is roughly stationary for windows of 20 to 30ms. Therefore, we use 20 to 30 ms of data, often called the analysis window to estimate the coefficients of the all-pole model at a given time instance. Then, window is shifted by about 10 ms and we find another set of LPC coefficients. In this way, we analyze the speech signal to find the spectral envelope.

Using an all zero FIR filter of order N we can predict the next output sample u’ [N+1] from the previous n samples.

  

N i

u N uN ia i 1

'[ 1 ] [ ] [ ]

We have to find the parameters a[1] through a[n]. We can also predict the value of u that follows as well

 

N i

u n un ia i 1

'[ ] [ ][ ]

The error between the predicted next value and the real next value is given by

  

N i

en un un ia i

en un u n

1

[ ] [ ] [ ] [ ]

[ ] [ ] '[ ]

We want to find the values of a[i] which minimizes this expression. This can be done by minimizing the square of the error signal, that is minimize the expression given below

2 1

2

[ ] [ ] [ ]

[ ]

 

   

   

 ^  

j

N i

j E u j u j ia i

E e j

Taking the N partial derivatives ∂E /∂ a[n] and setting them equal to zero. This results in N equations.

2 [ ][ ] 2 [] [ ][ ] 0

2 [ ][ ] [ ][ ][] 0

[ ]^01 ,^2 ,...,

1

1

^  

   ^  

  

    

 

  

j

N i j

j

N i u ju j n ai u j iu j n

u ju j k u j iu j nai

aEn for n N

These two equations can be simplified using auto-correlation which is defined as

 

n (^) j R u [ j ] u [ j n ]

Where Rn defines the auto-correlation of u[i] for an interval of n. then the equation becomes

R ai Rn for n N

N i n^ i

[] 1 , 2 ,...,

1  ^   

In the matrix form it can be written as

     

  (^) N

N

N

N

R

R

R

R

aN

a

a

a

R R R R

R R R R

R R R R

R R R R

3

2

1

0 0 0 0

2 0 0 3

1 0 0 2

0 0 0 1

3

 ^ 

 

The parameters a[i] can be found by inverse of the R matrix and then multiplying it with the Ri vector. This matrix equation can also be solved using Levinson-Durbin Algorithm.

3.3 Levinson-Durbin Algorithm

Levinson-Durbin Algorithm is used to estimate the linear prediction coefficients from a given speech waveform. This algorithm uses the fact that the auto-correlation matrix is

4 References

[1]. Laurene Fausett, Fundamentals of Neural Networks; Architecture, Algorithms and Application , Pearson Education [2]. Simon Haykin, Neural Networks A Comprehensive Foundation , 2/E, Pearson Education [3]. Jesse C. Hansen, Modulation Based Parameters for Automatic Speech Recognition , University of Rhode Island, 2003. [4]. Timothy N.Newsham, Linear Predictive Coding on the ADSP-2015 , Electrical Engineering Department, University of Hawaii, January 18, 1994. [5]. Dr. Sung-won Park, Chapter 7 Linear Predictive Speech Processing , Texas A&M University-Kingsville, URL: http://www.engineer.tamuk.edu/SPark/chap7.pdf [6]. Wil Howitt, Otolith , URL: http://www.otolith.com/ 10 December 2006 [7]. Data-Compression.com, 2000 - 2007, URL: http://www.data- compression.com/speech.shtml [8]. Rajarshi Guha, Neural Networks, 2003, URL: http://cheminfo.informatics.indiana.edu/~rguha/writing/notes/nn/node1.html