# Modeling and Simulation of English Speech Optimization Teaching Recognition Based on Intelligent Edge Detection Algorithm

Authors: Yuan Tang; Xin Tian
Journal: Security and Communication Networks
 (2022)

---

## Abstract

English speech modeling is one of the key problems in the field of speech recognition. Its accuracy directly affects the performance of the English speech recognition system, and how to establish a more accurate acoustic model has always been the focus of researchers. This paper is based on the intelligent edge detection algorithm of the English speech optimization teaching recognition modeling simulation analysis to improve the accuracy of acoustic models such as parameters and the performance of continuous speech recognition system as the main purpose. In this paper, the accuracy of the neural network is improved on the premise of improving the training speed and decoding speed of the model. It proposes a new model and how to use the intelligent edge detection algorithm to build a complete English speech optimization teaching recognition system. The whole system includes the mobile terminal and the server, which realizes the most basic business logic of the speech recognition system. The experimental results of this paper show that from the point of view of the average recognition rate, the recognition effect of the optimized feature set has been further improved compared with the fusion feature. From the point of view of the recognition rate under different SNR environments, the recognition rate of the optimized feature set PCA-Features2 decreased by 0.47% compared with the FFPRLS_D + TEOCC feature set under 10dB10 words. Compared with the FFPLMS_D + TEOCC feature set, the recognition rate under 5dB10 words also drops by 0.47%.


---

## Body

## 1. Introduction

English is the most widely spoken international language in the world and is increasingly valued as a second language by learners (English as Second Language (ESL)). However, due to cultural, regional, and lifestyle differences, ESL learners face a variety of challenges when learning English, including listening, speaking, reading, and writing, of which the most important and difficult is the teaching of English phonetics, and phonetic grammar errors are the most common error types in English phonetics teaching. Speech recognition is equivalent to the auditory system of the machine, taking the speech signal as the research object, and allowing the computer to understand the human language.Due to the nonstationary time-varying characteristics of speech signals, the Fourier transform is used to analyze the frequency domain information of speech in the traditional feature extraction process. Practice shows that the features that conform to the auditory characteristics of the human ear have a positive effect on the improvement of speech recognition. It can enhance the noise robustness of the recognition system. Therefore, the study of auditory features has important theoretical significance in the field of antinoise speech recognition.The innovation of this paper is as follows: (1) The energy feature TEOCC is added, and the constructed fusion feature set combines the human hearing characteristics and energy characteristics and has better speech recognition performance. (2) Based on the problem of feature redundancy in the fusion feature set, a feature optimization method based on PCA is proposed. (3) The design experiment compares and analyzes the three optimized fusion feature sets to obtain the optimal feature set, so as to better characterize the complete characteristics of the speech signal and improve the overall recognition rate of the recognition network.


## 2. Related Work

In audio streams containing multiple speakers, speaker classification helps determine “who is speaking when.” In this work, Subba Ramaiah and Rajeswara Rao proposed a novel speaker classification system. The system uses Tangent Weighted Mel Frequency Cepstral Coefficients (TMFCC) as characteristic parameters and Lion algorithm. It is used to cluster audio streams detected by voice activity into specific speaker groups [1]. Misirov stipulated the teaching of English pronunciation in primary and secondary schools (grades), the teaching of English approximate pronunciation, the selection of English pronunciation teaching materials in primary schools, and the teaching methods and skills of English pronunciation in primary schools [2]. The goal of pronunciation teaching has shifted from unaccented or native-like pronunciation to intelligibility. Teaching practices for nonnative English speakers vary and are often based on teacher input rather than research results. Vančová’s research found that a good theoretical background of teachers can improve students’ awareness and overall performance of pronunciation phenomena, whether at the level of discourse or supradiscourse [3]. Gashaw examined the pitch and rhythmicity of Ethiopian English speakers’ pronunciation to determine the presence of syllabic or tonal rhythm in English speech. The results showed that native samples of Amharic showed true peaks in almost all words that required more pronunciation [4]. Difficulties in producing weak/loose vowels were highlighted during the exam. Chika et al. analysis of the correlation between overall goodness, and each of the other indicators shows that improving both segmental and prosodic features is crucial for Japanese learners to achieve good pronunciation. Using multiple indicators for systematic pronunciation assessment is not only conducive to a deeper and broader understanding of Japanese and English but also to the development of pronunciation teaching [5]. The results of Kolesnikova’s study of American English pronunciation could be used as a starting point for diagnosis, post hoc validation, and adjustment of possible misreadings [6]. The purpose of Han et al. research was to propose a visual teaching method for the pronunciation of English vowels, especially for hearing-impaired people who mainly rely on visual aids, based on support vector machine technology. The lip shape of each vowel is improved by using SVM technology to extract speech features from sounds that are hard to hear by the ear. The advantage of vowel labial refinement is that language learners can easily see the movements of the vocal organs with their eyes. This is beneficial for the hearing impaired to learn and teach English vowels [7]. Shadowing has been practiced in Japanese English classes for decades. Numerous studies have confirmed its effectiveness in improving learners’ listening and pronunciation skills. Therefore, Zajdler will base on the auditory and cognitive basis of shadows and then propose a classification of shadow types. Finally, it examines the practical aspects of shadowing as an effective classroom CFL instructional technique [8]. Although they are effective in improving learners’ listening and pronunciation skills, there is still a certain gap in the experimental results.


## 3. Speech Recognition Method of Edge Detection Algorithm

### 3.1. Problems Existing in the Recognition of English Pronunciation Optimization Teaching

In recent years, speech recognition technology has achieved great breakthroughs and practical results. However, there are still many scientific research problems in its technical field that need to be solved urgently [9–11]. As a research hot spot in the field of artificial intelligence, speech recognition technology should not be limited to a large number of theoretical studies but should also be applied to people’s lives. The current difficulties of speech recognition technology are reflected in:


#### 3.1.1. Establishing a Unified Voice Database

There are many kinds of speech libraries currently used, the common ones are as follows: TIDigits nonspecific digital string speech database, UCI ISOLET alphabet speech database, and UCI Vowel English vowel speech database. However, the data samples of these speech databases are limited. Because there are many types of speech, it is difficult to get close to life in terms of semantics and speech selection [12, 13]. This leads to the lack of generality and wide applicability in the research of speech databases. Therefore, the establishment of a unified standard, systematic, and complete high-quality speech database is the primary problem to be solved by speech recognition technology so far.


