Abstract:
Under conventional techniques, wastewater treatment has many problems such as poor production conditions, serious random interference, strong nonlinear behavior, large time-varying, and serious lagging. These problem cause difficult detection of various wastewater treatment parameter such as biochemical oxygen demand (BOD) values that are used to monitor water quality. To solve problems associated with monitoring BOD values in real-time, the present disclosure utilizes a self-organizing recurrent RBF neural network designed for intelligent detecting of BOD values. Implementations of the present disclosure build a computing model of BOD values based on the self-organizing recurrent RBF neural network to achieve real-time and more accurate detection of the BOD values (e.g., a BOD concentration). The implementations herein quickly and accurately obtain BOD concentrations and improve the quality and efficiency of wastewater treatment.

Description:
CROSS REFERENCE TO RELATED PATENT APPLICATIONS 
       [0001]    This application claims priority to Chinese Patent Application No. 201510999765.5, filed on Dec. 27, 2015, entitled “An Intelligent detection method for Biochemical Oxygen Demand based on a Self-organizing Recurrent RBF Neural Network,” which is hereby incorporated by reference in its entirety. 
       TECHNICAL FIELD 
       [0002]    This present disclosure relates to the field of intelligent control, and more particularly to methods and systems for intelligent detection of biochemical oxygen demand (BOD) values in an urban wastewater treatment process (WWTP). 
       BACKGROUND 
       [0003]    Urban WWTP not only guarantees reliability and stability of wastewater treatment systems but also meets water quality of the national discharge standards. However, influence factors are various for BOD of WWTP and relationships between various influencing factors are complex. Therefore, it is difficult to make real-time detection for BOD. This seriously affects stable operations of urban WWTP. Intelligent detection method for BOD, based on a self-organizing recurrent RBF neural network, is helpful to improve efficiency, strengthen delicacy management, and ensure the effluent quality standards of urban WWTP. The method has great economic benefits as well as significant environmental and social benefits. 
         [0004]    Urban WWTP makes water quality to meet national discharge standards, which are mainly related to parameters such as BOD, chemical oxygen demand (COD), effluent suspended solids (SS), ammonia nitrogen (NH3-N), total nitrogen (TN) and total phosphorus (TP) and so on. BOD refers to the needed oxygen for organic decomposition within the given time. At present, detection of BOD in wastewater is mainly performed by using dilution inoculation methods and microbial sensor determination methods. However, detection cycles are generally for 5 days, which can&#39;t reflect actual situations of WWTP in real-time. Thus it is difficult to perform closed loop controls of WWTP. Moreover, it is a big challenge for detecting the values of BOD due to a large amount of pollutants in wastewater and different contents. New hardware measuring instruments may be developed to directly determine various variables of WWTP and solve detection problems of water quality parameters due to complex organic matters in wastewater. However, research and development of new sensors will be costly and may be a time-consuming operation. Hence, new methods to solve the problem, such as real-time measurement of BOD values in WWTP, has become an important topic in both academic and practical fields. 
         [0005]    In this disclosure, an intelligent detection method for BOD is presented by building a computing model based on a self-organizing recurrent RBF neural network. The neural network uses activity degrees and independent contribution of the hidden neuron to determine whether to add or delete hidden neurons and use a fast gradient descent algorithm to ensure the accuracy of the self-organizing recurrent RBF neural network. The intelligent detection method can achieve a real-time detection for BOD, reduce the cost of measurement for wastewater treatment plants, provide a fast and efficient approach of measurement, and improve benefits of wastewater treatment plants. 
       SUMMARY 
       [0006]    Implementations of the present disclosure relate to an intelligent detection method that is designed for measuring the BOD concentration based on a self-organizing recurrent RBF neural network in this disclosure. For this intelligent detection method, the inputs are variables that are easily measured and the outputs are estimates of the BOD concentration. By constructing the self-organizing recurrent RBF neural network, the implementations obtain the mapping between the auxiliary variables and the BOD concentration. In addition, the implementations can obtain real-time measurements of BOD concentration and solve problems of a long measurement cycle for BOD concentration. 
         [0007]    This disclosure adopts the following technical schemes and implementations. 
         [0008]    An intelligent detection method for the BOD concentration based on a self-organizing recurrent RBF neural network, and its characteristic and steps include the following steps: 
         [0009]    (1) Determining the input and output variables of BOD: For activated sludge system of WWTP, the wastewater treatment variables are analyzed and the input variables of BOD computing model are selected: dissolved oxygen concentration (DO), effluent suspended solids concentration (SS), pH, chemical oxygen demand (COD). The output value of computing model is used to detect the BOD concentration. 
         [0010]    (2) Computing model of the intelligent detection of BOD: establishing the computing model of BOD based on a self-organizing recurrent RBF neural network. The structure of recurrent RBF neural network includes three layers: input layer, hidden layer and output layer. The recurrent RBF neural network is 4-m-1, named the number of input layer is 4 and hidden neurons is m, Connection weights between input layer and hidden layer are assigned 1, the connection weights between hidden layer and output layer randomly assign values, the assignment interval is [-1, 1]. The number of the training sample is N and the input of self-organizing recurrent RBF neural network is x(t)=[x 1 (t), x 2 (t), x 3 (t), x 4 (t)] at time t. The expectation output of the neural network is expressed as y d (t) and the actual output is expressed as y(t), and the computing method of BOD can be described: 
         [0011]    {circle around (1)} The input Layer: There are 4 neurons which represent the input variables in this layer. The output values of each neuron are as follows: 
         [0000]        u   i ( t )= x   i ( t );   (Equation 1)
 
         [0012]    wherein u i (t) is the ith output value at time t, i=1, 2, . . . , 4, and the input vector is x(t)=[x 1 (t), x 2 (t), x 4 (t)]. 
         [0013]    {circle around (2)} The Hidden Layer: There are m neurons of hidden layer. The outputs of hidden neurons are: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         θ 
                         j 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       e 
                       
                         - 
                         
                           
                             
                                
                               
                                 
                                   
                                     h 
                                     j 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 - 
                                 
                                   
                                     c 
                                     j 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                               
                                
                             
                             2 
                           
                           
                             2 
                              
                             
                               
                                 σ 
                                 j 
                                 2 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     j 
                     = 
                     1 
                   
                   , 
                   2 
                   , 
                   … 
                    
                   
                       
                   
                   , 
                   m 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     2 
                   
                   ) 
                 
               
             
           
         
       
     
         [0014]    c j (t) denotes the center vector of the jth hidden neuron and c j (t)=[c 1j (t), c 2j (t), . . . , c 4j (t)] T  at time t, ∥h j (t)−c j (t)∥ is the Euclidean distance between h j (t) and c j (t), and σ j (t) is the radius or width of the jth hidden neuron at time t, h j (t) is input vector of the jth hidden neuron at time t described as: 
         [0000]        h   j ( t )=[ u   1 ( t ),  u   2 ( t ), . . .  u   4 ( t ),  v   j ( t )× y ( t −1)] T ,   (Equation 3)
 
         [0015]    y(t−1) is the output value of the output layer at time t−1, v j (t) denotes the connection weight from output layer to the jth hidden neuron at time t, and v(t)=[v 1 (t), v 2 (t), . . . , v m (t)] T , T represents transpose; 
         [0016]    {circle around (3)} The Output Layer: There is only one node in this layer, the output is: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       y 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         f 
                          
                         
                           ( 
                           
                             
                               w 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             , 
                             
                               θ 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                       
                       = 
                       
                         
                           ∑ 
                           
                             j 
                             = 
                             1 
                           
                           m 
                         
                          
                         
                           
                             
                               w 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                           × 
                           
                             
                               θ 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     j 
                     = 
                     1 
                   
                   , 
                   … 
                    
                   
                       
                   
                   , 
                   m 
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     4 
                   
                   ) 
                 
               
             
           
         
       
     
         [0017]    wherein w(t)=[w 1 (t), w 2 (t), . . . , w m (t)] T  is the connection weights between the hidden neurons and output neuron at time t, θ(t)=[θ 1 (t), θ 2 (t), . . . , θ m (t)] T  is the output vector of the hidden layer, and y(t) represents the output of recurrent RBF neural network at time t. 
         [0018]    The error of self-organizing recurrent RBF neural network is: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       E 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         1 
                         N 
                       
                        
                       
                         
                           ∑ 
                           
                             t 
                             = 
                             1 
                           
                           N 
                         
                          
                         
                           
                             ( 
                             
                               
                                 
                                   y 
                                   d 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               - 
                               
                                 y 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                             ) 
                           
                           2 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     5 
                   
                   ) 
                 
               
             
           
         
       
     
         [0019]    y d (t) is the expectation output of neural network and the actual output is expressed as y(t); 
         [0020]    (3) Training the self-organizing recurrent RBF neural network; 
         [0021]    {circle around (1)} providing the self-organizing recurrent RBF neural network, the initial number of hidden layer neurons is m, m&gt;2 is a positive integer. The input of self-organizing recurrent RBF neural network is x(1), x(2), . . . , x(t), . . . , x(N), correspondingly, the expectation output is y d (1), y d (2), . . . , y d (t), . . . , y d (N), expected error value is set to E d , E d ∈(0, 0.01). The every variable of initial center value c j (1) ∈(−2, 2), width value σ j (1) ∈(0, 1), initial feedback weight v j (1) ∈(0, 1), j=1, 2, . . . , m; initial weight w(1) ∈(0, 1); 
         [0022]    {circle around (2)} Setting the learning step s=1; 
         [0023]    {circle around (3)} t=s; according to Equations (1)-(4), calculating the output of the self-organizing recurrent RBF neural network by exploiting a fast gradient descent algorithm: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         c 
                         j 
                       
                        
                       
                         ( 
                         
                           t 
                           + 
                           1 
                         
                         ) 
                       
                     
                     = 
                     
                       
                         
                           c 
                           j 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                       - 
                       
                         
                           η 
                           c 
                         
                          
                         
                           1 
                           
                             σ 
                             j 
                             2 
                           
                         
                          
                         
                           ( 
                           
                             
                               
                                 y 
                                 d 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             - 
                             
                               y 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                          
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         × 
                         
                           
                             θ 
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                            
                           
                             [ 
                             
                               
                                 
                                   h 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   c 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                             ] 
                           
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     6 
                   
                   ) 
                 
               
             
             
               
                 
                   
                     
                       
                         σ 
                         j 
                       
                        
                       
                         ( 
                         
                           t 
                           + 
                           1 
                         
                         ) 
                       
                     
                     = 
                     
                       
                         
                           σ 
                           j 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                       - 
                       
                         
                           η 
                           σ 
                         
                          
                         
                           1 
                           
                             σ 
                             j 
                             3 
                           
                         
                          
                         
                           ( 
                           
                             
                               
                                 y 
                                 d 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             - 
                             
                               y 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                          
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         × 
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         × 
                         
                           θ 
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                          
                         
                           
                              
                             
                               
                                 
                                   h 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   c 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                              
                           
                           2 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     7 
                   
                   ) 
                 
               
             
             
               
                 
                   
                       
                   
                    
                   
                     
                       
                         
                           v 
                           j 
                         
                          
                         
                           ( 
                           
                             t 
                             + 
                             1 
                           
                           ) 
                         
                       
                       = 
                       
                         
                           
                             v 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         - 
                         
                           
                             
                               η 
                               v 
                             
                              
                             
                               ( 
                               
                                 
                                   
                                     y 
                                     d 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 - 
                                 
                                   y 
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                               
                               ) 
                             
                           
                            
                           
                             
                               w 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                            
                           
                             θ 
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                            
                           
                             y 
                              
                             
                               ( 
                               
                                 t 
                                 - 
                                 1 
                               
                               ) 
                             
                           
                         
                       
                     
                     , 
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     8 
                   
                   ) 
                 
               
             
             
               
                 
                   
                       
                   
                    
                   
                     
                       
                         
                           w 
                           j 
                         
                          
                         
                           ( 
                           
                             t 
                             + 
                             1 
                           
                           ) 
                         
                       
                       = 
                       
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         - 
                         
                           
                             
                               η 
                               w 
                             
                              
                             
                               ( 
                               
                                 
                                   
                                     y 
                                     d 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 - 
                                 
                                   y 
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                               
                               ) 
                             
                           
                            
                           
                             
                               θ 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                         
                       
                     
                     , 
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     9 
                   
                   ) 
                 
               
             
           
         
       
     
         [0024]    η c , η σ , η v , η w  are the learning rate of centre, width, feedback connection weight from output layer to hidden layer and the connection weight between hidden layer and output layer, respectively. In addition, η c ∈(0, 0.01], η σ ∈(0, 0.01], η v ∈(0, 0.02], η w  ∈(0, 0.01]; c j (t+1)=[c 1j (t+1), c 2j  (t+1), . . . , c 4j  (t+1)] denotes the center vector of the jth hidden neuron at time t+1; σ j (t+1) is the radius or width of the jth hidden neuron at time t+1; v j (t+1) denotes the connection weight from output layer to the jth hidden neuron at time t+1; w j (t+1) is the connection weights between the hidden neurons and output neuron at time t+1; 
         [0025]    {circle around (4)} t&gt;3, calculating independent contribution: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         ψ 
                         j 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           
                             q 
                             j 
                           
                            
                           
                             ( 
                             
                               t 
                               - 
                               1 
                             
                             ) 
                           
                         
                         + 
                         
                           
                             q 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                       
                       
                         
                           ∑ 
                           
                             j 
                             = 
                             1 
                           
                           m 
                         
                          
                         
                           ( 
                           
                             
                               
                                 q 
                                 j 
                               
                                
                               
                                 ( 
                                 
                                   t 
                                   - 
                                   1 
                                 
                                 ) 
                               
                             
                             + 
                             
                               
                                 q 
                                 j 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     j 
                     = 
                     1 
                   
                   , 
                   … 
                    
                   
                       
                   
                   , 
                   m 
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     10 
                   
                   ) 
                 
               
             
           
         
       
     
         [0026]    wherein ψ j (t) is the independent contribution of the jth hidden neuron at time t; q h (t−1) is independent contribution output of the jth hidden neuron at time t−1. q j (t) is independent contribution output of the jth hidden neuron at time t; Moreover, q i =[q j (t−1), q i (t)] is independent contribution output vector of the jth hidden neuron; Q(t)=[q 1 (t), . . . q m−1 (t), q m (t)] T  is the independent contribution matrix at time t, 
         [0000]        Q ( t )=Φ( t )Ω( t ),   (Equation 11)
 
         [0027]    wherein Ω(t) is a coefficients matrix which is provided as: 
         [0000]      Ω( t )= D   −1 ( t )Φ( t ) b ( t ) z ( t ),   (Equation 12)
 
         [0028]    wherein Φ(t)=[θ(t−1), θ(t)] is the output matrix of hidden layer at time t, θ(t−1)=[θ 1 (t−1), θ 2 (t−1), . . . , θ m (t−1)] T  is the output vector of hidden layer at time t−1, θ(t)=[θ 1 (t), θ 2 (t), . . . , θ m (t)] T  is the output vector of hidden layer at time t; D(t), B(t) and z(t) are the covariance matrix of Φ(t), the whitening matrix of y(t) and the whitening transformation matrix of y(t), respectively. D(t), B(t) and z(t) are provided as: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       D 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       [ 
                       
                         
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                   2 
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                   2 
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                         
                       
                       ] 
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     13 
                   
                   ) 
                 
               
             
             
               
                 
                   
                     
                       B 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           Λ 
                           
                             
                               - 
                               1 
                             
                             / 
                             2 
                           
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                         
                           U 
                           T 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     14 
                   
                   ) 
                 
               
             
             
               
                 
                   
                     
                       z 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           Λ 
                           
                             
                               - 
                               1 
                             
                             / 
                             2 
                           
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                         
                           U 
                           T 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                         y 
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     15 
                   
                   ) 
                 
               
             
           
         
       
     
         [0029]    where  θ (t−1)=(θ 1 (t−1)+θ 2 (t−1)+ . . . +θ m (t−1))/m is the average value of elements of output vector in hidden layer at time t−1,  θ (t)=(θ 1 (t)+θ 2 (t)+ . . . +θ m (t))/m is the average value of elements of output vector in hidden layer at time t; ∪(t) and Λ(t) are the eigenvector and eigenvalue matrices of y(t); y(t) is the output matrix of self-organizing recurrent RBF neural network at time t 
         [0000]        y ( t )=Φ( t )δ( t ),   (Equation 16)
 
         [0030]    wherein δ(t) is the weight matrix of hidden layer to output layer 
         [0000]      δ( t )=[ w ( t− 1),  w ( t )],   (Equation 17)
 
         [0031]    wherein w(t−1)=[w 1 (t−1), w 2 (t−1), . . . , w m (t−1)] T  and w(t)=[w 1 (t), w 2 (t), . . . , w m (t)] T  are the output of self-organizing recurrent RBF neural network, the output vector of the hidden layer and the weight vector at time t−1 and time t, respectively. 
         [0032]    {circle around (5)} t&gt;3, calculating activity degree of hidden neuron: 
         [0000]        S   j =( t )=e −∥h   j   (t)−c   j   (t)∥ ,   (Equation 18)
 
         [0033]    wherein S j (t) is the activity degree of the jth hidden neuron at time t, j=1, 2, . . . m. 
         [0034]    {circle around (6)} t&gt;3, adjusting the structure of self-organizing recurrent RBF neural network: 
         [0035]    In the process of adjusting structure of neural network, calculating the activity degree of the /th hidden neuron S / (t) and the independent contribution of the /th hidden neuron ψ / (t). 
         [0036]    When the activity degree and independent contribution of the /th hidden neuron satisfy: 
         [0000]        S   l ( t )=max  S ( t ),   (Equation 19)
 
         [0000]      ψ l ( t )=max ψ( t ),   (Equation 20)
 
         [0037]    wherein S(t)=[S 1 (t), . . . , S m−1 (t), S m (t)] is the vector of activity degree of hidden neurons at time t, ψ(t)=[ψ 1 (t), . . . , ψ m−1 (t), ψ m (t)] is the vector of independent contribution of hidden neurons at time t, adding 1 hidden neuron and the number of hidden neurons is M 1 =m+1; Otherwise, the structure of self-organizing recurrent RBF neural network is not adjusted, M 1 =m; 
         [0038]    When the activity degree and independent contribution of the ith hidden neuron satisfy: 
         [0000]        S   i ( t )=min  S ( t ),   (Equation 21)
 
         [0000]      ψ i ( t )=min ψ( t ),   (Equation 22)
 
         [0039]    deleting the ith hidden neuron and updating the number of hidden neurons M 2 =M 1 −1; otherwise the structure of self-organizing recurrent RBF neural network is not adjusted, M 2 =M 1 ; 
         [0040]    {circle around (7)} increasing one learning step s, if s&lt;N, then turning to step{circle around (3)}; if s=N, turning to step{circle around (8)}. 
         [0041]    {circle around (8)} according to Eq. (5), calculating the performance of self-organizing recurrent RBF neural network. If E(t)≧E d , then turning to step {circle around (3)}; if E(t)&lt;E d , stopping the training process. 
         [0042]    (4) BOD concentration prediction; 
         [0043]    The testing samples are used as the input of self-organizing recurrent RBF neural network, and the output of neural network is the computed values of BOD concentration. 
         [0044]    The novelties of this disclosure contain: 
         [0045]    (1) In order to detect BOD concentrations online with acceptable accuracy, an intelligent detection method is developed in this disclosure. The results demonstrate that BOD trends in WWTP can be predicted with acceptable accuracy using DO, SS, pH data and COD as input variables. This intelligent detection method not only solves the problem of measured online for BOD concentrations with acceptable accuracy but also gets rid of the complicated process of developing new sensors and reduces the operation cost in WWTP. 
         [0046]    (2) This intelligent detection method is based on the self-organizing recurrent RBF neural network by exploiting the activity degree and independent contribute of hidden neurons. The implementations of this disclosure may optimize both parameters and the network size during the learning process simultaneously. Accordingly, online measurement may be performed for detection of BOD concentrations with high measurement precision and strong adaptation for environment. 
         [0047]    This disclosure utilizes four input variables in this intelligent detection method to predict the BOD concentration. In fact, it is in the scope of this disclosure that any of the variables: oxidation-reduction potential (ORP), DO, temperature, SS, pH, COD and total nitrogen (TN), may be used to predict effluent TP concentrations. Moreover, this intelligent detection method is also able to predict the others variables in urban WWTP. 
         [0048]    This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0049]    The detailed description is described with reference to the accompanying figures. In the figures, the left-most digit(s) of a reference number identifies the figure in which the reference number first appears. The same reference numbers in different figures indicate similar or identical items. 
           [0050]      FIG. 1  shows a structure of an intelligent detection method based on a self-organizing recurrent RBF neural network in accordance with implementations of this disclosure. 
           [0051]      FIG. 2  shows training results of an intelligent detection method. 
           [0052]      FIG. 3  shows a training error of an intelligent detection method. 
           [0053]      FIG. 4  shows a predicting result of an intelligent detection method. 
           [0054]      FIG. 5  shows a predicting error of an intelligent detection method. 
           [0055]      FIGS. 6-17  show tables in accordance with implementations of the present disclosure. Tables 1-12 show the experimental data in this disclosure. Tables 1-4 show training samples of chemical oxygen demand (COD), DO, pH, SS concentration. Table 5 shows real output values of BOD concentrations. Table 6 shows outputs of the self-organizing recurrent RBF neural network in the training process. Tables 7-10 show the testing samples of chemical oxygen demand (COD), DO, pH, SS concentration. Table 11 shows real output values of BOD concentration. Table 12 shows the outputs of the self-organizing recurrent RBF neural network in the predicting process. Moreover, the samples are imported as the sequence from the tables. The first data is in the first row and the first column. Then, the second data is in the first row and the second column. Until all of data is imported from the first row, the data in the second row and following rows are inputted as the same way. 
       
    
    
     DETAILED DESCRIPTION 
       [0056]    This disclosure takes suspended solids concentrations (SS), dissolved oxygen (DO), pH, chemical oxygen demand (COD) as characteristic variables for BOD, except for the pH (no unit), the unit of the above parameters is mg/L; 
         [0057]    The experimental data comes from water quality analysis statement of a wastewater treatment plant in 2012; choosing data of SS concentrations, DO, pH and COD as experimental samples, after eliminating abnormal sample, 100 groups of data are available, and the group of 60 are used as training samples, and the remaining 40 groups are used as test samples. 
         [0058]    This disclosure adopts the following technical scheme and implementation steps: 
         [0059]    An intelligent detection method for the BOD concentration based on a self-organizing recurrent RBF neural network is described using the following operations. 
         [0060]    (1) Determining the input and output variables of BOD: For sewage treatment process of activated sludge system, sewage treatment process variables are analyzed and select the input variables of BOD computing model: DO concentration, effluent SS concentration, pH, COD. The output value of computing model is the detected BOD concentration. 
         [0061]    (2) Computing model of intelligent detection of BOD: establishing a computing model of BOD based on a self-organizing recurrent RBF neural network. The structure of recurrent RBF neural network may include three layers: input layer, hidden layer and output layer. The network is 4-m-1, named the number of input layer is 4 and hidden neurons is m. Connection weights between input layer and hidden layer are assigned one, the connection weights between hidden layer and output layer randomly assign values, the assignment interval is [1, 1]. The number of the training sample is N and the input of self-organizing recurrent RBF neural network is x(t)=[x 1 (t), x 2 (t), x 3 (t), x 4 (t)] at time t. The expectation output of neural network output is expressed as y d (t) and the actual output is expressed as y(t). Computing method of BOD can be described: 
         [0062]    {circle around (1)} The input Layer: There are 4 neurons which represent the input variables in this layer. The output values of each neuron are as follows: 
         [0000]        u   i ( t )= x   i ( t );   (Equation 23)
 
         [0063]    wherein u i (t) is the ith output value at time t, i=1, 2, . . . , 4, and the input vector is x(t)=[x 1 (t), x 2 (t), . . . x 4 (t)]. 
         [0064]    {circle around (2)} The Hidden Layer: There are m neurons of hidden layer. The outputs of hidden neurons are: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         θ 
                         j 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       e 
                       
                         - 
                         
                           
                             
                                
                               
                                 
                                   
                                     h 
                                     j 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 - 
                                 
                                   
                                     c 
                                     j 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                               
                                
                             
                             2 
                           
                           
                             2 
                              
                             
                               
                                 σ 
                                 j 
                                 2 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     j 
                     = 
                     1 
                   
                   , 
                   2 
                   , 
                   … 
                    
                   
                       
                   
                   , 
                   m 
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     24 
                   
                   ) 
                 
               
             
           
         
       
     
         [0065]    c j  (t) denotes the center vector of the jth hidden neuron and c j (t)=[c 1j (t), c 2j (t), . . . , c 4j (t)] T  at time t, ∥h j (t)−c j (t)∥ is the Euclidean distance between h j (t) and c j (t), and σ j (t) is the radius or width of the jth hidden neuron at time t, h j (t) is input vector of the jth hidden neuron at time t described as 
         [0000]        h   j ( t )=[ u   1 ( t ),  u   2 ( t ), . . .  u   4 ( t ),  v   j ( t )× y ( t− 1)] T ,   (Equation 25)
 
         [0066]    y(t−1) is the output value of the output layer at time t−1, v j (t) denotes the connection weight from output layer to the jth hidden neuron at time t, and v(t)=[v 1 (t), v 2 (t), . . . , v m (t)] T , T represents transpose; 
         [0067]    {circle around (3)} The Output Layer: There is only one node in this layer, the output is: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       y 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         f 
                          
                         
                           ( 
                           
                             
                               w 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             , 
                             
                               θ 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                       
                       = 
                       
                         
                           ∑ 
                           
                             j 
                             = 
                             1 
                           
                           m 
                         
                          
                         
                           
                             
                               w 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                           × 
                           
                             
                               θ 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     j 
                     = 
                     1 
                   
                   , 
                   … 
                    
                   
                       
                   
                   , 
                   m 
                   , 
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     26 
                   
                   ) 
                 
               
             
           
         
       
     
         [0068]    wherein w(t)=[w 1 (t), w 2 (t), . . . , w m (t)] T  is the connection weights between the hidden neurons and output neuron at time t, θ(t)=[θ 1 (t), θ 2 (t), . . . , θ m (t)] T  is the output vector of the hidden layer, y(t) represents the output of recurrent RBF neural network at time t. 
         [0069]    The error of self-organizing recurrent RBF neural network is: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       E 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         1 
                         N 
                       
                        
                       
                         
                           ∑ 
                           
                             t 
                             = 
                             1 
                           
                           N 
                         
                          
                         
                           
                             ( 
                             
                               
                                 
                                   y 
                                   d 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               - 
                               
                                 y 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                             ) 
                           
                           2 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     27 
                   
                   ) 
                 
               
             
           
         
       
     
         [0070]    y d (t) is the expectation output of neural network and the actual output is expressed as y(t); 
         [0071]    (3) Training the self-organizing recurrent RBF neural network; 
         [0072]    {circle around (1)} Providing the self-organizing recurrent RBF neural network, the initial number of hidden layer neurons is m, and m&gt;2 is a positive integer. The input of self-organizing recurrent RBF neural network is x(1), x(2), . . . , x(t), . . . , x(N), correspondingly, the expectation output is y d (1), y d (2), . . . , y d (t), . . . , y d (N), expected error value is set to E d , E d ∈(0, 0.01). The every variable of initial centre value c j (1) ∈(−2, 2), width value σ j (1) ∈(0, 1), initial feedback weight v j (1) ∈(0, 1), j=1, 2, . . . , m; initial weight w(1) ∈(0, 1); 
         [0073]    {circle around (2)} Setting the learning step s=1; 
         [0074]    {circle around (3)} t=s; According to Equations (1)-(4), calculating the output of self-organizing recurrent RBF neural network by exploiting a fast gradient descent algorithm: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         c 
                         j 
                       
                        
                       
                         ( 
                         
                           t 
                           + 
                           1 
                         
                         ) 
                       
                     
                     = 
                     
                       
                         
                           c 
                           j 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                       - 
                       
                         
                           η 
                           c 
                         
                          
                         
                           1 
                           
                             σ 
                             j 
                             2 
                           
                         
                          
                         
                           ( 
                           
                             
                               
                                 y 
                                 d 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             - 
                             
                               y 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                          
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         × 
                         
                           
                             θ 
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                            
                           
                             [ 
                             
                               
                                 
                                   h 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   c 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                             ] 
                           
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     28 
                   
                   ) 
                 
               
             
             
               
                 
                   
                     
                       
                         σ 
                         j 
                       
                        
                       
                         ( 
                         
                           t 
                           + 
                           1 
                         
                         ) 
                       
                     
                     = 
                     
                       
                         
                           σ 
                           j 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                       - 
                       
                         
                           η 
                           σ 
                         
                          
                         
                           1 
                           
                             σ 
                             j 
                             3 
                           
                         
                          
                         
                           ( 
                           
                             
                               
                                 y 
                                 d 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                             - 
                             
                               y 
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                          
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         × 
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         × 
                         
                           θ 
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                          
                         
                           
                              
                             
                               
                                 
                                   h 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                               - 
                               
                                 
                                   c 
                                   j 
                                 
                                  
                                 
                                   ( 
                                   t 
                                   ) 
                                 
                               
                             
                              
                           
                           2 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     29 
                   
                   ) 
                 
               
             
             
               
                 
                   
                       
                   
                    
                   
                     
                       
                         
                           v 
                           j 
                         
                          
                         
                           ( 
                           
                             t 
                             + 
                             1 
                           
                           ) 
                         
                       
                       = 
                       
                         
                           
                             v 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         - 
                         
                           
                             
                               η 
                               v 
                             
                              
                             
                               ( 
                               
                                 
                                   
                                     y 
                                     d 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 - 
                                 
                                   y 
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                               
                               ) 
                             
                           
                            
                           
                             
                               w 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                            
                           
                             θ 
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                            
                           
                             y 
                              
                             
                               ( 
                               
                                 t 
                                 - 
                                 1 
                               
                               ) 
                             
                           
                         
                       
                     
                     , 
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     30 
                   
                   ) 
                 
               
             
             
               
                 
                   
                       
                   
                    
                   
                     
                       
                         
                           w 
                           j 
                         
                          
                         
                           ( 
                           
                             t 
                             + 
                             1 
                           
                           ) 
                         
                       
                       = 
                       
                         
                           
                             w 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                         - 
                         
                           
                             
                               η 
                               w 
                             
                              
                             
                               ( 
                               
                                 
                                   
                                     y 
                                     d 
                                   
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                                 - 
                                 
                                   y 
                                    
                                   
                                     ( 
                                     t 
                                     ) 
                                   
                                 
                               
                               ) 
                             
                           
                            
                           
                             
                               θ 
                               j 
                             
                              
                             
                               ( 
                               t 
                               ) 
                             
                           
                         
                       
                     
                     , 
                   
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     31 
                   
                   ) 
                 
               
             
           
         
       
     
         [0075]    η c , η σ , η v , η w  are the learning rate of center, width, feedback connection weight from output layer to hidden layer and the connection weight between hidden layer and output layer, respectively. In addition, η c ∈(0, 0.01], η σ ∈(0, 0.01], η v ∈(0, 0.02], η w ∈(0, 0.01]; c j (t−1)=[c 1j (t+1), c 2j (t+1), c 4j (t+1)] denotes the center vector of the jth hidden neuron at time t+1; σ j (t+1) is the radius or width of the jth hidden neuron at time t+1; v j (t+1) denotes the connection weight from output layer to the jth hidden neuron at time t+1; w j (t+1) is the connection weights between the hidden neurons and output neuron at time t+1; 
         [0076]    {circle around (4)} t&gt;3, calculating independent contribution: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       
                         ψ 
                         j 
                       
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           
                             q 
                             j 
                           
                            
                           
                             ( 
                             
                               t 
                               - 
                               1 
                             
                             ) 
                           
                         
                         + 
                         
                           
                             q 
                             j 
                           
                            
                           
                             ( 
                             t 
                             ) 
                           
                         
                       
                       
                         
                           ∑ 
                           
                             j 
                             = 
                             1 
                           
                           m 
                         
                          
                         
                           ( 
                           
                             
                               
                                 q 
                                 j 
                               
                                
                               
                                 ( 
                                 
                                   t 
                                   - 
                                   1 
                                 
                                 ) 
                               
                             
                             + 
                             
                               
                                 q 
                                 j 
                               
                                
                               
                                 ( 
                                 t 
                                 ) 
                               
                             
                           
                           ) 
                         
                       
                     
                   
                   , 
                   
                     
 
                   
                    
                   
                     j 
                     = 
                     1 
                   
                   , 
                   … 
                    
                   
                       
                   
                   , 
                   m 
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     32 
                   
                   ) 
                 
               
             
           
         
       
     
         [0077]    wherein ψ j (t) is the independent contribution of the jth hidden neuron at time t; q j (−1) is independent contribution output of the jth hidden neuron at time t−1. q j (t) is independent contribution output of the jth hidden neuron at time t; Moreover, q j [q j (t−1), q j (t)] is independent contribution output vector of the jth hidden neuron; Q(t)=[q 1 (t), . . . q m−1 (t), q m (t)] T  is the independent contribution matrix at time t, 
         [0000]        Q ( t )=Φ( t )Ω( t ),   (Equation 33)
 
         [0078]    wherein Ω(t) is a coefficients matrix which is provided as: 
         [0000]      Ω( t )= D   −1 ( t )Φ( t ) B ( t ) z ( t ),   (Equation 34)
 
         [0079]    wherein Φ(t)=[θ(t−1), θ(t)] is output matrix of hidden layer at time t, θ(t−1)=[θ 1 (t−1), θ 2 (t−1), . . . , θ m (t−1)] T  is output vector of hidden layer at time t−1, θ(t)=[θ 1 (t), θ 2 (t), . . . , θ m (t)] T  is output vector of hidden layer at time t; D(t), B(t) and z(t) are the covariance matrix of Φ(t), the whitening matrix of y(t) and the whitening transformation matrix of y(t), respectively. D(t), B(t) and z(t) are provided as: 
         [0000]    
       
         
           
             
               
                 
                   
                     
                       D 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       [ 
                       
                         
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                   2 
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                         
                         
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           
                                             t 
                                             - 
                                             1 
                                           
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                    
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                           
                             
                               
                                 
                                   ∑ 
                                   
                                     j 
                                     = 
                                     1 
                                   
                                   m 
                                 
                                  
                                 
                                   
                                     ( 
                                     
                                       
                                         
                                           θ 
                                           j 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                       - 
                                       
                                         
                                           θ 
                                           _ 
                                         
                                          
                                         
                                           ( 
                                           t 
                                           ) 
                                         
                                       
                                     
                                     ) 
                                   
                                   2 
                                 
                               
                               
                                 m 
                                 - 
                                 1 
                               
                             
                           
                         
                       
                       ] 
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     35 
                   
                   ) 
                 
               
             
             
               
                 
                   
                     
                       B 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           Λ 
                           
                             
                               - 
                               1 
                             
                             / 
                             2 
                           
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                         
                           U 
                           T 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     36 
                   
                   ) 
                 
               
             
             
               
                 
                   
                     
                       z 
                        
                       
                         ( 
                         t 
                         ) 
                       
                     
                     = 
                     
                       
                         
                           Λ 
                           
                             
                               - 
                               1 
                             
                             / 
                             2 
                           
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                         
                           U 
                           T 
                         
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                        
                       
                         y 
                          
                         
                           ( 
                           t 
                           ) 
                         
                       
                     
                   
                   , 
                 
               
               
                 
                   ( 
                   
                     Equation 
                      
                     
                         
                     
                      
                     37 
                   
                   ) 
                 
               
             
           
         
       
     
         [0080]    wherein  θ (t−1)=(0 1 (t−1)+0 2 (t−1)+. . . +0 m (t−1))/m is the average value of elements of output vector in hidden layer at time t−1,  θ (t)=(θ 1 (t)+θ 2 (t)+ . . . +θ m (t))/m is the average value of elements of output vector in hidden layer at time t; ∪(t) and Λ(t) are the eigenvector and eigenvalue matrices of y(t); y(t) is the output matrix of self-organizing recurrent RBF neural network at time t, 
         [0000]        y ( t )=Φ( t )δ( t ),   (Equation 38)
 
         [0081]    wherein δ(t) is the weight matrix of hidden layer to output layer, 
         [0000]      δ( t )=[ w ( t− 1), w ( t )]  (Equation 39)
 
         [0082]    wherein w(t−1)=[w 1 (t−1) , w 2 (t−1), . . . , w m (t−1)] T  and w(t)=[w 1 (t) , w 2 (t), . . . , w m (t)] T  are the output of self-organizing recurrent RBF neural network, the output vector of the hidden layer and the weight vector at time t−1 and time t, respectively. 
         [0083]    {circle around (5)} t&gt;3, calculating activity degree of hidden neuron: 
         [0000]        S   j ( t )= e   −∥h   j   (t)−c   j   (t)∥ ,   (Equation 40)
 
         [0084]    wherein S j (t) is the activity degree of the jth hidden neuron at time t, j=1, 2, . . . m. 
         [0085]    {circle around (6)} t&gt;3, adjusting the structure of the self-organizing recurrent RBF neural network: 
         [0086]    In the process of adjusting structure of neural network, calculating the activity degree of the lth hidden neuron S / (t) and the independent contribution of the /th hidden neuron ψ / )/(t). 
         [0087]    When the activity degree and independent contribution of the lth hidden neuron satisfy: 
         [0000]        S   l ( t )=max  S ( t ),   (Equation 41)
 
         [0000]      ψ l ( t )=max ψ( t ),   (Equation 42)
 
         [0088]    wherein S(t)=[S 1 (t), . . . , S m−1 (t), S m (t)] is the vector of activity degree of hidden neurons at time t, ψ(t)=[ψ 1 (t), . . . , ψ m−1 (t), ψ m (t)] is the vector of independent contribution of hidden neurons at time t; adding one hidden neuron and the number of hidden neurons is M 1 =m+1; Otherwise, the structure of self-organizing recurrent RBF neural network is not adjusted, M 1 =m; 
         [0089]    When the activity degree and independent contribution of the ith hidden neuron satisfy: 
         [0000]        S   i ( t )=min  S ( t ),   (Equation 43)
 
         [0000]      ψ i ( t )=min ψ( t ),   (Equation 44)
 
         [0090]    deleting the ith hidden neuron and updating the number of hidden neurons M 2 =M 1 −1; otherwise the structure of self-organizing recurrent RBF neural network is not adjusted, M 2 =M 1 ; 
         [0091]    {circle around (7)} increasing one learning steps, if s&lt;N, then turning to step {circle around (3)}; if s=N, turning to step {circle around (8)}. 
         [0092]    {circle around (8)} according to Eq. (5), calculating the performance of self-organizing recurrent RBF neural network. If E(t)≧E d , then turning to step {circle around (3)}; if E(t)&lt;E d , stopping the training process. 
         [0093]    The training result of the intelligent detection method for BOD concentration is shown in  FIG. 2 . X axis shows the number of samples. Y axis shows the BOD concentration. The unit of Y axis is mg/L. The solid line presents the real values of BOD concentrations. The dotted line shows the outputs of intelligent detection method in the training process. The errors between the real values and the outputs of intelligent detection method in the training process are shown in  FIG. 3 . X axis shows the number of samples. Y axis shows the training error. The unit of Y axis is mg/L. 
         [0094]    (4) BOD concentration prediction; 
         [0095]    The testing samples used as the input of self-organizing recurrent RBF neural network, the output of neural network is the computing values of BOD concentration. The predicting result is shown in  FIG. 4 . X axis shows the number of testing samples. Y axis shows the BOD concentration. The unit of Y axis is mg/L. The solid line presents the real values of BOD concentration. The dotted line shows the outputs of intelligent detection method in the testing process. The errors between the real values and the outputs of intelligent detection method in the testing process are shown in  FIG. 5 . X axis shows the number of samples. Y axis shows the testing error. The unit of Y axis is mg/L. 
       CONCLUSION 
       [0096]    Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts are disclosed as example forms of implementing the claims.