Patent Publication Number: US-8538636-B2

Title: System and method for controlling vehicle headlights

Description:
CROSS REFERENCE TO RELATED APPLICATIONS 
     This application is:
     1. a continuation-in-part (CIP) of U.S. patent application Ser. No. 10/413,426 filed Apr. 14, 2003, now U.S. Pat. No. 7,415,126, which is:
       A. a CIP of U.S. patent application Ser. No. 09/765,559 filed Jan. 19, 2001, now U.S. Pat. No. 6,553,296, which is a CIP of U.S. patent application Ser. No. 09/476,255 filed Dec. 30, 1999, now U.S. Pat. No. 6,324,453, which claims priority under 35 U.S.C. §119(e) of U.S. provisional patent application Ser. No. 60/114,507 filed Dec. 31, 1998, and   B. a CIP of U.S. patent application Ser. No. 09/925,043 filed Aug. 8, 2001, now U.S. Pat. No. 6,507,779, which is:
           1. a CIP of U.S. patent application Ser. No. 09/765,559 filed Jan. 19, 2001, now U.S. Pat. No. 6,553,296, which is a CIP of U.S. patent application Ser. No. 09/476,255 filed Dec. 30, 1999, now U.S. Pat. No. 6,324,453, which claims priority under 35 U.S.C. §119(e) of U.S. provisional patent application Ser. No. 60/114,507 filed Dec. 31, 1998, and   2. a CIP of U.S. patent application Ser. No. 09/389,947 filed Sep. 3, 1999, now U.S. Pat. No. 6,393,133, which is a CIP of U.S. patent application Ser. No. 09/200,614, filed Nov. 30, 1998, now U.S. Pat. No. 6,141,432, which is a continuation of U.S. patent application Ser. No. 08/474,786 filed Jun. 7, 1995, now U.S. Pat. No. 5,845,000;   
           C. a CIP of U.S. patent application Ser. No. 10/116,808 filed Apr. 5, 2002, now U.S. Pat. No. 6,856,873, which is a CIP of U.S. patent application Ser. No. 09/838,919 filed Apr. 20, 2001, now U.S. Pat. No. 6,442,465, which is a CIP of U.S. patent application Ser. No. 09/389,947 filed Sep. 3, 1999, now U.S. Pat. No. 6,393,133, which is a CIP of U.S. patent application Ser. No. 09/200,614, filed Nov. 30, 1998, now U.S. Pat. No. 6,141,432, which is a continuation of U.S. patent application Ser. No. 08/474,786 filed Jun. 7, 1995, now U.S. Pat. No. 5,845,000; and   D. a CIP of U.S. patent application Ser. No. 10/302,105 filed Nov. 22, 2002, now U.S. Pat. No. 6,772,057;   
       2. a CIP of U.S. patent application Ser. No. 10/895,121 filed Jul. 21, 2004, now U.S. Pat. No. 7,407,029, which is a continuation of U.S. patent application Ser. No. 10/733,957 filed Dec. 11, 2003, now U.S. Pat. No. 7,243,945, which is:
       A. a CIP of U.S. patent application Ser. No. 10/116,808 filed Apr. 5, 2002, now U.S. Pat. No. 6,856,873, which is a CIP of U.S. patent application Ser. No. 09/838,919 filed Apr. 20, 2001, now U.S. Pat. No. 6,442,465, which is a CIP of U.S. patent application Ser. No. 09/389,947 filed Sep. 3, 1999, now U.S. Pat. No. 6,393,133, which is a CIP of U.S. patent application Ser. No. 09/200,614, filed Nov. 30, 1998, now U.S. Pat. No. 6,141,432, which is a continuation of U.S. patent application Ser. No. 08/474,786 filed Jun. 7, 1995, now U.S. Pat. No. 5,845,000;   B. a CIP of U.S. patent application Ser. No. 10/302,105 filed Nov. 22, 2002, now U.S. Pat. No. 6,772,057, the history of which is set forth above;   
       3. a CIP of U.S. patent application Ser. No. 10/940,881 filed Sep. 13, 2004 which is a CIP of U.S. patent application Ser. No. 10/116,808 filed Apr. 5, 2002, now U.S. Pat. No. 6,856,873, which is a CIP of U.S. patent application Ser. No. 09/838,919 filed Apr. 20, 2001, now U.S. Pat. No. 6,442,465, which is a CIP of U.S. patent application Ser. No. 09/389,947 filed Sep. 3, 1999, now U.S. Pat. No. 6,393,133, which is a CIP of U.S. patent application Ser. No. 09/200,614, filed Nov. 30, 1998, now U.S. Pat. No. 6,141,432, which is a continuation of U.S. patent application Ser. No. 08/474,786 filed Jun. 7, 1995, now U.S. Pat. No. 5,845,000; and   4. a CIP of U.S. patent application Ser. No. 11/025,501 filed Jan. 3, 2005 which is a CIP of U.S. patent application Ser. No. 10/116,808 filed Apr. 5, 2002, now U.S. Pat. No. 6,856,873, which is a CIP of U.S. patent application Ser. No. 09/838,919 filed Apr. 20, 2001, now U.S. Pat. No. 6,442,465, which is a CIP of U.S. patent application Ser. No. 09/389,947 filed Sep. 3, 1999, now U.S. Pat. No. 6,393,133, which is a CIP of U.S. patent application Ser. No. 09/200,614, filed Nov. 30, 1998, now U.S. Pat. No. 6,141,432, which is a continuation of U.S. patent application Ser. No. 08/474,786 filed Jun. 7 1995 now U.S. Pat. No. 5,845,000;   5. a CIP of U.S. patent application Ser. No. 11/455,497 filed Jun. 19, 2006, now U.S. Pat. No. 7,477,758.   6. a CIP of U.S. patent application Ser. No. 11/502,039 filed Aug. 10, 2006;   7. a CIP of U.S. patent application Ser. No. 11/538,934 filed Oct. 5, 2006; and   8. a CIP of U.S. patent application Ser. No. 11/558,996 filed Nov. 13, 2006.   

     This application is related to U.S. patent application Ser. No. 08/474,782 filed Jun. 7, 1995, now U.S. Pat. No. 5,835,613, and Ser. No. 10/931,288 filed Aug. 31, 2004, now U.S. Pat. No. 7,164,117, on the grounds that they include common subject matter. 
     All of the above-mentioned applications are incorporated by reference herein. 
    
    
     FIELD OF THE INVENTION 
     The present invention relates generally to systems and methods for controlling headlights of a vehicle, and more specifically, to selectively and temporarily dimming the headlights when other vehicles in the field of the view of the headlights are detected. 
     BACKGROUND OF THE INVENTION 
     Background of the invention is found in the parent applications, in particular the &#39;786 application. All of the patents, patent applications, technical papers and other references mentioned below and in the parent applications are incorporated herein by reference in their entirety. 
     Possible definitions of terms used in the application are set forth in the &#39;881 application, incorporated by reference herein. 
     Preferred embodiments of the invention are described below and unless specifically noted, it is the applicant&#39;s intention that the words and phrases in the specification and claims be given the ordinary and accustomed meaning to those of ordinary skill in the applicable art(s). If the applicant intends any other meaning, he will specifically state he is applying a special meaning to a word or phrase. 
     Likewise, applicant&#39;s use of the word “function” here is not intended to indicate that the applicant seeks to invoke the special provisions of 35 U.S.C. §112, sixth paragraph, to define his invention. To the contrary, if applicant wishes to invoke the provisions of 35 U.S.C. §112, sixth paragraph, to define his invention, he will specifically set forth in the claims the phrases “means for” or “step for” and a function, without also reciting in that phrase any structure, material or act in support of the function. Moreover, even if applicant invokes the provisions of 35 U.S.C. §112, sixth paragraph, to define his invention, it is the applicant&#39;s intention that his inventions not be limited to the specific structure, material or acts that are described in the preferred embodiments herein. Rather, if applicant claims his inventions by specifically invoking the provisions of 35 U.S.C. §112, sixth paragraph, it is nonetheless his intention to cover and include any and all structure, materials or acts that perform the claimed function, along with any and all known or later developed equivalent structures, materials or acts for performing the claimed function. 
     OBJECTS AND SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide new and improved systems and methods for controlling headlights of a vehicle, and more specifically, to selectively and temporarily dimming the headlights when other vehicles in the field of the view of the headlights are detected. 
     It is another object of the present invention to control vehicular systems, including a headlight dimming system, based on analysis of images obtained from one or more rear-view mirror mounted imaging devices. 
     In order to achieve one or both of these objects, and possibly others, a control system for automatically controlling headlights of a vehicle in accordance with the invention includes an optical system for imaging external sources of light within a predetermined field of view and an image processing system for processing images from the optical system and providing a control signal for controlling the headlights as a function of the processed images. Processing the images may entail identifying a source of radiation in the images, the control signal being provided to dim the headlights when a source of radiation in the images is identified as a headlight or taillight of another vehicle. To this end, the image processing system may include a trained pattern recognition system for processing the images to identify the source of radiation, e.g., a pattern recognition algorithm generated from data of possible sources of radiation including headlights and taillights of vehicles and patterns of received radiation from the possible sources. The trained pattern recognition algorithm may comprise a neural network. 
     The optical system may comprise a CCD array. It may be arranged on a rear view mirror in an interior of the vehicle. It may be arranged on a part of the vehicle that is not movable relative to a frame of the vehicle, i.e., a fixed part of the inside rear view mirror. The optical system may include an image array sensor containing a plurality of pixels. It may include a plurality of image array sensors. 
     A method for automatically controlling headlights of a vehicle in accordance with the invention includes imaging external sources of light within a predetermined field of view to obtain images of an environment outside of the vehicle, processing the obtained images from the optical system, and providing a control signal for controlling the headlights as a function of the processed images. The same features of the system described above may be applied to the method. For example, processing the images may entail training a pattern recognition algorithm to identify the source of radiation in a training stage in which known sources of radiation are provided, images including these known sources are obtained and the pattern recognition is formed based on the association of the known sources with the obtained images. 
     The invention also includes a vehicle including headlights, a rear view mirror situated inside a passenger compartment of the vehicle, and a control system for automatically controlling the headlights of a vehicle. The control system includes an optical system for imaging external sources of light and which is arranged on the rear view mirror, and an image processing system for receiving images from the optical system and identifying whether sources of light in the images originate from headlights or taillights of other vehicles. The image processing system is arranged to dim the headlights when it identifies that a source of light in an image originates from the headlights or taillights of another vehicle. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       The following drawings are illustrative of embodiments of the system developed or adapted using the teachings of at least one of the inventions disclosed herein and are not meant to limit the scope of the invention as encompassed by the claims. In particular, the illustrations below are frequently limited to the monitoring of the front passenger seat for the purpose of describing the system. The invention applies as well to adapting the system to the other seating positions in the vehicle and particularly to the driver and rear passenger positions. 
         FIG. 1  is a side view with parts cutaway and removed of a vehicle showing the passenger compartment containing a rear facing child seat on the front passenger seat and a preferred mounting location for an occupant and rear facing child seat presence detector including an antenna field sensor and a resonator or reflector placed onto the forward most portion of the child seat. 
         FIG. 2  is a perspective view of a vehicle showing the position of the ultrasonic or electromagnetic sensors relative to the driver and front passenger seats. 
         FIG. 3  is a side view with parts cutaway and removed of a vehicle showing the passenger compartment containing a box on the front passenger seat and a preferred mounting location for an occupant and rear facing child seat presence detector and including an antenna field sensor. 
         FIG. 4  is a side view with parts cutaway and removed of a vehicle showing the passenger compartment containing a driver and a preferred mounting location for an occupant identification system and including an antenna field sensor and an inattentiveness response button. 
         FIG. 5  is a side view, with certain portions removed or cut away, of a portion of the passenger compartment of a vehicle showing several preferred mounting locations of occupant position sensors for sensing the position of the vehicle driver. 
         FIG. 6  shows a seated-state detecting unit in accordance with the present invention and the connections between ultrasonic or electromagnetic sensors, a weight sensor, a reclining angle detecting sensor, a seat track position detecting sensor, a heartbeat sensor, a motion sensor, a neural network, and an airbag system installed within a vehicular compartment. 
         FIG. 6A  is an illustration as in  FIG. 6  with the replacement of a strain gage weight sensor within a cavity within the seat cushion for the bladder weight sensor of  FIG. 6 . 
         FIG. 7  is a flow chart of the environment monitoring in accordance with the invention. 
         FIG. 8A  is a side planar view, with certain portions removed or cut away, of a portion of the passenger compartment of a vehicle showing several preferred mounting locations of interior vehicle monitoring sensors shown particularly for sensing the vehicle driver illustrating the wave pattern from a CCD or CMOS optical position sensor mounted along the side of the driver or centered above his or her head. 
         FIG. 8B  is a view as in  FIG. 8A  illustrating the wave pattern from an optical system using an infrared light source and a CCD or CMOS array receiver using the windshield as a reflection surface and showing schematically the interface between the vehicle interior monitoring system of at least one of the inventions disclosed herein and an instrument panel mounted inattentiveness warning light or buzzer and reset button. 
         FIG. 8C  is a view as in  FIG. 8A  illustrating the wave pattern from an optical system using an infrared light source and a CCD or CMOS array receiver where the CCD or CMOS array receiver is covered by a lens permitting a wide angle view of the contents of the passenger compartment. 
         FIG. 8D  is a view as in  FIG. 8A  illustrating the wave pattern from a pair of small CCD or CMOS array receivers and one infrared transmitter where the spacing of the CCD or CMOS arrays permits an accurate measurement of the distance to features on the occupant. 
         FIG. 8E  is a view as in  FIG. 8A  illustrating the wave pattern from a set of ultrasonic transmitter/receivers where the spacing of the transducers and the phase of the signal permits an accurate focusing of the ultrasonic beam and thus the accurate measurement of a particular point on the surface of the driver. 
         FIGS. 9A and 9B  are functional block diagrams of the ultrasonic imaging system illustrated in  FIG. 1  using a microprocessor, DSP or field programmable gate array (FGPA) ( FIG. 9A ) or an application specific integrated circuit (ASIC) ( FIG. 9B ). 
         FIG. 10  is a perspective view of a vehicle about to impact the side of another vehicle showing the location of the various parts of the anticipatory sensor system of at least one of the inventions disclosed herein. 
         FIG. 11  is a schematic illustration of the exterior monitoring system in accordance with the invention. 
         FIG. 12  is a side planar view, with certain portions removed or cut away, of a portion of the passenger compartment illustrating a sensor for sensing the headlights of an oncoming vehicle and/or the taillights of a leading vehicle used in conjunction with an automatic headlight dimming system. 
         FIG. 13  is a schematic illustration of the position measuring in accordance with the invention. 
         FIG. 14  is a schematic illustrating the circuit of an occupant position-sensing device using a modulated infrared signal, beat frequency and phase detector system. 
         FIG. 15  a flowchart showing the training steps of a neural network. 
         FIG. 16  is a schematic illustration of a system for controlling operation of a vehicle or a component thereof based on recognition of an authorized individual. 
         FIG. 17  is a schematic illustration of the environment monitoring in accordance with the invention. 
         FIG. 18  is a diagram showing an example of an occupant sensing strategy for a single camera optical system. 
         FIG. 19  is a processing block diagram of the example of  FIG. 18 . 
         FIG. 20  is a block diagram of an antenna-based near field object discriminator. 
         FIG. 21  is a side view, with certain portions removed or cut away, of a portion of the passenger compartment of a vehicle showing preferred mounting locations of optical interior vehicle monitoring sensors 
         FIG. 22  is a side view with parts cutaway and removed of a subject vehicle and an oncoming vehicle, showing the headlights of the oncoming vehicle and the passenger compartment of the subject vehicle, containing detectors of the driver&#39;s eyes and detectors for the headlights of the oncoming vehicle and the selective filtering of the light of the approaching vehicle&#39;s headlights through the use of electro-chromic glass, organic or metallic semiconductor polymers or electropheric particulates (SPD) in the windshield. 
         FIG. 22A  is an enlarged view of the section  22 A in  FIG. 22 . 
         FIG. 23  is a side view with parts cutaway and removed of a vehicle and a following vehicle showing the headlights of the following vehicle and the passenger compartment of the leading vehicle containing a driver and a preferred mounting location for driver eyes and following vehicle headlight detectors and the selective filtering of the light of the following vehicle&#39;s headlights through the use of electrochromic glass, SPD glass or equivalent, in the rear view mirror. 
         FIG. 23A  is an enlarged view of the section designated  23 A in  FIG. 23 . 
         FIG. 23B  is an enlarged view of the section designated  23 B in  FIG. 23A . 
         FIG. 24  illustrates the interior of a passenger compartment with a rear view mirror, a camera for viewing the eyes of the driver and a large generally transparent visor for glare filtering. 
     
    
    
     DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS 
     A patent or literature referred to below is incorporated by reference in its entirety. Also, although many of the examples below relate to a particular vehicle, an automobile, the invention is not limited to any particular vehicle and is thus applicable to all relevant vehicles including shipping containers and truck trailers and to all compartments of a vehicle including, for example, the passenger compartment and the trunk of an automobile or truck. 
     1. General Occupant Sensors 
     Referring to the accompanying drawings,  FIG. 1  is a side view, with parts cutaway and removed of a vehicle showing the passenger compartment, or passenger container, containing a rear facing child seat  2  on a front passenger seat  4  and a preferred mounting location for a first embodiment of a vehicle interior monitoring system in accordance with the invention. The interior monitoring system is capable of detecting the presence of an object, occupying objects such as a box, an occupant or a rear facing child seat  2 , determining the type of object, determining the location of the object, and/or determining another property or characteristic of the object. A property of the object could be the orientation of a child seat, the velocity of an adult and the like. For example, the vehicle interior monitoring system can determine that an object is present on the seat, that the object is a child seat and that the child seat is rear-facing. The vehicle interior monitoring system could also determine that the object is an adult, that he is drunk and that he is out of position relative to the airbag. 
     In this embodiment, three transducers  6 ,  8  and  10  are used alone, or, alternately in combination with one or more antenna near field monitoring sensors or transducers,  12 ,  14  and  16 , although any number of wave-transmitting transducers or radiation-receiving receivers may be used. Such transducers or receivers may be of the type that emit or receive a continuous signal, a time varying signal or a spatial varying signal such as in a scanning system and each may comprise only a transmitter which transmits energy, waves or radiation, only a receiver which receives energy, waves or radiation, both a transmitter and a receiver capable of transmitting and receiving energy, waves or radiation, an electric field sensor, a capacitive sensor, or a self-tuning antenna-based sensor, weight sensor, chemical sensor, motion sensor or vibration sensor, for example. 
     One particular type of radiation-receiving receiver for use in the invention receives electromagnetic waves and another receives ultrasonic waves. 
     In an ultrasonic embodiment, transducer  8  can be used as a transmitter and transducers  6  and  10  can be used as receivers. Other combinations can be used such as where all transducers are transceivers (transmitters and receivers). For example, transducer  8  can be constructed to transmit ultrasonic energy toward the front passenger seat, which is modified, in this case by the occupying item of the passenger seat, i.e., the rear facing child seat  2 , and the modified waves are received by the transducers  6  and  10 , for example. A more common arrangement is where transducers  6 ,  8  and  10  are all transceivers. Modification of the ultrasonic energy may constitute reflection of the ultrasonic energy as the ultrasonic energy is reflected back by the occupying item of the seat. The waves received by transducers  6  and  10  vary with time depending on the shape of the object occupying the passenger seat, in this case the rear facing child seat  2 . Each different occupying item will reflect back waves having a different pattern. Also, the pattern of waves received by transducer  6  will differ from the pattern received by transducer  10  in view of its different mounting location. This difference generally permits the determination of location of the reflecting surface (i.e., the rear facing child seat  2 ) through triangulation. Through the use of two transducers  6 ,  10 , a sort of stereographic image is received by the two transducers and recorded for analysis by processor  20 , which is coupled to the transducers  6 ,  8 ,  10 , e.g., by wires or wirelessly. This image will differ for each object that is placed on the vehicle seat and it will also change for each position of a particular object and for each position of the vehicle seat. Elements  6 ,  8 ,  10 , although described as transducers, are representative of any type of component used in a wave-based analysis technique. Also, although the example of an automobile passenger compartment has been shown, the same principle can be used for monitoring the interior of any vehicle including in particular shipping containers and truck trailers. 
     Wave-type sensors as the transducers  6 ,  8 ,  10  as well as electric field sensors  12 ,  14 ,  16  are mentioned above. Electric field sensors and wave sensors are essentially the same from the point of view of sensing the presence of an occupant in a vehicle. In both cases, a time varying electric field is disturbed or modified by the presence of the occupant. At high frequencies in the visual, infrared and high frequency radio wave region, the sensor is based on its capability to sense a change of wave characteristics of the electromagnetic field, such as amplitude, phase or frequency. As the frequency drops, other characteristics of the field are measured. At still lower frequencies, the occupant&#39;s dielectric properties modify parameters of the reactive electric field in the occupied space between or near the plates of a capacitor. In this latter case, the sensor senses the change in charge distribution on the capacitor plates by measuring, for example, the current wave magnitude or phase in the electric circuit that drives the capacitor. These measured parameters are directly connected with parameters of the displacement current in the occupied space. In all cases, the presence of the occupant reflects, absorbs or modifies the waves or variations in the electric field in the space occupied by the occupant. Thus, for the purposes of at least one of the inventions disclosed herein, capacitance, electric field or electromagnetic wave sensors are equivalent and although they are all technically “field” sensors they will be considered as “wave” sensors herein. What follows is a discussion comparing the similarities and differences between two types of field or wave sensors, electromagnetic wave sensors and capacitive sensors as exemplified by Kithil in U.S. Pat. No. 5,702,634. 
     An electromagnetic field disturbed or emitted by a passenger in the case of an electromagnetic wave sensor, for example, and the electric field sensor of Kithil, for example, are in many ways similar and equivalent for the purposes of at least one of the inventions disclosed herein. The electromagnetic wave sensor is an actual electromagnetic wave sensor by definition because they sense parameters of an electromagnetic wave, which is a coupled pair of continuously changing electric and magnetic fields. The electric field here is not a static, potential one. It is essentially a dynamic, rotational electric field coupled with a changing magnetic one, that is, an electromagnetic wave. It cannot be produced by a steady distribution of electric charges. It is initially produced by moving electric charges in a transmitter, even if this transmitter is a passenger body for the case of a passive infrared sensor. 
     In the Kithil sensor, a static electric field is declared as an initial material agent coupling a passenger and a sensor (see Column 5, lines 5-7: “The proximity sensor 12 each function by creating an electrostatic field between oscillator input loop 54 and detector output loop 56, which is affected by presence of a person near by, as a result of capacitive coupling, . . . ”). It is a potential, non-rotational electric field. It is not necessarily coupled with any magnetic field. It is the electric field of a capacitor. It can be produced with a steady distribution of electric charges. Thus, it is not an electromagnetic wave by definition but if the sensor is driven by a varying current, then it produces a quasistatic electric field in the space between/near the plates of the capacitor. 
     Kithil declares that his capacitance sensor uses a static electric field. Thus, from the consideration above, one can conclude that Kithil&#39;s sensor cannot be treated as a wave sensor because there are no actual electromagnetic waves but only a static electric field of the capacitor in the sensor system. However, this is not believed to be the case. The Kithil system could not operate with a true static electric field because a steady system does not carry any information. Therefore, Kithil is forced to use an oscillator, causing an alternate current in the capacitor and a reactive quasi-static electric field in the space between the capacitor plates, and a detector to reveal an informative change of the sensor capacitance caused by the presence of an occupant (see FIG. 2 and its description). In this case, the system becomes a “wave sensor” in the sense that it starts generating an actual time-varying electric field that certainly originates electromagnetic waves according to the definition above. That is, Kithil&#39;s sensor can be treated as a wave sensor regardless of the shape of the electric field that it creates, a beam or a spread shape. 
     As follows from the Kithil patent, the capacitor sensor is likely a parametric system where the capacitance of the sensor is controlled by the influence of the passenger body. This influence is transferred by means of the near electromagnetic field (i.e., the wave-like process) coupling the capacitor electrodes and the body. It is important to note that the same influence takes place with a real static electric field also, that is in absence of any wave phenomenon. This would be a situation if there were no oscillator in Kithil&#39;s system. However, such a system is not workable and thus Kithil reverts to a dynamic system using time-varying electric fields. 
     Thus, although Kithil declares that the coupling is due to a static electric field, such a situation is not realized in his system because an alternating electromagnetic field (“quasi-wave”) exists in the system due to the oscillator. Thus, his sensor is actually a wave sensor, that is, it is sensitive to a change of a wave field in the vehicular compartment. This change is measured by measuring the change of its capacitance. The capacitance of the sensor system is determined by the configuration of its electrodes, one of which is a human body, that is, the passenger inside of and the part which controls the electrode configuration and hence a sensor parameter, the capacitance. 
     The physics definition of “wave” from Webster&#39;s Encyclopedic Unabridged Dictionary is: “11. Physics. A progressive disturbance propagated from point to point in a medium or space without progress or advance of the points themselves, . . . ”. In a capacitor, the time that it takes for the disturbance (a change in voltage) to propagate through space, the dielectric and to the opposite plate is generally small and neglected but it is not zero. As the frequency driving the capacitor increases and the distance separating the plates increases, this transmission time as a percentage of the period of oscillation can become significant. Nevertheless, an observer between the plates will see the rise and fall of the electric field much like a person standing in the water of an ocean. The presence of a dielectric body between the plates causes the waves to get bigger as more electrons flow to and from the plates of the capacitor. Thus, an occupant affects the magnitude of these waves which is sensed by the capacitor circuit. Thus, the electromagnetic field is a material agent that carries information about a passenger&#39;s position in both Kithil&#39;s and a beam-type electromagnetic wave sensor. 
     For ultrasonic systems, the “image” recorded from each ultrasonic transducer/receiver, is actually a time series of digitized data of the amplitude of the received signal versus time. Since there are two receivers, two time series are obtained which are processed by the processor  20 . The processor  20  may include electronic circuitry and associated, embedded software. Processor  20  constitutes one form of generating means in accordance with the invention which generates information about the occupancy of the passenger compartment based on the waves received by the transducers  6 ,  8 ,  10 . 
     When different objects are placed on the front passenger seat, the images from transducers  6 ,  8 ,  10  for example, are different but there are also similarities between all images of rear facing child seats, for example, regardless of where on the vehicle seat it is placed and regardless of what company manufactured the child seat. Alternately, there will be similarities between all images of people sitting on the seat regardless of what they are wearing, their age or size. The problem is to find the “rules” which differentiate the images of one type of object from the images of other types of objects, e.g., which differentiate the occupant images from the rear facing child seat images. The similarities of these images for various child seats are frequently not obvious to a person looking at plots of the time series and thus computer algorithms are developed to sort out the various patterns. For a more detailed discussion of pattern recognition see U.S. Pat. No. RE 37,260. 
     The determination of these rules is important to the pattern recognition techniques used in at least one of the inventions disclosed herein. In general, three approaches have been useful, artificial intelligence, fuzzy logic and artificial neural networks (including cellular and modular or combination neural networks and support vector machines—although additional types of pattern recognition techniques may also be used, such as sensor fusion). In some implementations of at least one of the inventions disclosed herein, such as the determination that there is an object in the path of a closing window as described below, the rules are sufficiently obvious that a trained researcher can sometimes look at the returned signals and devise a simple algorithm to make the required determinations. In others, such as the determination of the presence of a rear facing child seat or of an occupant, artificial neural networks can be used to determine the rules. One such set of neural network software for determining the pattern recognition rules is available from the International Scientific Research, Inc. of Panama City, Panama. 
     Electromagnetic energy based occupant sensors exist that use many portions of the electromagnetic spectrum. A system based on the ultraviolet, visible or infrared portions of the spectrum generally operate with a transmitter and a receiver of reflected radiation. The receiver may be a camera or a photo detector such as a pin or avalanche diode as described in above-referenced patents and patent applications. At other frequencies, the absorption of the electromagnetic energy is primarily used and at still other frequencies the capacitance or electric field influencing effects are used. Generally, the human body will reflect, scatter, absorb or transmit electromagnetic energy in various degrees depending on the frequency of the electromagnetic waves. All such occupant sensors are included herein. 
     In an embodiment wherein electromagnetic energy is used, it is to be appreciated that any portion of the electromagnetic signals that impinges upon, surrounds or involves a body portion of the occupant is at least partially absorbed by the body portion. Sometimes, this is due to the fact that the human body is composed primarily of water, and that electromagnetic energy of certain frequencies is readily absorbed by water. The amount of electromagnetic signal absorption is related to the frequency of the signal, and size or bulk of the body portion that the signal impinges upon. For example, a torso of a human body tends to absorb a greater percentage of electromagnetic energy than a hand of a human body. 
     Thus, when electromagnetic waves or energy signals are transmitted by a transmitter, the returning waves received by a receiver provide an indication of the absorption of the electromagnetic energy. That is, absorption of electromagnetic energy will vary depending on the presence or absence of a human occupant, the occupant&#39;s size, bulk, surface reflectivity, etc. depending on the frequency, so that different signals will be received relating to the degree or extent of absorption by the occupying item on the seat. The receiver will produce a signal representative of the returned waves or energy signals which will thus constitute an absorption signal as it corresponds to the absorption of electromagnetic energy by the occupying item in the seat. 
     One or more of the transducers  6 ,  8 ,  10  can also be image-receiving devices, such as cameras, which take images of the interior of the passenger compartment. These images can be transmitted to a remote facility to monitor the passenger compartment or can be stored in a memory device for use in the event of an accident, i.e., to determine the status of the occupant(s) of the vehicle prior to the accident. In this manner, it can be ascertained whether the driver was falling asleep, talking on the phone, etc. 
     A memory device for storing images of the passenger compartment, and also for receiving and storing any other information, parameters and variables relating to the vehicle or occupancy of the vehicle, may be in the form of a standardized “black box” (instead of or in addition to a memory part in a processor  20 ). The IEEE Standards Association is currently beginning to develop an international standard for motor vehicle event data recorders. The information stored in the black box and/or memory unit in the processor  20  can include the images of the interior of the passenger compartment as well as the number of occupants and the health state of the occupant(s). The black box would preferably be tamper-proof and crash-proof and enable retrieval of the information after a crash. 
     Transducer  8  can also be a source of electromagnetic radiation, such as an LED, and transducers  6  and  10  can be CMOS, CCD imagers or other devices sensitive to electromagnetic radiation or fields. This “image” or return signal will differ for each object that is placed on the vehicle seat, or elsewhere in the vehicle, and it will also change for each position of a particular object and for each position of the vehicle seat or other movable objects within the vehicle. Elements  6 ,  8 ,  10 , although described as transducers, are representative of any type of component used in a wave-based or electric field analysis technique, including, e.g., a transmitter, receiver, antenna or a capacitor plate. 
     Transducers  12 ,  14  and  16  can be antennas placed in the seat and instrument panel, or other convenient location within the vehicle, such that the presence of an object, particularly a water-containing object such as a human, disturbs the near field of the antenna. This disturbance can be detected by various means such as with Micrel parts MICREF102 and MICREF104, which have a built-in antenna auto-tune circuit. Note, these parts cannot be used as is and it is necessary to redesign the chips to allow the auto-tune information to be retrieved from the chip. 
     Other types of transducers can be used along with the transducers  6 ,  8 ,  10  or separately and all are contemplated by at least one of the inventions disclosed herein. Such transducers include other wave devices such as radar or electronic field sensing systems such as described in U.S. Pat. Nos. 5,366,241, 5,602,734, 5,691,693, 5,802,479, 5,844,486, 6,014,602, and 6,275,146 to Kithil, and U.S. Pat. No. 5,948,031 to Rittmueller. Another technology, for example, uses the fact that the content of the near field of an antenna affects the resonant tuning of the antenna. Examples of such a device are shown as antennas  12 ,  14  and  16  in  FIG. 1 . By going to lower frequencies, the near field range is increased and also at such lower frequencies, a ferrite-type antenna could be used to minimize the size of the antenna. Other antennas that may be applicable for a particular implementation include dipole, microstrip, patch, Yagi etc. The frequency transmitted by the antenna can be swept and the (VSWR) voltage and current in the antenna feed circuit can be measured. Classification by frequency domain is then possible. That is, if the circuit is tuned by the antenna, the frequency can be measured to determine the object in the field. 
     An alternate system is shown in  FIG. 2 , which is a side view showing schematically the interface between the vehicle interior monitoring system of at least one of the inventions disclosed herein and the vehicle cellular or other communication system  32 , such as a satellite based system such as that supplied by Skybitz, having an associated antenna  34 . In this view, an adult occupant  30  is shown sitting on the front passenger seat  4  and two transducers  6  and  8  are used to determine the presence (or absence) of the occupant on that seat  4 . One of the transducers  8  in this case acts as both a transmitter and receiver while the other transducer  6  acts only as a receiver. Alternately, transducer  6  could serve as both a transmitter and receiver or the transmitting function could be alternated between the two devices. Also, in many cases, more than two transmitters and receivers are used and in still other cases, other types of sensors, such as weight, chemical, radiation, vibration, acoustic, seatbelt tension sensor or switch, heartbeat, self tuning antennas ( 12 ,  14 ), motion and seat and seatback position sensors, are also used alone or in combination with the transducers  6  and  8 . As is also the case in  FIG. 1 , the transducers  6  and  8  are attached to the vehicle embedded in the A-pillar and headliner trim, where their presence is disguised, and are connected to processor  20  that may also be hidden in the trim as shown or elsewhere. Other mounting locations can also be used and, in most cases, preferred as disclosed in Varga et. al. (US RE 37260). 
     The transducers  6  and  8  in conjunction with the pattern recognition hardware and software described below enable the determination of the presence of an occupant within a short time after the vehicle is started. The software is implemented in processor  20  and is packaged on a printed circuit board or flex circuit along with the transducers  6  and  8 . Similar systems can be located to monitor the remaining seats in the vehicle, also determine the presence of occupants at the other seating locations and this result is stored in the computer memory, which is part of each monitoring system processor  20 . Processor  20  thus enables a count of the number of occupants in the vehicle to be obtained by addition of the determined presence of occupants by the transducers associated with each seating location, and in fact, can be designed to perform such an addition, the principles illustrated for automobile vehicles are applicable by those skilled in the art to other vehicles such as shipping containers or truck trailers and to other compartments of an automotive vehicle such as the vehicle trunk. 
     For a general object, transducers  6 ,  8 ,  9 ,  10  can also be used to determine the type of object, determine the location of the object, and/or determine another property or characteristic of the object. A property of the object could be the orientation of a child seat, the velocity of an adult and the like. For example, the transducers  6 ,  8 ,  9 ,  10  can be designed to enable a determination that an object is present on the seat, that the object is a child seat and that the child seat is rear-facing. 
     The transducers  6  and  8  are attached to the vehicle buried in the trim such as the A-pillar trim, where their presence can be disguised, and are connected to processor  20  that may also be hidden in the trim as shown (this being a non-limiting position for the processor  20 ). The A-pillar is the roof support pillar that is closest to the front of the vehicle and which, in addition to supporting the roof, also supports the front windshield and the front door. Other mounting locations can also be used. For example, transducers  6 ,  8  can be mounted inside the seat (along with or in place of transducers  12  and  14 ), in the ceiling of the vehicle, in the B-pillar, in the C-pillar and in the doors. Indeed, the vehicle interior monitoring system in accordance with the invention may comprise a plurality of monitoring units, each arranged to monitor a particular seating location. In this case, for the rear seating locations, transducers might be mounted in the B-pillar or C-pillar or in the rear of the front seat or in the rear side doors. Possible mounting locations for transducers, transmitters, receivers and other occupant sensing devices are disclosed in above-referenced patent applications and all of these mounting locations are contemplated for use with the transducers described herein. 
     The cellular phone or other communications system  32  outputs to an antenna  34 . The transducers  6 ,  8 ,  12  and  14  in conjunction with the pattern recognition hardware and software, which is implemented in processor  20  and is packaged on a printed circuit board or flex circuit along with the transducers  6  and  8 , determine the presence of an occupant within a few seconds after the vehicle is started, or within a few seconds after the door is closed. Similar systems located to monitor the remaining seats in the vehicle, also determine the presence of occupants at the other seating locations and this result is stored in the computer memory which is part of each monitoring system processor  20 . 
     Periodically and in particular in the event of an accident, the electronic system associated with the cellular phone system  32  interrogates the various interior monitoring system memories and arrives at a count of the number of occupants in the vehicle, and optionally, even makes a determination as to whether each occupant was wearing a seatbelt and if he or she is moving after the accident. The phone or other communications system then automatically dials the EMS operator (such as 911 or through a telematics service such as OnStar®) and the information obtained from the interior monitoring systems is forwarded so that a determination can be made as to the number of ambulances and other equipment to send to the accident site, for example. Such vehicles will also have a system, such as the global positioning system, which permits the vehicle to determine its exact location and to forward this information to the EMS operator. Other systems can be implemented in conjunction with the communication with the emergency services operator. For example, a microphone and speaker can be activated to permit the operator to attempt to communicate with the vehicle occupant(s) and thereby learn directly of the status and seriousness of the condition of the occupant(s) after the accident. 
     Thus, in basic embodiments of the invention, wave or other energy-receiving transducers are arranged in the vehicle at appropriate locations, trained if necessary depending on the particular embodiment, and function to determine whether a life form is present in the vehicle and if so, how many life forms are present and where they are located etc. To this end, transducers can be arranged to be operative at only a single seating location or at multiple seating locations with a provision being made to eliminate a repetitive count of occupants. A determination can also be made using the transducers as to whether the life forms are humans, or more specifically, adults, child in child seats, etc. As noted herein, this is possible using pattern recognition techniques. Moreover, the processor or processors associated with the transducers can be trained to determine the location of the life forms, either periodically or continuously or possibly only immediately before, during and after a crash. The location of the life forms can be as general or as specific as necessary depending on the system requirements, i.e., a determination can be made that a human is situated on the driver&#39;s seat in a normal position (general) or a determination can be made that a human is situated on the driver&#39;s seat and is leaning forward and/or to the side at a specific angle as well as the position of his or her extremities and head and chest (specifically). The degree of detail is limited by several factors, including, for example, the number and position of transducers and training of the pattern recognition algorithm(s). 
     In addition to the use of transducers to determine the presence and location of occupants in a vehicle, other sensors could also be used. For example, a heartbeat sensor which determines the number and presence of heartbeat signals can also be arranged in the vehicle, which would thus also determine the number of occupants as the number of occupants would be equal to the number of heartbeat signals detected. Conventional heartbeat sensors can be adapted to differentiate between a heartbeat of an adult, a heartbeat of a child and a heartbeat of an animal. As its name implies, a heartbeat sensor detects a heartbeat, and the magnitude and/or frequency thereof, of a human occupant of the seat, if such a human occupant is present. The output of the heartbeat sensor is input to the processor of the interior monitoring system. One heartbeat sensor for use in the invention may be of the types as disclosed in McEwan (U.S. Pat. Nos. 5,573,012 and 5,766,208). The heartbeat sensor can be positioned at any convenient position relative to the seats where occupancy is being monitored. A preferred location is within the vehicle seatback. 
     An alternative way to determine the number of occupants is to monitor the weight being applied to the seats, i.e., each seating location, by arranging weight sensors at each seating location which might also be able to provide a weight distribution of an object on the seat. Analysis of the weight and/or weight distribution by a predetermined method can provide an indication of occupancy by a human, an adult or child, or an inanimate object. 
     Another type of sensor which is not believed to have been used in an interior monitoring system previously is a micropower impulse radar (MIR) sensor which determines motion of an occupant and thus can determine his or her heartbeat (as evidenced by motion of the chest). Such an MIR sensor can be arranged to detect motion in a particular area in which the occupant&#39;s chest would most likely be situated or could be coupled to an arrangement which determines the location of the occupant&#39;s chest and then adjusts the operational field of the MIR sensor based on the determined location of the occupant&#39;s chest. A motion sensor utilizing a micro-power impulse radar (MIR) system as disclosed, for example, in McEwan (U.S. Pat. No. 5,361,070), as well as many other patents by the same inventor. 
     Motion sensing is accomplished by monitoring a particular range from the sensor as disclosed in that patent. MIR is one form of radar which has applicability to occupant sensing and can be mounted at various locations in the vehicle. It has an advantage over ultrasonic sensors in that data can be acquired at a higher speed and thus the motion of an occupant can be more easily tracked. The ability to obtain returns over the entire occupancy range is somewhat more difficult than with ultrasound resulting in a more expensive system overall. MIR has additional advantages in lack of sensitivity to temperature variation and has a comparable resolution to about 40 kHz ultrasound. Resolution comparable to higher frequency ultrasound is also possible. Additionally, multiple MIR sensors can be used when high speed tracking of the motion of an occupant during a crash is required since they can be individually pulsed without interfering with each through time division multiplexing. 
     An alternative way to determine motion of the occupant(s) is to monitor the weight distribution of the occupant whereby changes in weight distribution after an accident would be highly suggestive of movement of the occupant. A system for determining the weight distribution of the occupants could be integrated or otherwise arranged in the seats such as the front seat  4  of the vehicle and several patents and publications describe such systems. 
     More generally, any sensor which determines the presence and health state of an occupant can also be integrated into the vehicle interior monitoring system in accordance with the invention. For example, a sensitive motion sensor can determine whether an occupant is breathing and a chemical sensor can determine the amount of carbon dioxide, or the concentration of carbon dioxide, in the air in the passenger compartment of the vehicle which can be correlated to the health state of the occupant(s). The motion sensor and chemical sensor can be designed to have a fixed operational field situated where the occupant&#39;s mouth is most likely to be located. In this manner, detection of carbon dioxide in the fixed operational field could be used as an indication of the presence of a human occupant in order to enable the determination of the number of occupants in the vehicle. In the alternative, the motion sensor and chemical sensor can be adjustable and adapted to adjust their operational field in conjunction with a determination by an occupant position and location sensor which would determine the location of specific parts of the occupant&#39;s body, e.g., his or her chest or mouth. Furthermore, an occupant position and location sensor can be used to determine the location of the occupant&#39;s eyes and determine whether the occupant is conscious, i.e., whether his or her eyes are open or closed or moving. 
     The use of chemical sensors can also be used to detect whether there is blood present in the vehicle, for example, after an accident. Additionally, microphones can detect whether there is noise in the vehicle caused by groaning, yelling, etc., and transmit any such noise through the cellular or other communication connection to a remote listening facility (such as operated by OnStar®). 
     In  FIG. 3 , a view of the system of  FIG. 1  is illustrated with a box  28  shown on the front passenger seat in place of a rear facing child seat. The vehicle interior monitoring system is trained to recognize that this box  28  is neither a rear facing child seat nor an occupant and therefore it is treated as an empty seat and the deployment of the airbag or other occupant restraint device is suppressed. For other vehicles, it may be that just the presence of a box or its motion or chemical or radiation effluents that are desired to be monitored. The auto-tune antenna-based system  12 ,  14  is particularly adept at making this distinction particularly if the box  28  does not contain substantial amounts of water. Although a simple implementation of the auto-tune antenna system is illustrated, it is of course possible to use multiple antennas located in the seat  4  and elsewhere in the passenger compartment and these antenna systems can either operate at one or a multiple of different frequencies to discriminate type, location and/or relative size of the object being investigated. This training can be accomplished using a neural network or modular neural network with the commercially available software. The system assesses the probability that the box  28  is a person, however, and if there is even the remotest chance that it is a person, the airbag deployment is not suppressed. The system is thus typically biased toward enabling airbag deployment. 
     In cases where different levels of airbag inflation are possible, and there are different levels of injury associated with an out of position occupant being subjected to varying levels of airbag deployment, it is sometimes possible to permit a depowered or low level airbag deployment in cases of uncertainty. If, for example, the neural network has a problem distinguishing whether a box or a forward facing child seat is present on the vehicle seat, the decision can be made to deploy the airbag in a depowered or low level deployment state. Other situations where such a decision could be made would be when there is confusion as to whether a forward facing human is in position or out-of-position. 
     Neural networks systems frequently have problems in accurately discriminating the exact location of an occupant especially when different-sized occupants are considered. This results in a gray zone around the border of the keep out zone where the system provides a weak fire or weak no fire decision. For those cases, deployment of the airbag in a depowered state can resolve the situation since an occupant in a gray zone around the keep out zone boundary would be unlikely to be injured by such a depowered deployment while significant airbag protection is still being supplied. 
     Electromagnetic or ultrasonic energy can be transmitted in three modes in determining the position of an occupant, for example. In most of the cases disclosed above, it is assumed that the energy will be transmitted in a broad diverging beam which interacts with a substantial portion of the occupant or other object to be monitored. This method can have the disadvantage that it will reflect first off the nearest object and, especially if that object is close to the transmitter, it may mask the true position of the occupant or object. It can also reflect off many parts of the object where the reflections can be separated in time and processed as in an ultrasonic occupant sensing system. This can also be partially overcome through the use of the second mode which uses a narrow beam. In this case, several narrow beams are used. These beams are aimed in different directions toward the occupant from a position sufficiently away from the occupant or object such that interference is unlikely. 
     A single receptor could be used provided the beams are either cycled on at different times or are of different frequencies. Another approach is to use a single beam emanating from a location which has an unimpeded view of the occupant or object such as the windshield header in the case of an automobile or near the roof at one end of a trailer or shipping container, for example. If two spaced apart CCD array receivers are used, the angle of the reflected beam can be determined and the location of the occupant can be calculated. The third mode is to use a single beam in a manner so that it scans back and forth and/or up and down, or in some other pattern, across the occupant, object or the space in general. In this manner, an image of the occupant or object can be obtained using a single receptor and pattern recognition software can be used to locate the head or chest of the occupant or size of the object, for example. The beam approach is most applicable to electromagnetic energy but high frequency ultrasound can also be formed into a narrow beam. 
     A similar effect to modifying the wave transmission mode can also be obtained by varying the characteristics of the receptors. Through appropriate lenses or reflectors, receptors can be made to be most sensitive to radiation emitted from a particular direction. In this manner, a single broad beam transmitter can be used coupled with an array of focused receivers, or a scanning receiver, to obtain a rough image of the occupant or occupying object. 
     Each of these methods of transmission or reception could be used, for example, at any of the preferred mounting locations shown in  FIG. 5 . 
     As shown in  FIG. 2 , there are provided four sets of wave-receiving sensor systems  6 ,  8 ,  9 ,  10  mounted within the passenger compartment of an automotive vehicle. Each set of sensor systems  6 ,  8 ,  9 ,  10  comprises a transmitter and a receiver (or just a receiver in some cases), which may be integrated into a single unit or individual components separated from one another. In this embodiment, the sensor system  6  is mounted on the A-Pillar of the vehicle. The sensor system  9  is mounted on the upper portion of the B-Pillar. The sensor system  8  is mounted on the roof ceiling portion or the headliner. The sensor system  10  is mounted near the middle of an instrument panel  17  in front of the driver&#39;s seat  3 . 
     The sensor systems  6 ,  8 ,  9 ,  10  are preferably ultrasonic or electromagnetic, although sensor systems  6 ,  8 ,  9 ,  10  can be any other type of sensors which will detect the presence of an occupant from a distance including capacitive or electric field sensors. Also, if the sensor systems  6 ,  8 ,  9 ,  10  are passive infrared sensors, for example, then they may only comprise a wave-receiver. Recent advances in Quantum Well Infrared Photodetectors by NASA show great promise for this application. See “Many Applications Possible For Largest Quantum Infrared Detector”, Goddard Space Center News Release Feb. 27, 2002. 
     The Quantum Well Infrared Photodetector is a new detector which promises to be a low-cost alternative to conventional infrared detector technology for a wide range of scientific and commercial applications, and particularly for sensing inside and outside of a vehicle. The main problem that needs to be solved is that it operates at 76 degrees Kelvin (−323 degrees F.). Chips are being developed capable of cooling other chips economically. It remains to be seen if these low temperatures can be economically achieved. 
     A section of the passenger compartment of an automobile is shown generally as  40  in  FIGS. 8A-8D . A driver  30  of the vehicle sits on a seat  3  behind a steering wheel  42 , which contains an airbag assembly  44 . Airbag assembly  44  may be integrated into the steering wheel assembly or coupled to the steering wheel  42 . Five transmitter and/or receiver assemblies  49 ,  50 ,  51 ,  52  and  54  are positioned at various places in the passenger compartment to determine the location of various parts of the driver, e.g., the head, chest and torso, relative to the airbag and to otherwise monitor the interior of the passenger compartment. Monitoring of the interior of the passenger compartment can entail detecting the presence or absence of the driver and passengers, differentiating between animate and inanimate objects, detecting the presence of occupied or unoccupied child seats, rear-facing or forward-facing, and identifying and ascertaining the identity of the occupying items in the passenger compartment, a similar system can be used for monitoring the interior of a truck, shipping container or other containers. 
     A processor such as control circuitry  20  is connected to the transmitter/receiver assemblies  49 ,  50 ,  51 ,  52 ,  54  and controls the transmission from the transmitters, if a transmission component is present in the assemblies, and captures the return signals from the receivers, if a receiver component is present in the assemblies. Control circuitry  20  usually contains analog to digital converters (ADCs) or a frame grabber or equivalent, a microprocessor containing sufficient memory and appropriate software including, for example, pattern recognition algorithms, and other appropriate drivers, signal conditioners, signal generators, etc. Usually, in any given implementation, only three or four of the transmitter/receiver assemblies would be used depending on their mounting locations as described below. In some special cases, such as for a simple classification system, only a single or sometimes only two transmitter/receiver assemblies are used. 
     A portion of the connection between the transmitter/receiver assemblies  49 ,  50 ,  51 ,  52 ,  54  and the control circuitry  20 , is shown as wires. These connections can be wires, either individual wires leading from the control circuitry  20  to each of the transmitter/receiver assemblies  49 ,  50 ,  51 ,  52 ,  54  or one or more wire buses or in some cases, wireless data transmission can be used. 
     The location of the control circuitry  20  in the dashboard of the vehicle is for illustration purposes only and does not limit the location of the control circuitry  20 . Rather, the control circuitry  20  may be located anywhere convenient or desired in the vehicle. 
     It is contemplated that a system and method in accordance with the invention can include a single transmitter and multiple receivers, each at a different location. Thus, each receiver would not be associated with a transmitter forming transmitter/receiver assemblies. Rather, for example, with reference to  FIG. 8A , only element  51  could constitute a transmitter/receiver assembly and elements  49 ,  50 ,  52  and  54  could be receivers only. 
     On the other hand, it is conceivable that in some implementations, a system and method in accordance with the invention include a single receiver and multiple transmitters. Thus, each transmitter would not be associated with a receiver forming transmitter/receiver assemblies. Rather, for example, with reference to  FIG. 8A , only element  51  would constitute a transmitter/receiver assembly and elements  49 ,  50 ,  52 ,  54  would be transmitters only. 
     One ultrasonic transmitter/receiver as used herein is similar to that used on modern auto-focus cameras such as manufactured by the Polaroid Corporation. Other camera auto-focusing systems use different technologies, which are also applicable here, to achieve the same distance to object determination. One camera system manufactured by Fuji of Japan, for example, uses a stereoscopic system which could also be used to determine the position of a vehicle occupant providing there is sufficient light available. In the case of insufficient light, a source of infrared light can be added to illuminate the driver. In a related implementation, a source of infrared light is reflected off of the windshield and illuminates the vehicle occupant. An infrared receiver  56  is located attached to the rear view mirror assembly  55 , as shown in  FIG. 8E . Alternately, the infrared can be sent by the device  50  and received by a receiver elsewhere. Since any of the devices shown in these figures could be either transmitters or receivers or both, for simplicity, only the transmitted and not the reflected wave fronts are frequently illustrated. 
     When using the surface of the windshield as a reflector of infrared radiation (for transmitter/receiver assembly and element  52 ), care must be taken to assure that the desired reflectivity at the frequency of interest is achieved. Mirror materials, such as metals and other special materials manufactured by Eastman Kodak, have a reflectivity for infrared frequencies that is substantially higher than at visible frequencies. They are thus candidates for coatings to be placed on the windshield surfaces for this purpose. 
     There are two preferred methods of implementing the vehicle interior monitoring system of at least one of the inventions disclosed herein, a microprocessor system and an application specific integrated circuit system (ASIC). Both of these systems are represented schematically as  20  herein. In some systems, both a microprocessor and an ASIC are used. In other systems, most if not all of the circuitry is combined onto a single chip (system on a chip). The particular implementation depends on the quantity to be made and economic considerations. A block diagram illustrating the microprocessor system is shown in  FIG. 9A  which shows the implementation of the system of  FIG. 1 . An alternate implementation of the  FIG. 1  system using an ASIC is shown in  FIG. 9B . In both cases, the target, which may be a rear facing child seat, is shown schematically as  2  and the three transducers as  6 ,  8 , and  10 . In the embodiment of  FIG. 9A , there is a digitizer coupled to the receivers  6 ,  10  and the processor, and an indicator coupled to the processor. In the embodiment of  FIG. 9B , there is a memory unit associated with the ASIC and also an indicator coupled to the ASIC. 
     The position of the occupant may be determined in various ways including by receiving and analyzing waves from a space in a passenger compartment of the vehicle occupied by the occupant, transmitting waves to impact the occupant, receiving waves after impact with the occupant and measuring time between transmission and reception of the waves, obtaining two or three-dimensional images of a passenger compartment of the vehicle occupied by the occupant and analyzing the images with an optional focusing of the images prior to analysis, or by moving a beam of radiation through a passenger compartment of the vehicle occupied by the occupant. The waves may be ultrasonic, radar, electromagnetic, passive infrared, and the like, and capacitive in nature. In the latter case, a capacitance or capacitive sensor may be provided. An electric field sensor could also be used. 
     Deployment of the airbag can be disabled when the determined position is too close to the airbag. 
     The rate at which the airbag is inflated and/or the time in which the airbag is inflated may be determined based on the determined position of the occupant. 
     A system for controlling deployment of an airbag comprises a determining system for determining the position of an occupant to be protected by deployment of the airbag, a sensor system for assessing the probability that a crash requiring deployment of the airbag is occurring, and a circuit coupled to the determining system, the sensor system and the airbag for enabling deployment of the airbag in consideration of the determined position of the occupant and the assessed probability that a crash is occurring. The circuit is structured and arranged to analyze the assessed probability relative to a pre-determined threshold whereby deployment of the airbag is enabled only when the assessed probability is greater than the threshold. Further, the circuit are arranged to adjust the threshold based on the determined position of the occupant. The determining system may any of the determining systems discussed above. 
     One method for controlling deployment of an airbag comprises a crash sensor for providing information on a crash involving the vehicle, a position determining arrangement for determining the position of an occupant to be protected by deployment of the airbag and a circuit coupled to the airbag, the crash sensor and the position determining arrangement and arranged to issue a deployment signal to the airbag to cause deployment of the airbag. The circuit is arranged to consider a deployment threshold which varies based on the determined position of the occupant. Further, the circuit is arranged to assess the probability that a crash requiring deployment of the airbag is occurring and analyze the assessed probability relative to the threshold whereby deployment of the airbag is enabled only when the assessed probability is greater than the threshold. 
     In another implementation, the sensor algorithm may determine the rate that gas is generated to affect the rate at which the airbag is inflated. In all of these cases the position of the occupant is used to affect the deployment of the airbag either as to whether or not it should be deployed at all, the time of deployment or as to the rate of inflation. 
     1.1 Optics 
     In  FIG. 4 , the ultrasonic transducers of the previous designs are replaced by laser transducers  8  and  9  which are connected to a microprocessor  20 . In all other manners, the system operates the same. The design of the electronic circuits for this laser system is described in U.S. Pat. No. 5,653,462 and in particular FIG. 8 thereof and the corresponding description. In this case, a pattern recognition system such as a neural network system is employed and uses the demodulated signals from the laser transducers  8  and  9 . 
     A more complicated and sophisticated system is shown conceptually in  FIG. 5  where transmitter/receiver assembly  52  is illustrated. In this case, as described briefly above, an infrared transmitter and a pair of optical receivers are used to capture the reflection of the passenger. When this system is used to monitor the driver as shown in  FIG. 5 , with appropriate circuitry and a microprocessor, the behavior of the driver can be monitored. Using this system, not only can the position and velocity of the driver be determined and used in conjunction with an airbag system, but it is also possible to determine whether the driver is falling asleep or exhibiting other potentially dangerous behavior by comparing portions of his/her image over time. In this case, the speed of the vehicle can be reduced or the vehicle even stopped if this action is considered appropriate. This implementation has the highest probability of an unimpeded view of the driver since he/she must have a clear view through the windshield in order to operate the motor vehicle. 
     The output of microprocessor  20  of the monitoring system is shown connected schematically to a general interface  36  which can be the vehicle ignition enabling system; the entertainment system; the seat, mirror, suspension or other adjustment systems; telematics or any other appropriate vehicle system. 
       FIG. 8A  illustrates a typical wave pattern of transmitted infrared waves from transmitter/receiver assembly  49 , which is mounted on the side of the vehicle passenger compartment above the front, driver&#39;s side door. Transmitter/receiver assembly  51 , shown overlaid onto transmitter/receiver  49 , is actually mounted in the center headliner of the passenger compartment (and thus between the driver&#39;s seat and the front passenger seat), near the dome light, and is aimed toward the driver. Typically, there will be a symmetrical installation for the passenger side of the vehicle. That is, a transmitter/receiver assembly would be arranged above the front, passenger side door and another transmitter/receiver assembly would be arranged in the center headliner, near the dome light, and aimed toward the front, passenger side door. Additional transducers can be mounted in similar places for monitoring both rear seat positions, another can be used for monitoring the trunk or any other interior volumes. As with the ultrasonic installations, most of the examples below are for automobile applications since these are generally the most complicated. Nevertheless, at least one of the inventions disclosed herein is not limited to automobile vehicles and similar but generally simpler designs apply to other vehicles such as shipping containers, railroad cars and truck trailers. 
     In a preferred embodiment, each transmitter/receiver assembly  49 ,  51  comprises an optical transducer, which may be a camera and an LED, that will frequently be used in conjunction with other optical transmitter/receiver assemblies such as shown at  50 ,  52  and  54 , which act in a similar manner. In some cases, especially when a low cost system is used primarily to categorize the seat occupancy, a single or dual camera installation is used. In many cases, the source of illumination is not co-located with the camera. For example, in one preferred implementation, two cameras such as  49  and  51  are used with a single illumination source located at  49 . 
     These optical transmitter/receiver assemblies frequently comprise an optical transmitter, which may be an infrared LED (or possibly a near infrared (NIR) LED), a laser with a diverging lens or a scanning laser assembly, and a receiver such as a CCD or CMOS array and particularly an active pixel CMOS camera or array or a HDRL or HDRC camera or array as discussed below. The transducer assemblies map the location of the occupant(s), objects and features thereof, in a two or three-dimensional image as will now be described in more detail. 
     Optical transducers using CCD arrays are now becoming price competitive and, as mentioned above, will soon be the technology of choice for interior vehicle monitoring. A single CCD array of 160 by 160 pixels, for example, coupled with the appropriate trained pattern recognition software, can be used to form an image of the head of an occupant and accurately locate the head, eyes, ears etc. for some of the purposes of at least one of the inventions disclosed herein. 
     The location or position of the occupant can be determined in various ways as noted and listed above and below as well. Generally, any type of occupant sensor can be used. Some particular occupant sensors which can be used in the systems and methods in accordance with the invention. Specifically, a camera or other device for obtaining images of a passenger compartment of the vehicle occupied by the occupant and analyzing the images can be mounted at the locations of the transmitter and/or receiver assemblies  49 ,  50 ,  51 , and  54  in  FIG. 8C . The camera or other device may be constructed to obtain three-dimensional images and/or focus the images on one or more optical arrays such as CCDs. Further, a mechanism for moving a beam of radiation through a passenger compartment of the vehicle occupied by the occupant, i.e., a scanning system, can be used. When using ultrasonic or electromagnetic waves, the time of flight between the transmission and reception of the waves can be used to determine the position of the occupant. The occupant sensor can also be arranged to receive infrared radiation from a space in a passenger compartment of the vehicle occupied by the occupant. It can also comprise an electric field sensor operative in a seat occupied by the occupant or a capacitance sensor operative in a seat occupied by the occupant. The implementation of such sensors in the invention will be readily appreciated by one skilled in the art in view of the disclosure herein of general occupant sensors for sensing the position of the occupant using waves, energy or radiation. 
     Looking now at  FIG. 16 , a schematic illustration of a system for controlling operation of a vehicle based on recognition of an authorized individual in accordance with the invention is shown. One or more images of the passenger compartment  105  are received at  106  and data derived therefrom at  107 . Multiple image receivers may be provided at different locations. The data derivation may entail any one or more of numerous types of image processing techniques such as those described in U.S. Pat. No. 6,397,136 including those designed to improve the clarity of the image. A pattern recognition algorithm, e.g., a neural network, is trained in a training phase  108  to recognize authorized individuals. The training phase can be conducted upon purchase of the vehicle by the dealer or by the owner after performing certain procedures provided to the owner, e.g., entry of a security code or key. In the case of the operator of a truck or when such an operator takes possession of a trailer or cargo container, the identity of the operator can be sent by telematics to a central station for recording and perhaps further processing. 
     In the training phase for a theft prevention system, the authorized driver(s) would sit themselves in the driver or passenger seat and optical images would be taken and processed to obtain the pattern recognition algorithm. A processor  109  is embodied with the pattern recognition algorithm thus trained to identify whether a person is the authorized individual by analysis of subsequently obtained data derived from optical images. The pattern recognition algorithm in processor  109  outputs an indication of whether the person in the image is an authorized individual for which the system is trained to identify. A security system  110  enables operations of the vehicle when the pattern recognition algorithm provides an indication that the person is an individual authorized to operate the vehicle and prevents operation of the vehicle when the pattern recognition algorithm does not provide an indication that the person is an individual authorized to operate the vehicle. 
     Optionally, an optical transmitting unit  111  is provided to transmit electromagnetic energy into the passenger compartment, or other volume in the case of other vehicles, such that electromagnetic energy transmitted by the optical transmitting unit is reflected by the person and received by the optical image reception device  106 . 
     As noted above, several different types of optical reception devices can be used including a CCD array, a CMOS array, focal plane array (FPA), Quantum Well Infrared Photodetector (QWIP), any type of two-dimensional image receiver, any type of three-dimensional image receiver, an active pixel camera and an HDRC camera. 
     The processor  109  can be trained to determine the position of the individuals included in the images obtained by the optical image reception device, as well as the distance between the optical image reception devices and the individuals. 
     Instead of a security system, another component in the vehicle can be affected or controlled based on the recognition of a particular individual. For example, the rear view mirror, seat, seat belt anchorage point, headrest, pedals, steering wheel, entertainment system, ride quality, air-conditioning/ventilation system can be adjusted. 
       FIG. 17  shows the components of the manner in which an environment of the vehicle, designated  100 , is monitored. The environment may either be an interior environment (car, trailer, truck, shipping container, railroad car), the entire passenger compartment or only a part thereof, or an exterior environment. An active pixel camera  101  obtains images of the environment and provides the images or a representation thereof, or data derived therefrom, to a processor  102 . The processor  102  determines at least one characteristic of an object in the environment based on the images obtained by the active pixel camera  101 , e.g., the presence of an object in the environment, the type of object in the environment, the position of an object in the environment, the motion of an object in the environment and the velocity of an object in the environment. The environment can be any vehicle environment. Several active pixel cameras can be provided, each focusing on a different area of the environment, although some overlap is desired. Instead of an active pixel camera or array, a single light-receiving pixel can be used in some cases. 
     Systems based on ultrasonics and neural networks have been very successful in analyzing the seated-state of both the passenger and driver seats of automobiles. Such systems are now going into production for preventing airbag deployment when a rear facing child seat or and out-of-position occupant is present. The ultrasonic systems, however, suffer from certain natural limitations that prevent system accuracy from getting better than about 99 percent. These limitations relate to the fact that the wavelength of ultrasound is typically between 3 mm and 8 mm. As a result, unexpected results occur which are due partially to the interference of reflections from different surfaces. Additionally, commercially available ultrasonic transducers are tuned devices that require several cycles before they transmit significant energy and similarly require several cycles before they effectively receive the reflected signals. This requirement has the effect of smearing the resolution of the ultrasound to the point that, for example, using a conventional 40 kHz transducer, the resolution of the system is approximately three inches. 
     In contrast, the wavelength of near infrared is less than one micron and no significant interferences occur. Similarly, the system is not tuned and therefore is theoretically sensitive to a very few cycles. As a result, resolution of the optical system is determined by the pixel spacing in the CCD or CMOS arrays. For this application, typical arrays have been chosen to be 100 pixels by 100 pixels and therefore the space being imaged can be broken up into pieces that are significantly less than 1 cm in size. If greater resolution is required, arrays having larger numbers of pixels are readily available. Another advantage of optical systems is that special lenses can be used to magnify those areas where the information is most critical and operate at reduced resolution where this is not the case. For example, the area closest to the at-risk zone in front of the airbag can be magnified. 
     To summarize, although ultrasonic neural network systems are operating with high accuracy, they do not totally eliminate the problem of deaths and injuries caused by airbag deployments. Optical systems, on the other hand, at little or no increase in cost, have the capability of virtually 100 percent accuracy. Additional problems of ultrasonic systems arise from the slow speed of sound and diffraction caused by variations is air density. The slow sound speed limits the rate at which data can be collected and thus eliminates the possibility of tracking the motion of an occupant during a high speed crash. 
     In an embodiment wherein electromagnetic energy is used, it is to be appreciated that any portion of the electromagnetic signals that impinges upon a body portion of the occupant is at least partially absorbed by the body portion. Sometimes, this is due to the fact that the human body is composed primarily of water, and that electromagnetic energy at certain frequencies can be readily absorbed by water. The amount of electromagnetic signal absorption is related to the frequency of the signal, and size or bulk of the body portion that the signal impinges upon. For example, a torso of a human body tends to absorb a greater percentage of electromagnetic energy as compared to a hand of a human body for some frequencies. 
     Thus, when electromagnetic waves or energy signals are transmitted by a transmitter, the returning waves received by a receiver provide an indication of the absorption of the electromagnetic energy. That is, absorption of electromagnetic energy will vary depending on the presence or absence of a human occupant, the occupant&#39;s size, bulk, etc., so that different signals will be received relating to the degree or extent of absorption by the occupying item on a seat or elsewhere in the vehicle. The receiver will produce a signal representative of the returned waves or energy signals which will thus constitute an absorption signal as it corresponds to the absorption of electromagnetic energy by the occupying item in the seat. 
     Another optical infrared transmitter and receiver assembly is shown generally at  52  in  FIG. 5  and is mounted onto the instrument panel facing the windshield. Although not shown in this view, reference  52  consists of three devices, one transmitter and two receivers, one on each side of the transmitter. In this case, the windshield is used to reflect the illumination light, and also the light reflected back by the driver, in a manner similar to the “heads-up” display which is now being offered on several automobile models. The “heads-up” display, of course, is currently used only to display information to the driver and is not used to reflect light from the driver to a receiver. In this case, the distance to the driver is determined stereoscopically through the use of the two receivers. In its most elementary sense, this system can be used to measure the distance between the driver and the airbag module. In more sophisticated applications, the position of the driver, and particularly of the driver&#39;s head, can be monitored over time and any behavior, such as a drooping head, indicative of the driver falling asleep or of being incapacitated by drugs, alcohol or illness can be detected and appropriate action taken. Other forms of radiation including visual light, radar, terahertz and microwaves as well as high frequency ultrasound could also be used by those skilled in the art. 
     A passive infrared system could be used to determine the position of an occupant relative to an airbag or even to detect the presence of a human or other life form in a vehicle. Passive infrared measures the infrared radiation emitted by the occupant and compares it to the background. As such, unless it is coupled with an imager and a pattern recognition system, it can best be used to determine that an occupant is moving toward the airbag since the amount of infrared radiation would then be increasing. Therefore, it could be used to estimate the velocity of the occupant but not his/her position relative to the airbag, since the absolute amount of such radiation will depend on the occupant&#39;s size, temperature and clothes as well as on his position. When passive infrared is used in conjunction with another distance measuring system, such as the ultrasonic system described above, the combination would be capable of determining both the position and velocity of the occupant relative to the airbag. Such a combination would be economical since only the simplest circuits would be required. In one implementation, for example, a group of waves from an ultrasonic transmitter could be sent to an occupant and the reflected group received by a receiver. The distance to the occupant would be proportional to the time between the transmitted and received groups of waves and the velocity determined from the passive infrared system. This system could be used in any of the locations illustrated in  FIG. 5  as well as others not illustrated including truck trailers and cargo containers. 
     Recent advances in Quantum Well Infrared Photodetectors (QWIP) are particularly applicable here due to the range of frequencies that they can be designed to sense (3-18 microns) which encompasses the radiation naturally emitted by the human body. Currently, QWIPs need to be cooled and thus are not quite ready for vehicle applications. There are, however, longer wave IR detectors based of focal plane arrays (FPA) that are available in low resolution now. As the advantages of SWIR, MWIR and LWIR become more evident, devices that image in this part of the electromagnetic spectrum will become more available. 
     Passive infrared could also be used effectively in conjunction with a pattern recognition system. In this case, the passive infrared radiation emitted from an occupant can be focused onto a QWIP or FPA or even a CCD array, in some cases, and analyzed with appropriate pattern recognition circuitry, or software, to determine the position of the occupant. Such a system could be mounted at any of the preferred mounting locations shown in  FIG. 5  as well as others not illustrated. 
     Lastly, it is possible to use a modulated scanning beam of radiation and a single pixel receiver, PIN or avalanche diode, in the inventions described above. Any form of energy or radiation used above may also be in the infrared or radar spectrums and may be polarized and filters may be used in the receiver to block out sunlight etc. These filters may be notch filters and may be made integral with the lens as one or more coatings on the lens surface as is well known in the art. Note, in many applications, this may not be necessary as window glass blocks all IR except the near IR. 
     For some cases, such as a laser transceiver that may contain a CMOS array, CCD, PIN or avalanche diode or other light sensitive devices, a scanner is also required that can be either solid state as in the case of some radar systems based on a phased array, an acoustical optical system as is used by some laser systems, or a mirror or MEMS based reflecting scanner, or other appropriate technology. 
     An optical classification system using a single or dual camera design will now be discussed, although more than two cameras can also be used in the system described below. The occupant sensing system should perform occupant classification as well as position tracking since both are critical information for making decision of airbag deployment in an auto accident. For other purposes such as container or truck trailer monitoring generally only classification is required.  FIG. 18  shows a preferred occupant sensing strategy. Occupant classification may be done statically since the type of occupant does not change frequently. Position tracking, however, has to be done dynamically so that the occupant can be tracked reliably during pre-crash braking situations. Position tracking should provide continuous position information so that the speed and the acceleration of the occupant can be estimated and a prediction can be made even before the next actual measurement takes place. 
     The current assignee has demonstrated that occupant classification and dynamic position tracking can be done with a stand-alone optical system that uses a single camera. The same image information is processed in a similar fashion for both classification and dynamic position tracking. As shown in  FIG. 19 , the whole process can involve five steps: image acquisition, image preprocessing, feature extraction, neural network processing, and post-processing. These steps will now be discussed. 
     Step- 1  image acquisition is to obtain the image from the imaging hardware. The imaging hardware main components may include one or more of the following image acquisition devices, a digital CMOS camera, a high-power near-infrared LED, and the LED control circuit. A plurality of such image acquisition devices can be used. This step also includes image brightness detection and LED control for illumination. Note that the image brightness detection and LED control do not have to be performed for every frame. For example, during a specific interval, the ECU can turn the LED ON and OFF and compare the resulting images. If the image with LED ON is significantly brighter, then it is identified as nighttime condition and the LED will remain ON; otherwise, it is identified as daytime condition and the LED can remain OFF. 
     Step- 2  image preprocessing performs such activities as removing random noise and enhancing contrast. Under daylight condition, the image contains unwanted contents because the background is illuminated by sunlight. For example, the movement of the driver, other passengers in the backseat, and the scenes outside the passenger window can interfere if they are visible in the image. Usually, these unwanted contents cannot be completely eliminated by adjusting the camera position, but they can be removed by image preprocessing. This process is much less complicated for some vehicle monitoring cases such as trailer and cargo containers where sunlight is rarely a problem. 
     Step- 3  feature extraction compresses the data from, for example, the 76,800 image pixels in the prototype camera to only a few hundred floating-point numbers, which may be based of edge detection algorithms, while retaining most of the important information. In this step, the amount of the data is significantly reduced so that it becomes possible to process the data using neural networks in Step- 4 . 
     There are many methods to extract information from an image for the purposes herein. One preferred method is to extract information as to the location of the edges of an object and then to input this information into a pattern recognition algorithm. As will be discussed below, the location and use of the edges of an occupying item as features in an imager is an important contribution of the inventions disclosed herein for occupant or other object sensing and tracking in a vehicle. 
     Steps  2  and  3 , image pre-processing and feature extraction can be combined or both performed separately by use of one or more of the image subtraction techniques described herein. One image subtraction technique is to compare a later obtained image from a series of images from an imager to at least one previously obtained image from the series of images from the same imager to ascertain the presence of differences between the images. Step  4 , below, is the analysis of the differences to obtain information about the occupying item. There are various ways to compare images, one of which is to subtract the later obtained image from the previously obtained image to determine which image pixels have changed in value. In one embodiment, the previously obtained image is obtained without infrared illumination and the later obtained image is obtained with infrared illumination. Comparison of the images can thus involve subtracting the later obtained image from the previously obtained image or subtracting the previously obtained image from the later obtained image. The images may be obtained from a single imaging device mounted in the vehicle to obtain the entire series of images. In some embodiments, each previously obtained image is an image of the compartment including permanent structure in the compartment without a temporary occupying item. Comparison of images may thus involve subtracting each previously obtained image from the later obtained image to thereby remove the effect of the presence of permanent structure from the later obtained image. In one embodiment, edges of shapes in the images are determined prior to comparison of the images such that only the determined edges of the shapes of the previously obtained image and the later obtained image are compared to one another. Comparison of images may involve determining which reflections of the occupying item remain static for all of the images and determining which reflections move between the images whereby analysis of the differences constitutes analyzing the reflections which move. 
     Step- 4 , to increase the system learning capability and performance stability, modular or combination neural networks can be used with each module handling a different subtask (for example, to handle either daytime or nighttime condition, or to classify a specific occupant group). In an optical embodiment for analysis of an occupying item in a seat, after use of image subtraction techniques to images, differences between the images may be analyzed using a neural network or more generally any trained pattern recognition system, to determine, for example, position of the occupying item such as the position relative to an occupant protection system, to determine the presence of a head or chest of a human occupant if a human is the occupying item and the position of the head or chest, when present, relative to a deployable occupant protection system, to determine motion of the occupying item and to determine an identity of the occupying item. As a result of the analysis, deployment of the occupant protection system can be controlled, e.g., based on the position of the head or chest of the occupant when the presence of an occupant is determined. 
     Step- 5  post-processing removes random noise in the neural network outputs via filtering. Besides filtering, additional knowledge can be used to remove some of the undesired changes in the neural network output. For example, it is impossible to change from an adult passenger to a child restraint without going through an empty-seat state or key-off. After post-processing, the final decision of classification is output to the airbag control module, or other system, and it is up to the automakers or vehicle owners or managers to decide how to utilize the information. A set of display LED&#39;s on the instrument panel provides the same information to the vehicle occupant(s). 
     If multiple images are acquired substantially simultaneously, each by a different image acquisition device, then each image can be processed in the manner above. A comparison of the classification of the occupant obtained from the processing of the image obtained by each image acquisition device can be performed to ascertain any variations. If there are no variations, then the classification of the occupant is likely to be very accurate. However, in the presence of variations, then the images can be discarded and new images acquired until variations are eliminated. 
     A majority approach might also be used. For example, if three or more images are acquired by three different cameras, or other imagers, then if two provide the same classification, this classification will be considered the correct classification. Alternately, all of the data from all of the images can be analyzed and together in one combined neural network or combination neural network. 
     Referring again to  FIG. 18 , after the occupant is classified from the acquired image or images, i.e., as an empty seat (classification  1 ), an infant carrier or an occupied rearward-facing child seat (classification  2 ), a child or occupied forward-facing child seat (classification  3 ) or an adult passenger (classification  4 ), additional classification may be performed for the purpose of determining a recommendation for control of a vehicular component such as an occupant restraint device. 
     For classifications  1  and  2 , the recommendation is always to suppress deployment of the occupant restraint device. For classifications  3  and  4 , dynamic position tracking is performed. This involves the training of neural networks or other pattern recognition techniques, one for each classification, so that once the occupant is classified, the particular neural network can be trained to analyze the dynamic position of that occupant will be used. That is, the data from acquired images will be input to the neural network to determine a recommendation for control of the occupant restraint device and also into the neural network for dynamic position tracking of an adult passenger when the occupant is classified as an adult passenger. The recommendation may be either a suppression of deployment, a depowered deployment or a full power deployment. 
     To additionally summarize, the system described can be a single or multiple camera or other imager system where the cameras are typically mounted on the roof or headliner of the vehicle either on the roof rails or center or other appropriate location. The source of illumination is typically one or more infrared LEDs and if infrared, the images are typically monochromic, although color can effectively be used when natural illumination is available. Images can be obtained at least as fast as 100 frames per second; however, slower rates are frequently adequate. A pattern recognition algorithmic system can be used to classify the occupancy of a seat into a variety of classes such as: (1) an empty seat; (2) an infant seat which can be further classified as rear or forward facing; (3) a child which can be further classified as in or out-of-position and (4) an adult which can also be further classified as in or out-of-position. Such a system can be used to suppress the deployment of an occupant restraint. If the occupant is further tracked so that his or her position relative to the airbag, for example, is known more accurately, then the airbag deployment can be tailored to the position of the occupant. Such tracking can be accomplished since the location of the head of the occupant is either known from the analysis or can be inferred due to the position of other body parts. 
     As will be discussed in more detail below, data and images from the occupant sensing system, which can include an assessment of the type and magnitude of injuries, along with location information if available, can be sent to an appropriate off-vehicle location such as an emergency medical system (EMS) receiver either directly by cell phone, for example, via a telematics system such as OnStar®, or over the internet if available in order to aid the service in providing medical assistance and to access the urgency of the situation. The system can additionally be used to identify that there are occupants in the vehicle that has been parked, for example, and to start the vehicle engine and heater if the temperature drops below a safe threshold or to open a window or operate the air conditioning in the event that the temperature raises to a temperature above a safe threshold. In both cases, a message can be sent to the EMS or other services by any appropriate method such as those listed above. A message can also be sent to the owner&#39;s beeper or PDA. 
     The system can also be used alone or to augment the vehicle security system to alert the owner or other person or remote site that the vehicle security has been breeched so as to prevent danger to a returning owner or to prevent a theft or other criminal act. As discussed herein, one method of alerting the owner or another interested person is through a satellite communication with a service such as Skybitz or equivalent. The advantage here is that the power required to operate the system can be supplied by a long life battery and thus the system can be independent of the vehicle power system. 
     As discussed above and below, other occupant sensing systems can also be provided that monitor the breathing or other motion of the driver, for example, including the driver&#39;s heartbeat, eye blink rate, gestures, direction or gaze and provide appropriate responses including the control of a vehicle component including any such components listed herein. If the driver is falling asleep, for example, a warning can be issued and eventually the vehicle directed off the road if necessary. 
     The combination of a camera system with a microphone and speaker allows for a wide variety of options for the control of vehicle components. A sophisticated algorithm can interpret a gesture, for example, that may be in response to a question from the computer system. The driver may indicate by a gesture that he or she wants the temperature to change and the system can then interpret a “thumbs up” gesture for higher temperature and a “thumbs down” gesture for a lower temperature. When it is correct, the driver can signal by gesture that it is fine. A very large number of component control options exist that can be entirely executed by the combination of voice, speakers and a camera that can see gestures. When the system does not understand, it can ask to have the gesture repeated, for example, or it can ask for a confirmation. Note, the presence of an occupant in a seat can even be confirmed by a word spoken by the occupant, for example, which can use a technology known as voice print if it is desired to identify the particular occupant. 
     It is also to be noted that the system can be trained to recognize essentially any object or object location that a human can recognize and even some that a human cannot recognize since the system can have the benefit of special illumination as discussed above. If desired, a particular situation such as the presence of a passenger&#39;s feet on the instrument panel, hand on a window frame, head against the side window, or even lying down with his or her head in the lap of the driver, for example, can be recognized and appropriate adjustments to a component performed. 
     Note, it has been assumed that the camera would be permanently mounted in the vehicle in the above discussion. This need not be the case and especially for some after-market products, the camera function can be supplied by a cell phone or other device and a holder appropriately (and removably) mounted in the vehicle. 
     Again the discussion above related primarily to sensing the interior of and automotive vehicle for the purposes of controlling a vehicle component such as a restraint system. When the vehicle is a shipping container then different classifications can be used depending on the objective. If it is to determine whether there is a life form moving within the container, a stowaway, for example, then that can be one classification. Another may be the size of a cargo box or whether it is moving. Still another may be whether there is an unauthorized entry in progress or that the door has been opened. Others include the presence of a particular chemical vapor, radiation, excessive temperature, excessive humidity, excessive shock, excessive vibration etc. 
     1.1.1 Eyesafe Application 
     When using optics, the use of eye-safe frequencies is critical if there is a possibility that a human occupant is in the scanning field. Currently, active IR uses the near IR range which has wavelengths below 1400 nanometers. Recent developments in the SWIR range (particularly greater than 1400 nm and more specifically in a range of 1400 nm to about 1700 nm) use indium gallium arsenide (InGaAs) for an imager permit much higher power transmissions as they are below the eye safety zone (see, e.g., Martin H. Ettenberg “A Little Night Vision”, Solutions for the Electronic Imaging Professional, March 2005, a Cygnus Publication, www.sensorsinc.com/downloads/article_Adv.Imging — 305.pdf). 
     Use of such eyesafe IR, i.e., greater than 1400 nm, to illuminate an area being observed is significantly advantageous since much brighter illumination can be used. If images are taken in such an illuminated area with a camera that is only sensitive in this range, through use of appropriate notch filter, then the effects of sunlight and other artificial light can be removed. This makes the system much less sensitive to sunlight effects. It also makes the system easier to record an image (or an edge image) of an empty seat, for example, that would be invariant to sun or other uncontrollable illumination and thus the system would be more robust. The edges of a seat, for example, would always look the same regardless of the external illumination. 
     Use of a near infrared frequency such as SWIR (above 1.4 microns) may be in the form of a laser spotlight which would pass eye safety requirements. This laser spotlight coupled with range gating, e.g., through use of a notch filter, permits easy segmentation of objects in the captured image and thus the rapid classification using, for example, a modular neural network or combination neural network system. 
     Application of illumination in a frequency above 1400 nm can be implemented in any of the embodiments described herein wherein illumination is or can be provided to the vehicular compartment with images thereof being obtained subsequent to or contemporaneous with the illumination. 
     1.2 Ultrasonics and Optics 
     In some cases, a combination of an optical system such as a camera and an ultrasonic system can be used. In this case, the optical system can be used to acquire an image providing information as to the vertical and lateral dimensions of the scene and the ultrasound can be used to provide longitudinal information, for example. 
     A more accurate acoustic system for determining the distance to a particular object, or a part thereof, in the passenger compartment is exemplified by transducers  24  in  FIG. 8E . In this case, three ultrasonic transmitter/receivers  24  are shown spaced apart mounted onto the A-pillar of the vehicle. Due to the wavelength, it is difficult to get a narrow beam using ultrasonics without either using high frequencies that have limited range or a large transducer. A commonly available 40 kHz transducer, for example, is about 1 cm. in diameter and emits a sonic wave that spreads at about a sixty-degree angle. To reduce this angle requires making the transducer larger in diameter. An alternate solution is to use several transducers and to phase the transmissions from the transducers so that they arrive at the intended part of the target in phase. Reflections from the selected part of the target are then reinforced whereas reflections from adjacent parts encounter interference with the result that the distance to the brightest portion within the vicinity of interest can be determined. A low-Q transducer may be necessary for this application. 
     By varying the phase of transmission from the three transducers  24 , the location of a reflection source on a curved line can be determined. In order to locate the reflection source in space, at least one additional transmitter/receiver is required which is not co-linear with the others. The waves shown in  FIG. 8E  coming from the three transducers  24  are actually only the portions of the waves which arrive at the desired point in space together in phase. The effective direction of these wave streams can be varied by changing the transmission phase between the three transmitters  24 . 
     A determination of the approximate location of a point of interest on the occupant can be accomplished by a CCD or CMOS array and appropriate analysis and the phasing of the ultrasonic transmitters is determined so that the distance to the desired point can be determined. 
     Although the combination of ultrasonics and optics has been described, it will now be obvious to others skilled in the art that other sensor types can be combined with either optical or ultrasonic transducers including weight sensors of all types as discussed below, as well as electric field, chemical, temperature, humidity, radiation, vibration, acceleration, velocity, position, proximity, capacitance, angular rate, heartbeat, radar, other electromagnetic, and other sensors. 
     1.3 Other Transducers 
     In  FIG. 4 , the ultrasonic transducers of the previous designs can be replaced by laser or other electromagnetic wave transducers or transceivers  8  and  9 , which are connected to a microprocessor  20 . As discussed above, these are only illustrative mounting locations and any of the locations described herein are suitable for particular technologies. Also, such electromagnetic transceivers are meant to include the entire electromagnetic spectrum including from X-rays to low frequencies where sensors such as capacitive or electric field sensors including so called “displacement current sensors” as discussed in detail herein, and the auto-tune antenna sensor also discussed herein operate. 
     A block diagram of an antenna based near field object detector is illustrated in  FIG. 20 . The circuit variables are defined as follows: 
     F=Frequency of operation Hz. 
     ω=2*π*F radians/second 
     α=Phase angle between antenna voltage and antenna current. 
     A, k 1 , k 2 , k 3 , k 4  are scale factors, determined by system design. 
     Tp 1 - 8  are points on  FIG. 20 . 
     Tp 1 =k 1 *Sin(ωt) 
     Tp 2 =k 1 *Cos(ωt) Reference voltage to phase detector 
     Tp 3 =k 2 *Sin(ωt) drive voltage to Antenna 
     Tp 4 =k 3 *Cos(ω+δ) Antenna current 
     Tp 5 =k 4 *Cos(ωt+δ) Voltage representing Antenna current 
     Tp 6 =0.5ωt)Sin(ωT) Output of phase detector 
     Tp 7 =Absorption signal output 
     Tp 8 =Proximity signal output 
     In a tuned circuit, the voltage and the current are 90 degrees out of phase with each other at the resonant frequency. The frequency source supplies a signal to the phase shifter. The phase shifter outputs two signals that are out of phase by 90 degrees at frequency F. The drive to the antenna is the signal Tp 3 . The antenna can be of any suitable type such as dipole, patch, Yagi etc. When the signal Tp 1  from the phase shifter has sufficient power, the power amplifier may be eliminated. The antenna current is at Tp 4 , which is converted into a voltage since the phase detector requires a voltage drive. The output of the phase detector is Tp 6 , which is filtered and used to drive the varactor tuning diode D 1 . Multiple diodes may be used in place of diode D 1 . The phase detector, amplifier filter, varactor tuning diode D 1  and current to voltage converter form a closed loop servo that keeps the antenna voltage and current in a 90-degree relationship at frequency F. The tuning loop maintains a 90-degree phase relationship between the antenna voltage and the antenna current. When an object such as a human comes near the antenna and attempts to detune it, the phase detector senses the phase change and adds or subtracts capacity by changing voltage to the varactor tuning diode D 1  thereby maintaining resonance at frequency F. 
     The voltage Tp 8  is an indication of the capacity of a nearby object. An object that is near the loop and absorbs energy from it, will change the amplitude of the signal at Tp 5 , which is detected and outputted to Tp 7 . The two signals Tp 7  and Tp 8  are used to determine the nature of the object near the antenna. 
     An object such as a human or animal with a fairly high electrical permittivity or dielectric constant and a relatively high loss dielectric property (high loss tangent) absorbs significant energy. This effect varies with the frequency used for the detection. If a human, who has a high loss tangent is present in the detection field, then the dielectric absorption causes the value of the capacitance of the object to change with frequency. For a human with high dielectric losses (high loss tangent), the decay with frequency will be more pronounced than for objects that do not present this high loss tangency. Exploiting this phenomenon makes it possible to detect the presence of an adult, child, baby, pet or other animal in the detection field. 
     An older method of antenna tuning used the antenna current and the voltage across the antenna to supply the inputs to a phase detector. In a 25 to 50 mw transmitter with a 50 ohm impedance, the current is small, it is therefore preferable to use the method described herein. 
     Note that the auto-tuned antenna sensor is preferably placed in the vehicle seat, headrest, floor, dashboard, headliner, or airbag module cover for an automotive vehicle. Seat mounted examples are shown at  12 ,  13 ,  14  and  15  in  FIG. 4  and a floor mounted example at  11 . In most other manners, the system operates the same. The geometry of the antenna system would differ depending on the vehicle to which it is applied and the intended purpose. Such a system, for example, can be designed to detect the entry of a person into a container or trailer through the door. 
     1.4 Circuits 
     There are several preferred methods of implementing the vehicle interior monitoring systems of at least one of the inventions disclosed herein including a microprocessor, an application specific integrated circuit system (ASIC), a system on a chip and/or an FPGA or DSP. These systems are represented schematically as  20  herein. In some systems, both a microprocessor and an ASIC are used. In other systems, most if not all of the circuitry is combined onto a single chip (system on a chip). The particular implementation depends on the quantity to be made and economic considerations. It also depends on time-to-market considerations where FPGA is frequently the technology of choice. 
     The design of the electronic circuits for a laser system is described in U.S. Pat. No. 5,653,462 and in particular FIG. 8 thereof and the corresponding description. 
     2. Adaptation 
     Let us now consider the process of adapting a system of occupant or object sensing transducers to a vehicle. For example, if a candidate system for an automobile consisting of eight transducers is considered, four ultrasonic transducers and four weight transducers, and if cost considerations require the choice of a smaller total number of transducers, it is a question of which of the eight transducers should be eliminated. Fortunately, the neural network technology discussed below provides a technique for determining which of the eight transducers is most important, which is next most important, etc. If the six most critical transducers are chosen, that is the six transducers which contain or provide the most useful information as determined by the neural network, a neural network can be trained using data from those six transducers and the overall accuracy of the system can be determined. Experience has determined, for example, that typically there is almost no loss in accuracy by eliminating two of the eight transducers, for example, two of the strain gage weight sensors. A slight loss of accuracy occurs when one of the ultrasonic transducers is then eliminated. In this manner, by the process of adaptation, the most cost effective system can be determined from a proposed set of sensors. 
     This same technique can be used with the additional transducers described throughout this disclosure. A transducer space can be determined with perhaps twenty different transducers comprised of ultrasonic, optical, electromagnetic, electric field, motion, heartbeat, weight, seat track, seatbelt payout, seatback angle and other types of transducers depending on the particular vehicle application. The neural network can then be used in conjunction with a cost function to determine the cost of system accuracy. In this manner, the optimum combination of any system cost and accuracy level can be determined. 
     System Adaptation involves the process by which the hardware configuration and the software algorithms are determined for a particular vehicle. Each vehicle model or platform will most likely have a different hardware configuration and different algorithms. Some of the various aspects that make up this process are as follows:
         The determination of the mounting location and aiming or orientation of the transducers.   The determination of the transducer field angles or area or volume monitored   The use of a combination neural network algorithm generating program such as available from International Scientific Research, Inc. to help generate the algorithms or other pattern recognition algorithm generation program. (as described below)   The process of the collection of data in the vehicle, for example, for neural network training purposes.   The method of automatic movement of the vehicle seats or other structures or objects etc. while data is collected   The determination of the quantity of data to acquire and the setups needed to achieve a high system accuracy, typically several hundred thousand vectors or data sets.   The collection of data in the presence of varying environmental conditions such as with thermal gradients.   The photographing of each data setup.   The makeup of the different databases and the use of typically three different databases.   The method by which the data is biased to give higher probabilities for, e.g., forward facing humans.   The automatic recording of the vehicle setup including seat, seat back, headrest, window, visor, armrest, and other object positions, for example, to help insure data integrity.   The use of a daily setup to validate that the transducer configuration and calibration has not changed.   The method by which bad data is culled from the database.   The inclusion of the Fourier transforms and other pre-processors of the data in the algorithm generation process if appropriate.   The use of multiple algorithm levels, for example, for categorization and position.   The use of multiple algorithms in parallel.   The use of post processing filters and the particularities of these filters.   The addition of fuzzy logic or other human intelligence based rules.   The method by which data errors are corrected using, for example, a neural network.   The use of a neural network generation program as the pattern recognition algorithm generating system, if appropriate.   The use of back propagation neural networks for training.   The use of vector or data normalization.   The use of feature extraction techniques, for ultrasonic systems for example, including:
           The number of data points prior to a peak.   The normalization factor.   The total number of peaks.   The vector or data set mean or variance.   
           The use of feature extraction techniques, for optics systems for example, including:
           Motion.   Edge detection.   Feature detection such as the eyes, head etc.   Texture detection.   Recognizing specific features of the vehicle.   Line subtraction—i.e., subtracting one line of pixels from the adjacent line with every other line illuminated. This works primarily only with rolling shutter cameras. The equivalent for a snapshot camera is to subtract an artificially illuminated image from one that is illuminated only with natural light.   
           The use of other computational intelligence systems such as genetic algorithms   The use the data screening techniques.   The techniques used to develop stable networks including the concepts of old and new networks.   The time spent or the number of iterations spent in, and method of, arriving at stable networks.   The technique where a small amount of data is collected first such as 16 sheets followed by a complete data collection sequence.   The use of a cellular neural network for high speed data collection and analysis when electromagnetic transducers are used.   The use of a support vector machine.       

     With respect to the line subtraction technique application to feature extraction, an image is composed of multiple lines of pixels. A rolling shutter camera, among others, is capable of obtaining or deriving an image composed of multiple lines of pixels with every other line illuminated. An image subtraction routine is performed on such an image so that an unilluminated line of pixels is subtracted from an illuminated line or vice versa. The same technique of subtracting an illuminated line of pixels from an unilluminated line or pixels or vice versa can be applied to other cameras wherein the entire image is either illuminated (by artificial means) or unilluminated (with only natural light) and subtracted from the opposite type of image. 
     In addition to line subtraction or image subtraction, another pre-processing techniques for optics is use of differential motion to discriminate an object from its background. Analysis of multiple images taken from a single camera will reveal differences attributed to motion of the object with these differences being analyzable to identify the object. The leading edge of the variation between the images is analyzed and can be compared to outlines of known shapes to determine the identity of the object in motion (or discriminate objects). Moreover, the outline formed by the edges of the differential images can be compared to (subtracted from) another differential image to determine motion of the occupant. The same analysis used to determine motion of the occupant can also be used to determine the position of the occupant relative to, for example, an occupant protection system, or determine whether the occupant is out-of-position for deployment of the occupant protections system. 
     The process of adapting the system to the vehicle begins with a survey of the vehicle model. Any existing sensors, such as seat position sensors, seat back sensors, door open sensors etc., are immediate candidates for inclusion into the system. Input from the customer will determine what types of sensors would be acceptable for the final system. These sensors can include: seat structure-mounted weight sensors, pad-type weight sensors, pressure-type weight sensors (e.g., bladders), seat fore and aft position sensors, seat-mounted capacitance, electric field or antenna sensors, seat vertical position sensors, seat angular position sensors, seat back position sensors, headrest position sensors, ultrasonic occupant sensors, optical occupant sensors, capacitive sensors, electric field sensors, inductive sensors, radar sensors, vehicle velocity and acceleration sensors, shock and vibration sensors, temperature sensors, chemical sensors, radiation sensors, brake pressure, seatbelt force, payout and buckle sensors, accelerometers, gyroscopes, etc. A candidate array of sensors is then chosen and mounted onto the vehicle. At least one of the inventions disclosed herein contemplates final systems including any such sensors or combinations of such sensors, where appropriate, for the monitoring of the interior and/or exterior of any vehicle as the term is defined above. 
     The vehicle can also be instrumented so that data input by humans is minimized. Thus, the positions of the various components in the vehicle such as the seats, windows, sun visor, armrest, etc. are automatically recorded where possible. Also, the position of the occupant while data is being taken is also recorded through a variety of techniques such as direct ultrasonic ranging sensors, optical ranging sensors, radar ranging sensors, optical tracking sensors etc., where appropriate. Special cameras can also be installed to take one or more pictures of the setup to correspond to each vector of data collected or at some other appropriate frequency. Herein, a vector is used to represent a set of data collected at a particular epoch or representative of the occupant or environment of vehicle at a particular point in time. 
     A standard set of vehicle setups is chosen for initial trial data collection purposes. Typically, the initial trial will consist of between 20,000 and 100,000 setups, although this range is not intended to limit the invention. 
     Initial digital data collection now proceeds for the trial setup matrix. The data is collected from the transducers, digitized and combined to form to a vector of input data for analysis by a pattern recognition system such as a neural network program or combination neural network program. This analysis should yield a training accuracy of nearly 100%. If this is not achieved, then additional sensors are added to the system or the configuration changed and the data collection and analysis repeated. Note, in some cases the task is sufficiently simple that a neural network is not necessary, such as the determination that a trailer is not empty. 
     In addition to a variety of seating states for objects in the passenger compartment, for example, the trial database can also include environmental effects such as thermal gradients caused by heat lamps and the operation of the air conditioner and heater, or where appropriate lighting variations or other environmental variations that might affect particular transducer types. A sample of such a matrix is presented in FIGS. 82A-82H of the &#39;881 application, with some of the variables and objects used in the matrix being designated or described in FIGS. 76-81D of the &#39;881 application for automotive occupant sensing. A similar matrix can be generated for other vehicle monitoring applications such as cargo containers and truck trailers. After the neural network has been trained on the trial database, the trial database will be scanned for vectors that yield erroneous results (which would likely be considered bad data). A study of those vectors along with vectors from associated in time cases are compared with the photographs to determine whether there is erroneous data present. If so, an attempt is made to determine the cause of the erroneous data. If the cause can be found, for example if a voltage spike on the power line corrupted the data, then the vector will be removed from the database and an attempt is made to correct the data collection process so as to remove such disturbances. 
     At this time, some of the sensors may be eliminated from the sensor matrix. This can be determined during the neural network analysis, for example, by selectively eliminating sensor data from the analysis to see what the effect if any results. Caution should be exercised here, however, since once the sensors have been initially installed in the vehicle, it requires little additional expense to use all of the installed sensors in future data collection and analysis. 
     The neural network, or other pattern recognition system, that has been developed in this first phase can be used during the data collection in the next phases as an instantaneous check on the integrity of the new vectors being collected. 
     The next set of data to be collected when neural networks are used, for example, is the training database. This will usually be the largest database initially collected and will cover such setups as listed, for example, in FIGS. 82A-82H of the &#39;881 application for occupant sensing. The training database, which may contain 500,000 or more vectors, will be used to begin training of the neural network or other pattern recognition system. In the foregoing description, a neural network will be used for exemplary purposes with the understanding that the invention is not limited to neural networks and that a similar process exists for other pattern recognition systems. At least one of the inventions disclosed herein is largely concerned with the use of pattern recognition systems for vehicle internal monitoring. The best mode is to use trained pattern recognition systems such as neural networks. While this is taking place, additional data will be collected according to FIGS. 78-80 and 83, of the &#39;881 application, of the independent and validation databases. 
     The training database is usually selected so that it uniformly covers all seated states that are known to be likely to occur in the vehicle. The independent database may be similar in makeup to the training database or it may evolve to more closely conform to the occupancy state distribution of the validation database. During the neural network training, the independent database is used to check the accuracy of the neural network and to reject a candidate neural network design if its accuracy, measured against the independent database, is less than that of a previous network architecture. 
     Although the independent database is not actually used in the training of the neural network, nevertheless, it has been found that it significantly influences the network structure or architecture. Therefore, a third database, the validation or real world database, is used as a final accuracy check of the chosen system. It is the accuracy against this validation database that is considered to be the system accuracy. The validation database is usually composed of vectors taken from setups which closely correlate with vehicle occupancy in real vehicles on the roadway or wherever they are used. Initially, the training database is usually the largest of the three databases. As time and resources permit, the independent database, which perhaps starts out with 100,000 vectors, will continue to grow until it becomes approximately the same size or even larger than the training database. The validation database, on the other hand, will typically start out with as few as 50,000 vectors. However, as the hardware configuration is frozen, the validation database will continuously grow until, in some cases, it actually becomes larger than the training database. This is because near the end of the program, vehicles will be operating on highways, ships, railroad tracks etc. and data will be collected in real world situations. If in the real world tests, system failures are discovered, this can lead to additional data being taken for both the training and independent databases as well as the validation database. 
     Once a neural network, or other pattern recognition system, has been trained or otherwise developed using all of the available data from all of the transducers, it is expected that the accuracy of the network will be very close to 100%. It is usually not practical to use all of the transducers that have been used in the training of the system for final installation in real production vehicle models. This is primarily due to cost and complexity considerations. Usually, the automobile manufacturer, or other customer, will have an idea of how many transducers would be acceptable for installation in a production vehicle. For example, the data may have been collected using 20 different transducers but the customer may restrict the final selection to 6 transducers. The next process, therefore, is to gradually eliminate transducers to determine what is the best combination of six transducers, for example, to achieve the highest system accuracy. Ideally, a series of neural networks, for example, would be trained using all combinations of six transducers from the 20 available. The activity would require a prohibitively long time. Certain constraints can be factored into the system from the beginning to start the pruning process. For example, it would probably not make sense to have both optical and ultrasonic transducers present in the same system since it would complicate the electronics. In fact, the customer may have decided initially that an optical system would be too expensive and therefore would not be considered. The inclusion of optical transducers, therefore, serves as a way of determining the loss in accuracy as a function of cost. Various constraints, therefore, usually allow the immediate elimination of a significant number of the initial group of transducers. This elimination and the training on the remaining transducers provides the resulting accuracy loss that results. 
     The next step is to remove each of the transducers one at a time and determine which sensor has the least effect on the system accuracy. This process is then repeated until the total number of transducers has been pruned down to the number desired by the customer. At this point, the process is reversed to add in one at a time those transducers that were removed at previous stages. It has been found, for example, that a sensor that appears to be unimportant during the early pruning process can become very important later on. Such a sensor may add a small amount of information due to the presence of various other transducers. Whereas the various other transducers, however, may yield less information than still other transducers and, therefore may have been removed during the pruning process. Reintroducing the sensor that was eliminated early in the cycle therefore can have a significant effect and can change the final choice of transducers to make up the system. 
     The above method of reducing the number of transducers that make up the system is but one of a variety approaches which have applicability in different situations. In some cases, a Monte Carlo or other statistical approach is warranted, whereas in other cases, a design of experiments approach has proven to be the most successful. In many cases, an operator conducting this activity becomes skilled and after a while knows intuitively what set of transducers is most likely to yield the best results. During the process it is not uncommon to run multiple cases on different computers simultaneously. Also, during this process, a database of the cost of accuracy is generated. The automobile manufacturer, for example, may desire to have the total of 6 transducers in the final system, however, when shown the fact that the addition of one or two additional transducers substantially increases the accuracy of the system, the manufacturer may change his mind. Similarly, the initial number of transducers selected may be 6 but the analysis could show that 4 transducers give substantially the same accuracy as 6 and therefore the other 2 can be eliminated at a cost saving. 
     While the pruning process is occurring, the vehicle is subjected to a variety of real world tests and would be subjected to presentations to the customer. The real world tests are tests that are run at different locations than where the fundamental training took place. It has been found that unexpected environmental factors can influence the performance of the system and therefore these tests can provide critical information. The system therefore, which is installed in the test vehicle, should have the capability of recording system failures. This recording includes the output of all of the transducers on the vehicle as well as a photograph of the vehicle setup that caused the error. This data is later analyzed to determine whether the training, independent or validation setups need to be modified and/or whether the transducers or positions of the transducers require modification. 
     Once the final set of transducers in some cases is chosen, the vehicle is again subjected to real world testing on highways, or wherever it is eventually to be used, and at customer demonstrations. Once again, any failures are recorded. In this case, however, since the total number of transducers in the system is probably substantially less than the initial set of transducers, certain failures are to be expected. All such failures, if expected, are reviewed carefully with the customer to be sure that the customer recognizes the system failure modes and is prepared to accept the system with those failure modes. 
     The system described so far has been based on the use of a single neural network or other pattern recognition system. It is frequently necessary and desirable to use combination neural networks, multiple neural networks, cellular neural networks or support vector machines or other pattern recognition systems. For example, for determining the occupancy state of a vehicle seat or other part of the vehicle, there may be at least two different requirements. The first requirement is to establish what is occupying the seat, for example, and the second requirement is to establish where that object is located. Another requirement might be to simply determine whether an occupying item warranting analysis by the neural networks is present. Generally, a great deal of time, typically many seconds, is available for determining whether a forward facing human or an occupied or unoccupied rear facing child seat, for example, occupies a vehicle seat. On the other hand, if the driver of the vehicle is trying to avoid an accident and is engaged in panic braking, the position of an unbelted occupant can be changing rapidly as he or she is moving toward the airbag. Thus, the problem of determining the location of an occupant is time critical. Typically, the position of the occupant in such situations must be determined in less than 20 milliseconds. There is no reason for the system to have to determine that a forward facing human being is in the seat while simultaneously determining where that forward facing human being is. The system already knows that the forward facing human being is present and therefore all of the resources can be used to determine the occupant&#39;s position. Thus, in this situation, a dual level or modular neural network can be advantageously used. The first level determines the occupancy of the vehicle seat and the second level determines the position of that occupant. In some situations, it has been demonstrated that multiple neural networks used in parallel can provide some benefit. This will be discussed in more detail below. Both modular and multiple parallel neural networks are examples of combination neural networks. 
     The data fed to the pattern recognition system will usually not be the raw vectors of data as captured and digitized from the various transducers. Typically, a substantial amount of preprocessing of the data is undertaken to extract the important information from the data that is fed to the neural network. This is especially true in optical systems and where the quantity of data obtained, if all were used by the neural network, would require very expensive processors. The techniques of preprocessing data will not be described in detail here. However, the preprocessing techniques influence the neural network structure in many ways. For example, the preprocessing used to determine what is occupying a vehicle seat is typically quite different from the preprocessing used to determine the location of that occupant. Some particular preprocessing concepts will be discussed in more detail below. 
     A pattern recognition system, such as a neural network, can sometimes make irrational decisions. This typically happens when the pattern recognition system is presented with a data set or vector that is unlike any vector that has been in its training set. The variety of seating states of a vehicle is unlimited. Every attempt is made to select from that unlimited universe a set of representative cases. Nevertheless, there will always be cases that are significantly different from any that have been previously presented to the neural network. The final step, therefore, to adapting a system to a vehicle, is to add a measure of human intelligence or common sense. Sometimes this goes under the heading of fuzzy logic and the resulting system has been termed in some cases, a neural fuzzy system. In some cases, this takes the form of an observer studying failures of the system and coming up with rules and that say, for example, that if transducer A perhaps in combination with another transducer produces values in this range, then the system should be programmed to override the pattern recognition decision and substitute therefor a human decision. 
     An example of this appears in R. Scorcioni, K. Ng, M. M. Trivedi, N. Lassiter; “MoNiF: A Modular Neuro-Fuzzy Controller for Race Car Navigation”; in Proceedings of the 1997  IEEE Symposium on Computational Intelligence and Robotics Applications , Monterey, Calif., USA July 1997, which describes the case of where an automobile was designed for autonomous operation and trained with a neural network, in one case, and a neural fuzzy system in another case. As long as both vehicles operated on familiar roads both vehicles performed satisfactorily. However, when placed on an unfamiliar road, the neural network vehicle failed while the neural fuzzy vehicle continued to operate successfully. If the neural network vehicle had been trained on the unfamiliar road, it might very well have operated successful. Nevertheless, the critical failure mode of neural networks that most concerns people is this uncertainty as to what a neural network will do when confronted with an unknown state. 
     One aspect, therefore, of adding human intelligence to the system, is to ferret out those situations where the system is likely to fail. Unfortunately, in the current state-of-the-art, this is largely a trial and error activity. One example is that if the range of certain parts of vector falls outside of the range experienced during training, the system defaults to a particular state. In the case of suppressing deployment of one or more airbags, or other occupant protection apparatus, this case would be to enable airbag deployment even if the pattern recognition system calls for its being disabled. An alternate method is to train a particular module of a modular neural network to recognize good from bad data and reject the bad data before it is fed to the main neural networks. 
     The foregoing description is applicable to the systems described in the following drawings and the connection between the foregoing description and the systems described below will be explained below. However, it should be appreciated that the systems shown in the drawings do not limit the applicability of the methods or apparatus described above. 
     Referring again to  FIG. 6 , and to  FIG. 6A  which differs from  FIG. 6  only in the use of a strain gage weight sensor mounted within the seat cushion, motion sensor  73  can be a discrete sensor that detects relative motion in the passenger compartment of the vehicle. Such sensors are frequently based on ultrasonics and can measure a change in the ultrasonic pattern that occurs over a short time period. Alternately, the subtracting of one position vector from a previous position vector to achieve a differential position vector can detect motion. For the purposes herein, a motion sensor will be used to mean either a particular device that is designed to detect motion for the creation of a special vector based on vector differences or a neural network trained to determine motion based on successive vectors. 
     An ultrasonic, optical or other sensor or transducer system  9  can be mounted on the upper portion of the front pillar, i.e., the A-Pillar, of the vehicle and a similar sensor system  6  can be mounted on the upper portion of the intermediate pillar, i.e., the B-Pillar. Each sensor system  6 ,  9  may comprise a transducer. The outputs of the sensor systems  6  and  9  can be input to a band pass filter  60  through a multiplex circuit  59  which can be switched in synchronization with a timing signal from the ultrasonic sensor drive circuit  58 , for example, and then can be amplified by an amplifier  61 . The band pass filter  60  removes a low frequency wave component from the output signal and also removes some of the noise. The envelope wave signal can be input to an analog/digital converter (ADC)  62  and digitized as measured data. The measured data can be input to a processing circuit  63 , which can be controlled by the timing signal which can be in turn output from the sensor drive circuit  58 . The above description applies primarily to systems based on ultrasonics and will differ somewhat for optical, electric field and other systems and for different vehicle types. 
     Each of the measured data can be input to a normalization circuit  64  and normalized. The normalized measured data can be input to the combination neural network (circuit)  65 , for example, as wave data. 
     The output of the pressure or weight sensor(s)  7 ,  76  or  97  (see  FIG. 6A ) can be amplified by an amplifier  66  coupled to the pressure or weight sensor(s)  7 ,  76  and  97  and the amplified output can be input to an analog/digital converter and then directed to the neural network  65 , for example, of the processor. Amplifier  66  can be useful in some embodiments but it may be dispensed with by constructing the sensors  7 ,  76 ,  97  to provide a sufficiently strong output signal, and even possibly a digital signal. One manner to do this would be to construct the sensor systems with appropriate electronics. 
     The neural network  65  can be directly connected to the ADCs  68  and  69 , the ADC associated with amplifier  66  and the normalization circuit  64 . As such, information from each of the sensors in the system (a stream of data) can be passed directly to the neural network  65  for processing thereby. The streams of data from the sensors are usually not combined prior to the neural network  65  and the neural network  65  can be designed to accept the separate streams of data (e.g., at least a part of the data at each input node) and process them to provide an output indicative of the current occupancy state of the seat or of the vehicle. The neural network  65  thus includes or incorporates a plurality of algorithms derived by training in the manners discussed herein. Once the current occupancy state of the seat or vehicle is determined, it is possible to control vehicular components or systems, such as the airbag system or telematics system, in consideration of the current occupancy state of the seat or vehicle. 
     A discussion of the methodology of adapting a monitoring system to an automotive vehicle for the purpose primarily of controlling a component such as a restraint system is described with reference to FIGS. 28-37 of the &#39;934 application. 
     3. Mounting Locations for and Quantity of Transducers 
     Ultrasonic transducers are relatively good at measuring the distance along a radius to a reflective object. An optical array, to be discussed now, on the other hand, can get accurate measurements in two dimensions, the lateral and vertical dimensions relative to the transducer. Assuming the optical array has dimensions of 100 by 100 as compared to an ultrasonic sensor that has a single dimension of 100, an optical array can therefore provide 100 times more information than the ultrasonic sensor. Most importantly, this vastly greater amount of information does not cost significantly more to obtain than the information from the ultrasonic sensor. 
     As illustrated in  FIGS. 8A-8D , the optical sensors are typically located for an automotive vehicle at the positions where the desired information is available with the greatest resolution. These positions are typically in the center front and center rear of the occupancy seat and at the center on each side and top. This is in contrast to the optimum location for ultrasonic sensors, which are the corners of such a rectangle that outlines the seated volume. Styling and other constraints often prevent mounting of transducers at the optimum locations. 
     An optical infrared transmitter and receiver assembly is shown generally at  52  in  FIG. 8B  and is mounted onto the instrument panel facing the windshield. Assembly  52  can either be recessed below the upper face of the instrument panel or mounted onto the upper face of the instrument panel. Assembly  52 , shown enlarged, comprises a source of infrared radiation, or another form of electromagnetic radiation, and a CCD, CMOS or other appropriate arrays of typically 160 pixels by 160 pixels. In this embodiment, the windshield is used to reflect the illumination light provided by the infrared radiation toward the objects in the passenger compartment and also reflect the light being reflected back by the objects in the passenger compartment, in a manner similar to the “heads-up” display which is now being offered on several automobile models. The “heads-up” display, of course, is currently used only to display information to the driver and is not used to reflect light from the driver to a receiver. Once again, unless one of the distance measuring systems as described below is used, this system alone cannot be used to determine distances from the objects to the sensor. Its main purpose is object identification and monitoring. Depending on the application, separate systems can be used for the driver and for the passenger. In some cases, the cameras located in the instrument panel which receive light reflected off of the windshield can be co-located with multiple lenses whereby the respective lenses aimed at the driver and passenger seats respectively. 
     Assembly  52  is actually about two centimeters or less in diameter and is shown greatly enlarged in  FIG. 8B . Also, the reflection area on the windshield is considerably smaller than illustrated and special provisions are made to assure that this area of the windshield is flat and reflective as is done generally when heads-up displays are used. For cases where there is some curvature in the windshield, it can be at least partially compensated for by the CCD optics. 
     Transducers  23 - 25  are illustrated mounted onto the A-pillar of the vehicle, however, since these transducers are quite small, typically less than 2 cm on a side, they could alternately be mounted onto the windshield itself, or other convenient location which provides a clear view of the portion of the passenger compartment being monitored. Other preferred mounting locations include the headliner above and also the side of the seat. Some imagers are now being made that are less than 1 cm on a side. 
       FIG. 21  is a side view, with certain portions removed or cut away, of a portion of the passenger compartment of a vehicle showing preferred mounting locations of optical interior vehicle monitoring sensors (transmitter/receiver assemblies or transducers)  49 ,  50 ,  51 ,  54 ,  126 ,  127 ,  128 ,  129 , and  130 . Each of these sensors is illustrated as having a lens and is shown enlarged in size for clarity. In a typical actual device, the diameter of the lens is less than 2 cm and it protrudes from the mounting surface by less than 1 cm. Specially designed sensors can be considerably smaller. This small size renders these devices almost unnoticeable by vehicle occupants. Since these sensors are optical, it is important that the lens surface remains relatively clean. Control circuitry  132 , which is coupled to each transducer, contains a self-diagnostic feature where the image returned by a transducer is compared with a stored image and the existence of certain key features is verified. If a receiver fails this test, a warning is displayed to the driver which indicates that cleaning of the lens surface is required. 
     The technology illustrated in  FIG. 21  can be used for numerous purposes relating to monitoring of the space in the passenger compartment behind the driver including: (i) the determination of the presence and position of objects in the rear seat(s), (ii) the determination of the presence, position and orientation of child seats  2  in the rear seat, (iii) the monitoring of the rear of an occupant&#39;s head  33 , (iv) the monitoring of the position of occupant  30 , (v) the monitoring of the position of the occupant&#39;s knees  35 , (vi) the monitoring of the occupant&#39;s position relative to the airbag  44 , (vii) the measurement of the occupant&#39;s height, as well as other monitoring functions as described herein. 
     Information relating to the space behind the driver can be obtained by processing the data obtained by the sensors  126 ,  127 ,  128  and  129 , which data would be in the form of images if optical sensors are used as in the preferred embodiment. Such information can be the presence of a particular occupying item or occupant, e.g., a rear facing child seat  2  as shown in  FIG. 21 , as well as the location or position of occupying items. Additional information obtained by the optical sensors can include an identification of the occupying item. The information obtained by the control circuitry by processing the information from sensors  126 ,  127 ,  128  and  129  may be used to affect any other system or component in the vehicle in a similar manner as the information from the sensors which monitor the front seat is used as described herein, such as the airbag system. Processing of the images obtained by the sensors to determine the presence, position and/or identification of any occupants or occupying item can be effected using a pattern recognition algorithm in any of the ways discussed herein, e.g., a trained neural network. For example, such processing can result in affecting a component or system in the front seat such as a display that allows the operator to monitor what is happening in the rear seat without having to turn his or her head. 
     In the preferred implementation, as shown in  FIGS. 8A-8E , four transducer assemblies are positioned around the seat to be monitored, each can comprise one or more LEDs with a diverging lenses and a CMOS array. Although illustrated together, the illuminating source in many cases will not be co-located with the receiving array. The LED emits a controlled angle, 120° for example, diverging cone of infrared radiation that illuminates the occupant from both sides and from the front and rear. This angle is not to be confused with the field angle used in ultrasonic systems. With ultrasound, extreme care is required to control the field of the ultrasonic waves so that they will not create multipath effects and add noise to the system. With infrared, there is no reason, in the implementation now being described, other than to make the most efficient use of the infrared energy, why the entire vehicle cannot be flooded with infrared energy either from many small sources or from a few bright ones. 
     The image from each array is used to capture two dimensions of occupant position information, thus, the array of assembly  50  positioned on the windshield header, which is approximately 25% of the way laterally across the headliner in front of the driver, provides a both vertical and transverse information on the location of the driver. A similar view from the rear is obtained from the array of assembly  54  positioned behind the driver on the roof of the vehicle and above the seatback portion of the seat  72 . As such, assembly  54  also provides both vertical and transverse information on the location of the driver. Finally, arrays of assemblies  49  and  51  provide both vertical and longitudinal driver location information. Another preferred location is the headliner centered directly above the seat of interest. The position of the assemblies  49 - 52  and  54  may differ from that shown in the drawings. In the invention, in order that the information from two or more of the assemblies  49 - 52  and  54  may provide a three-dimensional image of the occupant, or portion of the passenger compartment, the assemblies generally should not be arranged side-by-side. A side-by-side arrangement as used in several prior art references discussed above, will provide two essentially identical views with the difference being a lateral shift. This does not enable a complete three-dimensional view of the occupant. 
     One important point concerns the location and number of optical assemblies. It is possible to use fewer than four such assemblies with a possible resulting loss in accuracy. The number of four was chosen so that either a forward or rear assembly or either of the side assemblies can be blocked by a newspaper, for example, without seriously degrading the performance of the system. Since drivers rarely are reading newspapers while driving, fewer than four arrays are usually adequate for the driver side. In fact, one is frequently sufficient. One camera is also usually sufficient for the passenger side if the goal of the system is classification only or if camera blockage is tolerated for occupant tracking. 
     The particular locations of the optical assemblies were chosen to give the most accurate information as to the locations of the occupant. This is based on an understanding of what information can be best obtained from a visual image. There is a natural tendency on the part of humans to try to gauge distance from the optical sensors directly. This, as can be seen above, is at best complicated involving focusing systems, stereographic systems, multiple arrays and triangulation, time of flight measurement, etc. What is not intuitive to humans is to not try to obtain this distance directly from apparatus or techniques associated with the mounting location. Whereas ultrasound is quite good for measuring distances from the transducer (the z-axis), optical systems are better at measuring distances in the vertical and lateral directions (the x and y-axes). Since the precise locations of the optical transducers are known, that is, the geometry of the transducer locations is known relative to the vehicle, there is no need to try to determine the displacement of an object of interest from the transducer (the z-axis) directly. This can more easily be done indirectly by another transducer. That is, the vehicle z-axis to one transducer is the camera x-axis to another. 
     The applications described herein have been illustrated using the driver of the vehicle. The same systems of determining the position of the occupant relative to the airbag apply to the passenger, sometimes requiring minor modifications. Also of course, a similar system can be appropriately designed for other monitoring situations such as for cargo containers and truck trailers. 
     It is likely that the sensor required triggering time based on the position of the occupant will be different for the driver than for the passenger. Current systems are based primarily on the driver with the result that the probability of injury to the passenger is necessarily increased either by deploying the airbag too late or by failing to deploy the airbag when the position of the driver would not warrant it but the passenger&#39;s position would. With the use of occupant position sensors for both the passenger and driver, the airbag system can be individually optimized for each occupant and result in further significant injury reduction. In particular, either the driver or passenger system can be disabled if either the driver or passenger is out of position. 
     There is almost always a driver present in vehicles that are involved in accidents where an airbag is needed. Only about 30% of these vehicles, however, have a passenger. If the passenger is not present, there is usually no need to deploy the passenger side airbag. The occupant position sensor, when used for the passenger side with proper pattern recognition circuitry, can also ascertain whether or not the seat is occupied, and if not, can disable the deployment of the passenger side airbag and thereby save the cost of its replacement. A sophisticated pattern recognition system could even distinguish between an occupant and a bag of groceries or a box, for example, which in some cargo container or truck trailer monitoring situations is desired. Finally, there has been much written about the out of position child who is standing or otherwise positioned adjacent to the airbag, perhaps due to pre-crash braking. The occupant position sensor described herein can prevent the deployment of the airbag in this situation. 
     3.1 Single Camera, Dual Camera with Single Light Source 
     Many automobile companies are opting to satisfy the requirements of FMVSS-208 by using a weight only system such as the bladder or strain gage systems disclosed here. Such a system provides an elementary measure of the weight of the occupying object but does not give a reliable indication of its position, at least for automotive vehicles. It can also be easily confused by any object that weighs 60 or more pounds and that is interpreted as an adult. Weight only systems are also static systems in that due to vehicle dynamics that frequently accompany a pre crash braking event they are unable to track the position of the occupant. The load from seatbelts can confuse the system and therefore a special additional sensor must be used to measure seatbelt tension. In some systems, the device must be calibrated for each vehicle and there is some concern as to whether this calibration will be proper for the life on the vehicle. 
     A single camera can frequently provide considerably more information than a weight only system without the disadvantages of weight sensors and do so at a similar cost. Such a single camera in its simplest installation can categorize the occupancy state of the vehicle and determine whether the airbag should be suppressed due to an empty seat or the presence of a child of a size that corresponds to one weighing less than 60 pounds. Of course, a single camera can also easily do considerably more by providing a static out-of-position indication and, with the incorporation of a faster processor, dynamic out-of-position determination can also be provided. Thus, especially with the costs of microprocessors continuing to drop, a single camera system can easily provide considerably more functionality than a weight only system and yet stay in the same price range. 
     A principal drawback of a single camera system is that it can be blocked by the hand of an occupant or by a newspaper, for example. This is a rare event since the preferred mounting location for the camera is typically high in the vehicle such as on the headliner. Also, it is considerably less likely that the occupant will always be reading a newspaper, for example, and if he or she is not reading it when the system is first started up, or at any other time during the trip, the camera system will still get an opportunity to see the occupant when he or she is not being blocked and make the proper categorization. The ability of the system to track the occupant will be impaired but the system can assume that the occupant has not moved toward the airbag while reading the newspaper and thus the initial position of the occupant can be retained and used for suppression determination. Finally, the fact that the camera is blocked can be determined and the driver made aware of this fact in much the same manner that a seatbelt light notifies the driver that the passenger is not wearing his or her seatbelt. 
     The accuracy of a single camera system can be above 99% which significantly exceeds the accuracy of weight only systems. Nevertheless, some automobile manufacturers desire even greater accuracy and therefore opt for the addition of a second camera. Such a camera is usually placed on the opposite side of the occupant as the first camera. The first camera may be placed on or near the dome light, for example, and the second camera can be on the headliner above the side door. A dual camera system such as this can operate more accurately in bright daylight situations where the window area needs to be ignored in the view of the camera that is mounted near the dome. 
     Sometimes, in a dual camera system, only a single light source is used. This provides a known shadow pattern for the second camera and helps to accentuate the edges of the occupying item rendering classification easier. Any of the forms of structured light can also be used and through these and other techniques the corresponding points in the two images can more easily be determined thus providing a three-dimensional model of the occupant or occupying object in the case of other vehicle types such as a cargo container or truck trailer. 
     As a result, the current assignee has developed a low cost single camera system which has been extensively tested for the most difficult problem of automobile occupant sensing but is nevertheless also applicable for monitoring of other vehicles such as cargo containers and truck trailers. The automotive occupant position sensor system uses a CMOS camera in conjunction with pattern recognition algorithms for the discrimination of out-of-position occupants and rear facing child safety seats. A single imager, located strategically within the occupant compartment, is coupled with an infrared LED that emits unfocused, wide-beam pulses toward the passenger volume. These pulses, which reflect off of objects in the passenger seat and are captured by the camera, contain information for classification and location determination in approximately 10 msec. The decision algorithm processes the returned information using a uniquely trained neural network, which may not be necessary in the simpler cargo container or truck trailer monitoring cases. The logic of the neural network was developed through extensive in-vehicle training with thousands of realistic occupant size and position scenarios. Although the optical occupant position sensor can be used in conjunction with other technologies (such as weight sensing, seat belt sensing, crash severity sensing, etc.), it is a stand-alone system meeting the requirements of FMVSS-208. This device will be discussed in detail below. 
     3.2 Location of the Transducers 
     Any of the transducers discussed herein such as an active pixel or other camera can be arranged in various locations in the vehicle including in a headliner, roof, ceiling, rear view mirror assembly, an A-pillar, a B-pillar and a C-pillar or a side wall or even a door in the case of a cargo container or truck trailer. Images of the front seat area or the rear seat area can be obtained by proper placement and orientation of the transducers such as cameras. The rear view mirror assembly can be a good location for a camera, particularly if it is attached to the portion of the mirror support that does not move when the occupant is adjusting the mirror. Cameras at this location can get a good view of the driver, passenger as well as the environment surrounding the vehicle and particularly in the front of the vehicle. It is an ideal location for automatic dimming headlight cameras. 
     3.3 Color Cameras—Multispectral Imaging 
     Most if not all occupant sensing systems, except those of the current assignee, developed to date as reported in the patent and non-patent literature have been generally based on a single frequency. As discussed herein, use of multiple frequencies with ultrasound makes it possible to change a static system into a dynamic system allowing the occupant to be tracked during pre-crash braking, for example. Multispectral imaging can also provide advantages for camera or other optical-based systems. The color of the skin of an occupant is a reliable measure of the presence of an occupant and also renders the segmentation of the image to be more easily accomplished. Thus, the face can be more easily separated from the rest of the image simplifying the determination of the location of the eyes of the driver, for example. This is particularly true for various frequencies of passive and active infrared. Also, as discussed in more detail below, life forms react to radiation of different frequencies differently than non-life forms again making the determination of the presence of a life form easier. Finally, there is just considerably more information in a color or multispectral image than in a monochromic image. This additional information improves the accuracy of the identification and tracking process and thus of the system. In many cases, this accuracy improvement is so small that the added cost is not justified but as costs of electronics and cameras continue to drop this equation is changing and it is expected that multispectral imaging will prevail. 
     Illumination for nighttime is frequently done using infrared. When multispectral imaging is used the designer has the choice of reverting to IR only for night time or using a multispectral LED and a very sensitive camera so that the flickering light does not annoy the driver. Alternately, a sensitive camera along with a continuous low level of illumination can be used. Of course, multispectral imaging does not require that the visible part of the spectrum be used. Ultraviolet, X-rays and many other frequencies in the infrared part of the spectrum are available. Life forms, particularly humans, exhibit particularly interesting and identifiable reactions (reflection, absorption, scattering, transmission, emission) to frequencies in other parts of the electromagnetic spectrum (see for example the book  Alien Vision  referenced above) as discussed herein. 
     3.4 High Dynamic Range Cameras 
     An active pixel camera is a special camera which has the ability to adjust the sensitivity of each pixel of the camera similar to the manner in which an iris adjusts the sensitivity of all of the pixels together of a camera. Thus, the active pixel camera automatically adjusts to the incident light on a pixel-by-pixel basis. An active pixel camera differs from an active infrared sensor in that an active infrared sensor, such as of the type envisioned by Mattes et al. (discussed above), is generally a single pixel sensor that measures the reflection of infrared light from an object. In some cases, as in the HDRC camera, the output of each pixel is a logarithm of the incident light thus giving a high dynamic range to the camera. This is similar to the technique used to suppress the effects of thermal gradient distortion of ultrasonic signals as described in above-referenced patents. Thus, if the incident radiation changes in magnitude by 1,000,000, for example, the output of the pixel may change by a factor of only 6. 
     A dynamic pixel camera is a camera having a plurality of pixels and which provides the ability to pick and choose which pixels should be observed, as long as they are contiguous. 
     An HDRC camera is a type of active pixel camera where the dynamic range of each pixel is considerably broader. An active pixel camera manufactured by the Photobit Corporation has a dynamic range of 70 db while an IMS Chips camera, an HDRC camera manufactured by another manufacturer, has a dynamic range of 120 db. Thus, the HDRC camera has a 100,000 times greater range of light sensitivity than the Photobit camera. 
     The accuracy of the optical occupant sensor is dependent upon the accuracy of the camera. The dynamic range of light within a vehicle can exceed 120 decibels. When a car is driving at night, for example, very little light is available whereas when driving in a bright sunlight, especially in a convertible, the light intensity can overwhelm many cameras. Additionally, the camera must be able to adjust rapidly to changes in light caused by, for example, the emergence of the vehicle from tunnel, or passing by other obstructions such as trees, buildings, other vehicles, etc. which temporarily block the sun and can cause a strobing effect at frequencies approaching 1 kHz. 
     As mentioned, the IMS HDRC technology provides a 120 dB dynamic intensity response at each pixel in a monochromatic mode. The technology has a 1 million to one dynamic range at each pixel. This prevents blooming, saturation and flaring normally associated with CMOS and CCD camera technology. This solves a problem that will be encountered in an automobile when going from a dark tunnel into bright sunlight. Such a range can even exceed the 120 dB intensity. 
     There is also significant infrared radiation from bright sunlight and from incandescent lights within the vehicle. Such situations may even exceed the dynamic range of the HDRC camera and additional filtering may be required. Changing the bias on the receiver array, the use of a mechanical iris, or of electrochromic glass or liquid crystal, or a Kerr or Pockel cell can provide this filtering on a global basis but not at a pixel level. Filtering can also be used with CCD arrays, but the amount of filtering required is substantially greater than for the HDRC camera. A notch filter can be used to block significant radiation from the sun, for example. This notch filter can be made as a part of the lens through the placement of various coatings onto the lens surface. 
     Liquid crystals operate rapidly and give as much as a dynamic range of 10,000 to 1 but may create a pixel interference affect. Electrochromic glass operates more slowly but more uniformly thereby eliminating the pixel affect. The pixel effect arises whenever there is one pixel device in front of another. This results in various aliasing, Moiré patterns and other ambiguities. One way of avoiding this is to blur the image. Another solution is to use a large number of pixels and combine groups of pixels to form one pixel of information and thereby to blur the edges to eliminate some of the problems with aliasing and Moiré patterns. An alternate to the liquid crystal device is the suspended particle device or SPD as discussed herein. Other alternatives include spatial light monitors such as Pockel or Kerr cells also discussed herein. 
     One straightforward approach is the use of a mechanical iris. Standard cameras already have response times of several tens of milliseconds range. They will switch, for example, in a few frames on a typical video camera (1 frame=0.033 seconds). This is sufficiently fast for categorization but much too slow for dynamic out-of-position tracking. 
     An important feature of the IMS Chips HDRC camera is that the full dynamic range is available at each pixel. Thus, if there are significant variations in the intensity of light within the vehicle, and thereby from pixel to pixel, such as would happen when sunlight streams and through a window, the camera can automatically adjust and provide the optimum exposure on a pixel by pixel basis. The use of the camera having this characteristic is beneficial to the invention described herein and contributes significantly to system accuracy. CCDs have a rather limited dynamic range due to their inherent linear response and consequently cannot come close to matching the performance of human eyes. A key advantage of the IMS Chips HDRC camera is its logarithmic response which comes closest to matching that of the human eye. The IMS HDRC camera is also useful in monitoring cargo containers and truck trailers where very little light is available when the door is shut. A small IR LED then can provide the necessary light at a low power consumption which is consistent with a system that may have to operate for long periods on battery power. 
     Another approach, which is applicable in some vehicles at some times, is to record an image without the infrared illumination and then a second image with the infrared illumination and to then subtract the first image from the second image. In this manner, illumination caused by natural sources such as sunlight or even from light bulbs within the vehicle can be subtracted out. Using the logarithmic pixel system of the IMS Chips camera, care must be taken to include the logarithmic effect during the subtraction process. For some cases, natural illumination such as from the sun, light bulbs within the vehicle, or radiation emitted by the object itself can be used alone without the addition of a special source of infrared illumination as discussed below. 
     Other imaging systems such as CCD arrays can also of course be used with at least one of the inventions disclosed herein. However, the techniques will be different since the camera is very likely to saturate when bright light is present and to require the full resolution capability, when the light is dim, of the camera iris and shutter speed settings to provide some compensation. Generally, when practicing at least one of the inventions disclosed herein, the interior of the passenger compartment will be illuminated with infrared radiation. 
     One novel solution is to form the image in memory by adding up a sequence of very short exposures. The number stored in memory would be the sum of the exposures on a pixel by pixel basis and the problem of saturation disappears since the memory location can be made as floating point numbers. This then permits the maximum dynamic range but requires that the information from all of the pixels be removed at high speed. In some cases, each pixel would then be zeroed while in others, the charge can be left on the pixel since when saturation occurs the relevant information will already have been obtained. 
     There are other bright sources of infrared that must be accounted for. These include the sun and any light bulbs that may be present inside the vehicle. This lack of a high dynamic range inherent with the CCD technology requires the use of an iris, fast electronic shutter, liquid crystal, Kerr or Pockel cell, or electrochromic glass filter to be placed between the camera and the scene. Even with these filters however, some saturation can take place with CCD cameras under bright sun or incandescent lamp exposure. This saturation reduces the accuracy of the image and therefore the accuracy of the system. In particular, the training regimen that must be practiced with CCD cameras is more severe since all of the saturation cases must be considered since the camera may be unable to appropriately adjust. Thus, although CCD cameras can be used, HDRC logarithmic cameras such as manufactured by IMS Chips are preferred. They not only provide a significantly more accurate image but also significantly reduce the amount of training effort and associated data collection that must be undertaken during the development of the neural network algorithm or other computational intelligence system. In some applications, it is possible to use other more deterministic image processing or pattern recognition systems than neural networks. 
     Another very important feature of the HDRC camera from IMS Chips is that the shutter time is constant at less than 100 ns irrespective of brightness of the scene. The pixel data arrives at constant rate synchronous with the internal imager clock. Random access to each pixel facilitates high-speed intelligent access to any sub-frame (block) size or sub-sampling ratio and a trade-off of frame speed and frame size therefore results. For example, a scene with 128 K pixels per frame can be taken at 120 frames per second, or about 8 milliseconds per frame, whereas a sub-frame can be taken in run at as high as 4000 frames per second with 4 K pixels per frame. This combination allows the maximum resolution for the identification and classification part of the occupant sensor problem while permitting a concentration on those particular pixels which track the head or chest, as described above, for dynamic out-of-position tracking. In fact, the random access features of these cameras can be used to track multiple parts of the image simultaneously while ignoring the majority of the image, and do so at very high speed. For example, the head can be tracked simultaneously with the chest by defining two separate sub-frames that need not be connected. This random access pixel capability, therefore, is optimally suited for recognizing and tracking vehicle occupants. It is also suited for monitoring the environment outside of the vehicle for the purposes of blind spot detection, collision avoidance and anticipatory sensing. Photobit Corporation of 135 North Los Robles Ave., Suite 700, Pasadena, Calif. 91101 manufactures a camera with some characteristics similar to the IMS Chips camera. Other competitive cameras can be expected to appear on the market. 
     Photobit refers to their Active Pixel Technology as APS. According to Photobit, in the APS, both the photo detector and readout amplifier are part of each pixel. This allows the integrated charge to be converted into a voltage in the pixel that can then be read out over X-Y wires instead of using a charge domain shift register as in CCDs. This column and row addressability (similar to common DRAM) allows for window of interest readout (windowing) which can be utilized for on chip electronic pan/tilt and zoom. Windowing provides added flexibility in applications, such as disclosed herein, needing image compression, motion detection or target tracking. The APS utilizes intra-pixel amplification in conjunction with both temporal and fixed pattern noise suppression circuitry (i.e., correlated double sampling), which produces exceptional imagery in terms of wide dynamic range (˜75 dB) and low noise (˜15 e-rms noise floor) with low fixed pattern noise (&lt;0.15% sat). Unlike CCDs, the APS is not prone to column streaking due to blooming pixels. This is because CCDs rely on charge domain shift registers that can leak charge to adjacent pixels when the CCD registers overflows. Thus, bright lights “bloom” and cause unwanted streaks in the image. The active pixel can drive column busses at much greater rates than passive pixel sensors and CCDs. On-chip analog-to-digital conversion (ADC) facilitates driving high speed signals off chip. In addition, digital output is less sensitive to pickup and crosstalk, facilitating computer and digital controller interfacing while increasing system robustness. A high speed APS recently developed for a custom binary output application produced over 8,000 frames per second, at a resolution of 128×128 pixels. It is possible to extend this design to a 1024×1024 array size and achieve greater than 1000 frames per second for machine vision. All of these features can be important to many applications of at least one of the inventions disclosed herein. 
     These advanced cameras, as represented by the HDRC and the APS cameras, now make it possible to more accurately monitor the environment in the vicinity of the vehicle. Previously, the large dynamic range of environmental light has either blinded the cameras when exposed to bright light or else made them unable to record images when the light level was low. Even the HDRC camera with its 120 dB dynamic range may be marginally sufficient to handle the fluctuations in environmental light that occur. Thus, the addition of a electrochromic, liquid crystal, SPD, spatial light monitors or other similar filter may be necessary. This is particularly true for cameras such as the Photobit APS camera with its 75 dB dynamic range. 
     At about 120 frames per second, these cameras are adequate for cases where the relative velocity between vehicles is low. There are many cases, however, where this is not the case and a much higher monitoring rate is required. This occurs for example, in collision avoidance and anticipatory sensor applications. The HDRC camera is optimally suited for handling these cases since the number of pixels that are being monitored can be controlled resulting in a frame rate as high as about 4000 frames per second with a smaller number of pixels. 
     Another key advantage of the HDRC camera is that it is quite sensitive to infrared radiation in the 0.8 to 1 micron wavelength range. This range is generally beyond visual range for humans permitting this camera to be used with illumination sources that are not visible to the human eye. A notch filter is frequently used with the camera to eliminate unwanted wavelengths. These cameras are available from the Institute for Microelectronics (IMS Chips), Allamndring 30a, D-70569 Stuttgart, Germany with a variety of resolutions ranging from 512 by 256 to 720 by 576 pixels and can be custom fabricated for the resolution and response time required. 
     One problem with high dynamic range cameras, particularly those making use of a logarithmic compression is that the edges of objects in the field of view tend to wash out and the picture loses a lot of contrast. This causes problems for edge detecting algorithms and thus reduces the accuracy of the system. There are a number of other different methods of achieving a high dynamic range without sacrificing contrast. One system by Nayar, as discussed herein, takes a picture using adjacent pixels with different radiation blocking filers. Four such pixel types are used allowing Nayar to essentially obtain 4 separate pictures with one snap of the shutter. Software then selects which of the four pixels to use for each part of the image so that the dark areas receive one exposure and somewhat brighter areas another exposure and so on. The brightest pixel receives all of the incident light, the next brightest filters half of the light, the next brightest half again and the dullest pixel half again. Other ratios could be used as could more levels of pixels, e.g., eight instead of four. Experiments have shown that this is sufficient to permit a good picture to be taken when bright sunlight is streaming into a dark room. A key advantage of this system is that the full frame rate is available and the disadvantage is that only 25% of the pixels are in fact used to form the image. 
     Another system drains the charge off of the pixels as the picture is being taken and stored the integrated results in memory. TFA technology lends itself to this implementation. As long as the memory capacity is sufficient, the pixel never saturates. An additional approach is to take multiple images at different iris or shutter settings and combine them in much the same way as with the Nayar method. A still different approach is to take several pictures at a short shutter time or a small iris setting and combine the pictures in a processor or other appropriate device. In this manner, the effective dynamic range of the camera can be extended. This method may be too slow for some dynamic applications. 
     3.5 Fisheye Lens, Pan and Zoom 
     Infrared waves are shown coming from the front and back transducer assemblies  54  and  55  in  FIG. 8C .  FIG. 8D  illustrates two optical systems each having a source of infrared radiation and a CCD, CMOS, FPR, TFA or QWIP array receiver. The price of such arrays has dropped dramatically recently making most of them practical for interior and exterior vehicle monitoring. In this embodiment, transducers  54  and  55  are CMOS arrays having 160 pixels by 160 pixels covered by a lens. In some applications, this can create a “fisheye” effect whereby light from a wide variety of directions can be captured. One such transducer placed by the dome light or other central position in the vehicle headliner, such as the transducer designated  54 , can monitor the entire vehicle interior with sufficient resolution to determine the occupancy of the vehicle, for example. Imagers such as those used herein are available from Marshall Electronics Inc. of Culver City, Calif. and others. A fisheye lens is “ . . . a wide-angle photographic lens that covers an angle of about 180°, producing a circular image with exaggerated foreshortening in the center and increasing distortion toward the periphery”. ( The American Heritage Dictionary of the English Language, Third Edition,  1992 by Houghton Mifflin Company). This distortion of a fisheye lens can be substantially changed by modifying the shape of the lens to permit particular portions of the interior passenger compartment to be observed. Also, in many cases the full 180° is not desirable and a lens which captures a smaller angle may be used. Although primarily spherical lenses are illustrated herein, it is understood that the particular lens design will depend on the location in the vehicle and the purpose of the particular receiver. A fisheye lens can be particularly useful for some truck trailer, cargo container, railroad car and automobile trunk monitoring cases. 
     A camera that provides for pan and zoom using a fisheye lens is described in U.S. Pat. No. 5,185,667 and is applicable to at least one of the inventions disclosed herein. Here, however, it is usually not necessary to remove the distortion since the image will in general not be viewed by a human but will be analyzed by software. One exception is when the image is sent to emergency services via telematics. In that case, the distortion removal is probably best done at the EMS site. 
     Although a fisheye camera has primarily been discussed above, other types of distorting lenses or mirrors can be used to accomplished particular objectives. A distorting lens or mirror, for example, can have the effect of dividing the image into several sub-pictures so that the available pixels can cover more than one area of a vehicle interior or exterior. Alternately, the volume in close proximity to an airbag, for example, can be allocated a more dense array of pixels so that measurements of the location of an occupant relative to the airbag can be more accurately achieved. Numerous other objectives can now be envisioned which can now be accomplished with a reduction in the number of cameras or imagers through either distortion or segmenting of the optical field. 
     Another problem associated with lens is cleanliness. In general, the optical systems of these inventions comprise methods to test for the visibility through the lens and issue a warning when that visibility begins to deteriorate. Many methods exist for accomplishing this feat including the taking of an image when the vehicle is empty and not moving and at night. Using neural networks, for example, or some other comparison technique, a comparison of the illumination reaching the imager can be compared with what is normal. A network can be trained on empty seats, for example, in all possible positions and compared with the new image. Or, those pixels that correspond to any movable surface in the vehicle can be removed from the image and a brightness test on the remaining pixels used to determine lens cleanliness. 
     Once a lens has been determined to be dirty, then either a warning light can be set telling the operator to visit the dealer or a method of cleaning the lens automatically invoked. One such method for night vision systems is disclosed in WO0234572. Another, which is one on the inventions disclosed herein, is to cover the lens with a thin film. This film may be ultrasonically excited thereby greatly minimizing the tendency for it to get dirty and/or the film can be part of a roll of film that is advanced when the diagnostic system detects a dirty lens thereby placing a new clean surface in front of the imager. The film roll can be sized such that under normal operation, the roll would last some period such as 20 years. A simple, powerless mechanism can be designed that will gradually advance the film across the lens over a period of 10 to 20 years using the normal daily thermal cycling to cause relative expansion and contraction of materials with differing thermal expansion coefficients. 
     4. 3D Cameras 
     Optical sensors can be used to obtain a three-dimensional measurement of the object through a variety of methods that use time of flight, modulated light and phase measurement, quantity of light received within a gated window, structured light and triangulation etc. Some of these techniques are discussed in U.S. Pat. No. 6,393,133 and below. 
     4.1 Stereo 
     One method of obtaining a three-dimensional image is illustrated in  FIG. 8D  wherein transducer  24  is an infrared source having a wide transmission angle such that the entire contents of the front driver&#39;s seat is illuminated. Receiving imager transducers  23  and  25  are shown spaced apart so that a stereographic analysis can be made by the control circuitry  20 . This circuitry  20  contains a microprocessor with appropriate pattern recognition algorithms along with other circuitry as described above. In this case, the desired feature to be located is first selected from one of the two returned images from either imaging transducer  23  or  25 . The software then determines the location of the same feature, through correlation analysis or other methods, on the other image and thereby, through analysis familiar to those skilled in the art, determines the distance of the feature from the transducers by triangulation. 
     As the distance between the two or more imagers used in the stereo construction increases, a better and better model of the object being imaged can be obtained since more of the object is observable. On the other hand, it becomes increasingly difficult to pair up points that occur in both images. Given sufficient computational resources, this not a difficult problem but with limited resources and the requirement to track a moving occupant during a crash, for example, the problem becomes more difficult. One method to ease the problem is to project onto the occupant, a structured light that permits a recognizable pattern to be observed and matched up in both images. The source of this projection should lie midway between the two imagers. By this method, a rapid correspondence between the images can be obtained. 
     On the other hand, if a source of structured light is available at a different location than the imager, then a simpler three-dimensional image can be obtained using a single imager. Furthermore, the model of the occupant really only needs to be made once during the classification phase of the process and there is usually sufficient time to accomplish that model with ordinary computational power. Once the model has been obtained, then only a few points need be tracked by either one or both of the cameras. 
     Another method exists whereby the displacement between two images from two cameras is estimated using a correlator. Such a fast correlator has been developed by Professor Lukin of Kyiv, Ukraine in conjunction with his work on noise radar. This correlator is very fast and can probably determine the distance to an occupant at a rate sufficient for tracking purposes. 
     4.2 Distance by Focusing 
     In the above-described imaging systems, a lens within a receptor captures the reflected infrared light from the head or chest of the driver, or other object to be monitored, and displays it onto an imaging device (CCD, CMOS, FPA, TFA, QWIP or equivalent) array. For the discussion of FIGS.  5  and  13 - 17  at least, either CCD or the word “imager” will be used to include all devices which are capable of converting light frequencies, including infrared, into electrical signals. In one method of obtaining depth from focus, the CCD is scanned and the focal point of the lens is altered, under control of an appropriate circuit, until the sharpest image of the driver&#39;s head or chest, or other object, results and the distance is then known from the focusing circuitry. This trial and error approach may require the taking of several images and thus may be time consuming and perhaps too slow for occupant tracking during pre-crash braking. 
     The time and precision of this measurement is enhanced if two receptors (e.g., lenses) are used which can either project images onto a single CCD or onto separate CCDs. In the first case, one of the lenses could be moved to bring the two images into coincidence while in the other case, the displacement of the images needed for coincidence would be determined mathematically. Other systems could be used to keep track of the different images such as the use of filters creating different infrared frequencies for the different receptors and again using the same CCD array. In addition to greater precision in determining the location of the occupant, the separation of the two receptors can also be used to minimize the effects of hands, arms or other extremities which might be very close to the airbag. In this case, where the receptors are mounted high on the dashboard on either side of the steering wheel, an arm, for example, would show up as a thin object but much closer to the airbag than the larger body parts and, therefore, easily distinguished and eliminated, permitting the sensors to determine the distance to the occupant&#39;s chest. This is one example of the use of pattern recognition. 
     An alternate method is to use a lens with a short focal length. In this case, the lens is mechanically focused, e.g., automatically, directly or indirectly, by the control circuitry  20 , to determine the clearest image and thereby obtain the distance to the object. This is similar to certain camera auto-focusing systems such as one manufactured by Fuji of Japan. Again this is a time consuming method. Other methods can be used as described in patents and patent applications referenced above. 
     Instead of focusing the lens, the lens could be moved relative to the array to thereby adjust the image on the array. Instead of moving the lens, the array could be moved to achieve the proper focus. In addition, it is also conceivable that software could be used to focus the image without moving the lens or the array especially if at least two images are available. 
     An alternative is to use the focusing systems described in U.S. Pat. Nos. 5,193,124 and 5,003,166. These systems are quite efficient requiring only two images with different camera settings. Thus, if there is sufficient time to acquire an image, change the camera settings and acquire a second image, this system is fine and can be used with the inventions disclosed herein. Once the position of the occupant has been determined for one point in time, then the process may not have to be repeated as a measurement of the size of a part of an occupant can serve as a measure of its relative location compared to the previous image from which the range was obtained. Thus, other than the requirement of a somewhat more expensive imager, the system of the &#39;124 and &#39;166 patents is fine. The accuracy of the range is perhaps limited to a few centimeters depending on the quality of the imager used. Also, if multiple ranges to multiple objects are required, then the process becomes a bit more complicated. 
     4.3 Ranging 
     The scanning portion of a pulse laser radar device can be accomplished using rotating mirrors, vibrating mirrors, or preferably, a solid state system, for example one utilizing TeO 2  as an optical diffraction crystal with lithium niobate crystals driven by ultrasound (although other solid state systems not necessarily using TeO 2  and lithium niobate crystals could also be used) which is an example of an acoustic optical scanner. An alternate method is to use a micromachined mirror, which is supported at its center and caused to deflect by miniature coils or equivalent MEMS device. Such a device has been used to provide two-dimensional scanning to a laser. This has the advantage over the TeO 2 -lithium niobate technology in that it is inherently smaller and lower cost and provides two-dimensional scanning capability in one small device. The maximum angular deflection that can be achieved with this process is on the order of about 10 degrees. Thus, a diverging lens or equivalent will be needed for the scanning system. 
     Another technique to multiply the scanning angle is to use multiple reflections off of angled mirror surfaces. A tubular structure can be constructed to permit multiple interior reflections and thus a multiplying effect on the scan angle. 
     An alternate method of obtaining three-dimensional information from a scanning laser system is to use multiple arrays to replace the single arrays used in  FIG. 8A . In the case, the arrays are displaced from each other and, through triangulation, the location of the reflection from the illumination by a laser beam of a point on the object can be determined in a manner that is understood by those skilled in the art. Alternately, a single array can be used with the scanner displaced from the array. 
     A new class of laser range finders has particular application here. This product, as manufactured by Power Spectra, Inc. of Sunnyvale, Calif., is a GaAs pulsed laser device which can measure up to 30 meters with an accuracy of &lt;2 cm and a resolution of &lt;1 cm. This system can be implemented in combination with transducer  24  and one of the receiving transducers  23  or  25  may thereby be eliminated. Once a particular feature of an occupying item of the passenger compartment has been located, this device is used in conjunction with an appropriate aiming mechanism to direct the laser beam to that particular feature. The distance to that feature can then be known to within 2 cm and with calibration even more accurately. In addition to measurements within the passenger compartment, this device has particular applicability in anticipatory sensing and blind spot monitoring applications exterior to the vehicle. An alternate technology using range gating to measure the time of flight of electromagnetic pulses with even better resolution can be developed based on the teaching of the McEwan patents listed above. 
     A particular implementation of an occupant position sensor having a range of from 0 to 2 meters (corresponding to an occupant position of from 0 to 1 meter since the signal must travel both to and from the occupant) using infrared is illustrated in the block diagram schematic of  FIG. 14 . This system was designed for automobile occupant sensing and a similar system having any reasonable range up to and exceeding 100 meters can be designed on the same principles for other monitoring applications. The operation is as follows. A 48 MHz signal, f 1 , is generated by a crystal oscillator  81  and fed into a frequency tripler  82  which produces an output signal at 144 MHz. The 144 MHz signal is then fed into an infrared diode driver  83  which drives the infrared diode  84  causing it to emit infrared light modulated at 144 MHz and a reference phase angle of zero degrees. The infrared diode  84  is directed at the vehicle occupant. A second signal f 2  having a frequency of 48.05 MHz, which is slightly greater than f 1 , is similarly fed from a crystal oscillator  85  into a frequency tripler  86  to create a frequency of 144.15 MHz. This signal is then fed into a mixer  87  which combines it with the 144 MHz signal from frequency tripler  82 . The combined signal from the mixer  87  is then fed to filter  88  which removes all signals except for the difference, or beat frequency, between 3 times f 1  and 3 times f 2 , of 150 kHz. The infrared signal which is reflected from the occupant is received by receiver  89  and fed into pre-amplifier  91 , a resistor  90  to bias being coupled to the connection between the receiver  89  and the pre-amplifier  91 . This signal has the same modulation frequency, 144 MHz, as the transmitted signal but now is out of phase with the transmitted signal by an angle x due to the path that the signal took from the transmitter to the occupant and back to the receiver. 
     The output from pre-amplifier  91  is fed to a second mixer  92  along with the 144.15 MHz signal from the frequency tripler  86 . The output from mixer  92  is then amplified by an automatic gain amplifier  93  and fed into filter  94 . The filter  94  eliminates all frequencies except for the 150 kHz difference, or beat, frequency, in a similar manner as was done by filter  88 . The resulting 150 kHz frequency, however, now has a phase angle x relative to the signal from filter  88 . Both 150 kHz signals are now fed into a phase detector  95  which determines the magnitude of the phase angle x. It can be shown mathematically that, with the above values, the distance from the transmitting diode to the occupant is x/345.6 where x is measured in degrees and the distance in meters. The velocity can also be obtained using the distance measurement as represented by  96 . An alternate method of obtaining distance information, as discussed above, is to use the teachings of the McEwan patents discussed herein. 
     As reported above, cameras can be used for obtaining three-dimensional images by modulation of the illumination as taught in U.S. Pat. No. 5,162,861. Use of a ranging device for occupant sensing is believed to have been first disclosed by the current assignee. More recent attempts include the PMD camera as disclosed in PCT application WO09810255 and similar concepts disclosed in U.S. Pat. Nos. 6,057,909 and 6,100,517. 
     Note that although the embodiment in  FIG. 14  uses near infrared, it is possible to use other frequencies of energy without deviating from the scope of the invention. In particular, there are advantages in using the short wave (SWIR), medium wave (MWIR) and long wave (LWIR) portions of the infrared spectrum as the interact in different and interesting ways with living occupants as described herein and in the book  Alien Vision  referenced above. 
     4.4 Pockel or Kerr Cell for Determining Range 
     Pockel and Kerr cells are well known in optical laboratories. They act as very fast shutters (up to 10 billion cycles per second) and as such can be used to range-gate the reflections based on distance giving a range resolution of up to 3 cm without the use of phase techniques to divide the interval into parts or sub millimeter resolution using phasing techniques. Thus, through multiple exposures the range to all reflecting surfaces inside and outside of the vehicle can be determined to any appropriate degree of accuracy. The illumination is transmitted, the camera shutter opened and the cell allows only that reflected light to enter the camera that arrived at the cell a precise time range after the illumination was initiated. 
     These cells are part of a class of devices called spatial light modulators (SLM). One novel application of an SLM is reported in U.S. Pat. No. 5,162,861. In this case, an SLM is used to modulate the light returning from a transmitted laser pulse that is scattered from a target. By comparing the intensities of the modulated and unmodulated images, the distance to the target can be ascertained. Using a SLM in another manner, the light valve can be kept closed for all ranges except the ones of interest. By changing the open time of the SLM, only returns from certain distances are permitted to pass through to the imager. By selective changing the opened time, the range to the target can be “range-gated” and thereby accurately determined. Thus, the outgoing light need not be modulated and a scanner is not necessary unless there is a need to overcome the power of the sun reflecting off of the object of interest. This form of range-gating can of course be used for either external or internal applications. 
     4.5 Thin film on ASIC (TFA) 
     Since the concepts of using cameras for monitoring the passenger compartment of a vehicle and measuring distance to a vehicle occupant based on the time of flight were first disclosed in commonly assigned above-referenced patents, several improvements have been reported in the literature including the thin film on ASIC (TFA) (references 6-11) and photonic mixing device (PMD) (reference 12) camera technologies. Both of these technologies and combinations thereof are good examples of devices that can be used in practicing the inventions herein and those in above-referenced patents and applications for monitoring both inside and exterior to a vehicle. 
     An improvement to these technologies is to use noise or pseudo noise modulation for a PMD-like device to permit more accurate distance to object determination especially for exterior to the vehicle monitoring through correlation of the generated and reflected modulation sequences. This has the further advantage that systems from different vehicles will not interfere with each other. 
     The TFA is an example of a high dynamic range camera (HDRC) the use of which for interior monitoring was disclosed in U.S. Pat. No. 6,393,133. Since there is direct connection between each pixel and an associated electronic circuit, the potential exists for range gating the sensor to isolate objects between certain limits thus simplifying the identification process by eliminating reflections from objects that are closer or further away than the object of interest. A further advantage of the TFA is that it can be doped to improve its sensitivity to infrared and it also can be fabricated as a three-color camera system. 
     Another novel HDRC camera is disclosed by Nayar (reference 13), as discussed above, and involves varying the sensitivity of pixels in the imager. Each of four adjacent pixels has a different exposure sensitivity and an algorithm is presented that combines the four exposures in a manner that loses little resolution but provides a high dynamic range picture. This particularly simple system is a preferred approach to handling the dynamic range problem in several monitoring applications of at least one of the inventions disclosed herein. 
     A great deal of development effort has gone into automatic camera focusing systems such as described in the Scientific American Article “Working Knowledge: Focusing in a Flash” (reference 14). The technology is now to the point that it can be taught to focus on a particular object, such as the head or chest of an occupant, or other object, and measure the distance to the object to within approximately 1 inch. If this technology is coupled with the Nayar camera, a very low cost semi 3D high dynamic range camera or imager results that is sufficiently accurate for locating an occupant in the passenger compartment or an object in another container. If this technology is coupled with an eye locator and the distance to the eyes of the occupant are determined, then a single camera is all that is required for either the driver or passenger. Such a system would display a fault warning when it is unable to find the occupant&#39;s eyes. 
     As discussed above, thin film on ASIC technology, as described in Lake, D. W. “TFA Technology: The Coming Revolution in Photography”, Advanced Imaging Magazine, April, 2002 (www.advancedimagingmag.com) shows promise of being the next generation of imager for automotive and other vehicle monitoring applications. The anticipated specifications for this technology, as reported in the Lake article, are: 
     
       
         
           
               
               
               
             
               
                   
                   
               
             
            
               
                   
                 Dynamic Range 
                 120 db 
               
               
                   
                 Sensitivity 
                 0.01 lux 
               
               
                   
                 Anti-blooming 
                 1,000,000:1 
               
               
                   
                 Pixel Density 
                 3,200,000 
               
               
                   
                 Pixel Size 
                 3.5 um 
               
               
                   
                 Frame Rate 
                 30 fps 
               
               
                   
                 DC Voltage 
                 1.8 v 
               
               
                   
                 Compression 
                 500 to 1 
               
               
                   
                   
               
            
           
         
       
     
     All of these specifications, except for the frame rate, are attractive for occupant sensing. It is believed that the frame rate can be improved with subsequent generations of the technology. Some advantages of this technology for occupant sensing include the possibility of obtaining a three-dimensional image by varying the pixel on time in relation to a modulated illumination in a simpler manner than that proposed with the PMD imager or with a Pockel or Kerr cell. The ability to build the entire package on one chip will reduce the cost of this imager compared with two or more chips required by current technology. Other technical papers on TFA are referenced above. 
     TFA thus appears to be a major breakthrough when used in the interior and exterior imaging systems. Its use in these applications falls within the teachings of the inventions disclosed herein. 
     5. Glare Control 
     The headlights of oncoming vehicles frequently make it difficult for the driver of a vehicle to see the road and safely operate the vehicle. This is a significant cause of accidents and much discomfort. The problem is especially severe during bad weather where rain can cause multiple reflections. Opaque visors are now used to partially solve this problem but they do so by completely blocking the view through a large portion of the window and therefore cannot be used to cover the entire windshield. Similar problems happen when the sun is setting or rising and the driver is operating the vehicle in the direction of the sun. U.S. Pat. No. 4,874,938 attempts to solve this problem through the use of a motorized visor but although it can block some glare sources, it also blocks a substantial portion of the field of view. 
     The vehicle interior monitoring system disclosed herein can contribute to the solution of this problem by determining the position of the driver&#39;s eyes. If separate sensors are used to sense the direction of the light from the on-coming vehicle or the sun, and through the use of electrochromic glass, a liquid crystal device, suspended particle device glass (SPD) or other appropriate technology, a portion of the windshield, or special visor, can be darkened to impose a filter between the eyes of the driver and the light source. Electrochromic glass is a material where the transparency of the glass can be changed through the application of an electric current. The term “liquid crystal” as used herein will be used to represent the class of all such materials where the optical transmissibility can be varied electrically or electronically. Electrochromic products are available from Gentex of Zeeland, Mich., and Donnelly of Holland, Mich. Other systems for selectively imposing a filter between the eyes of an occupant and the light source are currently under development. 
     By dividing the windshield into a controlled grid or matrix of contiguous areas and through feeding the current into the windshield from orthogonal directions, selective portions of the windshield can be darkened as desired. Other systems for selectively imposing a filter between the eyes of an occupant and the light source are currently under development. One example is to place a transparent sun visor type device between the windshield and the driver to selectively darken portions of the visor as described above for the windshield. 
     5.1 Windshield 
       FIG. 22  illustrates how such a system operates for the windshield. A sensor  135  located on vehicle  136  determines the direction of the light  138  from the headlights of oncoming vehicle  137 . Sensor  135  is comprised of a lens and a charge-coupled device (CCD), CMOS or similar device, with appropriate software or electronic circuitry that determines which elements of the CCD are being most brightly illuminated. An algorithm stored in processor  20  then calculates the direction of the light from the oncoming headlights based on the information from the CCD, or CMOS device. Usually two systems  135  are required to fix the location of the offending light. Transducers  6 ,  8  and  10  determine the probable location of the eyes of the operator  30  of vehicle  136  in a manner such as described above and below. In this case, however, the determination of the probable locus of the driver&#39;s eyes is made with an accuracy of a diameter for each eye of about 3 inches (7.5 cm). This calculation sometimes will be in error especially for ultrasonic occupant sensing systems and provision is made for the driver to make an adjustment to correct for this error as described below. 
     The windshield  139  of vehicle  136  comprises electrochromic glass, a liquid crystal, SPD device or similar system, and is selectively darkened at area  140 ,  FIG. 22A , due to the application of a current along perpendicular directions  141  and  142  of windshield  139 . The particular portion of the windshield to be darkened is determined by processor  20 . Once the direction of the light from the oncoming vehicle is known and the locations of the driver&#39;s eyes are known, it is a matter of simple trigonometry to determine which areas of the windshield matrix should be darkened to impose a filter between the headlights and the driver&#39;s eyes. This is accomplished by the processor  20 . A separate control system, not shown, located on the instrument panel, steering wheel or at some other convenient location, allows the driver to select the amount of darkening accomplished by the system from no darkening to maximum darkening. In this manner, the driver can select the amount of light that is filtered to suit his particular physiology. Alternately, this process can take place automatically. The sensor  135  can either be designed to respond to a single light source or to multiple light sources to be sensed and thus multiple portions of the vehicle windshield  139  to be darkened. Unless the camera is located on the same axis at the eyes of the driver, two cameras would in general be required to determine the distance of the glare causing object from the eyes of the driver. Without this third dimension, two glare sources that are on the same axis to the camera could be on different axes to the driver, for example. 
     As an alternative to locating the direction of the offending light source, a camera looking at the eyes of the driver can determine when they are being subjected to glare and then impose a filter. A trial and error process or through the use of structured light created by a pattern on the windshield, determines where to create the filter to block the glare. 
     More efficient systems are now becoming available to permit a substantial cost reduction as well as higher speed selective darkening of the windshield for glare control. These systems permit covering the entire windshield which is difficult to achieve with LCDs. For example, such systems are made from thin sheets of plastic film, sometimes with an entrapped liquid, and can usually be sandwiched between the two pieces of glass that make up a typical windshield. The development of conductive plastics permits the addressing and thus the manipulation of pixels of a transparent film that previously was not possible. These new technologies will now be discussed. 
     If the objective is for glare control, then the Xerox Gyricon technology applied to windows can be appropriate. Previously, this technology has only been used to make e-paper and a modification to the technology is necessary for it to work for glare control. Gyricon is a thin layer of transparent plastic full of millions of small black and white or red and white beads, like toner particles. The beads are contained in an oil-filled cavity. When voltage is applied, the beads rotate to present a colored side to the viewer. The advantages of Gyricon are: (1) it is electrically writeable and erasable; (2) it can be re-used thousands of times; (3) it does not require backlighting or refreshing; (4) it is brighter than today&#39;s reflective displays; and, (5) it operates on low power. The changes required are to cause the colored spheres to rotate 90 degrees rather than 180 degrees and to make half of each sphere transparent so that the display switches from opaque to 50% transparent. 
     Another technology, SPD light control technology from Research Frontiers Inc., has been used to darken entire windows but not as a system for darkening only a portion of the glass or sun visor to impose a selective filter to block the sun or headlights of an oncoming vehicle. Although it has been used as a display for laptop computers, it has not been used as a heads-up display (HUD) replacement technology for automobile or truck windshields. 
     Both SPD and Gyricon technologies require that the particles be immersed in a fluid so that the particles can move. Since the properties of the fluid will be temperature sensitive, these technologies will vary somewhat in performance over the automotive temperature range. The preferred technology, therefore, is plastic electronics although in many applications either Gyricon or SPD will also be used in combination with plastic electronics, at least until the technology matures. Currently plastic electronics can only emit light and not block it. However, research is ongoing to permit it to also control the transmission of light. 
     The calculations of the location of the driver&#39;s eyes using acoustic systems may be in error and therefore provision must be made to correct for this error. One such system permits the driver to adjust the center of the darkened portion of the windshield to correct for such errors through a knob, mouse pad, joy stick or other input device, on the instrument panel, steering wheel, door, armrest or other convenient location. Another solution permits the driver to make the adjustment by slightly moving his head. Once a calculation as to the location of the driver&#39;s eyes has been made, that calculation is not changed even though the driver moves his head slightly. It is assumed that the driver will only move his head in a very short time period to center the darkened portion of the windshield to optimally filter the light from the oncoming vehicle. The monitoring system will detect this initial head motion and make the correction automatically for future calculations. Additionally, a camera observing the driver or other occupant can monitor the reflections of the sun or the headlights of oncoming vehicles off of the occupant&#39;s head or eyes and automatically adjust the filter in the windshield or sun visor. 
     5.2 Glare in Rear View Mirrors 
     Electrochromic glass is currently used in rear view mirrors to darken the entire mirror in response to the amount of light striking an associated sensor. This substantially reduces the ability of the driver to see objects coming from behind his vehicle. If one rear-approaching vehicle, for example, has failed to dim his lights, the mirror will be darkened to respond to the light from that vehicle making it difficult for the driver to see other vehicles that are also approaching from the rear. If the rear view mirror is selectively darkened on only those portions that cover the lights from the offending vehicle, the driver is able to see all of the light coming from the rear whether the source is bright or dim. This permits the driver to see all of the approaching vehicles not just the one with bright lights. 
     Such a system is illustrated in  FIGS. 23 ,  23 A and  23 B wherein rear view mirror  55  is equipped with electrochromic glass, or comprises a liquid crystal or similar device, having the capability of being selectively darkened, e.g., at area  143 . Associated with mirror  55  is a light sensor  144  that determines the direction of light  138  from the headlights of rear approaching vehicle  137 . Again, as with the windshield, a stereo camera is used if the camera is not aligned with the eye view path. This is easier to accomplish with a mirror due to its much smaller size. In such a case, the imager could be mounted on the movable part of the mirror and could even look through the mirror from behind. In the same manner as above, transducers  6 ,  8  and  10  determine the location of the eyes of the driver  30 . The signals from both sensor systems,  6 ,  8 ,  10  and  144 , are combined in the processor  20 , where a determination is made as to what portions of the mirror should be darkened, e.g., area  143 . Appropriate currents are then sent to the mirror  55  in a manner similar to the windshield system described above. Again, an alternative solution is to observe a glare reflection on the face of the driver and remove the glare with a filter. 
     Note, the rearview mirror is also an appropriate place to display icons of the contents of the blind spot or other areas surrounding the vehicle as disclosed in U.S. Pat. No. 7,049,945. 
     5.3 Visor for Glare Control and HUD 
       FIG. 24  illustrates the interior of a passenger compartment with a rear view mirror assembly  55 , a camera for viewing the eyes of the driver  56  and a large generally transparent sun visor  145 . The sun visor  145  is normally largely transparent and is made from electrochromic glass, suspended particle glass, a liquid crystal device or equivalent. The camera  56  images the eyes of the driver and looks for a reflection indicating that glare is impinging on the driver&#39;s eyes. The camera system may have a source of infrared or other frequency illumination that would be momentarily activated to aid in locating the driver&#39;s eyes. Once the eyes have been located, the camera monitors the area around the eyes, or direct reflections from the eyes themselves, for an indication of glare. The camera system in this case would not know the direction from which the glare is originating; it would only know that the glare was present. The glare blocker system then can darken selected portions of the visor to attempt to block the source of glare and would use the observation of the glare from or around the eyes of the driver as feedback information. When the glare has been eliminated, the system maintains the filter, perhaps momentarily reducing it from time to time to see that the source of glare has not stopped. 
     If the filter is electrochromic glass, a significant time period is required to activate the glare filter and therefore a trial and error search for the ideal filter location could be too slow. In this case, a non-recurring spatial pattern can be placed in the visor such that when light passes through the visor and illuminates the face of the driver, the location where the filter should be placed can be easily determined. That is, the pattern reflection off of the face of the driver would indicate the location of the visor through which the light causing the glare was passing. Such a structured light system can also be used for the SPD and LCD filters but since they act significantly more rapidly, it would serve only to simplify the search algorithm for filter placement. 
     A second photo sensor  135  can also be used pointing through the windshield to determine only that glare was present. In this manner, when the source of the glare disappears, the filter can be turned off. A more sophisticated system as described above for the windshield system whereby the direction of the light is determined using a camera-type device can also be implemented. 
     The visor  145  is illustrated as substantially covering the front windshield in front of the driver. This is possible since it is transparent except where the filter is applied, which would in general be a small area. A second visor, not shown, can also be used to cover the windshield for the passenger side that would also be useful when the light-causing glare on the driver&#39;s eyes enters through the windshield in front of the passenger or if a passenger system is also desired. In some cases, it might even be advantageous to supply a similar visor to cover the side windows but in general, standard opaque visors would serve for both the passenger side windshield area and the side windows since the driver in general only needs to look through the windshield in front of him or her. 
     A smaller visor can also be used as long as it is provided with a positioning system or method. The visor only needs to cover the eyes of the driver. This could either be done manually or by electric motors similar to the system disclosed in U.S. Pat. No. 4,874,938. If electric motors are used, then the adjustment system would first have to move the visor so that it covered the driver&#39;s eyes and then provide the filter. This could be annoying if the vehicle is heading into the sun and turning and/or going up and down hills. In any case, the visor should be movable to cover any portion of the windshield where glare can get through, unlike conventional visors that only cover the top half of the windshield. The visor also does not need to be close to the windshield and the closer that it is to the driver, the smaller and thus the less expensive it can be. 
     As with the windshield, the visor of at least one of the inventions disclosed herein can also serve as a display using plastic electronics as described above either with or without the SPD or other filter material. Additionally, visor-like displays can now be placed at many locations in the vehicle for the display of Internet web pages, movies, games etc. Occupants of the rear seat, for example, can pull down such displays from the ceiling, up from the front seatbacks or out from the B-pillars or other convenient locations. 
     A key advantage of the systems disclosed herein is the ability to handle multiple sources of glare in contrast to the system of U.S. Pat. No. 4,874,938, which requires that the multiple sources must be close together. 
     5.4 Headlamp Control 
     In a similar manner, the forward looking camera(s) can also be used to control the lights of vehicle  136  when either the headlights or taillights of another vehicle are sensed. In this embodiment, the CCD array is designed to be sensitive to visible light and a separate source of illumination is not used. The key to this technology can be the use of trained pattern recognition algorithms and particularly the artificial neural network. Here, as in the other cases above and in patents and patent applications referenced above, the pattern recognition system is trained to recognize the pattern of the headlights of an oncoming vehicle and/or the tail lights of a vehicle in front of vehicle  136  and to then dim the headlights when either of these conditions is sensed. It is also trained to not dim the lights for other reflections such as reflections off of a sign post or the roadway. One problem is to differentiate taillights where dimming is desired from distant headlights where dimming is not desired. At least three techniques can be used: (i) measurement of the spacing of the light sources, (ii) determination of the location of the light sources relative to the vehicle, and (iii) use of a red filter where the brightness of the light source through the filter is compared with the brightness of the unfiltered light. In the case of the taillight, the brightness of the red filtered and unfiltered light is nearly the same while there is a significant difference for the headlight case. In this situation, either two CCD arrays are used, one with a filter, or a filter which can be removed either electrically, such as with a liquid crystal, or mechanically. Alternately a fast Fourier transform, or other spectral analysis technique, of the data can be taken to determine the relative red content. 
     6. Weight Measurement and Biometrics 
     One way to determine motion of the occupant(s) is to monitor the weight distribution of the occupant whereby changes in weight distribution after an accident would be highly suggestive of movement of the occupant. A system for determining the weight distribution of the occupants can be integrated or otherwise arranged in the seats  3  and  4  of the vehicle and several patents and publications describe such systems. The disclosure in section 6 of U.S. patent application Ser. No. 11/558,996 is particularly applicable. 
     7. Illumination 
     7.1 Infrared Light 
     Many forms of illumination can of course be used. Near infrared is a preferred source since it can be produced relatively inexpensively with LEDs and is not seen by vehicle occupants or others outside of the vehicle. The use of spatially modulated (as in structured light) and temporally modulated (as in amplitude, frequency, pulse, code, random or other such methods) permits additional information to be obtained such as a three-dimensional image as disclosed by the current assignee in earlier patents. Infrared is also interesting since the human body naturally emits IR and this fact can be used to positively identify that there is a human occupying a vehicle seat and to determine fairly accurately the size of the occupant. This technique only works when the ambient temperature is different from body temperature, which is most of the time. In some climates, it is possible that the interior temperature of a vehicle can reach or exceed 100° F., but it is unlikely to stay at that temperature for long as humans find such a temperature uncomfortable. However, it is even more unlikely that such a temperature will exist except when there is significant natural illumination in the visible part of the spectrum. Thus, a visual size determination is possible especially since it is very unlikely that such an occupant will be wearing heavy or thick clothing. Passive infrared, used of course with an imaging system, is thus a viable technique for the identification of a human occupant if used in conjunction with an optical system for high temperature situations. Even if the ambient temperature is nearly the same as body temperature, there will still be contrasts in the image which are sufficient to differentiate an occupant or his or her face from the background. Whereas a single pixel sensor, as in prior art patents to Corrado and Mattes, could give false results, an imaging system such as a focal plane array as disclosed herein can still operate effectively. 
     Passive IR is also a good method of finding the eyes and other features of the occupant since hair, some hats and other obscuring items frequently do not interfere with the transmission of IR. When active IR illumination is used, the eyes are particularly easy to find due to corneal reflection and the eyes will be dilated at night when finding the eyes is most important. Even in glare situations, where the glare is coming through the windshield, passive IR is particularly useful since glass blocks most IR with wavelengths beyond 1.1 microns and thus the glare will not interfere with the imaging of the face. 
     Particular frequencies of active IR are especially useful for external monitoring. Except for monitoring objects close to the vehicle, most radar systems have a significant divergence angle making imaging more than a few meters from the vehicle problematic. Thus there is typically not enough information from a scene say 100 meters away to permit the monitor to obtain an image that would permit classification of sensed objects. Using radar, it is difficult to distinguish a car from a truck or a parked car at the side of the road from one on the same lane as the vehicle or from an advertising sign, for example. Normal visual imaging also will not work in bad weather situations however some frequencies of IR do penetrate fog, rain and snow sufficiently well as to permit the monitoring of the road at a significant distance and with enough resolution to permit imaging and thus classification even in the presence of rain, snow and fog. 
     As mentioned herein, there are various methods of illuminating the object or occupant in the passenger compartment. A scanning point of IR can be used to overcome reflected sunlight. A structured pattern can be used to help achieve a three-dimensional representation of the vehicle contents. An image can be compared with illumination and without in an attempt to eliminate the effects on natural and uncontrollable illumination. This generally doesn&#39;t work very well since the natural illumination can overpower the IR. Thus it is usually better to develop two pattern recognition algorithms, one for IR illumination and one for natural illumination. For the natural illumination case, the entire visual and near visual spectrum can be used or some subset of it. For the case where a rolling shutter is used, the process can be speeded up substantially if one line of pixels is subtracted from the adjacent line where the illumination is turned on for every other row and off for the intervening rows. In addition to structured light, there are many other methods of obtaining a 3D image as discussed above. 
     7.2 Structured Light 
     In the applications discussed and illustrated above, the source and receiver of the electromagnetic radiation have frequently been mounted in the same package. This is not necessary and in some implementations, the illumination source will be mounted elsewhere. For example, a laser beam can be used which is directed along an axis which bisects the angle between the center of the seat volume, or other volume of interest, and two of the arrays. Such a beam may come from the A-Pillar, for example. The beam, which may be supplemental to the main illumination system, provides a point reflection from the occupying item that, in most cases, can be seen by two receivers, even if they are significantly separated from each other, making it easier to identify corresponding parts in the two images. Triangulation thereafter can precisely determination the location of the illuminated point. This point can be moved, or a pattern of points provided, to provide even more information. In another case where it is desired to track the head of the occupant, for example, several such beams can be directed at the occupant&#39;s head during pre-crash braking or even during a crash to provide the fastest information as to the location of the head of the occupant for the fastest tracking of the motion of the occupant&#39;s head. Since only a few pixels are involved, even the calculation time is minimized. 
     In most of the applications above, the assumption has been made that either a uniform field of light or a scanning spot of light will be provided. This need not be the case. The light that is emitted or transmitted to illuminate the object can be structured light. Structured light can take many forms starting with, for example, a rectangular or other macroscopic pattern of light and dark that can be superimposed on the light by passing it through a filter. If a similar pattern is interposed between the reflections and the camera, a sort of pseudo-interference pattern can result sometimes known as Moiré patterns. A similar effect can be achieved by polarizing transmitted light so that different parts of the object that is being illuminated are illuminated with light of different polarization. Once again, by viewing the reflections through a similarly polarized array, information can be obtained as to where the source of light came from which is illuminating a particular object. Any of the transmitter/receiver assemblies or transducers in any of the embodiments above using optics can be designed to use structured light. 
     Usually the source of the structured light is displaced either vertically, laterally or axially from the imager, but this need not necessarily be the case. One excellent example of the use of structured light to determine a 3D image where the source of the structured light and the imager are on the same axis is illustrated in U.S. Pat. No. 5,003,166. Here, the third dimension is obtained by measuring the degree of blur of the pattern as reflected from the object. This can be done since the focal point of the structured light is different from the camera. This is accomplished by projecting it through its own lens system and then combining the two paths through the use of a beam splitter. The use of this or any other form of structured light is within the scope of at least one of the inventions disclosed herein. There are so many methods that the details of all of them cannot be enumerated here. 
     One consideration when using structured light is that the source of structured light should not generally be exactly co-located with the array because in this case, the pattern projected will not change as a function of the distance between the array and the object and thus the distance between the array and the object cannot be determined, except by the out-of-focus and similar methods discussed above. Thus, it is usually necessary to provide a displacement between the array and the light source. For example, the light source can surround the array, be on top of the array or on one side of the array. The light source can also have a different virtual source, i.e., it can appear to come from behind of the array or in front of the array, a variation of the out-of-focus method discussed above. 
     For a laterally displaced source of structured light, the goal is to determine the direction that a particular ray of light had when it was transmitted from the source. Then, by knowing which pixels were illuminated by the reflected light ray along with the geometry of the vehicle, the distance to the point of reflection off of the object can be determined. If a particular light ray, for example, illuminates an object surface which is near to the source, then the reflection off of that surface will illuminate a pixel at a particular point on the imaging array. If the reflection of the same ray however occurs from a more distant surface, then a different pixel will be illuminated in the imaging array. In this manner, the distance from the surface of the object to the array can be determined by triangulation formulas. Similarly, if a given pixel is illuminated in the imager from a reflection of a particular ray of light from the transmitter, and knowing the direction that that ray of light was sent from the transmitter, then the distance to the object at the point of reflection can be determined. If each ray of light is individually recognizable and therefore can be correlated to the angle at which it was transmitted, a full three-dimensional image can be obtained of the object that simplifies the identification problem. This can be done with a single imager. 
     One particularly interesting implementation due to its low cost is to project one or more dots or other simple shapes onto the occupant from a position which is at an angle relative to the occupant such as 10 to 45 degrees from the camera location. These dots will show up as bright spots even in bright sunlight and their location on the image will permit the position of the occupant to be determined. Since the parts of the occupant are all connected with relative accuracy, the position of the occupant can now be accurately determined using only one simple camera. Additionally, the light that makes up the dots can be modulated and the distance from the dot source can then be determined if there is a receiver at the light source and appropriate circuitry such as used with a scanning range meter. 
     The coding of the light rays coming from the transmitter can be accomplished in many ways. One method is to polarize the light by passing the light through a filter whereby the polarization is a combination of the amount and angle of the polarization. This gives two dimensions that can therefore be used to fix the angle that the light was sent. Another method is to superimpose an analog or digital signal onto the light which could be done, for example, by using an addressable light valve, such as a liquid crystal filter, electrochromic filter, or, preferably, a garnet crystal array. Each pixel in this array would be coded such that it could be identified at the imager or other receiving device. Any of the modulation schemes could be applied such as frequency, phase, amplitude, pulse, random or code modulation. 
     The techniques described above can depend upon either changing the polarization or using the time, spatial or frequency domains to identify particular transmission angles with particular reflections. Spatial patterns can be imposed on the transmitted light which generally goes under the heading of structured light. The concept is that if a pattern is identifiable, then either the direction of transmitted light can be determined or, if the transmission source is co-linear with the receiver, then the pattern differentially expands or contracts relative to the field of view as it travels toward the object and then, by determining the size or focus of the received pattern, the distance to the object can be determined. In some cases, Moiré pattern techniques are utilized. 
     When the illumination source is not placed on the same axis as the receiving array, it is typically placed at an angle such as 45 degrees. At least two other techniques can be considered. One is to place the illumination source at 90 degrees to the imager array. In this case, only those surface elements that are closer to the receiving array than previous surfaces are illuminated. Thus, significant information can be obtained as to the profile of the object. In fact, if no object is occupying the seat, then there will be no reflections except from the seat itself. This provides a very powerful technique for determining whether the seat is occupied and where the initial surfaces of the occupying item are located. A combination of the above techniques can be used with temporally or spatially varying illumination. Taking images with the same imager but with illumination from different directions can also greatly enhance the ability to obtain three-dimensional information. 
     The particular radiation field of the transmitting transducer can also be important to some implementations of at least one of the inventions disclosed herein. In some techniques, the object which is occupying the seat is the only part of the vehicle which is illuminated. Extreme care is exercised in shaping the field of light such that this is true. For example, the objects are illuminated in such a way that reflections from the door panel do not occur. Ideally, if only the items which occupy the seat can be illuminated, then the problem of separating the occupant from the interior vehicle passenger compartment surfaces can be more easily accomplished. Sending illumination from both sides of the vehicle across the vehicle can accomplish this. 
     The above discussion has concentrated on automobile occupant sensing but the teachings, with some modifications, are applicable to monitoring of other vehicles including railroad cars, truck trailers and cargo containers. 
     7.3 Color and Natural Light 
     As discussed above, the use of multispectral imaging can be a significant aid in recognizing objects inside and outside of a vehicle. Two objects may not be separable under monochromic illumination yet be quite distinguishable when observed in color or with illumination from other parts of the electromagnetic spectrum. Also, the identification of a particular individual is enhanced using near UV radiation, for example. Even low level X-rays can be useful in identifying and locating objects in a vehicle. 
     7.4 Radar 
     Particular mention should be made of the use of radar since novel inexpensive antennas and ultra wideband radars are now readily available. A scanning radar beam can be used in this implementation and the reflected signal is received by a phase array antenna to generate an image of the occupant for input into the appropriate pattern detection circuitry. The image is not very clear due to the longer wave lengths used and the difficulty in getting a small enough radar beam. The word circuitry as used herein includes, in addition to normal electronic circuits, a microprocessor and appropriate software. 
     Another preferred embodiment makes use of radio waves and a voltage-controlled oscillator (VCO). In this embodiment, the frequency of the oscillator is controlled through the use of a phase detector which adjusts the oscillator frequency so that exactly one half wave occupies the distance from the transmitter to the receiver via reflection off of the occupant. The adjusted frequency is thus inversely proportional to the distance from the transmitter to the occupant. Alternately, an FM phase discriminator can be used as known to those skilled in the art. These systems could be used in any of the locations illustrated in  FIG. 5  as well as in the monitoring of other vehicle types. 
     In  FIG. 6 , a motion sensor  73  is arranged to detect motion of an occupying item on the seat  4  and the output thereof is input to the neural network  65 . Motion sensors can utilize a micro-power impulse radar (MIR) system as disclosed, for example, in McEwan U.S. Pat. No. 5,361,070, as well as many other patents by the same inventor. Motion sensing is accomplished by monitoring a particular range from the sensor as disclosed in that patent. MIR is one form of radar which has applicability to occupant sensing and can be mounted, for example, at locations such as designated by reference numerals  6  and  8 - 10  in  FIG. 2 . It has an advantage over ultrasonic sensors in that data can be acquired at a higher speed and thus the motion of an occupant can be more easily tracked. The ability to obtain returns over the entire occupancy range is somewhat more difficult than with ultrasound resulting in a more expensive system overall. MIR has additional advantages over ultrasound in lack of sensitivity to temperature variation and has a comparable resolution to about 40 kHz ultrasound. Resolution comparable to higher frequency is feasible but has not been demonstrated. Additionally, multiple MIR sensors can be used when high speed tracking of the motion of an occupant during a crash is required since they can be individually pulsed without interfering with each, through time division multiplexing. MIR sensors are also particularly applicable to the monitoring of other vehicles and can be configured to provide a system that requires very low power and thus is ideal for use with battery-operated systems that require a very long life. 
     Sensors  126 ,  127 ,  128 ,  129  in  FIG. 21  can also be microwave or mm wave radar sensors which transmit and receive radar waves. As such, it is possible to determine the presence of an object in the rear seat and the distance between the object and the sensors. Using multiple radar sensors, it would be possible to determine the contour of an object in the rear seat and thus using pattern recognition techniques, the classification or identification of the object. Motion of objects in the rear seat can also be determined using radar sensors. For example, if the radar sensors are directed toward a particular area and/or are provided with the ability to detect motion in a predetermined frequency range, they can be used to determine the presence of children or pets left in the vehicle, i.e., by detecting heartbeats or other body motions such as movement of the chest cavity. 
     7.5 Frequency or Spectrum Considerations 
     The maximum acoustic frequency range that is practical to use for acoustic imaging in the acoustic systems herein is about 40 to 160 kilohertz (kHz). The wavelength of a 50 kHz acoustic wave is about 0.6 cm, which is too coarse to determine the fine features of a person&#39;s face, for example. It is well understood by those skilled in the art that features that are smaller than the wavelength of the irradiating radiation cannot be distinguished. Similarly, the wavelength of common radar systems varies from about 0.9 cm (for 33 GHz K band) to 133 cm (for 225 MHz P band), which is also too coarse for person identification systems. Millimeter wave and sub-millimeter wave radar can of course emit and receive waves considerably smaller. Millimeter wave radar and Micropower Impulse Radar (MIR) as discussed above are particularly useful for occupant detection and especially the motion of occupants such as motion caused by heartbeats and breathing, but still too course for feature identification. For security purposes, for example, MIR can be used to detect the presence of weapons on a person that might be approaching a vehicle such as a bus, truck or train and thus provide a warning of a potential terrorist threat. Passive IR is also useful for this purpose. 
     MIR is reflected by edges, joints and boundaries and through the technique of range gating, particular slices in space can be observed. Millimeter wave radar, particularly in the passive mode, can also be used to locate life forms because they naturally emit waves at particular wave lengths such as 3 mm. A passive image of such a person will also show the presence of concealed weapons as they block this radiation. Similarly, active millimeter wave radar reflects off of metallic objects but is absorbed by the water in a life form. The absorption property can be used by placing a radar receiver or reflector behind the occupant and measuring the shadow caused by the absorption. The reflective property of weapons including plastics can be used as above to detect possible terrorist threats. Finally, the use of sub-millimeter waves again using a detector or reflector on the other side of the occupant can be used not only to determine the density of the occupant but also some measure of its chemical composition as the chemical properties alter the pulse shape. Such waves are more readily absorbed by water than by plastic. From the above discussion, it can be seen that there are advantages of using different frequencies of radar for different purposes and, in some cases, a combination of frequencies is most useful. This combination occurs naturally with noise radar (NR), ultra-wideband radar (UWB) and MIR and these technologies are most appropriate for occupant detection when using electromagnetic radiation at longer wavelengths than visible light and IR. 
     Another variant on the invention is to use no illumination source at all. In this case, the entire visible and infrared spectrum could be used. CMOS arrays are now available with very good night vision capabilities making it possible to see and image an occupant in very low light conditions. QWIP, as discussed above, may someday become available when on-chip cooling systems using a dual stage Peltier system become cost effective or when the operating temperature of the device rises through technological innovation. For a comprehensive introduction to multispectral imaging, see Richards, Austin  Alien Vision, Exploring the Electromagnetic Spectrum with Imaging Technology , SPIE Press, 2001. 
     Thus many different frequencies can be used to image a scene each having particular advantages and disadvantages. At least one of the inventions disclosed herein is not limited to using a particular frequency or part of the electromagnetic spectrum and images can advantageously be combined from different frequencies. For example, a radar image can be combined or fused with an image from the infrared or ultraviolet portions of the spectrum. Additionally, the use of a swept frequency range such as in a chirp can be advantageously used to distinguish different objects or in some cases different materials. It is well known that different materials absorb and reflect different electromagnetic waves and that this fact can be used to identify the material as in spectrographic analysis. 
     8. Field Sensors and Antennas 
     A living object such as an animal or human has a fairly high electrical permittivity (Dielectric Constant) and relatively lossy dielectric properties (Loss Tangent) absorbs a lot of energy absorption when placed in an appropriate varying electric field. This effect varies with the frequency. If a human, which is a lossy dielectric, is present in the detection field, then the dielectric absorption causes the value of the capacitance of the object to change with frequency. For a human (poor dielectric) with high dielectric losses (loss tangent), the decay with frequency will be more pronounced than objects that do not present this high loss tangency. Exploiting this phenomena, it is possible to detect the presence of an adult, child, baby or pet that is in the field of the detection circuit. 
     In  FIG. 6 , a capacitive sensor  78  is arranged to detect the presence of an occupying item on the seat  4  and the output thereof is input to the neural network  65 . Capacitive sensors can be located many other places in the passenger compartment. Capacitive sensors appropriate for this function are disclosed in U.S. Pat. Nos. 5,602,734, 5,802,479, 5,844,486 and 5,948,031. Capacitive sensors can in general be mounted at locations designated by reference numerals  6  and  8 - 10  in  FIG. 2  or as shown in  FIG. 6  or in the vehicle seat and seatback, although by their nature they can occupy considerably more space than shown in the drawings. 
     In  FIG. 4 , transducers  5 ,  11 ,  12 ,  13 ,  14  and  15  can be antennas placed in the seat and headrest such that the presence of an object, particularly a water-containing object such as a human, disturbs the near field of the antenna. This disturbance can be detected by various means such as with Micrel parts MICREF102 and MICREF104, which have a built-in antenna auto-tune circuit. Note, these parts cannot be used as is and it is necessary to redesign the chips to allow the auto-tune information to be retrieved from the chip. 
     Note that the bio-impedance that can be measured using the methods described above can be used to obtain a measure of the water mass, for example, of an object and thus of its weight. 
     9. Telematics 
     Some of the inventions herein relate generally to telematics and the transmission of information from a vehicle to one or more remote sites which can react to the position or status of the vehicle and/or occupant(s) therein. Details of the manner in which telematics can be applied to the invention are descried in U.S. patent application Ser. No. 11/558,996. 
     10. Display 
     A portion of the windshield, such as the lower left corner, can be used to display the vehicle and surrounding vehicles or other objects as seen from above, for example, as described in U.S. Pat. No. 7,049,945. This display can use pictures or icons as appropriate. In another case, the condition of the road such as the presence, or likelihood of black ice can be displayed on the windshield where it would show on the road if the driver could see it. This would require a source of information that such a condition exists, however, here the concern is that it can be displayed whatever the source of this or any other relevant information. When used in conjunction with a navigation system, directions including pointing arrows or a path outline perhaps in color, similar to the first down line on a football field as seen on TV, can be displayed to direct the driver to his destination or to points of interest. 
     11. Pattern Recognition 
     In basic embodiments of the inventions, wave or energy-receiving transducers are arranged in the vehicle at appropriate locations, associated algorithms are trained, if necessary depending on the particular embodiment, and function to determine whether a life form, or other object, is present in the vehicle and if so, how many life forms or objects are present. A determination can also be made using the transducers as to whether the life forms are humans, or more specifically, adults, child in child seats, etc. As noted above and below, this is possible using pattern recognition techniques. Moreover, the processor or processors associated with the transducers can be trained (loaded with a trained pattern recognition algorithm) to determine the location of the life forms or objects, either periodically or continuously or possibly only immediately before, during and after a crash. The location of the life forms or objects can be as general or as specific as necessary depending on the system requirements, i.e., a determination can be made that a human is situated on the driver&#39;s seat in a normal position (general) or a determination can be made that a human is situated on the driver&#39;s seat and is leaning forward and/or to the side at a specific angle as well as determining the position of his or her extremities and head and chest (specific). Or, a determination can be made as to the size or type of objects such as boxes are in a truck trailer or cargo container. The degree of detail is limited by several factors, including, e.g., the number, position and type of transducers and the training of the pattern recognition algorithm. 
     When different objects are placed on the front passenger seat, the images (here “image” is used to represent any form of signal) from transducers  6 ,  8 ,  10  ( FIG. 1 ) are different for different objects but there are also similarities between all images of rear facing child seats, for example, regardless of where on the vehicle seat it is placed and regardless of what company manufactured the child seat. Alternately, there will be similarities between all images of people sitting on the seat regardless of what they are wearing, their age or size. The problem is to find the set of “rules” or an algorithm that differentiates the images of one type of object from the images of other types of objects, for example which differentiate the adult occupant images from the rear facing child seat images or boxes. The similarities of these images for various child seats are frequently not obvious to a person looking at plots of the time series from ultrasonic sensors, for example, and thus computer algorithms are developed to sort out the various patterns. For a more detailed discussion of pattern recognition, see U.S. RE37260. 
     The determination of these rules is important to the pattern recognition techniques used in at least one of the inventions disclosed herein. In general, three approaches have been useful, artificial intelligence, fuzzy logic and artificial neural networks including modular or combination neural networks. Other types of pattern recognition techniques may also be used, such as sensor fusion as disclosed in U.S. Pat. Nos. 5,482,314, 5,890,085, and 6,249,729. In some of the inventions disclosed herein, such as the determination that there is an object in the path of a closing window or door using acoustics or optics as described herein, the rules are sufficiently obvious that a trained researcher can look at the returned signals and devise an algorithm to make the required determinations. In others, such as the determination of the presence of a rear facing child seat or of an occupant, artificial neural networks are used to determine the rules. Neural network software for determining the pattern recognition rules is available from various sources such as International Scientific Research, Inc., Panama City, Panama. 
     The human mind has little problem recognizing faces even when they are partially occluded such as with a hat, sunglasses or a scarf, for example. With the increase in low cost computing power, it is now becoming possible to train a rather large neural network, perhaps a combination neural network, to recognize most of those cases where a human mind will also be successful. 
     Other techniques which may or may not be part of the process of designing a system for a particular application include the following: 
     1. Fuzzy logic. Neural networks frequently exhibit the property that when presented with a situation that is totally different from any previously encountered, an irrational decision can result. Frequently, when the trained observer looks at input data, certain boundaries to the data become evident and cases that fall outside of those boundaries are indicative of either corrupted data or data from a totally unexpected situation. It is sometimes desirable for the system designer to add rules to handle these cases. These can be fuzzy logic-based rules or rules based on human intelligence. One example would be that when certain parts of the data vector fall outside of expected bounds that the system defaults to an airbag-enable state or the previously determined state. 
     2. Genetic algorithms. When developing a neural network algorithm for a particular vehicle, there is no guarantee that the best of all possible algorithms has been selected. One method of improving the probability that the best algorithm has been selected is to incorporate some of the principles of genetic algorithms. In one application of this theory, the network architecture and/or the node weights are varied pseudo-randomly to attempt to find other combinations which have higher success rates. The discussion of such genetic algorithms systems appears in the book  Computational Intelligence  referenced above. 
     Although neural networks are preferred other classifiers such as Bayesian classifiers can be used as well as any other pattern recognition system. A key feature of most of the inventions disclosed herein is the recognition that the technology of pattern recognition rather than deterministic mathematics should be applied to solving the occupant sensing problem. 
     11.1 Neural Networks 
     An occupant can move from a position safely displaced from the airbag to a position where he or she can be seriously injured by the deployment of an airbag within a fraction of a second during pre-crash braking, for example. On the other hand, it takes a substantially longer time period to change the seat occupancy state from a forward facing person to a rear facing child seat, or even from a forward facing child seat to a rear facing child seat. This fact can be used in the discrimination process through post-processing algorithms. One method, which also prepares for DOOP, is to use a two-layered neural network or two separate neural networks. The first one categorizes the seat occupancy into, for example, (1) empty seat, (2) rear facing child seat, (3) forward facing child seat and (4) forward facing human (not in a child seat). The second is used for occupant position determination. In the implementation, the same input layer can be used for both neural networks but separate hidden and output layers are used. This is illustrated in FIG. 187 of the &#39;881 application which is similar to  FIG. 19B  with the addition of a post processing operation for both the categorization and position networks and the separate hidden layer nodes for each network. 
     If the categorization network determines that either a category (3) or (4) exists, then the second network is run, which determines the location of the occupant. Significant averaging of the vectors is used for the first network and substantial evidence is required before the occupancy class is changed. For example, if data is acquired every 10 milliseconds, the first network might be designed to require 600 out of 1000 changed vectors before a change of state is determined. In this case, at least 6 seconds of confirming data would be required. Such a system would therefore not be fooled by a momentary placement of a newspaper by a forward facing human, for example, that might look like a rear-facing child seat. 
     If, on the other hand, a forward facing human were chosen, his or her position could be determined every 10 milliseconds. A decision that the occupant had moved out of position would not necessarily be made from one 10 millisecond reading unless that reading was consistent with previous readings. Nevertheless, a series of consistent readings would lead to a decision within 10 milliseconds of when the occupant crossed over into the danger zone proximate to the airbag module. This method of using history is used to eliminate the effects of temperature gradients, for example, or other events that could temporarily distort one or more vectors. The algorithms which perform this analysis are part of the post-processor. 
     More particularly, in one embodiment of the method in accordance with at least one of the inventions herein in which two neural networks are used in the control of the deployment of an occupant restraint device based on the position of an object in a passenger compartment of a vehicle, several wave-emitting and receiving transducers are mounted on the vehicle. In one preferred embodiment, the transducers are ultrasonic transducers which simultaneously transmit and receive waves at different frequencies from one another. A determination is made by a first neural network whether the object is of a type requiring deployment of the occupant restraint device in the event of a crash involving the vehicle based on the waves received by at least some of the transducers after being modified by passing through the passenger compartment. If so, another determination is made by a second neural network whether the position of the object relative to the occupant restraint device would cause injury to the object upon deployment of the occupant restraint device based on the waves received by at least some of the transducers. The first neural network is trained on signals from at least some of the transducers representative of waves received by the transducers when different objects are situated in the passenger compartment. The second neural network is trained on signals from at least some of the transducers when different objects in different positions are situated in the passenger compartment. 
     The transducers used in the training of the first and second neural networks and operational use of method are not necessary the same transducers and different sets of transducers can be used for the typing or categorizing of the object via the first neural network and the position determination of the object via the second neural network. 
     The modifications described above with respect to the use of ultrasonic transducers can also be used in conjunction with a dual neural network system. For example, motion of a respective vibrating element or cone of one or more of the transducers may be electronically or mechanically diminished or suppressed to reduce ringing of the transducer and/or one or more of the transducers may be arranged in a respective tube having an opening through which the waves are transmitted and received. 
     In another embodiment of the invention, a method for categorizing and determining the position of an object in a passenger compartment of a vehicle entails mounting a plurality of wave-receiving transducers on the vehicle, training a first neural network on signals from at least some of the transducers representative of waves received by the transducers when different objects in different positions are situated in the passenger compartment, and training a second neural network on signals from at least some of the transducers representative of waves received by the transducers when different objects in different positions are situated in the passenger compartment. As such, the first neural network provides an output signal indicative of the categorization of the object while the second neural network provides an output signal indicative of the position of the object. The transducers may be controlled to transmit and receive waves each at a different frequency, as discussed herein, and one or more of the transducers may be arranged in a respective tube having an opening through which the waves are transmitted and received. 
     Although this system is described with particular advantageous use for ultrasonic and optical transducers, it is conceivable that other transducers other than the ultrasonics or optics can also be used in accordance with the invention. A dual neural network is a form of a modular neural network and both are subsets of combination neural networks. 
     The system used in a preferred implementation of at least one of the inventions disclosed herein for the determination of the presence of a rear facing child seat, of an occupant or of an empty seat, for example, is the artificial neural network, which is also commonly referred to as a trained neural network. In one case, illustrated in  FIG. 1 , the network operates on the returned signals as sensed by transducers  6 ,  8 ,  9  and  10 , for example. Through a training session, the system is taught to differentiate between the different cases. This is done by conducting a large number of experiments where a selection of the possible child seats is placed in a large number of possible orientations on the front passenger seat. Similarly, a sufficiently large number of experiments are run with human occupants and with boxes, bags of groceries and other objects (both inanimate and animate). For each experiment with different objects and the same object in different positions, the returned signals from the transducers  6 ,  8 ,  9  and  10 , for example, are associated with the identification of the occupant in the seat or the empty seat and information about the occupant such as its orientation if it is a child seat and/or position. Data sets are formed from the returned signals and the identification and information about the occupant or the absence of an occupant. The data sets are input into a neural network-generating program that creates a trained neural network that can, upon receiving input of returned signals from the transducers  6 ,  8 ,  9  and  10 , provide an output of the identification and information about the occupant most likely situated in the seat or ascertained the existence of an empty seat. Sometimes as many as 1,000,000 such experiments are run before the neural network is sufficiently trained and tested so that it can differentiate among the several cases and output the correct decision with a very high probability. The data from each trial is combined to form a one-dimensional array of data called a vector. Of course, it must be realized that a neural network can also be trained to differentiate among additional cases, for example, a forward facing child seat. It can also be trained to recognize the existence of one or more boxes or other cargo within a truck trailer, cargo container, automobile trunk or railroad car, for example. 
     Considering now  FIG. 9 , the normalized data from the ultrasonic transducers  6 ,  8 ,  9  and  10 , the seat track position detecting sensor  74 , the reclining angle detecting sensor  57 , from the weight sensor(s)  7 ,  76  and  97 , from the heartbeat sensor  71 , the capacitive sensor  78  and the motion sensor  73  are input to the neural network  65 , and the neural network  65  is then trained on this data. More specifically, the neural network  65  adds up the normalized data from the ultrasonic transducers, from the seat track position detecting sensor  74 , from the reclining angle detecting sensor  57 , from the weight sensor(s)  7 ,  76  and  97 , from the heartbeat sensor  71 , from the capacitive sensor  78  and from the motion sensor  73  with each data point multiplied by an associated weight according to the conventional neural network process to determine correlation function (step S 6  in  FIG. 15 ). 
     Looking now at  FIG. 19B , in this embodiment, 144 data points are appropriately interconnected at 25 connecting points of layer  1 , and each data point is mutually correlated through the neural network training and weight determination process. The 144 data points consist of 138 measured data points from the ultrasonic transducers, the data (139th) from the seat track position detecting sensor  74 , the data (140th) from the reclining angle detecting sensor  57 , the data (141st) from the weight sensor(s)  7  or  76 , the data (142 nd ) from the heartbeat sensor  71 , the data (143 rd ) from the capacitive sensor and the data (144 th ) from the motion sensor (the last three inputs are not shown on  FIG. 19B . Each of the connecting points of the layer  1  has an appropriate threshold value, and if the sum of measured data exceeds the threshold value, each of the connecting points will output a signal to the connecting points of layer  2 . Although the weight sensor input is shown as a single input, in general there will be a separate input from each weight sensor used. For example, if the seat has four seat supports and a strain measuring element is used on each support, what will be four data inputs to the neural network. 
     The connecting points of the layer  2  comprises 20 points, and the 25 connecting points of the layer  1  are appropriately interconnected as the connecting points of the layer  2 . Similarly, each data is mutually correlated through the training process and weight determination as described above and in above-referenced neural network texts. Each of the 20 connecting points of the layer  2  has an appropriate threshold value, and if the sum of measured data exceeds the threshold value, each of the connecting points will output a signal to the connecting points of layer  3 . 
     The connecting points of the layer  3  comprises 3 points, and the connecting points of the layer  2  are interconnected at the connecting points of the layer  3  so that each data is mutually correlated as described above. If the sum of the outputs of the connecting points of layer  2  exceeds a threshold value, the connecting points of the latter  3  will output Logic values (100), (010), and (001) respectively, for example. 
     The neural network  65  recognizes the seated-state of a passenger A by training as described in several books on Neural Networks mentioned in above referenced patents and patent applications. Then, after training the seated-state of the passenger A and developing the neural network weights, the system is tested. The training procedure and the test procedure of the neural network  65  will hereafter be described with a flowchart shown in  FIG. 15 . 
     The threshold value of each connecting point is determined by multiplying weight coefficients and summing up the results in sequence, and the aforementioned training process is to determine a weight coefficient Wj so that the threshold value (ai) is a previously determined output.
 
 ai=ΣWj·Xj  ( j= 1 to  N )
 
     wherein Wj is the weight coefficient,
         Xj is the data and   N is the number of samples.       

     Based on this result of the training, the neural network  65  generates the weights for the coefficients of the correlation function or the algorithm (step S 7 ). 
     At the time the neural network  65  has learned a suitable number of patterns of the training data, the result of the training is tested by the test data. In the case where the rate of correct answers of the seated-state detecting unit based on this test data is unsatisfactory, the neural network is further trained and the test is repeated. In this embodiment, the test was performed based on about 600,000 test patterns. When the rate of correct test result answers was at about 98%, the training was ended. Further improvements to the ultrasonic occupant sensor system has now resulted in accuracies exceeding 98% and for the optical system exceeding 99%. 
     The neural network software operates as follows. The training data is used to determine the weights which multiply the values at the various nodes at the lower level when they are combined at nodes at a higher level. Once a sufficient number of iterations have been accomplished, the independent data is used to check the network. If the accuracy of the network using the independent data is lower than the last time that it was checked using the independent data, then the previous weights are substituted for the new weights and training of the network continues on a different path. Thus, although the independent data is not used to train the network, it does strongly affect the weights. It is therefore not really independent. Also, both the training data and the independent data are created so that all occupancy states are roughly equally represented. As a result, a third set of data is used which is structured to more closely represent the real world of vehicle occupancy. This third data set, the “real world” data, is then used to arrive at a figure as to the real accuracy of the system. 
     The neural network  65  has outputs  65   a ,  65   b  and  65   c  ( FIG. 9 ). Each of the outputs  65   a ,  65   b  and  65   c  outputs a signal of logic 0 or 1 to a gate circuit or algorithm  77 . Based on the signals from the outputs  65   a ,  65   b  and  65   c , any one of these combination (100), (010) and (001) is obtained. In another preferred embodiment, all data for the empty seat was removed from the training set and the empty seat case was determined based on the output of the weight sensor alone. This simplifies the neural network and improves its accuracy. 
     In this embodiment, the output (001) correspond to a vacant seat, a seat occupied by an inanimate object or a seat occupied by a pet (VACANT), the output (010) corresponds to a rear facing child seat (RFCS) or an abnormally seated passenger (ASP or OOPA), and the output (100) corresponds to a normally seated passenger (NSP or FFA) or a forward facing child seat (FFCS). 
     The gate circuit (seated-state evaluation circuit)  77  can be implemented by an electronic circuit or by a computer algorithm by those skilled in the art and the details will not be presented here. The function of the gate circuit  77  is to remove the ambiguity that sometimes results when ultrasonic sensors and seat position sensors alone are used. This ambiguity is that it is sometimes difficult to differentiate between a rear facing child seat (RFCS) and an abnormally seated passenger (ASP), or between a normally seated passenger (NSP) and a forward facing child seat (FFCS). By the addition of one or more weight sensors in the function of acting as a switch when the weight is above or below 60 lbs., it has been found that this ambiguity can be eliminated. The gate circuit therefore takes into account the output of the neural network and also the weight from the weight sensor(s) as being above or below 60 lbs. and thereby separates the two cases just described and results in five discrete outputs. 
     The use of weight data must be heavily filtered since during driving conditions, especially on rough roads or during an accident, the weight sensors will give highly varying output. The weight sensors, therefore, are of little value during the period of time leading up to and including a crash and their influence must be minimized during this time period. One way of doing this is to average the data over a long period of time such as from 5 seconds to a minute or more. 
     Thus, the gate circuit  77  fulfills a role of outputting five kinds of seated-state evaluation signals, based on a combination of three kinds of evaluation signals from the neural network  65  and superimposed information from the weight sensor(s). The five seated-state evaluation signals are input to an airbag deployment determining circuit that is part of the airbag system and will not be described here. As disclosed in above-referenced patents and patent applications, output of this system can also be used to activate a variety of lights or alarms to indicate to the operator of the vehicle the seated state of the passenger. The system that has been described here for the passenger side is also applicable for the most part for the driver side. 
     An alternate and preferred method of accomplishing the function performed by the gate circuit is to use a modular neural network. In this case, the first level neural network is trained on determining whether the seat is occupied or vacant. The input to this neural network consists of all of the data points described above. Since the only function of this neural network is to ascertain occupancy, the accuracy of this neural network is very high. If this neural network determines that the seat is not vacant, then the second level neural network determines the occupancy state of the seat. 
     In this embodiment, although the neural network  65  has been employed as an evaluation circuit, the mapping data of the coefficients of a correlation function may also be implemented or transferred to a microcomputer to constitute the evaluation circuit (see Step S 8  in  FIG. 15 ). 
     According to the seated-state detecting unit of the present invention, the identification of a vacant seat (VACANT), a rear facing child seat (RFCS), a forward facing child seat (FFCS), a normally seated adult passenger (NSP), an abnormally seated adult passenger (ASP), can be reliably performed. Based on this identification, it is possible to control a component, system or subsystem in the vehicle. For example, a regulation valve which controls the inflation or deflation of an airbag may be controlled based on the evaluated identification of the occupant of the seat. This regulation valve may be of the digital or analog type. A digital regulation valve is one that is in either of two states, open or closed. The control of the flow is then accomplished by varying the time that the valve is open and closed, i.e., the duty cycle. 
     The neural network has been previously trained on a significant number of occupants of the passenger compartment. The number of such occupants depends strongly on whether the driver or the passenger seat is being analyzed. The variety of seating states or occupancies of the passenger seat is vastly greater than that of the driver seat. For the driver seat, a typical training set will consist of approximately 100 different vehicle occupancies. For the passenger seat, this number can exceed 1000. These numbers are used for illustration purposes only and will differ significantly from vehicle model to vehicle model. Of course many vectors of data will be taken for each occupancy as the occupant assumes different positions and postures. 
     The neural network is now used to determine which of the stored occupancies most closely corresponds to the measured data. The output of the neural network can be an index of the setup that was used during training that most closely matches the current measured state. This index can be used to locate stored information from the matched trained occupancy. Information that has been stored for the trained occupancy typically includes the locus of the centers of the chest and head of the driver, as well as the approximate radius of pixels which is associated with this center to define the head area, for example. For the case of  FIG. 8A , it is now known from this exercise where the head, chest, and perhaps the eyes and ears, of the driver are most likely to be located and also which pixels should be tracked in order to know the precise position of the driver&#39;s head and chest. What has been described above is the identification process for automobile occupancy and is only representative of the general process. A similar procedure, although usually simpler with fewer steps, is applicable to other vehicle monitoring cases. 
     The use of trainable pattern recognition technologies such as neural networks is an important part of the some of the inventions discloses herein particularly for the automobile occupancy case, although other non-trained pattern recognition systems such as fuzzy logic, correlation, Kalman filters, and sensor fusion can also be used. These technologies are implemented using computer programs to analyze the patterns of examples to determine the differences between different categories of objects. These computer programs are derived using a set of representative data collected during the training phase, called the training set. After training, the computer programs output a computer algorithm containing the rules permitting classification of the objects of interest based on the data obtained after installation in the vehicle. These rules, in the form of an algorithm, are implemented in the system that is mounted onto the vehicle. The determination of these rules is important to the pattern recognition techniques used in at least one of the inventions disclosed herein. Artificial neural networks using back propagation are thus far the most successful of the rule determination approaches, however, research is underway to develop systems with many of the advantages of back propagation neural networks, such as learning by training, without the disadvantages, such as the inability to understand the network and the possibility of not converging to the best solution. In particular, back propagation neural networks will frequently give an unreasonable response when presented with data than is not within the training data. It is well known that neural networks are good at interpolation but poor at extrapolation. A combined neural network fuzzy logic system, on the other hand, can substantially solve this problem. Additionally, there are many other neural network systems in addition to back propagation. In fact, one type of neural network may be optimum for identifying the contents of the passenger compartment and another for determining the location of the object dynamically. 
     Numerous books and articles, including more than 500 U.S. patents, describe neural networks in great detail and thus the theory and application of this technology is well known and will not be repeated here. Except in a few isolated situations where neural networks had used to solve particular problems limited to engine control, for example, they had previously been applied to automobiles, trucks or other vehicle monitoring situations (aside from use by the current assignee). 
     The system generally used in the instant invention, therefore, for the determination of the presence of a rear facing child seat, an occupant, or an empty seat is the artificial neural network or a neural-fuzzy system. In this case, the network operates on the returned signals from a CCD or CMOS array as sensed by transducers  49 ,  50 ,  51  and  54  in  FIG. 8D , for example. For the case of the front passenger seat, for example, through a training session, the system is taught to differentiate between the three cases. This is done by conducting a large number of experiments where available child seats are placed in numerous positions and orientations on the front passenger seat of the vehicle. 
     Once the network is determined, it is possible to examine the result to determine, from the algorithm created by the neural network software, the rules that were finally arrived at by the trial and error training technique. In that case, the rules can then be programmed into a microprocessor. Alternately, a neural computer can be used to implement the neural network directly. In either case, the implementation can be carried out by those skilled in the art of pattern recognition using neural networks. If a microprocessor is used, a memory device is also required to store the data from the analog to digital converters which digitize the data from the receiving transducers. On the other hand, if a neural network computer is used, the analog signal can be fed directly from the transducers to the neural network input nodes and an intermediate memory is not required. Memory of some type is needed to store the computer programs in the case of the microprocessor system and if the neural computer is used for more than one task, a memory is needed to store the network specific values associated with each task. 
     A review of the literature on neural networks yields the conclusion that the use of such a large training set is unique in the neural network field. The rule of thumb for neural networks is that there must be at least three training cases for each network weight. Thus, for example, if a neural network has 156 input nodes, 10 first hidden layer nodes, 5 second hidden layer nodes, and one output node this results in a total of 1,622 weights. According to conventional theory 5000 training examples should be sufficient. It is highly unexpected, therefore, that greater accuracy would be achieved through 100 times that many cases. It is thus not obvious and cannot be deduced from the neural network literature that the accuracy of the system will improve substantially as the size of the training database increases even to tens of thousands of cases. It is also not obvious looking at the plots of the vectors obtained using ultrasonic transducers that increasing the number of tests or the database size will have such a significant effect on the system accuracy. Each of the vectors is typically a rather course plot with a few significant peaks and valleys. Since the spatial resolution of an ultrasonic system is typically about 2 to 4 inches, it is once again surprising that such a large database is required to achieve significant accuracy improvements. 
     The back propagation neural network is a very successful general-purpose network. However, for some applications, there are other neural network architectures that can perform better. If it has been found, for example, that a parallel network as described above results in a significant improvement in the system, then, it is likely that the particular neural network architecture chosen has not been successful in retrieving all of the information that is present in the data. In such a case, an RCE, Stochastic, Logicon Projection, cellular, support vector machine or one of the other approximately 30 types of neural network architectures can be tried to see if the results improve. This parallel network test, therefore, is a valuable tool for determining the degree to which the current neural network is capable of using efficiently the available data. 
     One of the salient features of neural networks is their ability of find patterns in data regardless of its source. Neural networks work well with data from ultrasonic sensors, optical imagers, strain gage and bladder weight sensors, temperature sensors, chemical sensors, radiation sensors, pressure sensors, electric field sensors, capacitance based sensors, any other wave sensors including the entire electromagnetic spectrum, etc. If data from any sensors can be digitized and fed into a neural network generating program and if there is information in the pattern of the data then neural networks can be a viable method of identifying those patterns and correlating them with a desired output function. Note that although the inventions disclosed herein preferably use neural networks and combination neural networks to be described next, these inventions are not limited to this form or method of pattern recognition. The major breakthrough in occupant sensing came with the recognition by the current assignee that ordinary analysis using mathematical equations where the researcher looks at the data and attempts, based on the principles of statistics, engineering or physics, to derive the relevant relationships between the data and the category and location of an occupying item, is not the proper approach and that pattern recognition technologies should be used. This is believed to be the first use of such pattern recognition technologies in the automobile safety and monitoring fields with the exception that neural networks have been used by the current assignee and others as the basis of a crash sensor algorithm and by certain automobile manufacturers for engine control. Note for many monitoring situations in truck trailers, cargo containers and railroad cars where questions such as “is there anything in the vehicle?” are asked, neural networks may not always be required. 
     11.2 Combination Neural Networks 
     The technique described above for the determination of the location of an occupant during panic or braking pre-crash situations involves use of a modular neural network. In that case, one neural network was used to determine the occupancy state of the vehicle and one or more neural networks were used to determine the location of the occupant within the vehicle. The method of designing a system utilizing multiple neural networks is a key teaching of the present invention. When this idea is generalized, many potential combinations of multiple neural network architectures become possible. Some of these are discussed in U.S. patent application Ser. No. 11/558,996. 
     11.3 Interpretation of Other Occupant States 
     Once a vehicle interior monitoring system employing a sophisticated pattern recognition system, such as a neural network or modular neural network, is in place, it is possible to monitor the motions of the driver over time and determine if he is falling asleep or has otherwise become incapacitated. In such an event, the vehicle can be caused to respond in a number of different ways. One such system is illustrated in  FIG. 6  and consists of a monitoring system having transducers  8  and  9  plus microprocessor  20  programmed to compare the motions of the driver over time and trained to recognize changes in behavior representative of becoming incapacitated e.g., the eyes blinking erratically and remaining closed for ever longer periods of time. If the system determines that there is a reasonable probability that the driver has fallen asleep, for example, then it can turn on a warning light shown here as  41  or send a warning sound. If the driver fails to respond to the warning by pushing a button  43 , for example, then the horn and lights can be operated in a manner to warn other vehicles and the vehicle brought to a stop. One novel approach, not shown, would be to use the horn as the button  43 . For a momentary depression of the horn, for this case, the horn would not sound. Other responses can also be programmed and other tests of driver attentiveness can be used, without resorting to attempting to monitor the motions of the driver&#39;s eyes that would signify that the driver was alert. These other responses can include an input to the steering wheel, motion of the head, blinking or other motion of the eyes etc. In fact, by testing a large representative sample of the population of drivers, the range of alert responses to the warning light and/or sound can be compared to the lack of response of a sleeping driver and thereby the state of attentiveness determined. 
     An even more sophisticated system of monitoring the behavior of the driver is to track his eye motions using such techniques as are described in U.S. Pat. Nos. 4,648,052, 4,720,189, 4,836,670, 4,950,069, 5,008,946 and 5,305,012. Detection of the impaired driver in particular can be best determined by these techniques. These systems use pattern recognition techniques plus, in many cases, the transmitter and CCD receivers must be appropriately located so that the reflection off of the cornea of the driver&#39;s eyes can be detected as discussed in above-referenced patents. The size of the CCD arrays used herein permits their location, sometimes in conjunction with a reflective windshield, where this corneal reflection can be detected with some difficulty. Sunglasses or other items can interfere with this process. 
     In a similar manner as described in these patents, the motion of the driver&#39;s eyes can be used to control various systems in the vehicle permitting hands off control of the entertainment system, heating and air conditioning system or all of the other systems described above. Although some of these systems have been described in the afore-mentioned patents, none have made use of neural networks for interpreting the eye movements. The use of particular IR wavelengths permits the monitoring of the driver&#39;s eyes without the driver knowing that this is occurring. IR with a wave length above about 1.1 microns, however, is blocked by glass eyeglasses and thus other invisible frequencies may be required. 
     The use of the windshield as a reflector is particularly useful when monitoring the eyes of the driver by means of a camera mounted on the rear view mirror assembly. The reflections from the cornea are highly directional, as every driver knows whose lights have reflected off the eyes of an animal on the roadway. For this to be effective, the eyes of the driver must be looking at the radiation source. Since the driver is presumably looking through the windshield, the source of the radiation must also come from the windshield and the reflections from the driver&#39;s eyes must also be in the direction of the windshield. Using this technique, the time that the driver spends looking through the windshield can be monitored and if that time drops below some threshold value, it can be presumed that the driver is not attentive and may be sleeping or otherwise incapacitated. 
     The location of the eyes of the driver, for this application, is greatly facilitated by the teachings of the inventions as described above. Although others have suggested the use of eye motions and corneal reflections for drowsiness determination, up until now there has not been a practical method for locating the driver&#39;s eyes with sufficient precision and reliability as to render this technique practical. Also, although sunglasses might defeat such a system, most drowsiness caused accidents happen at night when it is less likely that sunglasses are worn. 
     11.4 Combining Occupant Monitoring and Car Monitoring 
     There is an inertial measurement unit (IMU) under development by the current assignee that will have the equivalent accuracy as an expensive military IMU but will sell for under $200 in sufficient volume. This IMU can contain three accelerometers and three gyroscopes and permit a very accurate tracking of the motion of the vehicle in three dimensions. The main purposes of this device will be replace all non-crush zone crash and rollover sensors, chassis control gyros etc. with a single device that will be up to 100 times more accurate. Another key application will be in vehicle guidance systems and it will eventually form the basis of a system that will know exactly where the vehicle is on the face of the earth within a few centimeters. 
     An additional use will be to monitor the motion of the vehicle in comparison with that of an occupant. From this, several facts can be gained. First, if the occupant moves in such a manner that is not caused by the motion of the vehicle, then the occupant must be alive. Conversely, if the driver motion is only caused by the vehicle, then perhaps he or she is asleep or otherwise incapacitated. A given driver will usually have a characteristic manner of operating the steering wheel to compensate for drift on the road. If this manner changes, then again, the occupant may be falling asleep. If the motion of the occupant seems to be restrained relative to what a free body would do, then there would be an indication that the seatbelt is in use, and if not, that the seatbelt is not in use or that it is too slack and needs to be retracted somewhat. 
     11.5 Continuous Tracking 
     Previously, the output of the pattern recognition system, the neural network or combined neural network, has been the zone that the occupant is occupying. This is a somewhat difficult task for the neural network since it calls for a discontinuous output for a continuous input. If the occupant is in the safe seating zone, then the output may be 0, for example and 1 if he moves into the at-risk zone. Thus, for a small motion there is a big change in output. On the other hand, as long as the occupant remains in the safe seating zone, he or she can move substantially with no change in output. A better method is to have as the output the position of the occupant from the airbag, for example, which is a continuous function and easier for the neural network to handle. This also provides for a meaningful output that permits, for example, the projection or extrapolation of the occupant&#39;s position forward in time and thus a prediction as to when he or she will enter another zone. This training of a neural network using a continuous position function is an important teaching of at least one of the inventions disclosed herein. 
     To do continuous tracking, however, the neural network must be trained on data that states the occupant location rather than the zone that he or she is occupying. This requires that this data be measured by a different system than is being used to monitor the occupant. Various electromagnetic systems have been tried but they tend to get foiled by the presence of metal in the interior passenger compartment. Ultrasonic systems have provided such information as have various optical systems. Tracking with a stereo camera arrangement using black light for illumination, for example is one technique. The occupant can even be illuminated with a UV point of light to make displacement easier to measure. 
     In addition, when multiple cameras are used in the final system, a separate tracking system may not be required. The normalization process conducted above, for example, created a displacement value for each of the CCD or CMOS arrays in the assemblies  49 ,  50 ,  51 ,  52 , and  54 , ( FIG. 8A ) or a subset thereof, which can now be used in reverse to find the precise location of the driver&#39;s head or chest, for example, relative to the known location of the airbag. From the vehicle geometry, and the head and chest location information, a choice can now be made as to whether to track the head or chest for dynamic out-of-position analysis. 
     Tracking of the motion of the occupant&#39;s head or chest can be done using a variety of techniques. One preferred technique is to use differential motion, that is, by subtracting the current image from the previous image to determine which pixels have changed in value and by looking at the leading edge of the changed pixels and the width of the changed pixel field, a measurement of the movement of the pixels of interest, and thus the driver, can be readily accomplished. More generally, image subtraction can be used to determine motion of the object represented by the edges or more generally, the presence of an object capable of movement. This may be useful to discriminate between movable objects and immovable objects. Moreover, image subtraction is not limited to tracking motion of an occupant&#39;s head or chest and can be used to track motion of the entire occupant or other parts of the occupant. 
     Alternately, in another technique, a correlation function can be derived which correlates the pixels in the known initial position of the head, for example, with pixels that were derived from the latest image. The displacement of the center of the correlation pixels would represent the motion of the head of the occupant. A wide variety of other techniques will now be obvious to those skilled in the art. 
     In a method disclosed above for tracking motion of a vehicular occupant&#39;s head or chest in accordance with the inventions, electromagnetic waves are transmitted toward the occupant from at least one location, a first image of the interior of the passenger compartment is obtained from each location, the first image being represented by a matrix of pixels, and electromagnetic waves are transmitted toward the occupant from the same location(s) at a subsequent time and an additional image of the interior of the passenger compartment is obtained from each location, the additional image being represented by a matrix of pixels. The additional image is subtracted from the first image to determine which pixels have changed in value. A leading edge of the changed pixels and a width of a field of the changed pixels is determined to thereby determine movement of the occupant from the time between which the first and additional images were taken. The first image is replaced by the additional image and the steps of obtaining an additional image and subtracting the additional image from the first image are repeated such that progressive motion of the occupant is attained. 
     Other methods of continuous tracking include placing an ultrasonic transducer in the seatback and also on the airbag, each providing a measure of the displacement of the occupant. Knowledge of vehicle geometry is required here, such as the position of the seat. The thickness of the occupant can then be calculated and two measures of position are available. Other ranging systems such as optical range meters and stereo or distance by focusing cameras could be used in place of the ultrasonic sensors. Another system involves the placement on the occupant of a resonator or reflector such as a radar reflector, resonating antenna, or an RFID or SAW tag. In several of these cases, two receivers and triangulation based on the time of arrival of the returned pulses may be required. 
     Tracking can also be done during data collection using the same or a different system comprising structured light. If a separate tracking system is used, the structured light can be projected onto the object at time intervals in-between the taking of data with the main system. In this manner, the tracking system would not interfere with the image being recorded by the primary system. All of the methods of obtaining three-dimensional information described above can be implemented in a separate tracking system. 
     11.6 Preprocessing 
     Another important feature of a system, developed in accordance with the teachings of at least one of the inventions disclosed herein, is the realization that motion of the vehicle can be used in a novel manner to substantially increase the accuracy of the system. Ultrasonic waves reflect on most objects as light off a mirror. This is due to the relatively long wavelength of ultrasound as compared with light. As a result, certain reflections can overwhelm the receiver and reduce the available information. When readings are taken while the occupant and/or the vehicle is in motion, and these readings averaged over several transmission/reception cycles, the motion of the occupant and vehicle causes various surfaces to change their angular orientation slightly but enough to change the reflective pattern and reduce this mirror effect. The net effect is that the average of several cycles gives a much clearer image of the reflecting object than is obtainable from a single cycle. This then provides a better image to the neural network and significantly improves the identification accuracy of the system. The choice of the number of cycles to be averaged depends on the system requirements. For example, if dynamic out-of-position is required, then each vector must be used alone and averaging in the simple sense cannot be used. This will be discussed more detail below. Similar techniques can be used for other transducer technologies. Averaging, for example, can be used to minimize the effects of flickering light in camera-based systems. 
     Only rarely is unprocessed or raw data that is received from the A-to-D converters fed directly into the pattern recognition system. Instead, it is preprocessed to extract features, normalize, eliminate bad data, remove noise and elements that have no informational value etc. 
     For example, for military target recognition is common to use the Fourier transform of the data rather than the data itself. This can be especially valuable for categorization as opposed to location of the occupant and the vehicle. When used with a modular network, for example, the Fourier transform of the data may be used for the categorization neural network and the non-transformed data used for the position determination neural network. Recently, wavelet transforms have also been considered as a preprocessor. 
     Above, under the subject of dynamic out-of-position, it was discussed that the position of the occupant can be used as a preprocessing filter to determine the quality of the data in a particular vector. This technique can also be used in general as a method to improve the quality of a vector of data based on the previous positions of the occupant. This technique can also be expanded to help differentiate live objects in the vehicle from inanimate objects. For example, a forward facing human will change his position frequently during the travel of the vehicle whereas a box will tend to show considerably less motion. This is also useful, for example, in differentiating a small human from an empty seat. The motion of a seat containing a small human will be significantly different from that of an empty seat even though the particular vector may not show significant differences. That is, a vector formed from the differences from two successive vectors is indicative of motion and thus of a live occupant. 
     Preprocessing can also be used to prune input data points. If each receiving array of assemblies,  49 ,  50 ,  51 , and  54  for example ( FIG. 8A ), contains a matrix of 100 by 100 pixels (forming an image), then 40,000 (4×100×100) pixels or data elements of information will be created each time the system interrogates the driver seat, for example. There are many pixels of each image that can be eliminated as containing no useful information. This typically includes the corner pixels, back of the seat and other areas where an occupant cannot reside. This pixel pruning can typically reduce the number of pixels by up to 50 percent resulting in approximately 20,000 remaining pixels. The output from each array is then compared with a series of stored arrays representing different unoccupied positions of the seat, seatback, steering wheel etc. For each array, each of the stored arrays is subtracted from the acquired array and the results analyzed to determine which subtraction resulted in the best match. The best match is determined by such things as the total number of pixels reduced below the threshold level, or the minimum number of remaining detached pixels, etc. Once this operation is completed for all four images, the position of the movable elements within the passenger compartment has been determined. This includes the steering wheel angle, telescoping position, seatback angle, headrest position, and seat position. This information can be used elsewhere by other vehicle systems to eliminate sensors that are currently being used to sense such positions of these components. Alternately, the sensors that are currently on the vehicle for sensing these component positions can be used to simplify processes described above. Each receiving array may also be a 256×256 CMOS pixel array as described in the paper by C. Sodini et al. referenced above greatly increasing the need for an efficient pruning process. 
     An alternate technique of differentiating between the occupant and the vehicle is to use motion. If the images of the passenger seat are compared over time, reflections from fixed objects will remain static whereas reflections from vehicle occupants will move. This movement can be used to differentiate the occupant from the background. 
     Following one or more of the subtraction processes described above, each image now consists of typically as many as 50 percent fewer pixels leaving a total of approximately 10,000 pixels remaining, for the 4 array 100×100 pixel case. The resolution of the images in each array can now be reduced by combining adjacent pixels and averaging the pixel values. This results in a reduction to a total pixel count of approximately 1000. The matrices of information that contains the pixel values is now normalized to place the information in a location in the matrix which is independent of the seat position. The resulting normalized matrix of 1000 pixel values can now be used as input into an artificial neural network and represents the occupancy of the seat independent of the position of the occupant. This is a brut force method and better methods based on edge detection and feature extraction can greatly simplify this process as discussed below. 
     There are many mathematical techniques that can be applied to simplify the above process. One technique used in military pattern recognition, as mentioned above, uses the Fourier transform of particular areas in an image to match with known Fourier transforms of known images. In this manner, the identification and location can be determined simultaneously. There is even a technique used for target identification whereby the Fourier transforms are compared optically as mentioned herein. Other techniques utilize thresholding to limit the pixels that will be analyzed by any of these processes. Other techniques search for particular features and extract those features and concentrate merely on the location of certain of these features. (See for example the Kage et al. artificial retina publication referenced above.) 
     Generally, however as mentioned, the pixel values are not directly fed into a pattern recognition system but rather the image is preprocessed through a variety of feature extraction techniques such as an edge detection algorithm. Once the edges are determined, a vector is created containing the location of the edges and their orientation and that vector is fed into the neural network, for example, which performs the pattern recognition. 
     Another preprocessing technique that improves accuracy is to remove the fixed parts of the image, such as the seatback, leaving only the occupying object. This can be done many ways such as by subtracting one image from another after the occupant has moved, as discussed above. Another is to eliminate pixels related to fixed parts of the image through knowledge of what pixels to removed based on seat position and previous empty seat analysis. Other techniques are also possible. Once the occupant has been isolated, then those pixels remaining can be placed in a particular position in the neural network vector. This is akin to the fact that a human, for example, will always move his or her eyes so as to place the object under observation into the center of the field of view, which is a small percent of the total field of view. In this manner the same limited number in pixels always observe the image of the occupying item thereby removing a significant variable and greatly improving system accuracy. The position of the occupant than can be determined by the displacement required to put the image into the appropriate part of the vector. 
     The above discussion has focuses on use of four arrays, each obtaining an image of the same vehicular compartment. A different number of arrays can be used in the invention, including only a single array, i.e., a single camera. 
     11.7 Post Processing 
     Once the pattern recognition system has been applied to the preprocessed data, one or more decisions are available as output. The output from the pattern recognition system is usually based on a snapshot of the output of the various transducers unless a combination neural network with feedback was used. Thus, it represents one epoch or time period. The accuracy of such a decision can usually be substantially improved if previous decisions from the pattern recognition system are also considered. In the simplest form, which is typically used for the occupancy identification stage, the results of many decisions are averaged together and the resulting averaged decision is chosen as the correct decision. Once again, however, the situation is quite different for dynamic out-of-position occupants. The position of the occupant must be known at that particular epoch and cannot be averaged with his previous position. On the other hand, there is information in the previous positions that can be used to improve the accuracy of the current decision. For example, if the new decision says that the occupant has moved six inches since the previous decision, and, from physics, it is known that this could not possibly take place, then a better estimate of the current occupant position can be made by extrapolating from earlier positions. Alternately, an occupancy position versus time curve can be fitted using a variety of techniques such as the least squares regression method, to the data from previous 10 epochs, for example. This same type of analysis could also be applied to the vector itself rather than to the final decision thereby correcting the data prior to entry into the pattern recognition system. An alternate method is to train a module of a modular neural network to predict the position of the occupant based on feedback from previous results of the module. 
     Summarizing, when an occupant is sitting in the vehicle during normal vehicle operation, the determination of the occupancy state can be substantially improved by using successive observations over a period of time. This can either be accomplished by averaging the data prior to insertion into a neural network, or alternately the decision of the neural network can be averaged. This is known as the categorization phase of the process. During categorization, the occupancy state of the vehicle is determined. Is the vehicle occupied by the forward facing human, an empty seat, a rear facing child seat, or an out-of-position human? Typically many seconds of data can be accumulated to make the categorization decision. For non-automotive vehicles this categorization process may be the only process that is required. Is the container occupied or is it empty? If occupied is there a human or other life form present? Is there a hazardous chemical or a source of radioactivity present etc.? 
     When a driver senses an impending crash, he or she will typically slam on the brakes to try to slow vehicle prior to impact. If an occupant, particularly the passenger, is unbelted, he or she will begin moving toward the airbag during this panic braking. For the purposes of determining the position of the occupant, there is not sufficient time to average data as in the case of categorization. One method is to determine the location of the occupant using the neural network based on previous training. The motion of the occupant can then be compared to a maximum likelihood position based on the position estimate of the occupant at previous vectors. Thus, for example, perhaps the existence of thermal gradients in the vehicle caused an error in the current vector leading to a calculation that the occupant has moved 12 inches since the previous vector. Since this could be a physically impossible move during ten milliseconds, the measured position of the occupant can be corrected based on his previous positions and known velocity. If an accelerometer is present in the vehicle and if the acceleration data is available for this calculation, a much higher accuracy prediction can be made. Thus, there is information in the data in previous vectors as well as in the positions of the occupant determined from the latest data that can be used to correct erroneous data in the current vector and, therefore, in a manner not too dissimilar from the averaging method for categorization, the position accuracy of the occupant can be known with higher accuracy. 
     Post processing can use a comparison of the results at each time interval along with a test of reasonableness to remove erroneous results. Also averaging through a variety of techniques can improve the stability of the output results. Thus the output of a combination neural network is not necessarily the final decision of the system. 
     One principal used in a preferred implementation of at least one invention herein is to use images of different views of the occupant to correlate with known images that were used to train a neural network for vehicle occupancy. Then carefully measured positions of the known images are used to locate particular parts of the occupant such as his or her head, chest, eyes, ears, mouth, etc. An alternate approach is to make a three-dimensional map of the occupant and to precisely locate these features using neural networks, sensor fusion, fuzzy logic or other pattern recognition techniques. One method of obtaining a three-dimensional map is to utilize a scanning laser radar system where the laser is operated in a pulse mode and the distance from the object being illuminated is determined using range gating in a manner similar to that described in various patents on micropower impulse radar to McEwan. (See, for example, U.S. Pat. Nos. 5,457,394 and 5,521,600) Many other methods of obtaining a 3D representation can be used as discussed in detail above. This post processing step allows the determination of occupant parts from the image once the object is classified as an occupant. 
     Many other post processing techniques are available as discussed herein. 
     11.8 An Example of Image Processing 
     As an example of the above concepts, a description of a single imager optical occupant classification system will now be presented. 
     11.8.1 Image Preprocessing 
     A number of image preprocessing filters have been implemented, including noise reduction, contrast enhancement, edge detection, image down sampling and cropping, etc. and some of them will now be discussed. 
     The Gaussian filter, for example, is very effective in reducing noise in an image. The Laplacian filter can be used to detect edges in an image. The result from a Laplacian filter plus the original image produces an edge-enhanced image. Both the Gaussian filter and the Laplacian filter can be implemented efficiently when the image is scanned twice. The original Kirsch filter consists of 8 filters that detect edges of 8 different orientations. The max Kirsch filter, however, uses a single filter that detects (but does not distinguish) edges of all 8 different orientations. 
     The histogram-based contrast enhancement filter improves image contrast by stretching pixel grayscale values until a desired percentage of pixels are suppressed and/or saturated. The wavelet-based enhancement filter modifies an image by performing multilevel wavelet decomposition and then applies a nonlinear transfer function to the detail coefficients. This filter reduces noise if the nonlinear transfer function suppresses the detail coefficients, and enhances the image if the nonlinear transfer function retains and increases the significant detail coefficients. A total of 54 wavelet functions from 7 families, for example, have been implemented. 
     Mathematical morphology has been proven to be a powerful tool for image processing (especially texture analysis). For example, the grayscale morphological filter that has been implemented by the current assignee includes the following operators: dilation, erosion, close, open, white top hat, black top hat, h-dome, and noise removal. The structure element is totally customizable. The implementation uses fast algorithms such as van Herk/Gil-Werman&#39;s dilation/erosion algorithm, and Luc Vincent&#39;s grayscale reconstruction algorithm. 
     Sometimes using binary images instead of grayscale images increases the system robustness. The binarization filter provides 3 different ways to convert a grayscale image into a binary image: 1) using a constant threshold; 2) specifying a white pixel percentage; 3) Otsu&#39;s minimum deviation method. The image down-size filter performs image down-sampling and image cropping. This filter is useful for removing unwanted background (but limited to preserving a rectangular region). Image down-sampling is also useful because our experiments show that, given the current accuracy requirement, using a lower resolution image for occupant position detection does not degrade the system performance, and is more computationally efficient. 
     Three other filters that were implemented provide maximum flexibility, but require more processing time. The generic in-frame filter implements almost all known and to be developed window-based image filters. It allows the user to specify a rectangular spatial window, and define a mathematical function of all the pixels within the window. This covers almost all well-known filters such as averaging, median, Gaussian, Laplacian, Prewit, Sobel, and Kirsch filters. The generic cross-frame filter implements almost all known and to be developed time-based filters for video streams. It allows the user to specify a temporal window, and define a mathematical function of all the frames within the window. The pixel transfer filter provides a flexible way to transform an image. A pixel value in the resulting image is a customizable function of the pixel coordinates and the original pixel value. The pixel transfer filter is useful in removing unwanted regions with irregular shapes. 
     FIG. 59 of the &#39;996 application shows some examples of the preprocessing filters that have been implemented. FIG. 59(1) shows the original image. FIG. 59(2) shows the result from a histogram-based contrast enhancement filter. FIG. 59(3) shows the fading effect generated using a pixel transfer filter where the transfer function is defined as 
               1   14     ⁢     z   1.5     ⁢       ⅇ     -     0.0001   ⁡     [         (     x   -   60     )     2     +       (     y   -   96     )     2       ]           .           