#### 3.1.2. The Voice Signal Is Unstable and Contains a Large Amount of Information

The speech feature parameters are extracted from the speech of different speakers. Speech is unstable and time-varying and usually changes with the speaker’s vocalization state, emotional changes, and physical conditions [14–16]. Due to the diversity of human pronunciation, the semantic information contained in different pronunciation states of the same person is different. Therefore, how to extract stable feature parameters that can fully characterize most of the useful information in speech signals is a key issue in the field of speech recognition research.


#### 3.1.3. Establish a Feature Set That Can Fully Represent Most of the Effective Information in Speech

As the input of the speech classification model, the front-end features should contain most of the effective information of the speech signal, weaken the speaker’s personality information, and have robust and stable performance [17, 18]. A single feature is not enough to characterize the complete characteristics of the speech signal, so researchers describe the characteristics of the speech signal from different perspectives and fuse different speech features. Although the fusion of different types of features can improve the performance of the recognition network, it is also prone to feature redundancy, which weakens the ability of some features to represent information, so that the speech characteristics cannot be fully described [19]. Therefore, how to establish a feature set that can fully represent speech information is also one of the difficult problems faced by speech recognition.


### 3.2. RBM Model

A restricted Boltzmann machine (RBM) is a Markov random field with a special structure that can be viewed as an unsupervised learning process. It models the probability distribution of input patterns fixed at the explicit layer through this learning process [20]. V corresponds to the dimension of the observation vector, and the size of H is variable, which determines the complexity of the RBM model.(1)Ev,h,θ=−vTWh−aTv−bTh=−∑i=1Vviai−∑j=1Hhibj−∑i=1V∑j=1HWijVihj,Here, the RBM model parameters are θ = {W,a,b}. Wij represents the weight between the i-th node in the explicit layer and the jth node in the hidden layer. ai and bi represent the bias size of node i in the visible layer and node j in the hidden layer, respectively [21]. According to the Gibbs distribution, the probability that the RBM chooses to be in the current state (v, h) can be obtained as:(2)Pv,h;θ=1Zexp−Ev,h;θZ=∑v∑hexp−Ev,h;θ.This probability can be considered as the joint probability distribution of the explicit state and the hidden state. It is obtained by exponentially normalizing the energy of the RBM in the current state through the energy of the RBM in all possible states [22]. Z is the partition function, a regular term that takes into account the energy of the RBM in all states. Therefore, the marginal distribution of the explicit state vector can be derived from the joint distribution above:(3)Pv;θ=1Z∑hexp−Ev,h;θ.So far, the energy function can be obtained by combining the model parameters of the RBM with the state of its explicit and hidden layers, and finally, the probability distribution of the explicit state is derived [23]. Therefore, RBM is an energy-based probability distribution model.The density model derived from the above energy function corresponds to the case where the explicit layer data follow a Bernoulli distribution. In speech recognition, the observation data of speech signal are a continuous value. Therefore, the explicit layer is changed to Gaussian distribution, and the Bernoulli distribution of the hidden layer remained unchanged, for this Gauss-Bernoulli type of RBM, and its energy function in state (y, h) is calculated as follows:(4)Ev,h;θ=∑i=1Vvi−ai22σi2−∑j=1Hhjbj−∑i=1V∑j=1HWijhjviδi.In practice, for the convenience of calculation, the variance of each node in the display layer is limited to 1. The training data are therefore normalized to a standard Gaussian distribution with zero mean and unit variance. In this way, the energy function of the RBRBM corresponding to the state (U, h) is simplified to:(5)Ev,h;θ=x−aTv−a−bTh−vTWh.Similar to Bernoulli RBM, the joint distribution ofv and h can be derived, and then the marginal probability density distribution describing the GBRBM explicit layer can be obtained as:(6)Pv;θ=1Z∑h−Ev,h;θ=1Z∑hexp−v−aTv−a+bTh+vTWh=1Zexp−v−aTv−a∏j=1H∑hj∈0,1expbjhj+vTWhj=1Zexp−v−aTv−a∏j=1H1+expbj+vTwj.Among them,wj is the jth column of the weight matrix w, and Z is the partition function:(7)Z=∫v∑hexp−Ev,h;θdv.


### 3.3. DNN-HMM Model

Using the RBM pretraining method and BP algorithm in the previous two subsections, after the final DNN model is obtained through training, it can be used to accurately model the speech feature parameters. When a (L + 1) layer DNN is used to compute the posterior probability of the HMM bound state s given the acoustic observation vector o, the posterior probability is Ps|os|o. The previous L layer, l = …L − 1, uses the sigmoid non-linear activation function to calculate the output of the current layer, which is also the input of the next layer. The topmost L layer uses the sofmax operation to calculate the posterior probability of all state classes:(8)phj|vζhjζ|vζ=11+e−zjζvζ=σzjζvζps|vζs|vL=ezsLvL∑se−zsLvL=softmaxszLvLzζvζ=WζTvζ+aζ.Here, Wζ and aζ represent the weight matrix and bias vector of the hidden layer ζ. hjζ and −zjζvζ are the jth elements of hζ and zζvζ, respectively. DNN acoustic modeling uses stochastic gradient descent to update the weights in the process of error back-propagation:(9)Wζ,aζ←Wζ,aζ+η∂L∂Wζ,aζ.Here L represents an objective function to be optimized, and η represents the learning rate. In automatic speech recognition, the objective function is usually set as the total log posterior probability of all training modes o(t) under their corresponding class labels s(t), namely:(10)L=∑t=1TlogPs|ost|ot.It is converted into a regularized likelihood, which can then be used by the Viterbi decoder to find the optimal path. This is the embodiment of the neural network Hybrid method.(11)pmot|qt=i,st=jpmot=pmot|qt=i,st=j|otpqt=i,st=j.The above formula is the essence of DNN-HMM acoustic modeling. It uses the output layer of the DNN to directly model each binding state of the HMM, estimates the posterior probability distribution of each state, and obtains the corresponding regular likelihood value for decoding.


## 3.1. Problems Existing in the Recognition of English Pronunciation Optimization Teaching

In recent years, speech recognition technology has achieved great breakthroughs and practical results. However, there are still many scientific research problems in its technical field that need to be solved urgently [9–11]. As a research hot spot in the field of artificial intelligence, speech recognition technology should not be limited to a large number of theoretical studies but should also be applied to people’s lives. The current difficulties of speech recognition technology are reflected in:


