Abstract:
The invention relates to apparatus and a method for measuring NO x  in biochemical processes, and to apparatus and methods for real time measuring the nitrification and/or denitrification rate of a liquid with or without suspended solids.

Description:
This application is a divisional of application Ser. No. 09/206,543, filed Dec. 7, 1998, now U.S. Pat. No. 5,976,888, incorporated herein by reference. 
    
    
     FIELD OF THE INVENTION 
     The present invention relates to apparatus and methods for measuring amounts of NO x  (nitrate (NO 3 ) and/or nitrite (NO 2 )) and nitrification/denitrification rates in liquid and controlling the treatment thereof, more particularly, to apparatus and methods for real time measuring the amount of NO x  in liquids and nitrification/denitrification rates of liquids in a biochemical process and using the results of such measurement to control and/or adjust selected aspects of the process. 
     BACKGROUND OF THE INVENTION 
     The prior art has employed many devices and systems to process and purify water from industrial operations and municipal sources prior to discharging the water. Wastewater treatment plants (WWTP&#39;s), which are well known in the art, have been most often utilized to address this problem. Additionally, many industrial and municipal water treatment plants utilize biological systems to pre-treat their wastes prior to discharging into the usual municipal treatment plant. 
     Microorganisms used in the sludge break down or degrade contaminants for the desired water treatment in these processes. Efficient process performance and control requires quick and accurate assessment of information on the activity of the microorganisms. This has proven to be a difficult task in view of the wide variety of materials and contaminants that typically enter into treatment systems. Also, variations in the quantity of wastewater being treated, such as daily, weekly or seasonal changes, can dramatically change numerous important factors in the treatment process, such as pH, temperature, dissolved oxygen, nutrients and the like, alteration of which can be highly detrimental to proper wastewater treatment. Improperly treated wastewater poses serious human health dangers. 
     Various biological nutrient removal (BNR) processes are often used in biochemical systems/plants/processes. “BNR” is used hereinafter in a very generic sense, namely any biochemical process that uses microorganisms to remove nutrients. In BNR processes, contaminants in liquids such as wastewater, particularly carbon sources (measured as biochemical oxygen demand or BOD), ammonia, nitrates, phosphates and the like are digested by activated sludge in anaerobic, anoxic and aerobic (oxic) stages, also known in the art. In the anaerobic stage, wastewater, with or without passing through a preliminary settlement process, is mixed with return activated sludge (RAS), sometimes hereinafter referred to as “mixed liquor.” 
     It is, of course, important to quantify the various contaminants in the wastewater. One of those contaminants that is important to quantify is the amount of NO x . This is because quantification of the amount of NO x  provides valuable information about nitrification and denitrification processes. Also, it is important to determine the nitrification or denitrification rate to facilitate adjustment of various system parameters, such as retention time, to enhance the treatment process and increase treatment system efficiency in response to this important information. 
     OBJECTS OF THE INVENTION 
     It is an object of the present invention to provide apparatus and a method for measuring the amount of NO x  in biochemical systems to maximize the efficiency of the treatment process. 
     It is a further object of the present invention to provide apparatus and a method for measuring nitrification and/or denitrification rates to enhance control of biochemical processes, to maximize process performance in response to transient and other conditions. 
     Other objects of the present invention will be apparent to those of ordinary skill in the art based on the following drawings, detailed description of preferred embodiments and the appended claims. 
     SUMMARY OF THE INVENTION 
     One aspect of the invention includes a method of measuring the nitrification rate for a liquid including isolating a first liquid sample at t 0 ; recording a value of ammonia [NH 3 ] 1  present in the first sample at a predetermined time t 1 ; isolating a second liquid sample and introducing air into the second liquid sample after another predetermined time t 2 ; terminating the introduction of air into the second liquid sample and adjusting the pH of the second sample at t 3 ; recording another value of ammonia [NH 3 ] 2  in the second sample at a predetermined time t 4 ; and determining the nitrification rate of the liquid according to the following formula:        NR   =       Δ        [     NH   3     ]         Δ                 t                              
     wherein NR is the nitrification rate, Δt is t 2 −t 3  and Δ[NH 3 ] is [NH 3 ] 1 −[NH 3 ] 2 . 
     Another aspect of the invention includes another method of measuring a nitrification rate for liquids including isolating first and second liquid samples and introducing air into the second liquid sample at t 0 ;recording a value of ammonia [NH 3 ] 1  present in the first sample and terminating introduction of air into the second sample at t 1 ; recording a value of ammonia [NH 3 ] 2  present in the second sample at t 2 ; and determining the nitrification rate of the liquid according to the following formula:        NR   =       Δ        [     NH   3     ]         Δ                 t                              
     wherein NR is the nitrification rate, Δt is t 1 −t 2  and Δ[NH 3 ] is [NH 3 ] 1 −[NH 3 ] 2 . 
     The words “ammonia” ([NH 3 ]) and “ammonium” ([NH 4 +]) are hereafter often used interchangeably regarding the concentration of ammonia in the aqueous phase. This is because at a given pH, there exists a chemical equilibrium between ammonia molecules and ammonium ions in the aqueous phase. This equilibrium is described in the following form with the equilibrium constant equal to one, at pH=9.25. 
     
       
         NH 3 +H 2 O←→NH 4   + +OH −   
       
     
     The measurements of ammonia [NH 3 ] and ammonium [NH 4   + ] are substantially equivalent so long as the pH value of the solution is known. It is advantageous to measure ammonium concentration, [NH 4   + ], at a lower pH(pH&lt;6), while the measurement of ammonia concentration, [NH 3 ], is more convenient at an elevated pH(pH&gt;8). The discussion of this invention often refers to the ammonia concentration as [NH 3 ] measured with an ammonia selective probe, with the understanding that at a lower pH, it can be replaced by [NH 4   + ] measured with an ammonium ion selective probe. 
     The invention also includes a method of measuring NO x  in liquids, especially wastewater. This method is different from other analyzing methods in that there is no need to prepare the sample by filtration or other method of solids removal. The method includes isolating a wastewater sample; adjusting the pH and/or ionic strength of the sample to a predetermined level for a predetermined time interval t 1 ; recording a value of [NO x ] 1  present in the sample with an NO x  selective probe(s); recording another value of [NO x ] 2  present in the sample after another predetermined time interval t 2 ; determining NO x  concentrations in the sample at each predetermined time interval t 1  and t 2  according to the following formula: 
     
       
         [NO x ]=10 a·mV+b   
       
     
     wherein a and b are linear coefficients of the NO x  probe and mV reading is from the NO x  ion selective probe(s); determining the changes in NO x  according to the following formula: 
     
       
         Δ[NO x ]=[NO x ] 2 −[NO x ] 1 ; and 
       
     
     determining the NO x  concentration of the sample according to the following formula:          [     NO   x     ]     =         [     NO   x     ]     1     -         Δ        [     NO   x     ]         Δ                 t       ·       t   1     .                                
     In yet another aspect of the invention, the rate of denitrification may be determined. The denitrification rate (DR) may be determined as follows: isolating a liquid sample at t 0 ; recording a value of [NO x ] 1  present in the sample at a predetermined time t 0 ; recording a value of [NO x ] 2  present in the sample at a predetermined time t 2 ; and determining the denitrification rate of the liquid according to the following formula:          DR   =       Δ        [     NO   x     ]         Δ                 t         ,                          
     wherein Δ[NO x ] is [NO x ] 1 −[NO x ] 2  and Δt=t 2 −t 1 . 
    
    
     DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is a schematic of a typical wastewater treatment process utilizing embodiments of the invention and shows the many locations that detectors can be installed through out the system. 
     FIG. 2 shows a schematic front elevational view of an embodiment of apparatus of the invention used to monitor a bioreactor tank. 
     FIG. 3 shows a schematic front elevational view of another embodiment of apparatus of the invention used to monitor a bioreactor tank. 
     FIG. 4 shows an exploded schematic view, partially taken in section, of wastewater sampling apparatus in accordance with aspects of the invention. 
     FIG. 5 shows an exploded schematic view, partially taken in section, of wastewater sampling apparatus in accordance with another embodiment of the invention. 
     FIG. 6 shows a schematic view, partially taken in section, of solution dispenser apparatus in accordance with aspects of the invention. 
     FIG. 7 is a block diagram of a method to measure NO x  and a method of calibrating an NO x  analyzer in accordance with aspects of the invention. 
     FIG. 8 is a block diagram of a method of determining the rate of denitrification of wastewater. 
     FIG. 9 is a block diagram of a method of determining the rate of nitrification of wastewater. 
     FIG. 10 is a block diagram of another method of determining the rate of nitrification of wastewater. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     The following description is intended to refer to specific embodiments of the invention illustrated in the drawings and is not intended to define or limit the invention, other than in the appended claims. Also, the drawings are not to scale and various dimensions and proportions are contemplated. 
     In order to effectively control the operation of the BNR process, it is necessary to regulate specific process parameters based upon the biological activity of the microorganisms in the anaerobic, anoxic and/or oxic stages of the treatment. Wastewater treatment plants are often subjected to severe transient conditions, such as diurnal variations in organic loads. 
     The proper evaluation and control of a BNR process requires an accurate and current assessment of the amount of NO x  and ammonia in the mixed liquor, the nitrification rate and the denitrification rate, among other things, in a variety of environments and under a number of conditions. 
     The apparatus for quantifying ammonia and/or NO x  and/or nitrification rate and/or denitrification rate can be used in all stages of a WWTP or any combination thereof. Incorporation of the apparatus into a typical WWTP is shown schematically in FIG.  1 . NO x  and/or ammonia measurements may be taken at any point or location in the system shown in FIG.  1 . This includes multiple measurement locations within a selected stage, if desired. The general application and use of the apparatus in the anaerobic, anoxic and/or aerobic stages of a typical wastewater treatment plant will now be discussed. 
     One embodiment of apparatus for sampling wastewater is shown in FIG. 2. A bioreactor tank  1  (or, alternatively, a wastewater channel) contains wastewater  2  and/or sludge. Detection apparatus is mounted on the top of bioreactor tank  1  and extends into wastewater  2 . The apparatus includes a central control and analysis unit  20  connected to optional computer/monitor  13  by wire or wireless connection  22 . Similarly, central control and analysis unit  20  connects to detection probe  10  by way of wire connection  24 . Motor container  26  also connects to central control and analysis unit  20  by way of connection wire  28 . Power is supplied to motor container  26  also by wire connection  28 . 
     Detection probe  10  is positioned in detection chamber  8  and electrically connected to central control and analysis unit  20  to detect changes in the quantity of ammonia or ammonium or NO x  concentration in wastewater samples depending on the configuration. At low pH, a preferred ammonium ion selective probe  10  is an ammonium probe manufactured by HACH or NICO. At mid-high pH a preferred ammonia detection probe  10  is an ammonia gas probe also manufactured by NICO or HACH. A preferred NO 3  and/or NO 2  ion selective probe(s) are manufactured by NICO. Of course, other apparatus can be employed as probes so long as the same or similar detection capabilities are available. 
     Optional computer/monitor  13  may be of any suitable type such as a personal computer or the like. Device  52  consists of two containers (one storing ammonia or NO x  calibration solution and the other storing pH adjustment solution and/or ionic strength adjustment solution) and a delivery device for each, for example, a pump. Device  52  is connected to central control and analysis unit  20  by wire  54 . Device  52  provides ammonia or NO x  calibration and pH adjustment solution and/or ionic strength adjustment solution to the liquid (e.g. wastewater) in detection chamber  8  by connection tube  53  through feed ports  55 . The pH adjustment solution, typically a base for mid to high pH and an acid for low pH, may be selected from a wide variety of pH altering solutions. Bases include NaOH, KOH and the like. Acids include HCl, acetic acid and the like. The ionic strength adjustment solution, typically Al 2 (SO 4 ) 3  solution, or solution of Al 2 (SO 4 ) 3 , Ag 2 SO 4 , H 3 BO 3 , and sulfamic acid, can be selected from a wide variety of solutions for the adjustment of ionic strength of the wastewater sample. Device  52  is described in detail below in conjunction with FIG.  6 . 
     Sampling unit  11  is mounted onto a movable carriage  30  which is capable of moving substantially vertically upwardly and downwardly to move sampling unit  11  into and out of wastewater  2 . The precise structure of movable carriage  30  is not critical so long as the preferred capability or movability of sampling unit  11  is achieved. 
     Detection probe  10  has its detection end located in detection chamber  8 . Detection chamber  8  has an opening  66  and an adjacent movable cover  32  which moves vertically upwardly and downwardly along guide channels  34  and closes or seals opening  66 . 
     FIG. 3 shows another embodiment of apparatus for sampling wastewater. The embodiment shown in FIG. 3 is similar to that shown in FIG. 2 except that apparatus providing for additional sampling capability is provided. Specifically, another detection chamber  8  having a probe  10  is mounted adjacent to the detection chamber/probe configuration shown in FIG.  2 . Of course, additional connections are provided to the control and analysis unit  20  and solution supplied by device  52 . 
     FIG. 4 shows detection chamber  8  having a detection probe  10 A with a detection end  50 A. Detection probe  10 A may be an ammonia, ammonium or an NO x  detection probe. Detection chamber  8  also has an optional detection probe  10 B with a detection end  50 B. Optional detection probe  10 B is a pH probe. Detection chamber  8  still further has feed ports  55 A and  55 B. Feed device  52  feeds pH adjustment solution and/or ionic strength adjustment solution into detection chamber  8  through feed port  55 B. Feed device  52  feeds ammonia or NO x  to detection chamber  8  through feed port  55 A. Propeller  48  is located interiorly of detection chamber  8  and stirs or agitates samples when probes  10 A and  10 B are in operation. Cover  32  is in an open position which, when closed, covers opening  66 . 
     Propeller  48  is connected to motor container  26  by way of a series of coaxial tubes  102 ,  104  and  106 . An adaptor  108  and a thrust bearing sleeve  112  are contained in and attached to middle tube  104 . Outside tube  102  is mounted to base  101 . Adaptor  108  is attached to threaded rod  110  to either open or close cover  32  depending on motor direction of linear actuator motor  116 . Middle tube  104  travels axially only if induced drag on middle tube  104  exceeds an amount of torque required for linear actuator motor  116  to turn on threaded rod  110 . This drag can be induced by propeller  48  attached to middle tube  104  and/or any bushings or other hardware in contact with middle tube  104 . Thrust bearing sleeve  112  holds bearing  114  which carries axial tension of central tube  106  when cover  32  is closed. Bearing  114  allows middle tube  104  to rotate independently of central tube  106  and transfers axial motion of tube  104  to central tube  106 . Outside tube  102  supports both base  101  and chamber  8  while protecting the internal parts. Chamber  8  is substantially sealed to outside tube  102  and when cover  32  is pulled against chamber  8  the space inside chamber  8  is sealed. 
     When linear actuator motor  116  rotates in one direction threaded rod  110  travels downward, pushing cover  32  open. When nut  118  reaches thrust bearing  119 , threaded rod  110  no longer travels axially and this causes middle tube  104  to substantially match the motor speed. Chamber  8  is then in an open condition and propeller  48  induces an exchange of fluid between the inside and outside of chamber  8 . 
     When linear actuator motor  116  rotates in the opposite direction, threaded rod  110  travels upward, pulling cover  32  closed. When chamber  8  is closed, axial motion of threaded rod  110  is prevented by tension on middle tube  104 . This causes middle tube  104  to rotate at the same speed as motor  116 . Chamber  8  is then in a closed position so that fluid is retained inside chamber  8  while being constantly mixed by propeller  48 . 
     FIG. 5 shows another embodiment of a chamber  8  configuration containing an optional additional detection probe. All other components are the same as shown in FIG.  4 . Optional detection probe  10 C has a detection end  50 . Optional detection probe  10 C is a dissolved oxygen probe. It connects to central control and analysis unit  20  by way of connection  24 C. 
     Referring to FIG. 6, device  52  is constructed to accurately dispense various solutions to other components of the overall system. Device  52  includes a housing  198  and preferably contains two solution containers  200  and  202 , although it may be configured to contain only one or more than two solution containers. The containers  200  and  202  have corresponding solution pumps  204  and  206  connected to their respective solution containers with pump feeding lines  208  and  210 . The pump feeding lines are preferably equipped with a sharp or needle-type device  212  and  214  that extend though housing  198 . 
     Each solution container is preferably made of a plastic material that is pierceable by the needle or sharp device, whereby when the solution container is lowered onto the needle, it punctures the container to provide access to the solution. Most preferably, the container is shaped to urge liquid in the solution container to flow towards the needle device. 
     Since it is important that the solutions remain uncontaminated and retain their precise concentration, for measurement purposes, it is important that they are sealed. However, in emptying the container, it is highly preferred to provide a means for air to fill in the space created in the container when solution is removed. This may be achieved by a number of means, although it is highly preferred to use needle-type device  216  and  218  to puncture solution containers  200  and  202  and provide air access to the interior of the solution containers. The needle-type device  216  and  218  are connected to air lines  230  and  232 . 
     Each pump  204  and  206  connected to the respective solution containers connects control and analysis unit  20  (not shown in FIG.  6 ), by line  222  and  224 . The pumps  204  and  206  also connect to detection chamber(s)  8  (not shown in FIG.  6 ), by way of solution feeding lines  226  and  228  to supply the metered or precise quantity of solution to detection chamber(s)  8  at the specific time. 
     Of course, the solution within the containers may vary. However, the preferred solution(s) are ammonium chloride or sodium nitrate. The pH and/or ionic strength adjustment solution(s) also can also be held in the containers. Other solutions may be utilized in accordance with the particular need. Solutions may, of course, be in various concentrations as needed. 
     NO x  is often a main part of the contaminants in wastewater. Therefore, a fast and easy method for real-time measurement of NO x  in wastewater is highly advantageous. Accordingly, one aspect of the invention involves measuring the amount of NO x  in the wastewater. This is performed by a method of measuring NO x  in liquid including isolating a liquid sample; adjusting the pH and/or ionic strength of the sample at time t 0 ; recording a value of NO x  present in the sample with an NO x  selective probe(s) at a predetermined time t 1 ; recording another value of NO x  present in the sample after another predetermined time t 2 ; determining NO x  concentrations in the sample at each predetermined time t 1  and t 2  according to the following formula: 
     
       
         [NO x ]=10 a·mV+b   
       
     
     wherein a and b are linear coefficients of the NO x  probe(s); determining the change in NO x  in the sample according to the following formula: 
     
       
         Δ[NO x ]=[NO x ] 2 −[NO x ] 1 ; and 
       
     
     determining the NO x  concentration of the sample according to the following formula:            [     NO   x     ]     0     =         [     NO   x     ]     1     -         Δ        [     NO   x     ]         Δ                   t   .         ·       (       t   1     -     t   0       )     .                                
     This method is shown in the upper portion of the flow diagram shown in FIG.  7 . 
     The NO x  analyzer can be calibrated according to the lower portion of the block diagram shown in FIG.  7  and according to the following method: 
     a) Collect a mixed liquor sample from the wastewater treatment tank and conduct NO x  analysis as described above, except that the sample is not discharged to the treatment tank after the NO x  concentration is measured. Parameters and intermediate results such as [NO x ] 1 , [NO x ] 2 , mV 1 , mV 2 , Δ[NO x ]/Δt are saved for use in the calibration step. 
     b) After the NO x  concentration is measured, a predetermined volume of nitrate or nitrite solution is injected into the sample container so that the concentration of NO x  in the container increases by a Δ[NO X ] c1 , (e.g. 0.5 ml of 1000 ppm NaNO 3  or NaNO 2  solution for Δ[NO x ] c1 =1 ppm, assuming the sampling chamber has a volume of 500 ml.) 
     c) Wait to t 3  seconds to read the third mV reading from the probe [mV 3 ]. 
     d) Inject a second dose of calibration solution so that the concentration of NO x  increases by a Δ[NO x ] c2 , (e.g. 2.0 ml of 1000 ppm NaNO 3  or NaNO 2  solution for Δ[NO x ] c2 =5 ppm, taken into account of the first dose of calibration solution.) 
     e) Wait to t 4  seconds to read the fourth mV reading from the probe [mV 4].    
     f) Use the following equations to calculate the linear coefficients of NO x , a and b:              log              [     NO   x     ]     0     -         Δ        [     NO   x     ]         Δ                 t       ·     (       t   3     -     t   0       )       +       Δ              [     NO   x     ]     c1       =         a   ·   m                     V   3       +   b                   log              [     NO   x     ]     0     -         Δ        [     NO   x     ]         Δ                 t       ·     (       t   4     -     t   0       )       +       Δ              [     NO   x     ]     c2       =         a   ·   m                     V   4       +   b                            
     g) Use the newly obtained a and b to calculate [NO x ] 0  from mV 0 . If the newly calculated [NO x ] 0  substantially agrees with original [NO x ] 0 , then the calibration is deemed successful, otherwise, use the newly calculated [NO x ] 0  to repeat the calibration process. The calibration is considered complete when the difference between [NO x ] 0   j  and [NO x ] 0   j+1  is within an acceptable, predetermined range. 
     h) Discharge the sample to the treatment tank and start a new measurement cycle. 
     i) The calibration of the NO x  analyzer can be performed as frequently as every measurement cycle, or everyday. The default calibration frequency is preferably once a day. 
     It is still further advantageous to determine the nitrification rate. There are two preferred methods to make such a determination in accordance with the invention. In a first embodiment, the method includes: 
     a) isolating a first liquid sample at t 0 ; 
     b) measuring the concentration of ammonia [NH 3 ] 1  or ammonium [NH 4   + ] 1  present in the sample at a predetermined time t 1 , then releasing the first sample to the treatment tank; 
     c) isolating a second liquid sample and introducing air into the second liquid sample after another predetermined time t 2 ; 
     d) terminating the introduction of air into the second liquid sample and adjusting the pH of the second sample at t 3 ; 
     e) recording another value of ammonia [NH 3 ] 2  or ammonium [NH 4   + ] 2  in the second sample at a predetermined time t 4 ; and 
     f) determining the nitrification rate of the liquid according to the following formula:          NR   =           Δ        [     NH   3     ]         Δ                 t                     or                 NR     =         Δ        [     NH   4   +     ]                      Δ                 t                                             
      wherein NR is the nitrification rate, Δt is t 3 −t 2  and Δ[NH 3 ] is [NH 3 ] 1 −[NH 3 ] 2  or Δ[NH 4   + ] is [NH 4   + ] 1 −[NH 4   + ] 2 . 
     This method is outlined in the flow diagram shown in FIG.  10 . 
     In the second embodiment which uses two sampling units (as shown in FIG.  3 ), the method includes: 
     a) isolating first and second liquid samples and introducing air into the second liquid sample at t 0 ; 
     b) measuring the concentration of ammonia [NH 3 ] 1  or ammonium [NH 4   + ] present in the first sample; 
     c) terminating introduction of air into the second sample at t 1 ; 
     d) measuring the concentration of ammonia [NH 3 ] 2  present in the second sample; and 
     e) determining the nitrification rate of the liquid according to the following formula:          NR   =           Δ        [     NH   3     ]         Δ                 t                     or                 NR     =         Δ        [     NH   4   +     ]                      Δ                 t                                             
      wherein NR is the nitrification rate, Δt is t 1 −t 0  and Δ[NH 3 ] is [NH 3 ] 1 −[NH 3 ] 2  or Δ[NH 4   + ] is [NH 4   + ] 1 −[NH 4   + ] 2 . 
     This method is outlined in the flow diagram shown i FIG.  9 . 
     The preferred operation of the ammonia analyzer in the measurement mode is as follows: 
     a) Collect a mixed liquor sample from the wastewater treatment tank. 
     b) Inject pH adjustment solution to bring the pH of the water phase to about 12.0. This can be done either through a predetermined amount or feedback control by way of a pH probe. This is recorded as time zero, t 1 . 
     c) Wait to t 1  seconds to read the first mV 1  reading from the ammonia probe. 
     d) Wait to t 2  seconds to read the second mV 2  reading from the ammonia probe. 
     e) Use the following equation to calculate ammonia concentrations from mV 1  and mV 2 , where a and b are linear coefficients of the ammonia probe. 
     
       
         [NH 3 ]=10 a·mV+b   
       
     
     f) The amount of released NH 3  from the sample is calculated as:            Δ              [     NH   3     ]       Δ                 t       =           [     NH   3     ]     2     -       [     NH   3     ]     1           t   2     -     t   1                                
     g) The ammonia concentration of the sample is calculated as:            [     NH   3     ]     0     =         [     NH   3     ]     1     -         Δ              [     NH   3     ]       Δ                 t       ·     (       t   1     -     t   0       )                                
     h) After the measurement of ammonia concentration, the sample is discharged to the treatment tank, and a fresh sample is taken for the next analysis. 
     The ammonia analyzer is preferably calibrated according to the following method: 
     a) Collect a mixed liquor sample from the wastewater treatment tank and conduct ammonia analysis as described above, except that the sample is not discharged to the treatment tank after the ammonia concentration is measured. Parameters and intermediate results such as [NH 3 ] 1 , [NH 3 ] 2 , mV 1 , mV 2 , Δ[NH 3 ]/Δt are saved for use in the calibration step. 
     b) After the ammonia concentration is measured, a predetermined volume of ammonia solution is injected into the sample container so that the concentration of ammonia in the container increases by a Δ[NH 3 ] c1 , (e.g. 0.5 ml of 1000 ppm NH 4 C 1 -N solution for Δ[NH 3 ] c1 =1 ppm, assuming the sampling chamber has a volume of 500 ml.) 
     c) Wait to t 3  seconds to read the third mV reading from the probe (mV 3 ). 
     d) Inject a second dose of calibration solution so that the concentration of ammonia increases by a Δ[NH 3 ] c2 , (e.g. 2.0 ml of 1000 ppm NH 4 C 1 -N solution for Δ[NH 3 ] c2 =5 ppm, taken into account of the first dose of calibration solution.) 
     e) Wait to t 4  seconds to read the fourth mV reading from the probe (mV 4 ). 
     f) Use the following equations to calculate the linear coefficients of ammonia, a and b:              log              [     NH   3     ]     0     +         Δ        [     NH   3     ]         Δ                 t       ·     (       t   3     -     t   0       )       +       Δ              [     NH   3     ]     c1       =         a   ·   m                     V   3       +   b                   log              [     NH   3     ]     0     +         Δ        [     NH   3     ]         Δ                 t       ·     (       t   4     -     t   0       )       +       Δ              [     NH   3     ]     c2       =         a   ·   m                     V   4       +   b                            
     g) Use the newly obtained a and b to calculate [NH 3 ] 0  from mV 0 . If the newly calculated [NH 3 ] 0  substantially agrees with original [NH 3 ] 0 , then the calibration is deemed successful, otherwise, use the newly calculated [NH 3 ] 0  to repeat the calibration process. The calibration is considered complete when the difference between [NH 3 ] 0   j  and [NH 3 ] 0   j+1  is within an acceptable, predetermined range. 
     h) Discharge the sample to the treatment tank and start a new measurement cycle. 
     The calibration of the ammonia analyzer can be performed as frequently as every measurement cycle, or everyday. The default calibration frequency is preferably once a day. 
     It is also advantageous to determine the denitrification rate (DR). Determination of DR depends on the concentrations of NO x . It is calculated according to the method shown in the flow diagram of FIG.  8 . The method includes: 
     a) isolating a liquid sample at t 0 ; 
     b) measuring the concentration of NO x  ([NO x ] 1 ) present in the sample at a predetermined time t 1 ; 
     c) measuring the concentration of NO x  ([NO x ] 2 ) present in the sample at a predetermined time t 2 ; and 
     d) determining the denitrification rate of the liquid according to the following formula:          DR   =       Δ        [     NO   x     ]         Δ                 t         ,                          
      wherein Δ[NO x ] is [NO x ]−[NO x ] 2  and Δt=t 2 −t 1 . 
     One practical application of determining nitrification rate NR in the monitoring and control of wastewater treatment process is to evaluate and optimize the bioreactor &#39;s operation. When NR is measured on a real time basis, the information will answer the following: 
     1) Whether the activated sludge has nitrification ability, i.e. the presence of nitrification bacteria in the biomass. A low or near zero NR value indicates that the nitrifier population in the biomass is low or does not exist, whereas a high value of NR indicates a proper nitrification process. 
     2) Under the current wastewater loading to the plant, to what degree has nitrification been achieved? When NR is determined, the required time for proper ammonia removal can be calculated based on the nutrient loading. This required nitrification time can be compared with the current hydraulic retention time in the bioreactor to see if proper nitrification can be achieved. 
     3) What is the best aeration rate to achieve the desired degree of nitrification? The optimal air supply rate can be reached when the air supply calculated from the NR value matches the true air demand in the nitrification process. Over-aeration will result in deterioration of biomass and wasted energy, while under aeration may cause improper treatment of the wastewater. Both cases can be avoided with proper aeration control with NR as one of control parameters. 
     4) What is the best mean cell residence time (MCRT) of the biomass in the bioreactor for the desired degree of nitrification? The population of nitrification bacteria can be estimated from the NR value. This estimation allows the operator to determine the proper mean cell residence time (MCRT) for the desired growth of nitrification bacteria in the biomass. The MCRT may be used to control the wasting of the activated sludge. 
     5) What level of biomass concentration needs to be maintained in the bioreactor to achieve nitrification? When the NR value is high, meaning a higher population of nitrification bacteria, the plant can afford to use a lower biomass concentration in the bioreactor to achieve nitrification, whereas a lower NR calls for maintaining higher biomass concentration in the bioreactor. 
     6) The NR measurement also allows the operator of the wastewater treatment plant to estimate how much wastewater influent the plant can treat with the existing facility, therefore planning for plant expansion or modification. 
     Denitrification rate, DR, can be used in the monitoring and control of biological denitrification within the wastewater treatment process. When DR is measured on a real time basis, the information can answer the following: 
     1) What is the capacity of denitrification in the bioreactor? Based on the measured DR value, information on the nitrate loading to the anoxic zone, hydraulic retention time in the anoxic zone, and the desired degree of denitrification, one can estimate how much wastewater influent the plant can treat. 
     2) What is the optimal internal recycle rate to the anoxic zone? The nitrate loading to the anoxic zone fundamentally comes from the internal recycle of the nitrified mixed liquor at the end of the aerobic zone of a bioreactor, referring to FIG. 1 for the location of denitrification internal recycle. Knowing the DR allows accurate control of the internal recycle, thus achieving full utilization of the anoxic zone and avoiding wasting pumping energy from over-recycling. 
     3) Is there any factor limiting the achievement of optimal denitrification? The DR measurement allows the evaluation of denitrification activity in terms of carbonaceous nutrient and nitrate loading. A lower DR indicates an endogenous denitrification, as carbonaceous nutrient is limited. Increased carbonaceous nutrient loading enhances the denitrification process. A higher DR, on the other hand, predicts an active denitrification process. Increasing the internal recycle improves the total nitrogen removal from the wastewater stream. 
     The invention may be applied to any kind of microbial process including, but not limited to, wastewater purification (municipal, industrial and the like), pharmaceutical/biotechnology production, brewing, fermentation or any other process involving pure or mixed populations of micro organisms. 
     Although this invention has been described with reference to specific forms of apparatus and method steps, it will be apparent to one of ordinary skill in the art that various equivalents may be substituted, the sequence of steps may be varied, and certain steps may be used independently of others. Further, various other control steps may be included, all without departing from the spirit and scope of the invention defined in the appended claims.