FIG. 59(4) shows the result from a morphological filter followed by a histogram-based contrast enhancement filter. The h-dome operator was used with the dome height=128. One can see that the h-dome operator preserves bright regions and regions that contain significant changes, and suppresses dark and flat regions. FIG. 59(5) shows the edges detected using a Laplacian filter. FIG. 59(6) shows the result from a Gaussian filter followed by a max Kirsch filter, a binarization filter that uses Otsu&#39;s method, and a morphological erosion that uses a 3×3 flat structure element.
 
     11.8.2 Feature Extraction Algorithm 
     The image size in the current classification system is 320×240, i.e. 76,800 pixels, which is too large for the neural network to handle. In order to reduce the amount of the data while retaining most of the important information, a good feature extraction algorithm is needed. One of the algorithms that was developed includes three steps: 
     1) Divide the whole image into small rectangular blocks. 
     2) Calculate a few feature values from each block. 
     3) Line up the feature values calculated from individual blocks and then apply normalization. 
     By dividing the image into blocks, the amount of the data is effectively reduced while most of the spatial information is preserved. 
     This algorithm was derived from a well-known algorithm that has been used in applications such as handwriting recognition. For most of the document related applications, binary images are usually used. Studies have shown that the numbers of the edges of different orientations in a block are very effective feature values for handwriting recognition. For our application where grayscale images are used, the count of the edges can be replaced by the sum of the edge strengths that are defined as the largest differences between the neighboring pixels. The orientation of an edge is determined by the neighboring pixel that produces the largest difference between itself and the pixel of interest (see FIG. 60 of the &#39;996 application). 
     FIGS. 61 and 62 of the &#39;996 application show the edges of eight different orientations that are detected using Kirsch filters. The feature values that are calculated from these edges are also shown. Besides Kirsch filters, other edge detection methods such as Prewit and Sobel filters were also implemented. 
     Besides the edges, other information can also be used as the feature values. FIG. 63 of the &#39;996 application shows the feature values calculated from the block-average intensities and deviations. Our studies show that the deviation feature is less effective than the edge and the intensity features. 
     The edge detection techniques are usually very effective for finding sharp (or abrupt) edges. But for blunt (or rounded) edges, most of the techniques are not effective at all. These kinds of edges also contain useful information for classification. In order to utilize such information, a multi-scale feature extraction technique was developed. In other words, after the feature extraction algorithm was applied to the image of the original size, a 50% down-sampling was done and the same feature extraction algorithm (with the same block size) was applied to the image of reduced size. If it is desired to find even blunter edges, this technique can be applied again to the down-sampled image. 
     11.8.3 Modular Neural Network Architecture 
     The camera-based optical occupant classification system described here was designed to be a stand-alone system whose only input is the image from the camera. Once an image is converted into a feature vector, the classification decision can be made using any pattern recognition technique. A vast amount of evidence in literature shows that a neural network technique is particularly effective in image-based pattern recognition applications. 
     In this application, the patterns of the feature vectors are extremely complex. Therefore, with reference to FIGS. 104-107 of the &#39;881 application, it has been found that a modular approach is extremely effective with such complex systems. 
     11.8.4 Post Neural Network Processing 
     As discussed in the &#39;881 application with reference to FIGS. 108-111, post-processing filters can be used to eliminate the random fluctuations in the neural network output. 
     11.8.5 Data Collection and Neural Network Training 
     Schemes to collect data during the night and during the day are discussed in the &#39;881 application with reference to FIGS. 112-117 
     11.8.6 Conclusions and Discussions 
     A symmetrical neural network architecture, shown in FIG. 107 of the &#39;881 application, was developed after the system reported here. Results prove that this architecture gives better performance than the other architectures. With this architecture, it is possible to reduce misclassifications by replacing the weak classifications with “undetermined” states. More importantly, this architecture provides a way to identify “unseen” patterns. 
     Development of an optical occupant sensing system requires many software tools whose functionalities include: communication with hardware, assisting data collection, analyzing and converting data, training modular neural networks, evaluating and demonstrating system performance, and evaluating new algorithms. Major software components are shown in FIG. 118 of the &#39;881 application. 
     It is important to note that the classification accuracies reported here are based on single images and when the post processing steps are included the overall system accuracy approaches 100%. This is a substantial improvement over previous systems even though it is based on a single camera. Although this system is capable of dynamic tracking, some additional improvement can be obtained through the addition of a second camera. Nevertheless, the system as described herein is cost competitive with a weight only system and substantially more accurate. This system is now ready for commercialization where the prototype system described herein is made ready for high volume serial production. 
     12. Optical Correlators 
     A great deal of effort has been ongoing to develop fast optical pattern recognition systems to allow military vehicles such as helicopters to locate all of the enemy vehicles in a field of view. Some of the systems that have been developed are called optical correlation systems and have the property that the identification and categorization of various objects in the field of view happens very rapidly. A helicopter, for example coming onto a scene with multiple tanks and personnel carriers in a wide variety of poses and somewhat camouflaged can locate, identify and count all such vehicles in a fraction of a second. The cost of these systems has been prohibitively expensive for their use in automobiles for occupant tracking or for collision avoidance but this is changing. 
     Theoretically system performance is simple. The advantage of optical correlation approach is that correlation function is calculated almost instantly, much faster that with microprocessors and neural networks, for example. In simplest case one looks for correlation of an input image with reference samples. The sample which has the largest correlation peak is assumed as a match. In practice, the system is based on a training set of reference samples. Special filters are constructed for correlation with input image. Filters are used in order to reduce number of correlations to calculate. The output of the filters, the result of the correlation, is frequently a set of features. Finally the features are fed into a classifier for decision making. This classifier can use Neural Networks. 
     The main bottleneck of optical correlators is large number of filters, or reference image samples, that are required. For example, if it is requirement to detect 10 different types of objects at different orientation, scale and illumination conditions, every modification factor enlarges number of filters for feature selection or correlation by factor of approximately 10. So, in a real system one may have to input 10,000 filters or reference images. Most correlators are able to find correlation of an input image with about of 5-20 filters during single correlation cycle. In other words the reference image contains 5-20 filters. Therefore during decision making cycle one needs to feed into correlator and find correlation with approximately 1000 filters. 
     If the problem is broken down, as was done with modular neural networks, then the classification stage may take on the order of a second while the tracking stage can be done perhaps in a millisecond. 
     U.S. Pat. Nos. 5,473,466 and 5,051,738 describe a miniature high resolution display system for use with heads up displays for installation into the helmets of fighter pilots. This system, which is based on a thin garnet crystal, requires very little power and maintains a particular display until display is changed. Thus, for example, if there is a loss of power the display will retain the image that was last displayed. This technology has the capability of producing a very small heads up display unit as will be described more detail below. This technology has also been used as a spatial light monitor for pattern recognition based on optical correlation. Although this technology has been applied to military helicopters, it has previously not been used for occupant sensing, collision avoidance, anticipatory sensing, blind spot monitoring or any other ground vehicle application. 
     Although the invention described herein is not limited to a particular spatial light monitor (SLM) technology, the preferred or best mode technology is to use the garnet crystal system described in U.S. Pat. No. 5,473,466. Although the system has never been applied to automobiles, it has significant advantages over other systems particularly in the resolution and optical intensity areas. The resolution of the garnet crystals as manufactured by Revtek is approximately 600 by 600 pixels. The size of the crystal is typically 1 cm square. 
     Basically, the optical correlation pattern recognition system works as follows. Stored in a computer are many Fourier transforms of images of objects that the system should identify. For collision avoidance, these include cars, trucks, deer or other animals, pedestrians, motorcycles, bicycles, or any other objects that could occur on a roadway. For an interior monitoring, these objects could include faces (particularly ones that are authorized to operate the vehicle), eyes, ears, child seats, children, adults of all sizes etc. The image from the scene that is captured by the lens is fed through a diffraction grating that optically creates the Fourier transform of the scene and projects it through SLM such as the garnet crystal of the &#39;466 patent. The SLM is simultaneously fed and displays the Fourier stored transforms and a camera looks at the light that comes through the SLM. If there is a match then the camera sees a spike that locates the matching objects in the scene, there can be many such objects, all are found. The main advantage of this system over neural network pattern recognition systems is speed since it is all done optically and in parallel. 
     For collision avoidance, for example, many vehicles can be easily classified and tracked. For occupant sensing, the occupant&#39;s eyes can be tracked even if he is rapidly moving his head and the occupant herself can be tracked during a crash. 
     13. Other Products, Outputs, Features 
     Once the occupancy state of the seat (or seats) in the vehicle or of the vehicle itself, as in a cargo container, truck trailer or railroad car, is known, this information can be used to control or affect the operation of a significant number of vehicular systems, components and devices. That is, the systems, components and devices in the vehicle can be controlled and perhaps their operation optimized in consideration of the occupancy of the seat(s) in the vehicle or of the vehicle itself. Thus, the vehicle includes a control system coupled to the processor for controlling a component or device in the vehicle in consideration of the output indicative of the current occupancy state of the seat obtained from the processor. The component or device can be an airbag system including at least one deployable airbag whereby the deployment of the airbag is suppressed, for example, if the seat is occupied by a rear-facing child seat, or otherwise the parameters of the deployment are controlled. Thus, the seated-state detecting unit described above may be used in a component adjustment system and method described below when the presence of a human being occupying the seat is detected. The component can also be a telematics system such as the Skybitz or OnStar systems where information about the occupancy state of the vehicle, or changes in that state, can be sent to a remote site. 
     The component adjustment system and methods in accordance with the invention can automatically and passively adjust the component based on the morphology of the occupant of the seat. As noted above, the adjustment system may include the seated-state detecting unit described above so that it will be activated if the seated-state detecting unit detects that an adult or child occupant is seated on the seat, that is, the adjustment system will not operate if the seat is occupied by a child seat, pet or inanimate objects. Obviously, the same system can be used for any seat in the vehicle including the driver seat and the passenger seat(s). This adjustment system may incorporate the same components as the seated-state detecting unit described above, that is, the same components may constitute a part of both the seated-state detecting unit and the adjustment system, for example, the weight measuring system. 
     The adjustment system described herein, although improved over the prior art, will at best be approximate since two people, even if they are identical in all other respects, may have a different preferred driving position or other preferred adjusted component location or orientation. A system that automatically adjusts the component, therefore, should learn from its errors. Thus, when a new occupant sits in the vehicle, for example, the system automatically estimates the best location of the component for that occupant and moves the component to that location, assuming it is not already at the best location. If the occupant changes the location, the system should remember that change and incorporate it into the adjustment the next time that person enters the vehicle and is seated in the same seat. Therefore, the system need not make a perfect selection the first time but it should remember the person and the position the component was in for that person. The system, therefore, makes one, two or three measurements of morphological characteristics of the occupant and then adjusts the component based on an algorithm. The occupant will correct the adjustment and the next time that the system measures the same measurements for those measurement characteristics, it will set the component to the corrected position. As such, preferred components for which the system in accordance with the invention is most useful are those which affect a driver of the vehicle and relate to the sensory abilities of the driver, i.e., the mirrors, the seat, the steering wheel and steering column and accelerator, clutch and brake pedals. 
     Thus, although the above description mentions that the airbag system can be controlled by the control circuitry  20  ( FIG. 1 ), any vehicular system, component or subsystem can be controlled based on the information or data obtained by transmitter and/or receiver assemblies  6 ,  8 ,  9  and  10 . Control circuitry  20  can be programmed or trained, if for example a neural network is used, to control heating an air-conditioning systems based on the presence of occupants in certain positions so as to optimize the climate control in the vehicle. The entertainment system can also be controlled to provide sound only to locations at which occupants are situated. There is no limit to the number and type of vehicular systems, components and subsystems that can be controlled using the analysis techniques described herein. 
     Furthermore, if multiple vehicular systems are to be controlled by control circuitry  20 , then these systems can be controlled by the control circuitry  20  based on the status of particular components of the vehicle. For example, an indication of whether a key is in the ignition can be used to direct the control circuitry  20  to either control an airbag system (when the key is present in the ignition) or an antitheft system (when the key is not present in the ignition). Control circuitry  20  would thus be responsive to the status of the ignition of the motor vehicle to perform one of a plurality of different functions. More particularly, the pattern recognition algorithm, such as the neural network described herein, could itself be designed to perform in a different way depending on the status of a vehicular component such as the detected presence of a key in the ignition. It could provide one output to control an antitheft system when a key is not present and another output when a key is present using the same inputs from the transmitter and/or receiver assemblies  6 ,  8 ,  9  and  10 . 
     The algorithm in control circuitry  20  can also be designed to determine the location of the occupant&#39;s eyes either directly or indirectly through a determination of the location of the occupant and an estimation of the position of the eyes therefrom. As such, the position of the rear view mirror  55  can be adjusted to optimize the driver&#39;s use thereof. 
     Once a characteristic of the object is obtained, it can be used for numerous purposes. For example, the processor can be programmed to control a reactive component, system or subsystem  103  in  FIG. 17  based on the determined characteristic of the object. When the reactive component is an airbag assembly including one or more airbags, the processor can control one or more deployment parameters of the airbag(s). 
     The apparatus can operate in a manner as illustrated in  FIG. 7  wherein as a first step  335 , one or more images of the environment are obtained. One or more characteristics of objects in the images are determined at  336 , using, for example, pattern recognition techniques, and then one or more components are controlled at  337  based on the determined characteristics. The process of obtaining and processing the images, or the processing of data derived from the images or data representative of the images, is periodically continued at least throughout the operation of the vehicle. 
     13.1 Control of Passive Restraints 
     Use of the vehicle interior monitoring system to control the deployment of an airbag is discussed in U.S. Pat. No. 5,653,462. In that case, the control is based on the use of a pattern recognition system, such as a neural network, to differentiate between the occupant and his extremities in order to provide an accurate determination of the position of the occupant relative to the airbag. If the occupant is sufficiently close to the airbag module that he is more likely to be injured by the deployment itself than by the accident, the deployment of the airbag is suppressed. This process is carried further by the interior monitoring system described herein in that the nature or identity of the object occupying the vehicle seat is used to contribute to the airbag deployment decision.  FIG. 4  shows a side view illustrating schematically the interface between the vehicle interior monitoring system of at least one of the inventions disclosed herein and the vehicle airbag system  44 . A similar system can be provided for the passenger as described in U.S. Pat. No. 6,820,897. 
     In this embodiment, ultrasonic transducers  8  and  9  transmit bursts of ultrasonic waves that travel to the occupant where they are reflected back to transducers or receptors/receivers  8  and  9 . The time period required for the waves to travel from the generator and return is used to determine the distance from the occupant to the airbag as described in U.S. Pat. No. 5,653,462, i.e., and thus may also be used to determine the position or location of the occupant. An optical imager based system would also be appropriate. In the invention, however, the portion of the return signal that represents the occupants&#39; head or chest, has been determined based on pattern recognition techniques such as a neural network. The relative velocity of the occupant toward the airbag can then be determined, by Doppler principles or from successive position measurements, which permits a sufficiently accurate prediction of the time when the occupant would become proximate to the airbag. By comparing the occupant relative velocity to the integral of the crash deceleration pulse, a determination as to whether the occupant is being restrained by a seatbelt can also be made which then can affect the airbag deployment initiation decision. Alternately, the mere knowledge that the occupant has moved a distance that would not be possible if he were wearing a seatbelt gives information that he is not wearing one. 
     Another method of providing a significant improvement to the problem of determining the position of the occupant during vehicle deceleration is to input the vehicle deceleration directly into the occupant sensing system. This can be done through the use of the airbag crash sensor accelerometer or a dedicated accelerometer can be used. This deceleration or its integral can be entered directly into the neural network or can be integrated through an additional post-processing algorithm. Post processing in general is discussed in section 11.7. One significant advantage of neural networks is their ability to efficiently use information from any source. It is the ultimate “sensor fusion” system. 
     A more detailed discussion of this process and of the advantages of the various technologies, such as acoustic or electromagnetic, can be found in SAE paper 940527, “Vehicle Occupant Position Sensing” by Breed et al., In this paper, it is demonstrated that the time delay required for acoustic waves to travel to the occupant and return does not prevent the use of acoustics for position measurement of occupants during the crash event. For position measurement and for many pattern recognition applications, ultrasonics is the preferred technology due to the lack of adverse health effects and the low cost of ultrasonic systems compared with either camera, laser or radar based systems. This situation has changed, however, as the cost of imagers has come down. The main limiting feature of ultrasonics is the wavelength, which places a limitation on the size of features that can be discerned. Optical systems, for example, are required when the identification of particular individuals is desired. 
     In the embodiment shown in  FIG. 8A , transmitter/receiver assemblies  49 ,  50 ,  51  and  54  emit infrared waves that reflect off of the head and chest of the driver and return thereto. Periodically, the device, as commanded by control circuitry  20 , transmits a pulse of infrared waves and the reflected signal is detected by the same (i.e. the LEDs and imager are in the same housing) or a different device. The transmitters can either transmit simultaneously or sequentially. An associated electronic circuit and algorithm in control circuitry  20  processes the returned signals as discussed above and determines the location of the occupant in the passenger compartment. This information is then sent to the crash sensor and diagnostic circuitry, which may also be resident in control circuitry  20  (programmed within a control module), which determines if the occupant is close enough to the airbag that a deployment might, by itself, cause injury which exceeds that which might be caused by the accident itself. In such a case, the circuit disables the airbag system and thereby prevents its deployment. 
     In an alternate case, the sensor algorithm assesses the probability that a crash requiring an airbag is in process and waits until that probability exceeds an amount that is dependent on the position of the occupant. Thus, for example, the sensor might decide to deploy the airbag based on a need probability assessment of 50%, if the decision must be made immediately for an occupant approaching the airbag, but might wait until the probability rises above 95% for a more distant occupant. In the alternative, the crash sensor and diagnostic circuitry optionally resident in control circuitry  20  may tailor the parameters of the deployment (time to initiation of deployment, rate of inflation, rate of deflation, deployment time, etc.) based on the current position and possibly velocity of the occupant, for example a depowered deployment. 
     In another implementation, the sensor algorithm may determine the rate that gas is generated to affect the rate that the airbag is inflated. One method of controlling the gas generation rate is to control the pressure in the inflator combustion chamber. The higher the internal pressure the faster gas is generated. Once a method of controlling the gas combustion pressure is implemented, the capability exists to significantly reduce the variation in inflator properties with temperature. At lower temperatures the pressure control system would increase the pressure in the combustion chamber and at higher ambient temperatures it would reduce the pressure. In all of these cases, the position of the occupant can be used to affect the deployment of the airbag as to whether or not it should be deployed at all, the time of deployment and/or the rate of inflation. 
     The applications described herein have been illustrated using the driver and sometimes the passenger of the vehicle. The same systems of determining the position of the occupant relative to the airbag apply to a driver, front and rear seated passengers, sometimes requiring minor modifications. It is likely that the sensor required triggering time based on the position of the occupant will be different for the driver than for the passenger. Current systems are based primarily on the driver with the result that the probability of injury to the passenger is necessarily increased either by deploying the airbag too late or by failing to deploy the airbag when the position of the driver would not warrant it but the passenger&#39;s position would. With the use of occupant position sensors for the passenger and driver, the airbag system can be individually optimized for each occupant and result in further significant injury reduction. In particular, either the driver or passenger system can be disabled if either the driver or passenger is out-of-position or if the passenger seat is unoccupied. 
     There is almost always a driver present in vehicles that are involved in accidents where an airbag is needed. Only about 30% of these vehicles, however, have a passenger. If the passenger is not present, there is usually no need to deploy the passenger side airbag. The occupant monitoring system, when used for the passenger side with proper pattern recognition circuitry, can also ascertain whether or not the seat is occupied, and if not, can disable the deployment of the passenger side airbag and thereby save the cost of its replacement. The same strategy applies also for monitoring the rear seat of the vehicle. Also, a trainable pattern recognition system, as used herein, can distinguish between an occupant and a bag of groceries, for example. Finally, there has been much written about the out-of-position child who is standing or otherwise positioned adjacent to the airbag, perhaps due to pre-crash braking. The occupant position sensor described herein can prevent the deployment of the airbag in this situation as well as in the situation of a rear facing child seat as described above. 
     As discussed herein, occupant sensors can also be used for monitoring the rear seats of the vehicle for the purpose, among others, of controlling airbag or other restraint deployment. 
     13.2 Seat, Seatbelt, Steering Wheel and Pedal Adjustment and Resonators 
     13.3 Side Impacts 
       FIG. 10  is an angular perspective overhead view of a vehicle  405  about to be impacted in the side by an approaching vehicle  406 , where vehicle  405  is equipped with an anticipatory sensor system showing a transmitter  408  transmitting electromagnetic, such as infrared, waves toward vehicle  406 . This is one example of many of the uses of the instant invention for exterior monitoring. The transmitter  408  is connected to an electronic module  412 . Module  412  contains circuitry  413  to drive transmitter  408  and circuitry  414  to process the returned signals from receivers  409  and  410  which are also coupled to module  412 . Circuitry  414  contains a processor such as a neural computer  415  or microprocessor with a pattern recognition algorithm, which performs the pattern recognition determination based on signals from receivers  409  and  410 . Receivers  409  and  410  are mounted onto the B-Pillar of the vehicle and are covered with a protective transparent cover. An alternate mounting location is shown as  411  which is in the door window trim panel where the rear view mirror (not shown) is frequently attached. One additional advantage of this system is the ability of infrared to penetrate fog and snow better than visible light which makes this technology particularly applicable for blind spot detection and anticipatory sensing applications. Although it is well known that infrared can be significantly attenuated by both fog and snow, it is less so than visual light depending on the frequency chosen. (See for example L. A. Klein,  Millimeter - Wave and Infrared Multisensor Design and Signal Processing , Artech House, Inc, Boston 1997, ISBN 0-89006-764-3). 
     13.4 Exterior Monitoring 
     Referring now to  FIGS. 52 and 56 , the same system can also be used for the detection of objects in the blind spots and other areas surrounding the vehicle and the image displayed for the operator to see or a warning system activated, if the operator attempts to change lanes, for example. In this case, the mounting location must be chosen to provide a good view along the side of the vehicle in order to pick up vehicles which are about to pass the subject vehicle  710 . Each of the locations  408 ,  409  and  410  provide sufficient field of view for this application although the space immediately adjacent to the vehicle could be missed. Alternate locations include mounting onto the outside rear view mirror assembly or the addition of a unit in the rear window or C-Pillar, in which case, the contents of areas other than the side of the vehicle would be monitored. Using several receivers in various locations as disclosed above would provide for a monitoring system which monitors all of the areas around the vehicle. The mirror location, however, does leave the device vulnerable to being covered with ice, snow and dirt. 
     In many cases, neural networks are used to identify objects exterior of the vehicle and then an icon can be displayed on a heads-up display, for example, which provides control over the brightness of the image and permits the driver to more easily recognize the object. 
     In both cases of the anticipatory sensor and blind spot detector, the infrared transmitter and imager array system provides mainly image information to permit recognition of the object in the vicinity of vehicle  710 , whether the object is alongside the vehicle, in a blind spot of the driver, in front of the vehicle or behind the vehicle, the position of the object being detected being dependent on the position and orientation of the receiver(s). To complete the process, distance information is also require as well as velocity information, which can in general be obtained by differentiating the position data or by Doppler analysis. This can be accomplished by any one of the several methods discussed above, such as with a pulsed laser radar system, stereo cameras, focusing system, structured light as well as with a radar system. 
     Radar systems, which may not be acceptable for use in the interior of the vehicle, are now commonly used in sensing applications exterior to the vehicle, police radar being one well-known example. Miniature radar systems are now available which are inexpensive and fit within the available space. Such systems are disclosed in the McEwan patents described above. Another advantage of radar in this application is that it is easy to get a transmitter with a desirable divergence angle so that the device does not have to be aimed. One particularly advantageous mode of practicing the invention for these cases, therefore, is to use radar and a second advantageous mode is the pulsed laser radar system, along with an imager array, although the use of two such arrays or the acoustical systems are also good choices. The acoustical system has the disadvantage of being slower than the laser radar device and must be mounted outside of the vehicle where it may be affected by the accumulation of deposits onto the active surface. If a radar scanner is not available it is difficult to get an image of objects approaching the vehicle so that the can be identified. Note that the ultimate solution to monitoring of the exterior of the vehicle may lay with SWIR, MWIR and LWIR if the proper frequencies are chosen that are not heavily attenuated by fog, snow and other atmospheric systems. The QWIP system discussed above or equivalent would be a candidate if the cooling requirement can be eliminated or the cost of cooling the imaging chip reduced. Finally, terahertz frequencies (approximately 0.1-5 THz) are beginning to show promise for this application. They can be generated using laser type devices and yet have almost the fog penetration ability of mm wave radar. 
     Another innovation involves the use of multiple frequencies for interrogating the environment surrounding a vehicle and in particular the space in front of the vehicle. Different frequencies interact differently with different materials. An example given by some to show that all such systems have failure modes is the case of a box that in one case contains a refrigerator while in another case a box of the same size that is empty. It is difficult to imagine how such boxes can reside on a roadway in front of a traveling vehicle but perhaps it fell off of a truck. Using optics it would be difficult if not impossible to make the distinction, however, some frequencies will penetrate a cardboard box exposing the refrigerator. One might ask, what happens if the box is made of metal? So there will always be rare cases where a distinction cannot be made. Nevertheless, a calculation can be made of the cost and benefits to be derived by fielding such a system that might occasionally make a mistake or, better, defaults to no system when it is in doubt. 
     In a preferred implementation, transmitter  408  is an infrared transmitter and receivers  409 ,  410  and  411  are CMOS transducers that receive the reflected infrared waves from vehicle  406 . In the implementation shown in  FIG. 10 , an exterior airbag  416  is shown which deploys in the event that a side impact is about to occur as described in U.S. Pat. No. 6,343,810. 
     Referring now to  FIG. 11 , a schematic of the use of one or more receivers  409 ,  410 ,  411  to affect another system in the vehicle is shown. The general exterior monitoring system, or blind spot monitoring system if the environment exterior of the vehicle is not viewable by the driver in the normal course of driving the vehicle, includes one or more receivers  409 ,  410 ,  411  positioned at various locations on the vehicle for the purpose of receiving waves from the exterior environment. Instead of waves, and to the extent different than waves, the receivers  409 ,  410 ,  411  could be designed to receiver energy or radiation. 
     The waves received by receivers  409 ,  410 ,  411  contain information about the exterior objects in the environment, such waves either having been generated by or emanating from the exterior objects or reflected from the exterior objects such as is the case when the optional transmitter  408  is used. The electronic module/processor  412  contains the necessary circuitry  413 , 414  and a trained pattern recognition system (e.g., neural computer  415 ) to drive the transmitter  408  when present and process the received waves to provide a classification, identification and/or location of the exterior object. The classification, identification and/or location is then used to control a vehicle system  420 , such as showing an image on a display viewable to the driver. Also, the classification, identification or location of the objects could be used for airbag control, i.e., control of the deployment of the exterior airbag  416  (or any other airbags for that matter), for the control of the headlight dimmers (as discussed with reference to  FIG. 12 ) or in general, for any other system whose operation might be changed based on the presence of exterior objects. The actual headlight dimmer mechanism may be any controllable dimming mechanism known to those skilled in the art. 
       FIG. 13  shows the components for measuring the position of an object in an environment of or about the vehicle. A light source  425  directs modulated light into the environment and at least one light-receiving pixel or an array of pixels  427  receives the modulated light after reflection by any objects in the environment. A processor  428  determines the distance between any objects from which the modulated light is reflected and the light source based on the reception of the modulated light by the pixel(s)  427 . To provide the modulated light, a device or component for modulating a frequency of the light  426  are provided. Also, a device for providing a correlation pattern in a form of code division modulation of the light can be used. The pixel may be a photo diode such as a PIN or avalanche diode. 
     The processor  428  includes appropriate circuitry to determine the distance between any objects from which any pulse of light is reflected and the light source  425 . For example, the processor  428  can determine this distance based on a difference in time between the emission of a pulse of light by the light source  425  and the reception of light by the pixel  427 . 
       FIG. 12  illustrates the exterior monitoring system for use in detecting the headlights of an oncoming vehicle or the taillights of a vehicle in front of vehicle  259  for the purpose of, for example, dimming the headlights of the vehicle  259  while the oncoming vehicle is in the field of view of the headlights. In this embodiment, the imager array  429  is designed to be sensitive to visible light and a separate source of illumination is not used. Once again for some applications, the key to this technology is the use of trained pattern recognition algorithms and particularly the artificial neural network. Here, as in the other cases above and in patents and patent applications referenced above, the pattern recognition system is trained to recognize the pattern of the headlights of an oncoming vehicle or the tail lights of a vehicle in front of vehicle  259  and to then dim the headlights when either of these conditions is sensed. It is also trained to not dim the lights for other reflections such as reflections off of a sign post or the roadway. One problem is to differentiate taillights where dimming is desired from distant headlights where dimming is not desired. Three techniques are used: (i) measurement of the spacing of the light sources, (ii) determination of the location of the light sources relative to the vehicle, and (iii) use of a red filter where the brightness of the light source through the filter is compared with the brightness of the unfiltered light. In the case of the taillight, the brightness of the red filtered and unfiltered light is nearly the same while there is a significant difference for the headlight case. In this situation, either two CCD arrays are used, one with a filter, or a filter which can be removed either electrically, such as with a liquid crystal, or mechanically. 
     The environment surrounding the vehicle can be determined using an interior mounted camera that looks out of the vehicle. The status of the sun (day or night), the presence of rain, fog, snow, etc can thus be determined. 
     The information provided by the exterior monitoring system can be combined with the interior monitoring system in order to optimize both systems for the protection of the occupants. 
     Although several preferred embodiments are illustrated and described above, there are possible combinations using other signals and sensors for the components and different forms of the neural network implementation or different pattern recognition technologies that perform the same functions which can be utilized in accordance with the invention. Also, although the neural network and modular neural networks have been described as an example of one means of pattern recognition, other pattern recognition means exist and still others are being developed which can be used to identify potential component failures by comparing the operation of a component over time with patterns characteristic of normal and abnormal component operation. In addition, with the pattern recognition system described above, the input data to the system may be data which has been pre-processed rather than the raw signal data either through a process called “feature extraction” or by various mathematical transformations. Also, any of the apparatus and methods disclosed herein may be used for diagnosing the state of operation or a plurality of discrete components. 
     Although several preferred embodiments are illustrated and described above, there are possible combinations using other geometries, sensors, materials and different dimensions for the components that perform the same functions. At least one of the inventions disclosed herein is not limited to the above embodiments and should be determined by the following claims. There are also numerous additional applications in addition to those described above. Many changes, modifications, variations and other uses and applications of the subject invention will, however, become apparent to those skilled in the art after considering this specification and the accompanying drawings which disclose the preferred embodiments thereof. All such changes, modifications, variations and other uses and applications which do not depart from the spirit and scope of the invention are deemed to be covered by the invention which is limited only by the following claims.