### 3.1.1. Establishing a Unified Voice Database

There are many kinds of speech libraries currently used, the common ones are as follows: TIDigits nonspecific digital string speech database, UCI ISOLET alphabet speech database, and UCI Vowel English vowel speech database. However, the data samples of these speech databases are limited. Because there are many types of speech, it is difficult to get close to life in terms of semantics and speech selection [12, 13]. This leads to the lack of generality and wide applicability in the research of speech databases. Therefore, the establishment of a unified standard, systematic, and complete high-quality speech database is the primary problem to be solved by speech recognition technology so far.


### 3.1.2. The Voice Signal Is Unstable and Contains a Large Amount of Information

The speech feature parameters are extracted from the speech of different speakers. Speech is unstable and time-varying and usually changes with the speaker’s vocalization state, emotional changes, and physical conditions [14–16]. Due to the diversity of human pronunciation, the semantic information contained in different pronunciation states of the same person is different. Therefore, how to extract stable feature parameters that can fully characterize most of the useful information in speech signals is a key issue in the field of speech recognition research.


### 3.1.3. Establish a Feature Set That Can Fully Represent Most of the Effective Information in Speech

As the input of the speech classification model, the front-end features should contain most of the effective information of the speech signal, weaken the speaker’s personality information, and have robust and stable performance [17, 18]. A single feature is not enough to characterize the complete characteristics of the speech signal, so researchers describe the characteristics of the speech signal from different perspectives and fuse different speech features. Although the fusion of different types of features can improve the performance of the recognition network, it is also prone to feature redundancy, which weakens the ability of some features to represent information, so that the speech characteristics cannot be fully described [19]. Therefore, how to establish a feature set that can fully represent speech information is also one of the difficult problems faced by speech recognition.


## 3.1.1. Establishing a Unified Voice Database

There are many kinds of speech libraries currently used, the common ones are as follows: TIDigits nonspecific digital string speech database, UCI ISOLET alphabet speech database, and UCI Vowel English vowel speech database. However, the data samples of these speech databases are limited. Because there are many types of speech, it is difficult to get close to life in terms of semantics and speech selection [12, 13]. This leads to the lack of generality and wide applicability in the research of speech databases. Therefore, the establishment of a unified standard, systematic, and complete high-quality speech database is the primary problem to be solved by speech recognition technology so far.


## 3.1.2. The Voice Signal Is Unstable and Contains a Large Amount of Information

The speech feature parameters are extracted from the speech of different speakers. Speech is unstable and time-varying and usually changes with the speaker’s vocalization state, emotional changes, and physical conditions [14–16]. Due to the diversity of human pronunciation, the semantic information contained in different pronunciation states of the same person is different. Therefore, how to extract stable feature parameters that can fully characterize most of the useful information in speech signals is a key issue in the field of speech recognition research.


## 3.1.3. Establish a Feature Set That Can Fully Represent Most of the Effective Information in Speech

As the input of the speech classification model, the front-end features should contain most of the effective information of the speech signal, weaken the speaker’s personality information, and have robust and stable performance [17, 18]. A single feature is not enough to characterize the complete characteristics of the speech signal, so researchers describe the characteristics of the speech signal from different perspectives and fuse different speech features. Although the fusion of different types of features can improve the performance of the recognition network, it is also prone to feature redundancy, which weakens the ability of some features to represent information, so that the speech characteristics cannot be fully described [19]. Therefore, how to establish a feature set that can fully represent speech information is also one of the difficult problems faced by speech recognition.


## 3.2. RBM Model

A restricted Boltzmann machine (RBM) is a Markov random field with a special structure that can be viewed as an unsupervised learning process. It models the probability distribution of input patterns fixed at the explicit layer through this learning process [20]. V corresponds to the dimension of the observation vector, and the size of H is variable, which determines the complexity of the RBM model.(1)Ev,h,θ=−vTWh−aTv−bTh=−∑i=1Vviai−∑j=1Hhibj−∑i=1V∑j=1HWijVihj,Here, the RBM model parameters are θ = {W,a,b}. Wij represents the weight between the i-th node in the explicit layer and the jth node in the hidden layer. ai and bi represent the bias size of node i in the visible layer and node j in the hidden layer, respectively [21]. According to the Gibbs distribution, the probability that the RBM chooses to be in the current state (v, h) can be obtained as:(2)Pv,h;θ=1Zexp−Ev,h;θZ=∑v∑hexp−Ev,h;θ.This probability can be considered as the joint probability distribution of the explicit state and the hidden state. It is obtained by exponentially normalizing the energy of the RBM in the current state through the energy of the RBM in all possible states [22]. Z is the partition function, a regular term that takes into account the energy of the RBM in all states. Therefore, the marginal distribution of the explicit state vector can be derived from the joint distribution above:(3)Pv;θ=1Z∑hexp−Ev,h;θ.So far, the energy function can be obtained by combining the model parameters of the RBM with the state of its explicit and hidden layers, and finally, the probability distribution of the explicit state is derived [23]. Therefore, RBM is an energy-based probability distribution model.The density model derived from the above energy function corresponds to the case where the explicit layer data follow a Bernoulli distribution. In speech recognition, the observation data of speech signal are a continuous value. Therefore, the explicit layer is changed to Gaussian distribution, and the Bernoulli distribution of the hidden layer remained unchanged, for this Gauss-Bernoulli type of RBM, and its energy function in state (y, h) is calculated as follows:(4)Ev,h;θ=∑i=1Vvi−ai22σi2−∑j=1Hhjbj−∑i=1V∑j=1HWijhjviδi.In practice, for the convenience of calculation, the variance of each node in the display layer is limited to 1. The training data are therefore normalized to a standard Gaussian distribution with zero mean and unit variance. In this way, the energy function of the RBRBM corresponding to the state (U, h) is simplified to:(5)Ev,h;θ=x−aTv−a−bTh−vTWh.Similar to Bernoulli RBM, the joint distribution ofv and h can be derived, and then the marginal probability density distribution describing the GBRBM explicit layer can be obtained as:(6)Pv;θ=1Z∑h−Ev,h;θ=1Z∑hexp−v−aTv−a+bTh+vTWh=1Zexp−v−aTv−a∏j=1H∑hj∈0,1expbjhj+vTWhj=1Zexp−v−aTv−a∏j=1H1+expbj+vTwj.Among them,wj is the jth column of the weight matrix w, and Z is the partition function:(7)Z=∫v∑hexp−Ev,h;θdv.


