Pattern recognition device

Abstract: The recognition pattern device is intended to improve the recognition ratio. In a pre-processing unit 3, an input pattern is prepared based on the image taken from a video camera 1. Then, in a comparing processing unit 4, the input pattern is compared with a basic pattern stored in a function learning storing unit, and the deformed amount of the input pattern to the basic pattern is calculated. Thus, in a deformed amount analysis unit, the deformed amount is analyzed. Finally, in a person's information learning storing unit, on the basis of the above result, the standard pattern stored therein is regenerated.

Description: The present invention relates to a pattern recognition devices suitable for image recognition or the like. Fig. 8 is a block diagram showing the construction of one example of previously proposed image recognition devices.A luminance level I (x, y) on the xy plane as an image data, for example, a person's face image photographed by a video camera (not shown) or the like is inputted in a pre-processing unit 21. In the pre-processing unit 21, the characteristic amount of the image data I (x, y), for example, an image edge P (x, y) is detected, and is outputted to an analysis unit 22. The analysis unit 22 performs a main component analysis or the like for the characteristic amount P (x, y) of the person's image outputted from the pre-processing unit 21. It calculates a contribution degree X i of the characteristic amount P (x, y) of the person's image, for example, to each of functions F i (x, y) (i = 1, 2, ····, r) of r pieces previously stored in a function storing unit 23, and outputs it to a pattern classifying unit 24. The pattern classifying unit 24, when the device is in a learning mode, stores the contribution degree X i of the characteristic amount P (x, y) of the person's image outputted by the analysis unit 22 in a memory (not shown) contained therein, in correspondence to the person information K (t) being the function of, for example, the number t given to the person (t = 1, 2, ····, T : T is the number of the person's faces) as the recognition result. In this case, for example, an average value of a plurality of contribution degrees X i , X i ', X i '', X i ''', ··· for the image of the same person t is taken as the person information K (t). The pattern classifying unit 24, when the device is in a recognition mode, calculates the Euclidean distance between the contribution degree X i of the characteristic amount P (x, y) of the person's image outputted from the analysis unit 22, and certain person's information K (t) previously stored in the memory contained therein. It outputs the number t in the person's information K (t) minimizing the distances as the recognition result. The recognition of the person's face image is thus performed. As the method of recognizing a person's face, there has been proposed a technique using an image compression method called Model-Based Coding ["Treatment of Luminance/Chrominance and Motion Information Applied to 3-D Model-based Coding of Moving Facial Images": Journal of Institute of Television, Vol. 45, No. 10. p1277-1287 (1991)]. Further, the related techniques have disclosed in the following documents: ["Eigenfaces for Recognition": Journal of Cognitive Neuroscience Vol. 3, No. 1 P.71-86 (1991), [CARICATURE GENERATOR: THE DYNAMICS EXAGGERATION OF FACES BY COMPUTER. Susan E. Brennan in Leonardo, Vol. 18, No. 3, pages 170-178; 1985], and [FACE TO FACE: ITS THE EXPRESSION THAT BEARS THE MESSAGE. Jeanne McDermott in Smithsonian, Vol. 16, No. 12, pages 112-123; March, 1986]. In the Model-Based Coding, on the coding side, as shown in Fig. 9, the so-called wire frame model is made to correspond to the person's face inputted, and the difference information (characteristics of the person's face to the model) is taken out and transmitted. On the other hand, on the decoding side, the same model as used on the coding side is deformed on the basis of the above difference information, to reproduce the person's face. Accordingly, in recognition of the person's face using the Model-Based-Coding, the difference information between the inputted image of the person's face (Fig. 10a) and the model (Fig. 10b) is first taken out. Namely, the person's face image (Fig. 10a) photographed by a video camera is inputted, for example, in a computer and is displayed on a CRT. Then, the positions of the person's face image displayed on the CRT (indicated at X marks in Fig. 10c) in correspondence to specified positions previously set on the wire frame model (Fig. 10b), for example, eyes, both ends of a mouth and the like (indicated at X-marks in Fig. 10b) are designated, for example, by clicking with a mouse. The wire frame model is deformed as shown in Fig. 10d such that the positions (Fig. 10c) designated on the the person's face image are overlapped on the specified positions (Fig. 10b) previously set on the wire frame model. Thus, the deformed amount is taken out as the difference information. The difference information thus taken out is made to correspond to the person's information, which is stored in a memory contained in the computer as the recognition information. In recognition of the person's face, the recognition information most analogous to the difference information against the inputted image of the person's face is detected, and the person's information in correspondence to the recognition information is outputted as the recognition result. However, in the image recognition described above, since the person's face is photographed by a video camera, there is a tendency that a vertical or horizontal deviation and a tilting are generated on the screen, and further, the magnitudes thereof are different from each other. Accordingly, in this case, for example, in the analysis unit 22 of Fig. 8, not only the information on the person's face image, but also the information on the vertical or horizontal deviation and the positional deviation due to rotation with respect to the person's face image on the screen, and further the deviation in magnitude due to the enlargement/reduction ratio of a video camera, that is, the unnecessary information is subjected to the main component analysis. This brings about such a disadvantage as to deteriorate the recognition ratio. Further, the model as shown in Fig. 10b must be prepared for each recognition object. Namely, for recognition of the person's face, the person's face model must be prepared, and for recognition of the person's hand, the person's hand model must be prepared. Additionally, for example, in the case that all the models are prepared and stored, a lot of memories must be prepared, thus causing a disadvantage of enlarging the size of the device. On the other hand, in recognition of the person's face using the Model-Based Coding described above, the positions of the person's face image displayed on the CRT (indicated at X-marks in Fig. 10c) must be clicked with a mouse, which brings about an inconvenience. WO-A-92/02000 discloses an image recognition technique in which a template is deformed and normalised, and the normalised template is then used for performing pattern recognition according to a correlation method. According to one aspect the of the invention there is provided a pattern recognition device comprising: a preparing means for preparing an input pattern on the basis of inputted information; a basic pattern learning/storing means for storing a plurality of basic patterns; a comparing processing means for comparing said input pattern with said basic patterns; said pattern recognition device being characterised in that: said comparing processing means determines correlation amounts of said input pattern with respect to said plurality of basic patterns and selects the one basic pattern for which the contribution degree is maximized; said comparing processing means determines a deformed amount of said input pattern with respect to said selected basic pattern; a pattern learning/storing means for either regenerating and storing a standard pattern associated with each recognizable pattern in dependence on said deformed amount, or for recognizing the input pattern by determining which stored standard pattern minimizes a measure of distance between said deformed amount of said standard pattern. In one embodiment, the pattern recognition device comprises: a function learning storing unit 5 as a basic pattern storing means for storing a basic pattern such as a function F i ; a pre-processing unit 3 as a preparing means for preparing an input pattern P (x,y) from the inputted information such as an image data I(x,y); a comparing processing unit 4 as a comparing means for comparing the input pattern P (x,y) prepared by the pre-processing unit 3 with the basic pattern F i (x,y) stored in the function learning storing unit 5, and for calculating a deformed amount M(x,y) of the input pattern (x,y) to the basic pattern F i (x, y); a program processing step S14 as a deforming means for deforming the basic pattern F i (x,y) stored in the function learning storing unit 5 or the input pattern P(x,y) prepared by the pre-processing unit 3 on the basis of the deformed amount M(x,y) outputted from the comparing processing unit 4; and a program processing step S15 as a basic pattern regenerating means for regenerating the basic pattern F i (x,y) stored in the function learning storing unit 5 on the basis of the basic pattern F i (x,y) and the input pattern P(x,y) deformed by the program processing step S14. A pattern recognition device embodying this aspect of the invention may comprise: a function learning storing unit 5 as a basic pattern storing means for storing a basic pattern such as a function F i (x,y); a person's information learning storing unit 7 as a standard pattern storing means for storing a standard pattern; a pre-processing unit 3 as a preparing means for preparing an input pattern P (x, y) from the inputted information such as an image data I (x, y); a comparing processing unit 4 as a comparing means for comparing the input pattern P (x, y) prepared by the pre-processing unit 3 with a basic pattern F i (x, y) stored in the function learning storing unit 5, and for calculating at least a deformed amount M (x, y) of the input pattern P (x, y) to the basic pattern F i (x, y) among the deformed amount M (x, y) and, for example, a correlation amount such as a contribution ratio X i ; a deformed amount analysis unit 6 as an analyzing means for analyzing the deformed amount M (x, y) calculated by the comparing processing unit 4; and a program processing steps S31 to S35 as a standard pattern regenerating means for regenerating a standard pattern stored in the person's information learning storing unit 7 on the basis of at least an analysis result Mtdr (x, y) from the deformed amount analysis unit 6 among the analysis result Mtdr (x, y) and the contribution ratio X i calculated by the comparing processing unit 4. The pre-processing unit may filter the image data I (x, y) with a LOG (Laplacian Of Gaussian) filter, to detect the zero crossing point, and filter it with a low pass filter. The program processing step S15 may deform the basic pattern F MAX (x, y) giving the maximum contribution degree X MAX in the contribution degree X i of the input pattern P (x, y) to the basic pattern F i (x, y). The comparing processing unit 4 may match the input pattern P (x, y) with the basic pattern F i (x, y) for each block, and calculate the movement amount of the block as the deformed amount M (x, y). Preferably, the person's information learning storing unit 7 is constituted of a neural network. Preferably, the program processing steps S31 to S35 regenerate the weightening factor of the neural network in the person's information learning storing unit 7 on the basis of an error inverse propagation method. The pre-processing unit 3 may prepare the input pattern I (x, y) on the basis of a face image. In pattern recognition devices embodying the present invention, an input pattern P (x, y) can be prepared on the basis of an image data I (x, y). The input pattern P (x, y) can then be compared with a basic pattern F i (x, y) stored in a function learning storing unit 5, to calculate a deformed amount M (x, y) of the input pattern P (x, y) to the basic pattern F i (x, y). On the basis of the deformed amount M (x, y), the basic pattern F i (x, y) stored in the function learning storing unit 5 or the input pattern P (x, y) prepared by the pre-processing unit 3 can be deformed. Thus, the basic pattern F i (x, y) stored in the function learning storing unit 5 can be regenerated on the basis of the deformed basic pattern F i (x, y) and the input pattern P (x, y). Accordingly, since the basic pattern F i (x, y) is regenerated so as to be analogous to the input pattern P (x, y), the basic pattern F i (x, y) is not required to be prepared for each recognition object. This makes it possible to reduce the memory capacity of the function learning storing unit 5 for storing the basic pattern F i (x, y), and hence to make small the size of the device. Further, the recognition ratio can be improved. Additionally, in pattern recognition devices embodying the present invention, the input pattern can be compared with the basic pattern F i (x, y) stored in the function learning storing unit 5, to calculate the deformed amount M (x, y) of the input pattern P (x, y) to the basic pattern F i (x, y). The deformed amount M (x, y) can then be analyzed, and the parallel movement component, rotational movement component and the enlargement/reduction component of the input pattern P (x, y) contained in the deformed amount M (x, y) can be removed. Thus, on the basis of a new deformed amount Mtdr (x, y), a standard pattern stored in the person's information learning storing unit 7 can be regenerated. Accordingly, it is possible to improve the recognition ratio. Thus, embodiments of the invention provide for miniaturization of, and improved recognition ratios in, pattern recognition devices. Embodiments of the invention will now be described, by way of example, with reference to the accompanying drawings in which: Fig. 1 is a block diagram showing the construction of one embodiment of image recognition apparatus to which a pattern recognition device embodying the present invention is applied; Fig. 2 is a flow chart for explaining the action of a pre-processing unit 3 of the embodiment in Fig. 1; Fig. 3 is a view for explaining a method for calculating a deformed amount M (x, y) in a comparing processing unit of the embodiment in Fig. 1; Fig. 4 is a flow chart for explaining the action of a function learning storing unit of the embodiment in Fig. 1; Fig. 5 is a view showing an input pattern P (x, y) and a function Fi (x, y) deformed in the function learning storing unit in Fig. 1; Fig. 6 is a flow chart for explaining the action of a deformed amount analysis unit of the embodiment in Fig. 1; Fig. 7 is a flow chart for explaining the action of a person's information learning storing unit of the embodiment in Fig. 1; Fig. 8 is a block diagram showing the construction of one example of a previously proposed image recognition device; Fig. 9 is a view showing a wire frame model; and Fig. 10 is a view for explaining a method recognizing the person's face by Model-Based Coding. Fig. 1 is a block diagram showing the construction of one embodiment of image recognition apparatuses according to the present invention. A video camera 1 has a CCD, which converts a light used for photographing a person's face or the like into a face image signal as an electric signal. A memory unit 2 is constituted of an RAM and an A/D converter (not shown), which quantizes the face image signal outputted from the video camera 1, for example, in eight bits by means of the A/D converter, and temporarily stores digital signals (face image data) such as two-dimensional luminance information I (x, y) on the xy plane in the RAM for each frame. A pre-processing unit 3 performs, for example, the edge detection for the face image signal I (x, y) stored in the memory unit 2, and takes out an input pattern P (x, y) as the characteristic amount of the face image [face image data I (x, y)], and outputs it into a comparing processing unit 4. The comparing processing unit 4 calculates the basic model of the characteristic amount P (x, y) of the face image data I (x, y) stored in a function learning storing unit 5, for example, a contribution degree X i as a correlation amount of the input pattern P (x, y) of the face image data I (x, y) outputted from the pre-processing unit 3, for example, to each of functions F i (x, y) (i = 1, 2, 3 ···, r) of r pieces. The unit 4 detects the maximum contribution degree X MAX as the maximum value in the contribution degree X i , and further, calculates a deformed amount M (x, y) as the difference information between a function F MAX (x, y) giving the maximum contribution degree X MAX (MAX is either of the numbers of 1 to r ) and the input pattern P (x, y). It supplies the deformed amount M (x, y) to the function learning storing unit 5 and a deformed analysis unit 6. The function learning storing unit 5 is constituted of, for example, a neural network. It stores the functions F i (x, y) (i = 1, 2, 3 ···, r) of r pieces as the basic model of the characteristic amount P (x, y) of the face image data I (x, y). Further, the function learning storing unit 5 deforms the function F MAX (x, y) giving the maximum contribution degree X MAX detected by the comparing processing unit 4, or the inputted pattern P (x, y) using the deformed amount M (x, y) calculated in the comparing processing unit 4. Thus, on the basis of the deformed function F MAX ' and the deformed input pattern P' (x, y) on the xy plane, the unit 5 regenerates the function F MAX (x, y) stored therein. The deformed amount analysis unit 6 analyzes the deformed amount M (x, y) calculated by the comparing processing unit 4. Thus, the unit 6 removes the components of the person's face image taken by the video camera 1 as the input pattern P (x, y) with respect to the vertical or horizontal deviation on the screen, the positional deviation due to rotation or the difference in magnitude due to the enlargement/reduction ratio of the video camera 1, which are contained in the deformed amount M (x, y). It outputs a new deformed amount Mtdr (x, y) in a person's information learning storing unit 7. The person's information learning storing unit 7, when the device is in a learning mode, stores the new deformed amount Mtdr (x, y) outputted from the deformed amount analysis unit 6 in a memory (not shown) contained therein in correspondence to the person's information K (t) being the function of the number t given to the person (face) (t = 1, 2, ····, T : T is the number of the person's faces) as the recognition result. In this case, for example, an average value of a plurality of the deformed amounts Mtdr (x, y), Mtdr'(x, y), Mtdr''(x, y), Mtdr''' (x, y), ··· in the face image of the same person t is taken as the person information K (t). Namely, the person's information learning storing unit 7, when the device is in the learning mode, stores the deformed amount Mtdr (x, y) itself of a person t outputted from the deformed amount analysis unit 6 as the person's information. Further, each time the deformed amount Mtdr (x, y) of the same person t is inputted, the unit 7 regenerates the person's information K (t) on the basis of the deformed amount Mtdr (x, y). Further, the person's information learning storing unit 7, when the device is in a recognition mode, calculates the Euclidean distance between the deformed amount Mtdr (x, y) outputted from the deformed amount analysis unit 6, and certain person information K (t) previously stored in the memory contained therein, and outputs the number t in the person's information K (t) minimizing the distances as the recognition result. The operation of the pattern recognition device of this embodiment will be described below. When the device is in the learning mode, in the video camera 1, the light used for photographing a person's face or the like is converted into a face image signal as an electric signal, and is outputted into a memory unit 2. In the memory unit 2, the face image signal (analog signal) outputted from the video camera 1 is quantized, for example, in eight bits in an A/D converter contained therein, and the two-dimensional luminance information I (x, y) on the xy plane as digital signals (face image data) is temporarily stored in an RAM contained therein for each frame. In the pre-processing unit 3, the face image data I (x, y) stored in the memory unit 2 is read out, edge detection or the like being performed, and an input pattern P (x, y) as the characteristic amount of the face image [face image data I (x, y)] is taken out. Namely, in the pre-processing unit 3, as shown in the flow chart of Fig. 2, first, in a step S1, the face image data I (x, y) is filtered with a LOG (Laplacean or Gaussian) filter, to take out the edge portion of the face image, and an edge signal I E (x, y) is thus calculated (the edge is detected), i.e. in the step S1, the edge signal I E (x, y) may be acquired by multiplying the frequency characteristic of the face image data I (x, y) by the frequency characteristic of the LOG filter. In this embodiment, the edge signal I E (x, y) is acquired by two-dimensionally convoluting the face image data I (x, y) with an impulse response F LOG (x, y) as shown in the equation (1-1): F LOG (x, y) = -1 πσ 2 (1 - x 2 + y 2 2σ 2 ) exp (- x 2 + y 2 2σ 2 ) In addition, σ is a specified constant set according to the magnitude of the LOG filter. The process advances to a step 2, wherein it is judged whether or not the product of an edge signal I E (x i , y j ) at a point (x i , y j ) and an edge signal I E (x i+1 , y j ) at a point (x i+1 , y j ) moved from the point (x i , y j ) in the x-direction by one picture element is negative within the face image outputted from the video camera 1, that is, within the range of Xo≦x i ≦X1, Yo≦y j ≦Y1 on the xy plane. Here, briefly, it is assumed that the face image outputted from the video camera 1 to the pre-processing unit 3 through the memory unit 2 is constituted of the picture elements of N pieces for each of the vertical and horizontal directions. Further, the point (Xo, Yo) on the xy plane is taken as the origin (0, 0). Accordingly, it is assumed that X1 = Y1 = N-1. In the step S2, if the product of an edge signal I E (x i , y j ) at a point (x i , y j ) and an edge signal I E (x i+1 , y j ) at a point (x i+1 , y j ) moved from the point (x i , y j ) in the x-direction by one picture element is judged to be negative, that is, if the code of the edge signal I E (x i , y j ) at a point (x i , y j ) is different from the code of the edge signal I E (x i+1 , y j ) at a point (x i+1 , y j ) moved from the point (x i , y j ) in the x-direction by one picture element, the process advances to a step S7, wherein it is judged that the zero crossing is generated between the point (x i , y j ) and the point (x i+1 , y j ). Thus, the value of 1 which designates the generation of the zero crossing is, for example, set in a zero crossing function P C (x i , y j ), and the process advances to a step S5. In the step S2, if the product of the edge signal I E (x i , y j ) at the point (x i , y j ) and the edge signal I E (x i+1, y j ) at the point (x i+1 , y j ) moved from the point (x i, y j ) in the x-direction by one picture element is judged not to be negative, the process advances to a step S3, wherein it is judged whether or not the product of an edge signal I E (x i , y j ) at a point (x i , y j ) and an edge signal I E (x i , y j+1 ) at a point (x i , y j+1 ) moved from the point (x i , y j ) in the y-direction by one picture element is negative. In the step S3, if the product of an edge signal I E (x i , y j ) at a point (x i , y j ) and an edge signal I E (x i , y j+1 ) at a point (x i , y j+1 ) moved from the point (x i , y j ) in the y-direction by one picture element is judged to be negative, that is, if the code of the edge signal I E (x i , y j ) at a point (x i , y j ) is different from the code of the edge signal I E (x i , y j+1 ) at a point (x i , y j+1 ) moved from the point (x i , y j ) in the y-direction by one picture element, the process advances to the step S7, wherein the value of 1 is set in the zero crossing function P C (x i , y j ) as described above, and the process advances to the step S5. In the step S3, if the product of the edge signal I E (x i , y j ) at the point (x i , y j ) and the edge signal I E (x i , y j+1 ) at the point (x i , y j+1 ) moved from the point (x i , y j ) in the y-direction by one picture element is judged not to be negative, the process advances a step S4, wherein it is judged that the zero crossing is not generated between the point (x i , y j ) and the point (x i+1 , y j ) or the point (x i , y j+1 ). Thus, the value of 0 which designates no generation of the zero crossing is, for example, set in the zero crossing function P C (x i , y j ), and the process advances to the step S5. In addition, the processings from the steps S2 to S4, and the step S7 are performed for the point corresponding to each picture element within the face image screen on the xy plane (each point (x i , y j ) in the range of 0 ≦x i ≦ N-1, 0 ≦ y j ≦ N-1). By calculating the function P C (x i , y j ) indicating the zero crossing point of the edge of the face image in the manner described above, that is, by detecting the zero crossing point of the edge of the face image, it is possible to remove the effect due to illumination or the like when the face image is photographed by the video camera 1. The process advances to the step S5, wherein the zero crossing function P C (x, y) is filtered with a low pass filter such as a Gaussian filter, so that the face image pattern represented by the zero crossing function P C (x, y) is converted into the so-called faded face image pattern, and the input pattern P (x, y) as the characteristic amount of the face image photographed by the video camera 1 is calculated, i.e. in the step S5, the input pattern P (x, y) as the characteristic amount of the face image photographed by the video camera 1 may be acquired by multiplying the frequency characteristic of the zero crossing function P C (x, y) by the frequency characteristic of the Gaussian filter. In this embodiment, the input pattern P (x, y) is acquired by two-dimensionally convoluting the zero crossing function P C (x, y) with an impulse response F G (x, y) of the Gaussian filter as shown in the equation (1-2): F G (x, y) = 1 2πσ 2 exp (- x 2 + y 2 2σ 2 ) In addition, σ is a specified constant set according to the magnitude of the Gaussian filter just as the LOG filter in the step S1. By the processing in the step S5, smoothing is achieved in the change in the contribution degree X i of the input pattern P (x, y) to the function F i (x, y) stored in the function learning storing unit 5, which is detected by a comparing processing unit 4 described later, thus making it possible to easily detect the function F MAX (x, y) giving the maximum contribution degree X MAX . The input pattern P (x, y) calculated in the step S5 is outputted to the comparing processing unit 4 in the step S6, thus completing the processing. As described above, the input pattern P (x, y) as the characteristic amount of the face image is prepared on the basis of the face image data I (x, y) in the pre-processing unit 3. In the comparing processing unit 4, the correlation amount of the input pattern P (x, y) prepared in the pre-processing unit 3, for example, the contribution degree X i to the function F i (x, y) (i = 1. 2, ····, r : r is a specified number) as the basic pattern stored in the function learning storing unit 5 is calculated, and the maximum contribution degree X MAX being the maximum value is detected. Here, the contribution degree X i of the input pattern P (x, y) to the function F i (x, y) is the orthogonal projection of the input pattern P (x, y) to the function F i (x, y), which means the inner product of the function F i (x, y) calculated according to the equation (2-1) and the input pattern P (x, y). In addition, as described above, N is the number of the picture elements for each of the vertical and the horizontal directions of the screen in the face image outputted from the video camera 1 to the pre-processing unit 3 through the memory unit 2. In the comparing processing unit 4, the input pattern P (x, y) outputted from the pre-processing unit 3 is matched with the function F MAX (x, y) giving the maximum contribution degree X MAX (MAX is any of the values x i with i = 1 to r ) for each block, and the deformed amount M (x, y) [M' (x, y)] of the input pattern P (x, y) [function F MAX (x, y)] is calculated in the case that the input pattern P (x, y) [function F MAX (x, y)] is to be deformed to coincide with the function F MAX (x, y) [input pattern P (x, y)]. Namely, in the comparing processing unit 4, first, the function F MAX (x, y) is divided into B blocks FB K (x K , y K ) (k = 0, 1, 2 ···, B-1) composed of b picture elements for each of the vertical and horizontal directions, as shown in Fig. 3a. In addition, the point (x k , y k ) indicates the coordinate point of the center of the block FB k (x k , y k ). Next, blocks PB (x i , y j ) having the center coordinate point (x i , y j ), which are composed of b picture elements for each of the vertical and horizontal directions, are considered on the input pattern P (x, y). Thus, the movement amount (m xk , m yk ) of the block FB k (x k , y k ) is detected such that the block FB k (x k , y k ) is moved from the center point (x k , y k ) on the input pattern P (x, y) within the range of ± S picture elements in the x-direction or the y-direction, and is most analogous to the PB (x i , y j ) on the input pattern P (x, y). Namely, in the comparing processing unit 4, the deformed amount M (x, y) is calculated (detected) as the movement amount (m xk , m yk ) with which the contribution ratio X MAX (k) of the block PB (x K m xk , y K + m yk ) to each block FB k ( x K , y k ) becomes the maximum value, as shown in the equation (2-2). X MAX (k)= <FB (x k , y k ), PB (x k + m xk , y k + m yk )> where <a, b> represents the inner product of the vectors a and b , and accordingly, where [u] is the maximum integer not exceeding the value u , i.e. [y K + b/2], [y K - b/2], [x K + b/2] and [x K - b/2] are rounded up integer values. Hereinafter, in the case that the block FB k (x k , y k ) with the center of the point (x k , y k ) is most analogous to the block PB (x i , y j ) on the input pattern P (x, y), the movement amount M (m xk , m yk ) of the block FB k (x k , y k ) is represented by a deformed amount M (x k , y k ), and the set of the deformed amounts M (x K , y K ) for the whole image is represented by a deformed amount M (x, y). The deformed amount M (x, y) thus calculated by the comparing processing unit 4 is supplied to the function learning storing unit 5 and the deformed amount analysis unit 6. In the function learning storing unit 5, by use of the deformed amount M (x, y) calculated by the comparing processing unit 4, the function F MAX (x, y) giving the maximum contribution degree X MAX detected by the comparing processing unit 4 and the input pattern P (x, y) are deformed. Thus, the function F MAX (x, y) stored therein is regenerated on the basis of the deformed function F MAX ' (x, y) and the deformed input pattern P' (x, y) on the xy plane. Namely, in the function learning storing unit 5, as shown in the flow chart of Fig. 4, first, in a step S11, when the deformed amount M (x, y) [M (x k , y k ) = set of (m xk , m yk )] as the set of the movement amount (m xk , m yk ) of the block FB k (x k , y k ) in the case that the block FB k (x k , y k ) is most analogous to the block PB (x i , y j ) on the input pattern P (x, y) is inputted from the comparing processing unit 4, in a step S12, the movement amount ( ―m xk , ―m yk ) of the block PB (x i , y j ) [= PB (x k + m xk , y k + m yk )] in the case that the block PB (x i , y j ) on the input pattern P (x, y) is made most analogous to the block FB k (x k , y k ) is calculated, to be set to a variable M'(x k + m xk , y k + m yk ) indicating the movement amount (―m xk , ―m yk ). The process advances to the step S13, wherein the set M P (x, y) of a deformation active element M P (x k , y k ) for deforming the input pattern P (x, y) and the set M F (x, y) of M F (x K + m XK , y K + m YK ) for deforming the function F MAX (x, y) are respectively calculated according to the following equations, and the process advances to a step S14. M P (x k , y k ) = A × M (x k , y k ) M F (x k + m xk , y k + m yk ) = (1-A) × M'(x k + m xk , y k + m yk ) where A is a constant within the range of 0 ≦A≦1, which is regenerated from the small value to the large value as the learning of the function F i at the function learning storing unit 5 proceeds. In the step S14, assuming that the deformation active element M P (x, y) and M F (x, y) are M P (x, y) = (d1x, d1y) and M F (x, y) = (d2x, d2y) the input pattern P (x, y) and the function F MAX (x, y) are deformed according to the following equation: P' (x, y) = P (x + d1x, y + d1y) and F MAX ' (x, y) F MAX (x + d2x, y + d2y). Namely, the deformed input pattern P' (x, y) as shown in Fig. 5a, and the deformed function F MAX ' (x, y) as shown in Fig. 5b are calculated, and the process advances to a step S15. In the step S15, a new function F i (x, y) as the function F MAX (x, y) subjected to the learning according to the equation (2-3) is calculated on the basis of the new input pattern P' (x, y) and the new function F Max ' (x, y), and which is stored in the function learning storing unit 5 in place of the function F MAX (x, y), thus completing the processing. F i (x, y) = F MAX ' (x, y)+ ε X MAX P' (x, y) ∥F MAX ' (x, y)+ ε X MAX P'(x, y)∥ where ε is a specified number within the range of 0< ε <1. On the other hand, the deformed amount M (x, y) inputted from the comparing processing unit 4 to the deformed amount analysis unit 6 is analyzed thereat. Thus, the components of the image of the person's face photographed by the video camera 1 as the input pattern P (x, y) with respect to the vertical or horizontal deviation on the screen (parallel movement component) , the positional deviation due to rotation (rotational movement component) or a component regarding the difference in the magnitude due to an enlargement/reduction ratio of the video camera 1, which are contained in the deformed amount M (x, y), are removed. Thus, a new deformed amount Mtdr (x, y) is outputted to the person's information learning storing unit 7. Namely, in the deformed amount analysis unit 6, as shown in the flow chart of Fig. 6, first, in a step S21, the parallel movement component T contained in the input pattern P (x, y) is calculated by the following equation: Thus, the process advances to a step S22, wherein a deformed amount Mt (x, y) from which the parallel movement component T is removed is calculated on the basis of the deformed amount M (x, y) according to the following equation, and the process advances to a step S23. Mt (x, y) = (x, y)-T In the step S23, wherein the component D regarding the difference in the magnitude contained in the input pattern P (x, y) (component regarding the enlargement/reduction ratio) is calculated according to the following equation: where r (x, y) = (x-x0, y-y0), and (x0, y0) is the center of the face image, that is, (x0, y0) = (N/2, N/2). After that, the process advances to a step S24, wherein a deformed amount Mtd (x, y) obtained by removing the component D regarding the enlargement/reduction ratio from the deformed amount Mt (x, y) is calculated according to the following equation: Mtd (x, y) = Mt (x, y) + δMd (x, y) where δMd (x, y) is defined by the following equation: Assuming that δMd (x, y) is represented by the following equation: δMd (x, y) = αr (x, y) (α is a number within the range of 0 ≦ α ≦ 1), δMd (x, y) is required, by replacing the M (x, y) in th equation (3-3) with [M (x, y) + δMd (x, y)] such that the component D regarding the enlargement/reduction ratio becomes zero, and by replacing the component D regarding the enlargement/reduction ratio with zero. In a step S25, the rotational movement component (tilting component) R contained in the input pattern P (x, y) is calculated by the following equation: where M (x, y)× r (x, y) indicates the outer product of the vector M (x, y) and the vector r (x, y). The process advances to a step S26, wherein a deformed amount Mtdr (x, y) obtained by removing the rotational movement component R from the deformed amount Mtd (x, y) is calculated by the following equation, and the process advances to the step S27. Mtdr (x, y) = Mtd (x, y) + δMr (x, y) where δMr (x, y) is defined by the following equation: where s (x, y) = [-(y-y0), x-x0]. Assuming that δMr (x, y) may be represented by the following equation: δMr (x, y) = αs (x, y), δMr (x, y) is required by replacing the M (x, y) in th equation (3-5) with [M (x, y) + δMr (x, y)] such that the rotational movement R becomes zero, and by replacing the rotational movement component R with zero. As described above, the new deformed amount Mtdr (x, y), from which the parallel movement component T, the component D regarding the enlargement/reduction ratio, and the rotational movement component R are removed, is outputted to the person's information learning storing unit 7 in a step S27, thus completing the processing. The above processing is made for each deformed amount M (x k , y k ) (k = 0, 1, ····B-1) to each of blocks divided in B pieces in the function F i (x, y) in the comparing processing unit 4 as the constituting element of the deformed amount M (x, y). Accordingly, in the deformed amount analysis unit 6, the new deformed amount Mtdr (x k , y k ) to the deformed amount M (x k , y k of each of blocks k (k = 0, 1, ···· B-1) divided in B pieces in the function F i (x, y) (F MAX (x, y)) in the comparing processing unit 4 is calculated. Namely, in this specification, the set of the new deformed amount Mtdr (x k , y k ) to the deformed amount H (x k , y k ) of each of blocks k divided in B pieces in the function F i (x, y) [F MAX (x, y)] in the comparing processing unit 4 is described as the new deformed amount Mtdr (x, y). Further, since the deformed amount Mtdr (x k , y k ) is a two-dimensional vector, the new deformed amount Mtdr (x, y) as the set of the deformed amounts Mtdr (x k , y k ) may be regarded as a 2B-dimensional vector. As the processing in the deformed amount analysis unit 6 is completed, in the person's information learning storing unit 7, the new deformed amount Mtdr (x, y) calculated by the deformed amount analysis unit 6 is stored in the memory contained therein, in correspondence to the person's information (standard pattern) K (t) being the function of the number t (t = 1, 2 ···, T: T is the number of the person's faces) given to the person (face) as the recognition result. Namely, in the person's information learning storing unit 7, as shown in the flow chart of Fig. 7, first, in a step S31, when the number t given to the person (face) is inputted, the person's information K (t) as the standard pattern is read out from the memory contained in the person's information learning storing unit 7 in a step S32, and the process advances to a step S33. In the step S33, as the deformed amount Mtdr (x, y) is inputted from the deformed amount analysis unit 6 to the person's information learning unit 7, in a step S34, the person's information K (t) is regenerated on the basis of the deformed amount Mtdr (x, y) according to the following equation: K (t : 2k) = K (t : 2k) + a×Mtdr x (x k , y k ) K (t : 2k+1) = K (t : 2k+1) + a×Mtdr y (x k , y k ) where k = 0. 1, ···, B-1. Here, Mtdr x (x k , y k ) or Mtdr y (x k , y k ) indicate the x-component or the y-component on the xy plane of the new deformed amount Mtdr (x k , y k ) in the block (Fig. 3a) of the function F i (x, y) with the center of the point (x k , y k ). Further, since the new deformed amount Mtdr (x, y) is a 2B-dimensional vector as described above, the person's information K (t) is a 2B-dimensional vector similarly. The K (t : 2k) and K (t : 2k+1) indicate the 2k-th and the (2k+1)-th elements of the person's information K (t), respectively. In addition, a is a specified constant within the range of 0<a <1. The process advances to a step S35, wherein the K(t) regenerated in the step S34 is stored in the memory contained in the person's information learning storing unit 7, thus completing the processing. Next, when the device is in the recognition mode, in the video camera 1, the memory unit 2, the pre-processing unit 3, the comparing processing unit 4, the function learning storing unit 5, or the deformed amount analysis unit 6, the same processing as described above is made, and the new deformed amount Mtdr (x, y) is inputted in the person's information learning storing unit 7. Accordingly, in the person's information learning storing unit 7, the Euclidean distance between the deformed amount Mtdr (x, y) and certain person's information K (t) stored in the memory contained therein is calculated, and the number t in the person's information K(t) minimizing the distances is outputted as the recognition result. In this embodiment, the pre-processing unit 3 filters the image data with the LOG filter to detect the image edge; however, the detection method for the image edge is not limited thereto. Further, in the pre-processing unit 3, it is possible to take out not only the image edge but also the other characteristic amount. In addition, since the problem of correspondence to the image is solved at the comparing processing unit 4, at the pre-processing unit 3, it is possible to output the image data to the comparing processing unit 4 without any filtering. In the comparing processing unit 4, the deformed amount M (x, y) is calculated by the block matching; however, the deformed amount M (x, y) can be calculated by the optical flow method commonly used in detection of the movement of the movable image as disclosed in, for example, Japanese Patent Laid-open No. HEI 3-150520. In the function learning storing unit 5, only the function F MAX (x, y) giving the maximum contribution degree X MAX is deformed (learned); however, the function giving the second or third larger contribution degree may be deformed (learned). The person's information learning storing unit 7 may be constituted of the neural network just as the function learning storing unit 5, wherein the contribution degree X i calculated in the comparing processing unit 4 is inputted in the person's information learning storing unit 7 (as shown in the dotted line of Fig. 1), so that the person's information K (t) can be learned according to the error inverse propagation method by use of the deformed amount Mtdr (x, y) and the contribution degree X i , that is, the weightening factor of the neural network can be regenerated. Also, by inputting the parallel movement component T, the component regarding the enlargement/reduction ratio or the rotational movement component R calculated by the deformed amount analysis unit 6 in the person's information learning storing unit 7, it is possible to perform the learning of the person's information K (t). Thus, it is possible to judge the position, magnitude or the tilting of the substance (image) to be recognized. In the person's information learning storing unit 7, it is possible to perform the learning by the so-called main component analysis method. Further, in the function learning storing unit 5, or the person's learning storing unit 7, for example, the learning methods using the so-called Boltzmann machine and the simulated annealing may be used. As described above, in pattern recognition devices embodying the present invention, an input pattern from the information of the image is prepared, and is compared with the basic pattern stored in the basic pattern storing means and calculates the deformed amount of the input pattern to the basic pattern. Subsequently, on the basis of the deformed amount, the basic pattern stored in the basic pattern storing means and the input pattern prepared by the preparing means are deformed. Thus, on the basis of the deformed basic pattern and the input pattern, the basic pattern stored in the basic pattern storing means as is regenerated. Accordingly, since the basic pattern is regenerated so as to be analogous to the input pattern, it is unnecessary to prepare the basic pattern for each recognition object, thus making it possible to reduce the storing capacity of the basic pattern storing means for storing the basic pattern, and hence to reduce the size of the device. Further, it is possible to improve the recognition ratio. Further, in pattern recognition devices embodying the present invention, the input pattern is compared with the basic pattern stored in the basic pattern storing means, so that the deformed amount of the input pattern to the basic pattern is calculated. Then, the deformed amount is analyzed, and on the basis of the result, the standard pattern stored in the standard pattern storing means is regenerated. Accordingly, it is possible to automatically perform the regeneration (learning) of the standard pattern so as to improve the recognition ratio.

Claims: A pattern recognition device comprising: a preparing means (3) for preparing an input pattern (P(x,y)) on the basis of inputted information (I(x,y)); a basic pattern learning/storing means (5) for storing a plurality of basic patterns (F i (x,y), i=1, ...,r); a comparing processing means (4, 6) for comparing said input pattern with said basic patterns; said pattern recognition device being characterised in that : said comparing processing means (4) determines correlation amounts (X i ) of said input pattern with respect to said plurality of basic patterns and selects the one basic pattern (F MAX (x,y)) for which the contribution degree is maximized (X MAX ); said comparing processing means (4, 6) determines a deformed amount (M(x,y), Mtdr(x,y)) of said input pattern with respect to said selected basic pattern (F MAX (x,y)); a pattern learning/storing means (7) for either regenerating (S34) and storing (S35) a standard pattern (K(t)) associated with each recognizable pattern (t) in dependence on said deformed amount, or for recognizing the input pattern by determining which stored standard pattern (K(t)) minimizes a measure of distance between said deformed amount of said standard pattern (K(t)). A pattern recognition means according to claim 1, wherein said preparing means filters said inputted information with LOG filter, to detect the zero corresponding point, and filters said inputted information with a low pass filter A pattern recognition device according to claim 1, wherein said comparing processing means matches said input pattern with said basic pattern for each block, and calculates the movement amount of said block as said deformed amount. A pattern recognition device according to claim 1, wherein said preparing means prepares said input pattern on the basis of a face image.

Inventors: ARISAWA SHIGERU, FUJITA MASAHIRO, ARISAWA, SHIGERU, FUJITA, MASAHIRO, ARISAWA, SHIGERU, INTELL.PROPERTY DIV., FUJITA, MASAHIRO, INTELL.PROPERTY DIV.
Applicants: SONY CORP, SONY CORPORATION
Application year: 1993
Main classification: G06K9
IPC codes: G06T7, G06K9, G06F9