## 3.3. DNN-HMM Model

Using the RBM pretraining method and BP algorithm in the previous two subsections, after the final DNN model is obtained through training, it can be used to accurately model the speech feature parameters. When a (L + 1) layer DNN is used to compute the posterior probability of the HMM bound state s given the acoustic observation vector o, the posterior probability is Ps|os|o. The previous L layer, l = …L − 1, uses the sigmoid non-linear activation function to calculate the output of the current layer, which is also the input of the next layer. The topmost L layer uses the sofmax operation to calculate the posterior probability of all state classes:(8)phj|vζhjζ|vζ=11+e−zjζvζ=σzjζvζps|vζs|vL=ezsLvL∑se−zsLvL=softmaxszLvLzζvζ=WζTvζ+aζ.Here, Wζ and aζ represent the weight matrix and bias vector of the hidden layer ζ. hjζ and −zjζvζ are the jth elements of hζ and zζvζ, respectively. DNN acoustic modeling uses stochastic gradient descent to update the weights in the process of error back-propagation:(9)Wζ,aζ←Wζ,aζ+η∂L∂Wζ,aζ.Here L represents an objective function to be optimized, and η represents the learning rate. In automatic speech recognition, the objective function is usually set as the total log posterior probability of all training modes o(t) under their corresponding class labels s(t), namely:(10)L=∑t=1TlogPs|ost|ot.It is converted into a regularized likelihood, which can then be used by the Viterbi decoder to find the optimal path. This is the embodiment of the neural network Hybrid method.(11)pmot|qt=i,st=jpmot=pmot|qt=i,st=j|otpqt=i,st=j.The above formula is the essence of DNN-HMM acoustic modeling. It uses the output layer of the DNN to directly model each binding state of the HMM, estimates the posterior probability distribution of each state, and obtains the corresponding regular likelihood value for decoding.


## 4. Design of the Recognition System for English Speech Optimization Teaching

In this chapter, an English speech optimization teaching recognition system will be built using the acoustic model proposed above. This system uses HMM with the acoustic model proposed above and the n-gram language model mentioned above and decodes it through a pregenerated static finite-state transition machine HCLG.fst.


### 4.1. System Architecture Design

This section will introduce the architectural design of the online language recognition system in detail. The system architecture is divided into two parts: physical architecture and logical architecture. A reasonable physical architecture can ensure the robustness and stability of the system. A good system logic architecture requires covering all the services of the system, ensuring high cohesion within modules and low coupling between modules.


#### 4.1.1. System Physical Architecture

The speech recognition system has the characteristics of real-time and high concurrency. Therefore, a single-node server cannot meet the basic needs of the system [24–26]. The online speech recognition system uses a server cluster architecture and deploys the speech recognition server on each node in the cluster. It distributes tasks to computing nodes using load balancing. The node uses multithreaded concurrent decoding to minimize the feedback time. The topology of the physical architecture used in this system is shown in Figure 1:Figure 1
Physical architecture topology.As shown in Figure1, the advantages of using a clustered architecture are as follows:(1)
High reliability. A cluster contains multiple compute nodes. Through load balancing, the pressure of each computing node in the cluster can be dynamically adjusted to avoid the accumulation of too many tasks on one server. For the user side, the time required to get feedback can be effectively reduced. For the server, it can avoid stopping the service due to server downtime caused by too many tasks.(2)
Strong scalability and maintainability. Using a cluster architecture, computing nodes can dynamically join or leave the cluster. When the system needs to be maintained or upgraded, related operations can be performed on the computing nodes one by one. When one computing node is maintained, other nodes continue to provide services, so as to avoid the temporary shutdown of services due to system maintenance or upgrades.


#### 4.1.2. System Logical Architecture

The online speech recognition system adopts the architecture of a mobile terminal and server, which is divided into a presentation layer and a business logic layer. Different from the traditional three-tier architecture, this system has no online voice collection function. It only provides speech recognition services for users, so there is no data access layer in the logical architecture of this system, and it does not involve data access. The logical architecture of the system is shown in Figure2.Figure 2
Logical structure.As shown in Figure2, the presentation layer of the system logic architecture is developed and implemented by Android programming. The business layer is implemented through Python network programming and C++ language. Among them, Python network programming is used for network communication, and the C++ package is responsible for decoding the speech sent by the presentation layer. The presentation layer is mainly responsible for recording voice clips and transmitting the voice clips to the remote server through the network. It does not contain any business logic related to the recognition function. The main work of the business logic layer is divided into three parts: receiving voice data, decoding, and feeding back the recognition result. The logic architecture adopted by this system better reflects the principle of high cohesion and low coupling of software design, that is, the presentation layer. In addition to exchanging data, the business logic layer does not have any other business intersection. The advantage of this is strong reusability. Each layer implements its functions to facilitate cross-platform migration. Maintainability is good. When the system needs to be upgraded and maintained, the maintenance of one module will not affect the functions of other modules, reducing the workload of maintenance.


#### 4.1.3. Design and Implementation of System Function Modules

In this section, the functions and processes of the entire system of system are first introduced. Then, the specific implementation of each module is described. The online speech recognition system mainly includes two parts, the first part is the client side, and the second part is the server side. The system flow chart is shown in Figure3.Figure 3
System flow chart.As shown in Figure3, the client uses an Android-based mobile App client. The modules that need to be implemented are recording module, audio sending module, and recognition feedback receiving module. The modules that need to be implemented on the server side are mainly audio receiving module, endpoint detection module, feature extraction module, neural network calculation module, decoding path search module, and feedback recognition result.Server-side modules are more complex than client-side modules. It mainly consists of six modules: audio reception, endpoint detection, feature extraction, neural network calculation, decoding path search, and recognition result feedback. The server-side functions are shown in Figure4.Figure 4
Server-side functions.As shown in Figure4, the server side is mainly implemented by Python network programming and C++ language. Among them, Python network programming is used for data reception and transmission and interaction with C++ modules. Since the speech recognition system requires high real-time performance, all modules related to recognition are implemented by C++ with high efficiency. The flow chart of the server side is shown in Figure 5.Figure 5
Server-side flowchart.As shown in Figure5, the function of the server-side audio receiving and recognition result feedback module is simple, that is, conventional data sending and receiving, which is the same as the previous section. Considering the real-time nature of the speech recognition system, the communication protocol used on the server side is still the TCP protocol. The author uses the SocketServer class in Python network programming and uses the recv function in this class to accept audio data. When the identification result is sent, SocketServer provides two sending methods for data sending, send, and sendall. The send function is highly mobile. Each transmission may not necessarily send all the data, and usually, it will be repeated many times before the entire data are sent. To ensure the user experience of the system, the author uses the sendall function. This function will send all the data through one communication of TCP.


## 4.1. System Architecture Design

This section will introduce the architectural design of the online language recognition system in detail. The system architecture is divided into two parts: physical architecture and logical architecture. A reasonable physical architecture can ensure the robustness and stability of the system. A good system logic architecture requires covering all the services of the system, ensuring high cohesion within modules and low coupling between modules.


### 4.1.1. System Physical Architecture

The speech recognition system has the characteristics of real-time and high concurrency. Therefore, a single-node server cannot meet the basic needs of the system [24–26]. The online speech recognition system uses a server cluster architecture and deploys the speech recognition server on each node in the cluster. It distributes tasks to computing nodes using load balancing. The node uses multithreaded concurrent decoding to minimize the feedback time. The topology of the physical architecture used in this system is shown in Figure 1:Figure 1
Physical architecture topology.As shown in Figure1, the advantages of using a clustered architecture are as follows:(1)
High reliability. A cluster contains multiple compute nodes. Through load balancing, the pressure of each computing node in the cluster can be dynamically adjusted to avoid the accumulation of too many tasks on one server. For the user side, the time required to get feedback can be effectively reduced. For the server, it can avoid stopping the service due to server downtime caused by too many tasks.(2)
Strong scalability and maintainability. Using a cluster architecture, computing nodes can dynamically join or leave the cluster. When the system needs to be maintained or upgraded, related operations can be performed on the computing nodes one by one. When one computing node is maintained, other nodes continue to provide services, so as to avoid the temporary shutdown of services due to system maintenance or upgrades.


### 4.1.2. System Logical Architecture

The online speech recognition system adopts the architecture of a mobile terminal and server, which is divided into a presentation layer and a business logic layer. Different from the traditional three-tier architecture, this system has no online voice collection function. It only provides speech recognition services for users, so there is no data access layer in the logical architecture of this system, and it does not involve data access. The logical architecture of the system is shown in Figure2.Figure 2
Logical structure.As shown in Figure2, the presentation layer of the system logic architecture is developed and implemented by Android programming. The business layer is implemented through Python network programming and C++ language. Among them, Python network programming is used for network communication, and the C++ package is responsible for decoding the speech sent by the presentation layer. The presentation layer is mainly responsible for recording voice clips and transmitting the voice clips to the remote server through the network. It does not contain any business logic related to the recognition function. The main work of the business logic layer is divided into three parts: receiving voice data, decoding, and feeding back the recognition result. The logic architecture adopted by this system better reflects the principle of high cohesion and low coupling of software design, that is, the presentation layer. In addition to exchanging data, the business logic layer does not have any other business intersection. The advantage of this is strong reusability. Each layer implements its functions to facilitate cross-platform migration. Maintainability is good. When the system needs to be upgraded and maintained, the maintenance of one module will not affect the functions of other modules, reducing the workload of maintenance.


### 4.1.3. Design and Implementation of System Function Modules

In this section, the functions and processes of the entire system of system are first introduced. Then, the specific implementation of each module is described. The online speech recognition system mainly includes two parts, the first part is the client side, and the second part is the server side. The system flow chart is shown in Figure3.Figure 3
System flow chart.As shown in Figure3, the client uses an Android-based mobile App client. The modules that need to be implemented are recording module, audio sending module, and recognition feedback receiving module. The modules that need to be implemented on the server side are mainly audio receiving module, endpoint detection module, feature extraction module, neural network calculation module, decoding path search module, and feedback recognition result.Server-side modules are more complex than client-side modules. It mainly consists of six modules: audio reception, endpoint detection, feature extraction, neural network calculation, decoding path search, and recognition result feedback. The server-side functions are shown in Figure4.Figure 4
Server-side functions.As shown in Figure4, the server side is mainly implemented by Python network programming and C++ language. Among them, Python network programming is used for data reception and transmission and interaction with C++ modules. Since the speech recognition system requires high real-time performance, all modules related to recognition are implemented by C++ with high efficiency. The flow chart of the server side is shown in Figure 5.Figure 5
Server-side flowchart.As shown in Figure5, the function of the server-side audio receiving and recognition result feedback module is simple, that is, conventional data sending and receiving, which is the same as the previous section. Considering the real-time nature of the speech recognition system, the communication protocol used on the server side is still the TCP protocol. The author uses the SocketServer class in Python network programming and uses the recv function in this class to accept audio data. When the identification result is sent, SocketServer provides two sending methods for data sending, send, and sendall. The send function is highly mobile. Each transmission may not necessarily send all the data, and usually, it will be repeated many times before the entire data are sent. To ensure the user experience of the system, the author uses the sendall function. This function will send all the data through one communication of TCP.


## 4.1.1. System Physical Architecture

The speech recognition system has the characteristics of real-time and high concurrency. Therefore, a single-node server cannot meet the basic needs of the system [24–26]. The online speech recognition system uses a server cluster architecture and deploys the speech recognition server on each node in the cluster. It distributes tasks to computing nodes using load balancing. The node uses multithreaded concurrent decoding to minimize the feedback time. The topology of the physical architecture used in this system is shown in Figure 1:Figure 1
Physical architecture topology.As shown in Figure1, the advantages of using a clustered architecture are as follows:(1)
High reliability. A cluster contains multiple compute nodes. Through load balancing, the pressure of each computing node in the cluster can be dynamically adjusted to avoid the accumulation of too many tasks on one server. For the user side, the time required to get feedback can be effectively reduced. For the server, it can avoid stopping the service due to server downtime caused by too many tasks.(2)
Strong scalability and maintainability. Using a cluster architecture, computing nodes can dynamically join or leave the cluster. When the system needs to be maintained or upgraded, related operations can be performed on the computing nodes one by one. When one computing node is maintained, other nodes continue to provide services, so as to avoid the temporary shutdown of services due to system maintenance or upgrades.


## 4.1.2. System Logical Architecture

The online speech recognition system adopts the architecture of a mobile terminal and server, which is divided into a presentation layer and a business logic layer. Different from the traditional three-tier architecture, this system has no online voice collection function. It only provides speech recognition services for users, so there is no data access layer in the logical architecture of this system, and it does not involve data access. The logical architecture of the system is shown in Figure2.Figure 2
Logical structure.As shown in Figure2, the presentation layer of the system logic architecture is developed and implemented by Android programming. The business layer is implemented through Python network programming and C++ language. Among them, Python network programming is used for network communication, and the C++ package is responsible for decoding the speech sent by the presentation layer. The presentation layer is mainly responsible for recording voice clips and transmitting the voice clips to the remote server through the network. It does not contain any business logic related to the recognition function. The main work of the business logic layer is divided into three parts: receiving voice data, decoding, and feeding back the recognition result. The logic architecture adopted by this system better reflects the principle of high cohesion and low coupling of software design, that is, the presentation layer. In addition to exchanging data, the business logic layer does not have any other business intersection. The advantage of this is strong reusability. Each layer implements its functions to facilitate cross-platform migration. Maintainability is good. When the system needs to be upgraded and maintained, the maintenance of one module will not affect the functions of other modules, reducing the workload of maintenance.


## 4.1.3. Design and Implementation of System Function Modules

In this section, the functions and processes of the entire system of system are first introduced. Then, the specific implementation of each module is described. The online speech recognition system mainly includes two parts, the first part is the client side, and the second part is the server side. The system flow chart is shown in Figure3.Figure 3
System flow chart.As shown in Figure3, the client uses an Android-based mobile App client. The modules that need to be implemented are recording module, audio sending module, and recognition feedback receiving module. The modules that need to be implemented on the server side are mainly audio receiving module, endpoint detection module, feature extraction module, neural network calculation module, decoding path search module, and feedback recognition result.Server-side modules are more complex than client-side modules. It mainly consists of six modules: audio reception, endpoint detection, feature extraction, neural network calculation, decoding path search, and recognition result feedback. The server-side functions are shown in Figure4.Figure 4
Server-side functions.As shown in Figure4, the server side is mainly implemented by Python network programming and C++ language. Among them, Python network programming is used for data reception and transmission and interaction with C++ modules. Since the speech recognition system requires high real-time performance, all modules related to recognition are implemented by C++ with high efficiency. The flow chart of the server side is shown in Figure 5.Figure 5
Server-side flowchart.As shown in Figure5, the function of the server-side audio receiving and recognition result feedback module is simple, that is, conventional data sending and receiving, which is the same as the previous section. Considering the real-time nature of the speech recognition system, the communication protocol used on the server side is still the TCP protocol. The author uses the SocketServer class in Python network programming and uses the recv function in this class to accept audio data. When the identification result is sent, SocketServer provides two sending methods for data sending, send, and sendall. The send function is highly mobile. Each transmission may not necessarily send all the data, and usually, it will be repeated many times before the entire data are sent. To ensure the user experience of the system, the author uses the sendall function. This function will send all the data through one communication of TCP.


## 5. English Speech Optimization Teaching Recognition Modeling Simulation

### 5.1. Speech Recognition Experiment Based on Feature Fusion

To fully characterize the dynamic and static information of the speech signal, the new feature vector is put into the recognition network SVM for training and simulation. Based on the extracted features and its first-order difference, the TEOCC feature reflecting the signal energy change is added, and the obtained fusion feature set is used as the input of the recognition model SVM to further verify the superior performance of the fusion feature set in speech recognition. The experimental comparison results are shown in Figure6.Figure 6
COSR results of FFPSS feature set. (a) COSR results of 10-word FFPSS feature set. (b) COSR results of 20-word FFFPS feature set.
(a)(b)As shown in Figure6, COSR of Experiments 1 and 2, it can be seen that the FFPRLS_D features are more dominant in static features at 0dB20 words and 15dB20 words, which are 4.73% and 3.54% higher than FFPRLS features, respectively. From the point of view of the average recognition rate, the average recognition rates of the dynamic and static combined feature vectors have been improved to varying degrees, indicating that the combination of dynamic and static features can more effectively characterize the information of the speech signal, further confirming that the combined feature vector is more effective than a single feature. The comparison of the speech recognition results of the FFPRLS feature set is shown in Figure 7.Figure 7
COSR results of FFPRLS feature set. (a) COSR results of 10 words. (b) COSR results of 20 words.
(a)(b)As shown in Figure7, comparing the recognition (COSR) results of Experiments 2 and 3, it can be seen that from the recognition rate under different SNR environments, after adding the TEOCC feature reflecting the energy change of the speech signal, compared with dynamic and static combined features, the recognition effect of fusion features has been further improved. The COSR results of FFPLMS feature set are shown in Figure 8.Figure 8
COSR results of FFPLMS feature set (%). (a) COSR results of 10 words. (b) COSR results of 20 words.
(a)(b)As shown in Figure8, from the perspective of the average recognition rate, compared with the dynamic and static combination of the three fusion features, the recognition rate in the case of 10 words is 2.69% higher on average, and the recognition rate in the case of 20 words is higher on average than 3.18%. The data show that the energy feature TEOCC contains the semantic information of the speech signal, which can be used as an auxiliary feature parameter to improve the performance of the speech recognition system.


### 5.2. Speech Recognition Experiment Based on Feature Optimization

To verify the effectiveness of the method proposed in this chapter to optimize the characteristic parameters based on PCA, simulation comparison experiments are carried out under different signal-to-noise ratios. Design the experimental scheme: The three dynamic and static combined features are optimized separately. The optimized feature set(OFS) is defined as PCA-Features1. Then put the feature set into the recognition network SVM for training and simulation, and the obtained experimental comparison results are shown in Table1;Table 1
COSR results before and after FFSS feature set optimization.
VocabularyCharacteristic parameters0 dB5 dB10 dB15 dB20 dBAverage recognition rate10 wordsFFPSS_D80.9586.1990.4890.9590.0087.71PCA-features188.1089.5290.4892.3892.3890.57FFPSS_D + TEOCC82.3890.4893.8193.8194.2990.95PCA-features290.0090.9594.2994.2994.2992.7620 wordsFFPSS_D74.8680.3082.7186.0387.3482.25PCA-features178.8181.6787.3888.8191.6785.67FFPSS_D + TEOCC79.5283.8386.8089.01.90.5085.93PCA-features281.4385.2488.5790.4892.3887.62As shown in Table1, it can see that from the perspective of the average recognition rate, the average recognition rate of the OFS has been improved to varying degrees. From the perspective of recognition rates under different SNR environments, the OFS of FFPSS and FFPRLS have more prominent advantages under 0dB10 words. The recognition rates both increased by 7.15%. But at 0 dB and 10 words, the recognition rate of the OFS PCA-Features1 and FFPSS_D features is the same. Because PCA can retain the components containing important information in the feature parameters and remove some unnecessary components, it cannot completely retain the most effective information components.The fused feature sets added to the energy feature TEOCC are respectively optimized for features. The OFS is defined as PCA-Features2. Then, the feature set is put into the recognition network SVM for training and simulation. The experimental comparison results obtained are shown in Table2;Table 2
COSR results before and after FFPRLS feature set optimization.
VocabularyCharacteristic parameters0 dB5 dB10 dB15 dB20 dBAverage recognition rate10 wordsFFPSS_D79.5286.1988.5789.1890.0086.69PCA-features186.6791.4389.0589.5791.4389.63FFPSS_D + TEOCC81.4389.0591.9091.4392.3889.24PCA-features287.1490.0091.4391.9592.8690.6820 wordsFFPSS_D73.5680.3083.2786.4187.9082.29PCA-features178.5782.1487.3887.9589.7685.16FFPSS_D + TEOCC74.6783.2787.5589.3989.9484.96PCA-features280.0085.9589.2989.5991.1987.20As shown in Table2, comparing the results of Experiments 3 and 4, we can see that from the average recognition rate, the recognition effect of the OFS has been further improved compared with the fusion feature. From the point of view of the recognition rate under different SNR environments, the recognition rate of the OFS PCA-Features2 decreased by 0.47% compared with the FFPRLS_D + TEOCC feature set under 10dB10 words. Compared with the FFPLMS_D + TEOCC feature set, the recognition rate under 5dB10 words also drops by 0.47%. This is also because PCA cannot completely remove redundancy and retain the most effective information, and its recognition effect becomes worse. The COSR results before and after FFPLMS feature set optimization is shown in Table 3.Table 3
COSR results before and after FFPLMS feature set optimization.
VocabularyCharacteristic parameters0 dB5 dB10 dB15 dB20 dBAverage recognition rate10 wordsFFPSS_D82.4387.6290.4891.9090.9588.68PCA-features188.5789.5293.3391.9592.3891.15FFPSS_D + TEOCC82.8690.9592.3894.2994.2990.95PCA-features290.5290.4893.3394.8194.8192.7920 wordsFFPSS_D74.8680.6784.7186.2287.7182.83PCA-features178.1082.8686.9089.2991.4385.72FFPSS_D + TEOCC79.7083.8386.8089.7689.9486.01PCA-features283.3386.6788.8190.9592.3888.43The identification results of comprehensive comparison Experiments 1 and 2 and Experiments 3 and 4 are shown in Table3: This chapter proposes to use PCA to perform feature selection on fused features to obtain an OFS, which reduces the feature dimension and obtains a higher recognition accuracy, thereby improving the recognition performance of the speech recognition system. It can be shown that the feature optimization method based on PCA can make up for the shortage of too many feature dimensions caused by feature fusion and can also retain most of the important information in the features.To construct the optimal feature set, the advantages and disadvantages of the three OFS are compared as a whole, and the optimal feature set is further selected. The COSR results of the three OFS is shown in Figure9.Figure 9
COSR results of three OFS. (a) COSR results of 10 words (%). (b) Comparison of 20-word speech recognition results.
(a)(b)As shown in Figure9, it can be seen from the three sets of experimental results that: From the perspective of the recognition rate under different SNR environments, the FFPLMS OFS has the highest recognition rate when the SNR is 0 dB. From the average recognition rate, whether it is 10 words or 20 words, the FFPLMS OFS shows a good recognition effect. After a comprehensive analysis, the recognition performance of the above three feature sets is ranked as follows: the FFPLMS OFS is the best, the FFPSS OFS is the second, and the FFPRLS OFS is the last. The optimal feature set thus obtained is the FFPLMS OFS. The feature set can better describe the characteristics of the speech signal.


## 5.1. Speech Recognition Experiment Based on Feature Fusion

To fully characterize the dynamic and static information of the speech signal, the new feature vector is put into the recognition network SVM for training and simulation. Based on the extracted features and its first-order difference, the TEOCC feature reflecting the signal energy change is added, and the obtained fusion feature set is used as the input of the recognition model SVM to further verify the superior performance of the fusion feature set in speech recognition. The experimental comparison results are shown in Figure6.Figure 6
COSR results of FFPSS feature set. (a) COSR results of 10-word FFPSS feature set. (b) COSR results of 20-word FFFPS feature set.
(a)(b)As shown in Figure6, COSR of Experiments 1 and 2, it can be seen that the FFPRLS_D features are more dominant in static features at 0dB20 words and 15dB20 words, which are 4.73% and 3.54% higher than FFPRLS features, respectively. From the point of view of the average recognition rate, the average recognition rates of the dynamic and static combined feature vectors have been improved to varying degrees, indicating that the combination of dynamic and static features can more effectively characterize the information of the speech signal, further confirming that the combined feature vector is more effective than a single feature. The comparison of the speech recognition results of the FFPRLS feature set is shown in Figure 7.Figure 7
COSR results of FFPRLS feature set. (a) COSR results of 10 words. (b) COSR results of 20 words.
(a)(b)As shown in Figure7, comparing the recognition (COSR) results of Experiments 2 and 3, it can be seen that from the recognition rate under different SNR environments, after adding the TEOCC feature reflecting the energy change of the speech signal, compared with dynamic and static combined features, the recognition effect of fusion features has been further improved. The COSR results of FFPLMS feature set are shown in Figure 8.Figure 8
COSR results of FFPLMS feature set (%). (a) COSR results of 10 words. (b) COSR results of 20 words.
(a)(b)As shown in Figure8, from the perspective of the average recognition rate, compared with the dynamic and static combination of the three fusion features, the recognition rate in the case of 10 words is 2.69% higher on average, and the recognition rate in the case of 20 words is higher on average than 3.18%. The data show that the energy feature TEOCC contains the semantic information of the speech signal, which can be used as an auxiliary feature parameter to improve the performance of the speech recognition system.


## 5.2. Speech Recognition Experiment Based on Feature Optimization

To verify the effectiveness of the method proposed in this chapter to optimize the characteristic parameters based on PCA, simulation comparison experiments are carried out under different signal-to-noise ratios. Design the experimental scheme: The three dynamic and static combined features are optimized separately. The optimized feature set(OFS) is defined as PCA-Features1. Then put the feature set into the recognition network SVM for training and simulation, and the obtained experimental comparison results are shown in Table1;Table 1
COSR results before and after FFSS feature set optimization.
VocabularyCharacteristic parameters0 dB5 dB10 dB15 dB20 dBAverage recognition rate10 wordsFFPSS_D80.9586.1990.4890.9590.0087.71PCA-features188.1089.5290.4892.3892.3890.57FFPSS_D + TEOCC82.3890.4893.8193.8194.2990.95PCA-features290.0090.9594.2994.2994.2992.7620 wordsFFPSS_D74.8680.3082.7186.0387.3482.25PCA-features178.8181.6787.3888.8191.6785.67FFPSS_D + TEOCC79.5283.8386.8089.01.90.5085.93PCA-features281.4385.2488.5790.4892.3887.62As shown in Table1, it can see that from the perspective of the average recognition rate, the average recognition rate of the OFS has been improved to varying degrees. From the perspective of recognition rates under different SNR environments, the OFS of FFPSS and FFPRLS have more prominent advantages under 0dB10 words. The recognition rates both increased by 7.15%. But at 0 dB and 10 words, the recognition rate of the OFS PCA-Features1 and FFPSS_D features is the same. Because PCA can retain the components containing important information in the feature parameters and remove some unnecessary components, it cannot completely retain the most effective information components.The fused feature sets added to the energy feature TEOCC are respectively optimized for features. The OFS is defined as PCA-Features2. Then, the feature set is put into the recognition network SVM for training and simulation. The experimental comparison results obtained are shown in Table2;Table 2
COSR results before and after FFPRLS feature set optimization.
VocabularyCharacteristic parameters0 dB5 dB10 dB15 dB20 dBAverage recognition rate10 wordsFFPSS_D79.5286.1988.5789.1890.0086.69PCA-features186.6791.4389.0589.5791.4389.63FFPSS_D + TEOCC81.4389.0591.9091.4392.3889.24PCA-features287.1490.0091.4391.9592.8690.6820 wordsFFPSS_D73.5680.3083.2786.4187.9082.29PCA-features178.5782.1487.3887.9589.7685.16FFPSS_D + TEOCC74.6783.2787.5589.3989.9484.96PCA-features280.0085.9589.2989.5991.1987.20As shown in Table2, comparing the results of Experiments 3 and 4, we can see that from the average recognition rate, the recognition effect of the OFS has been further improved compared with the fusion feature. From the point of view of the recognition rate under different SNR environments, the recognition rate of the OFS PCA-Features2 decreased by 0.47% compared with the FFPRLS_D + TEOCC feature set under 10dB10 words. Compared with the FFPLMS_D + TEOCC feature set, the recognition rate under 5dB10 words also drops by 0.47%. This is also because PCA cannot completely remove redundancy and retain the most effective information, and its recognition effect becomes worse. The COSR results before and after FFPLMS feature set optimization is shown in Table 3.Table 3
COSR results before and after FFPLMS feature set optimization.
VocabularyCharacteristic parameters0 dB5 dB10 dB15 dB20 dBAverage recognition rate10 wordsFFPSS_D82.4387.6290.4891.9090.9588.68PCA-features188.5789.5293.3391.9592.3891.15FFPSS_D + TEOCC82.8690.9592.3894.2994.2990.95PCA-features290.5290.4893.3394.8194.8192.7920 wordsFFPSS_D74.8680.6784.7186.2287.7182.83PCA-features178.1082.8686.9089.2991.4385.72FFPSS_D + TEOCC79.7083.8386.8089.7689.9486.01PCA-features283.3386.6788.8190.9592.3888.43The identification results of comprehensive comparison Experiments 1 and 2 and Experiments 3 and 4 are shown in Table3: This chapter proposes to use PCA to perform feature selection on fused features to obtain an OFS, which reduces the feature dimension and obtains a higher recognition accuracy, thereby improving the recognition performance of the speech recognition system. It can be shown that the feature optimization method based on PCA can make up for the shortage of too many feature dimensions caused by feature fusion and can also retain most of the important information in the features.To construct the optimal feature set, the advantages and disadvantages of the three OFS are compared as a whole, and the optimal feature set is further selected. The COSR results of the three OFS is shown in Figure9.Figure 9
COSR results of three OFS. (a) COSR results of 10 words (%). (b) Comparison of 20-word speech recognition results.
(a)(b)As shown in Figure9, it can be seen from the three sets of experimental results that: From the perspective of the recognition rate under different SNR environments, the FFPLMS OFS has the highest recognition rate when the SNR is 0 dB. From the average recognition rate, whether it is 10 words or 20 words, the FFPLMS OFS shows a good recognition effect. After a comprehensive analysis, the recognition performance of the above three feature sets is ranked as follows: the FFPLMS OFS is the best, the FFPSS OFS is the second, and the FFPRLS OFS is the last. The optimal feature set thus obtained is the FFPLMS OFS. The feature set can better describe the characteristics of the speech signal.


## 6. Conclusions

As the speech signal is not smooth in time, the Fourier transform of the speech signal has certain limitations. Therefore, this paper adopts the acoustic transform to analyze the speech signal, applies the acoustic CFCC function to the speech recognition system, and proposes a new function to improve the nonlinear transformation process of the CFCC function. It improves the accuracy of the neural network while increasing the training speed and decoding speed of the model and proposes a new model on how to build a complete English speech optimized teaching recognition system using an intelligent edge detection algorithm. The whole system includes the mobile side and the server side and implements the most basic business logic of the speech recognition system. The auditory model includes multiple stages of nonlinear transformations. This paper only uses nonlinear power functions to simulate the auditory characteristics of the human ear, which is difficult to quantitatively analyze. Therefore, further study of auditory models is required.



---

*Source: 9314068-2022-06-28.xml*