Parallel, multi-unit, adaptive, nonlinear pattern class separator and identifier

Abstract: A system is disclosed for separating and identifying classes of patterns or events which are not necessarily linearly separable. The patterns are represented by an input signal S. The system comprises (1) a plurality of classification units, connected in parallel to receive the input signal S, and (2) a class selection device, responsive to the output signals produced by the classification units, for producing a single output response R representing the class of each respective pattern. In a preferred embodiment each classification unit includes a pattern feature encoding device, responsive to the input signal S, for producing an intermediate signal F i representative of the features contained in the pattern, and a pattern classifier, responsive to the signal F i , for producing an output signal R i representative of the respective class of the pattern, as identified by the features encoded by the feature encoding device.

Description: Field of the Invention This invention relates to adaptive information processing systems. More particularly it relates to self-organizing input-output devices which function to separate and identify classes of patterns that are not necessarily linearly separable. Background of the Invention The below-referenced patents to Cooper et al. disclose methods and apparatus (systems) that can separate and classify "patterns" or real-world "events" that are not linearly separable. The patterns or events in the outside world can be detected and described by a set of measurements, the results of which are represented by an input signal S comprised of individual signals s₁, s₂...s k . The signal S could be, for example, a signal coming from a camera registering a scene (pattern) or the output of a microphone detecting some arbitrary sound (pattern). In a system comprising a Nestor ™ adaptive module as described in these patents, all input signals S (which are themselves referred to herein as "patterns") belonging to the same class should elicit the same final response from the system. For example, in the context of an application such as character recognition, any version of a handdrawn "2" seen by the system should result in an output signal which causes the character font member for "2" to be displayed on some output device, such as a video screen, printout, etc. A system of this type, or so-called Nestor System ™, is an extremely powerful pattern class separator and identifier. For example, this system may be trained with a learning procedure in which the operator need have no knowledge of the complex geography of the multi-dimensional space in which the pattern class separation and identification is being performed. Such a system requires the input signal S to be preprocessed into an intermediate signal F which represents only certain prescribed features of the original patterns. The input signal S normally contains too much irrelevant information for effective pattern recognition by the Nestor System. Subjecting the input signal S (representing the pattern) to this preprocessing step - referred to herein as "encoding" - should preserve enough information to permit patterns to be distinguished from each other. Information that is irrelevant for learning one class may be important to distinguish some other. For this reason, it may be difficult to choose a single preprocessing strategy that removes all irrelevant information without jeopardizing the ability to distinguish some classes. The system we describe here can be thought of, in one sense, as a way of linking together a number of such Nestor Systems. Each component Nestor System can be regarded as a complete unit, including its own preprocessing and encoding procedures. A pattern is identified by the responses it produces among these component units. Each unit has its own encoding procedures, different from that of any other. Therefore, it is sensitive to certain types of information in the input signal. The particular set of features it registers may give it a special aptitude for learning some types of pattern classes, but not others. A class will be learned automatically by that unit with the best aptitude fot learning it. At the same time, learning other pattern classes may require pooling the resources of several component units, none of which alone has sufficient discriminating skills, by virtue of its preprocessing and encoding properties, to distinguish these classes. In these cases, the system identifies an example of this class by correlating the responses of a set of units. As an example of this, consider once again the task of identifying hand-drawn characters. The pattern properties registered by one unit may give emphasis to certain aspects of the characters but not to others. Specifically, the extracted features may serve well to distinguish among characters with rectilinear shapes, such as "A", "H", "K", "N", etc. but may not provide good separation between characters with circular shapes, such as "B", "C", "Q", etc. Consequently, this unit will distinguish rectilinear shapes while a unit that encodes circular features could learn to separate pattern classes in which circular features are present and distinctive. Encoding (feature extraction) schemes for hand-drawn characters, audible sounds and numerous other types of patterns are well known in the art and are described in the literature. An overview of this technology for hand-drawn characters is given in Automatic Recognition of Handprinted Characters - the State of the Art , by C. Y. Suen, M. Berthod and S. Mori, Proceedings IEEE, Vol. 68, No. 4, April 1980, pp. 469-487. Not every unit of a Nestor System learns every class. Further, each unit is only looking at a fraction of all the possible pattern properties registered by the system as a whole. Consequently, learning of a pattern class occurs more quickly and more economically (in terms of the size of system memory) than if the system consisted of a single unit which combined the preprocessing and coding of all the individual units in the system. Another advantageous and novel feature of this system and its architecture is that it allows the possibility of incorporating new units into the system over the course of training. This is an especially useful property if the kind of pattern classes that the system is expected to deal with changes substantially over time. Additional units may be incorporated in the course of the system's experience without, in general, the need to retrain the system on the pattern classes it has already learned. Advantageously, each Nestor adaptive module can be trained to be exceedingly adept and accurate in its classification of certain types of patterns. This sophistication permits a module to classify based on extremely subtle differences between patterns provided that the unit has the necessary preprocessing and encoding to sense those differences. A high level of ability to classify patterns based on one set of criteria does not preclude the ability to use another set of criteria (from another module or set of modules) to classify based on a different set. The Nestor adaptive module is, itself, a well known device for pattern classification and identification. This device is described, inter alia, in the aforementioned U. S. Patents Nos. 3,950,733; 4,044,243; 4,254,474 and 4,326,259, to Cooper et al. Summary of the Invention A principal object of the present invention is to provide a pattern class separator and identifier which can separate and identify classes of patterns having a wide variety of salient features. Another object of the present invention is to provide a pattern class separator and identifier which can separate and identify classes of patterns which may have only small and subtle differences between them. Still another object of the present invention is to provide a specific software-implemented embodiment of the present invention which is capable of achieving the objects stated immediately above. These objects, as well as further objects of the present invention that will become apparent from the discussion that follows, are achieved, according to the invention, by providing a pattern classification and identification system comprised of the features specified in claim 1. The pattern class separator and identifier according to the invention thus takes advantage of the possibility of encoding different sets of features of a particular pattern so that classification of this pattern may be based upon a wide variety of features. Since the pattern classifier is thus able to "see" various aspects of the pattern, its ability to classify the pattern is substantially increased. Similarly, the provision of a multiplicity of pattern classifiers, looking at a different aspect of the encoding device output and each trained in a slightly different way, makes it possible to separate the pattern into one of a large number of possible classes. It will be appreciated that when a very large number of possible classes are involved, the pattern classifier is able to distinguish between subtle differences in the patterns which it "sees". To better understand the present invention, consider k units U₁...U k of the type described in the U.S. Patent No. 4,326,259, functioning in parallel (or in sequence). Each unit consists of a means for acquisition of an input signal S, means C i for coding of the signal into a pattern vector F i (1≦i≦k), and means for comparing the pattern vector to a set of prototypes [P(j), j=1...N i )] i generated in the process of learning and registering an output response R i . These units are autonomously operating devices. A signal S that results from the occurence of some external event (pattern) is encoded by each of the k different codes, identified as c₁...c k , into intermediate signals F₁...F k ; these signals are then separated into classes to produce an output response R₁...R k from each of the units U₁...U k , respectively. The k codes c₁...c k thus generate k signals, F₁...F k , each representing different aspects (or features) of the external event. At one extreme, the codes might be orthogonal. In this case, a given representation of an event is coded into one and only one signal F j . The others give zero. (In the example of coding for handdrawn characters, such a division might be achieved by a coding in which all entries with one stroke are entered into c₁, all of those with two strokes into c₂, etc.). Then the processing in the k units is completely independent. At the other extreme the codes might be identical so that c₁=c₂=...c k . In this situation obviously nothing is gained over that of a single unit. In the situation we envisage here, the k codes may or may not be orthogonal, but they are not identical. A given manifestation of an external pattern, in general, is coded into a non-zero signal by some or all of the k codes, c₁...c k . Each of these codes might emphasize different aspects or features of the incoming event. The information from some codes will serve well in separating certain classes of patterns, while that from other codes will be better suited for separating still other classes of patterns. It may also occur that a pattern is best identified by correlations between the signals resulting from two or more codes. The k intermediate signals F₁...F k are supplied to k pattern classifiers N₁, N₂...N i ...N k which, in turn, produce the respective output responses R₁...R k . Each pattern classifier is preferably a Nestor adaptive module of the type disclosed in the aforementioned U.S. Patents Nos. 3,950,733; 4,044,243; 4,254,474 and 4,326,259. Such an adaptive module comprises a number M of input terminals, each coupled to receive one scalar component f (f 1i , f 2i ...f Mi ) of the intermediate signals F i ; a number N of summers, each summer having M inputs and an output and being operative to provide a scalar component signal r (r 1i , r 2i ...r Ni ) at its output representing the sum of the signal representations applied to its inputs; at least a number N of scalar multipliers, each coupled to one of the summers, for producing a second scalar component signal λ r i , where λ is a multiplier factor; at least a number N of threshold devices, each coupled to one of the scalar multipliers, for producing a scalr output response p i (p₁, p₂...p i ...p N ) when the second scalar component signal exceeds a prescribed threshold level ϑ i ; and a number MxN of junction elements, each junction element coupling one of the input terminals with one of the summers and providing a transfer of information from the respective input terminal to the respective summer in dependence upon the signal appearing at the respective input terminal and upon the junction element transfer function. When in a training mode, the transfer function of at least one of the junction elements is modified in dependence upon the incoming signal applied to the junction element and the output signal of the summer with which the junction element is associated. In addition, at least one of the scalar multiplier factors λ is modified so as to confine the response of the associated prototype to a single class of patterns. The Nestor adaptive module operates to compare the incoming pattern vector F i to a set of prototypes P(j), j=1...N, and produce an output response R i which is indicative of the prototype or prototypes (if any) that respond to or match the pattern vector F i . As each Nestor adaptive module is trained, it develops a unique set of prototypes for classification of incoming patterns. Given an input vector F i , representing a pattern from a class that the system has been trained to recognize, and given a particular set of prototypes, there will be a high probability that the pattern will fall within the classification fields of one or more prototypes for that class. The development of prototypes in each Nestor adaptive module N i allows it to evolve and implement its own classification strategy on incoming patterns. The strategy it develops may be based on looking at pattern properties that are uniquely registered by its associated encoder, C i . Moreover, even if two or more adaptive modules derive their inputs from the same or equivalent encoders, possible differences in the parameters controlling the development of their prototype sets will cause them to implement effectively different classification strategies applied to the same input patterns. The system according to the invention therefore provides a means by which any number of such classification units, working in parallel (or in sequence) can organize themselves to select the best code as well as the correlations between codes for a pattern and thus arrive at a highly efficient means of separating and classifying the various patterns. In the journal Electronics and Communications in Japan, vol. 48, no. 9, Sept. 1965, pages 37-46; K. Udagawa et al., a parallel two-stage decision method for character recognition is described. This is a statistical method based on a Bayes decision rule rather than the prototype memory means taught by the present invention. A parallel two-stage character recognition method is also disclosed in Wissenschaftl. Berichte, vol. 52, no. 1/2, 2nd January 1979, pages 31-38; J. Schürmann. In this method the final selection among independent parallel responses is made by reference to external criteria (in-word context) and not by any interaction between the mutually exclusive parallel responses. For a full understanding of the present invention, reference should now be made to the following detailed description of the preferred embodiments of the invention and to the accompanying drawings. Brief Description of the Drawings Fig. 1 is a block diagram of a pattern class separator and identifier according to a first preferred embodiment of the present invention. Fig. 4 is a detailed block diagram of the aforementioned first preferred embodiment of a pattern class separator and identifier. Fig. 5 is a flow diagram depicting an algorithm for a software system (Nestor System ™) implementing the pattern class separator and identifier illustrated in Fig. 4. Fig. 6 is a flow diagram depicting an algorithm for the pattern-prototype comparison within the pattern classification units in the system of Fig. 5. Fig. 7 is a flow diagram depicting an algorithm for assembling the responses of the classification units in the system of Fig. 5. Fig. 8 is a flow diagram depicting an algorithm for assembling the response of the system of Fig. 5. Fig. 9 is a flow diagram depicting the learning algorithm for modifying the memory in the classification units in the system of Fig. 5. Fig. 10 illustrates some examples of pattern classes separated by different codes. Description of the Preferred Embodiments The present invention and its preferred embodiments will now be described with reference to Figs. 1 and 4-10 of the drawings. A preferred embodiment of the present invention is illustrated in Fig. 1. This embodiment will be described here in general terms sufficient for an understanding of the present invention. Details of this embodiment are described below with reference to Figs. 4-10. As illustrated in Fig. 1, the system includes a detector 10 which produces a signal vector S comprised of individual scalar component signals s₁, s₂...s M representing a pattern or "event" in the outside world. The detector 10 is a conventional device such as an array of light sensors, each of which produces one of the output signals s₁, s₂...s M . The signal vector S is presented in parallel to k pattern classification "units" 12; namely, unit 1, unit 2,...unit i,...unit k. Each unit (e.g., unit i) comprises a pattern feature encoding device 14 (C i ) and a pattern classification device 16 (N i ). Preferably, each of the encoding devices C₁, C₂...C i ...C k encodes a different set of features in the pattern, represented by the input signal S, by means of a unique code c i (c₁, c₂...c i ...c k ). In this way, the intermediate signals F₁, F₂...F i ...F k produced by the respective encoding devices carry different information. The individual pattern classification devices 16 (e.g., device N i ) each preferably consists of a Nestor adaptive module of the type disclosed in the aforementioned U.S. Patents Nos. 3,950,733; 4,044,243; 4,254,474 and 4,236,259. This adaptive module operates to compare an encoded pattern vector F i with a set of "prototypes" for pattern classes which the module has learned through training. The Nestor adaptive module which is able to classify the pattern vector - by testing it against its set of prototypes - produces an output response R i . Since each of the classification devices 16 provides a different set of prototypes, as a result of its training, against which to test the pattern vector F i , there is a high probability that one of the classification devices will be able to classify the encoded pattern. If we assume that the intermediate signal F i is a pattern vector comprising M scalar signals (f₁, f₂...f M ) and if we assume that the output response R i of a classification device 16 N i is a response vector consisting of N scalar signals (r₁, r₂...r N ) so that the classification device has M inputs and N outputs, a Nestor adaptive module forming this classification device 16 will comprise: (1) a plurality M of input terminals, each coupled to receive one of the scalar intermediate signals f₁, f₂...f M ; (2) a plurality N of summers, each summer having M inputs and an output and being operative to provide a scalar component signal r at its output representing the sum of the signal representations supplied to its inputs; (3) a number N of scalar multipliers, each coupled to one of the summers, for producing a second scalar component signal λ r i , where λ is a multiplier factor; (4) a number N of threshold devices, each coupled to one of the scalar multipliers, for producing a scalar output response p i (p₁, p₂...p i ...p N ) when the second scalar component signal exceeds a prescribed threshold level ϑ i ; and (5) a plurality MxN of junction elements, each junction element coupling one of the input terminals with one summer and providing a transfer of information from the respective input terminal to the respective summer in dependence upon the signal appearing at the respective input terminal and upon the junction element "transfer function". While the Nestor adaptive module is being trained, it also includes a suitable controller for modifying (1) the transfer functions of some of the junction elements in dependence upon the incoming signal applied to it and the output signal of the summer with which the respective junction element is associated, (2) the scalar multipliers λ ; and (3) the thresholds ϑ. The outputs R₁, R₂...R i ...R k of all of the classification units 12 are supplied to a common pattern class identifier 22 which performs the final recognition function and produces a common output response R (consisting of scalar signals r₁, r₂...r N ). This pattern class identifier may take one of any number of forms; for example, the forms shown in Figs. 3, 4 and 8 of the aforementioned U.S. Patent No. 4,326,259. The identifier 22 may also be implemented by a Nestor adaptive module of the type disclosed in the aforementioned U.S. Patents Nos. 3,950,733; 4,044,243; 4,254,474 and 4,326,259 and summarized briefly above. An alternative implementation of identifier 22 is discussed below. Fig. 4 shows the preferred embodiment of Fig. 1 in greater detail. As described in the U.S. Patent No. 4,326,259, referred to above, the system is responsive to an input signal S which is comprised of a large number of digital signal components s₁, s₂...s N . Alternatively, the signal S may consist of one or more analog signals. This signal vector S is generated by a detector 110 that is responsive to real world "patterns" or "events" to be classified and identified. For example, the detector 110 may be a character scanner which detects the shape of hand-drawn characters. As another example, the detector 110 may be a microphone which responds to audible sounds and produces a single analog signal S. The input signal S is applied in parallel to k "classification units" 112, designated unit 1, unit 2...unit k. Each of these units comprises a pattern feature encoding device 114 that receives the input signal S and produces an intermediate signal F i (i.e., one of F₁, F₂...F k ) representative of certain features contained in the pattern represented by the signal S. Advantageously, each of the coding devices 114 is responsive to and encodes a different set of features in the pattern so that all of the signals F i produced by the coding devices carry information that is distinct and different from each other. Each classification unit 112 also comprises a pattern classification device 116 which is responsive to the intermediate signal F i and produces an output signal R i (i.e., one of R₁, R₂...R k ) representative of the class or possible classes of the pattern represented by the input signal S, as this pattern is identified by the features encoded by the coding device 114. The pattern classification device 116 is preferably a pattern class separator and identifier of the type disclosed in the aforementioned U.S. Patent No. 4,326,259. As indicated in Fig. 4, this classification device comprises a plurality of assemblies 118, designated "prototypes", which may be similar or identical to the assembly i illustrated in Fig. 7 of the aforementioned U.S. Patent No. 4,326,259. The assemblies 118 produce outputs p₁, p₂...p M which are applied to a device 120 that assembles the responses of the assemblies 118 and produces, if possible, a response R i identifying the pattern class or set of possible pattern classes. For example, this pattern class identifier may be of the type illustrated in Fig. 8 of the aforementioned U.S. Patent No. 4,326,259. In the preferred embodiment of the invention to be described below, the classification units 116 are implemented by system software in a general purpose digital computer and report responses R₁, R₂...R k each consisting of variables LEVRSP, NUMCAT and CATLEV. The significance and definition of these variables will be described below. Suffice it to say, at this point, that the responses R i produced by the k classification units 112 are applied in parallel to a class selection device 122 that produces a single output response R representing the class of the pattern represented by the input signal S. In the preferred embodiment to be described below, the response R comprises the variables CERTAN, NLIM and CLASSL. As is described in the aforementioned U.S. Patents Nos. 3,950,733; 4,044,243 and 4,326,259, the system may be operated in two distinct modes: (1) a learning or training mode wherein weighting factors, multipliers and threshold levels within the pattern classification devices 116 are modified so that the system will learn to recognize new patterns it has never "seen" before and improve its recognition of previously-seen patterns; and (2) a normal or trained mode wherein the weighting factors, multipliers and threshold levels are held constant. In the training mode only, the system requires a memory modification controller 124 which modifies the weighting factors, multipliers and threshold levels in the manner described in the aforementioned patents. The pattern class separator and identifier illustrated in Fig. 4 may be implemented either in hardware or in software. As mentioned above, the pattern feature encoding devices may be implemented in the manner described by C.Y. Suen et al. in Automatic Recognition of Handprinted Characters - the State of the Art , referred to above. The pattern classification device 116 in each classification unit 112 as well as the class selection device 122 will now be described with reference to Figs. 5-9 of the drawings which illustrate algorithms, according to the preferred embodiment, for implementing these devices in software. In this description certain terms have been given unique and precise meanings which are set forth in the attached Appendix. I. Memory A. The "Prototype" As described in the U.S. Patent No. 4,326,259, memory in a Nestor adaptive module is composed of "prototypes". Each prototype has some number of input lines and one output pathway through which it communicates with other elements in the system. Each prototype has associated with it a set of weighting factors (one for each input line), the prototype vector, and a threshold governing whether it is "on" or "off". The threshold, which defines a "region of influence" for the prototype, is modifiable when the adaptive module is in the training mode. Each prototype is associated with a particular class. Finally, each prototype belongs to a particular unit (unit 1, unit 2...unit k) within the system. B. P1 and P2 Prototypes There are two different types of prototypes in the memory of the Nestor adaptive module: Phase-1 (P1) prototypes and phase-2 (P2) prototypes. Among the labels associated with a prototype is one that indicates its "phase". The distinction between the two types of prototypes lies primarily in the extent to which they can influence the classification of the pattern within a given unit of the system. P1 prototypes can direct the response of the system unambiguously, whereas P2 prototypes, when fired, can only indicate that an incoming pattern, represented by the signal S, may fall within a designated one of a number of classes. C. Pattern-Prototype Comparison To identify the class of a pattern, the pattern is compared with a group of prototypes in memory. The pattern appears to a prototype as a set of signals appearing on its N input lines. The operation of comparing a pattern and a prototype can take any of several forms. In one method the signal on each prototype line (f j ) is multipled with the weight assigned to that line (P j ), and the resultant N products are summed to produce the total integrated signal seen by the prototype. This signal d is compared against the prototype threshold ϑ. If it exceeds that threshold, the prototype is said to "fire"; if it does not, the prototype is silent. d > ϑ (prototype fires) Another method of comparison is useful if the signals arriving at the prototype input lines are binary, each line carrying either a positive or negative spike. In this case, the prototype weighting factor assigned to that line is itself a binary number. In this method, the total prototype activity is a count of the number of input lines on which the sign of the pattern signal does not match the sign of the weighting factor. where This total number of unmatched signs is then compared against the prototype threshold. If the unmatched sign count is less than the threshold, the pattern fires; if it is greater than or equal to the threshold, the prototype is silent. Thus, in this method, we have d < ϑ (prototype fires) D. Parallelism in the Nestor Adaptive Module An important feature of the Nestor adaptive module is that the comparison of a pattern with each of the relevant prototypes (either some subset or the entire memory) can occur simultaneously. Additionally, in the comparison of a pattern with a given prototype, the operation performed on a given input line (either multiplication or sign comparison) can be performed simultaneously on all input lines. This rich parallelism is an inherent feature of the Nestor adaptive module. II. Synthesis of Response The result of comparing the pattern with prototypes at various units of the system is a set of prototypes that are firing, distributed over the different units. Prototypes firing within a unit cause the unit to emit a response, and the responses of the various k units interact to produce the ultimate output of the system. A. Response of a Classification Unit The output R j of the j-th classification unit 112 is composed of a list of classes (CATLEV), the number of classes in that list (NUMCAT) and a flag LEVRSP that characterizes the type of response from the unit. If the unit can unambiguously assign a classification to the pattern, then the type of unit response is LEVRSP = "IDENTIFIED". If the unit can only suggest a possible classification or is undecided among several likely candidate classes, then the type of response is LEVRSP = "UNCERTAIN". Finally, if the unit is unable to make any classification on the pattern, the response type is LEVRSP = "UNIDENTIFIED". To understand how the firing of P1 and P2 prototypes can differently affect the response of a unit, consider the case of a unit having only one firing prototype. If the prototype is P1, then the response of the unit is to unambiguously assign the class of this prototype to the pattern (LEVRSP = "IDENTIFIED"). If the prototype is P2, the unit can only suggest this class as a possible identify for the pattern. The response of the unit is uncertain (LEVRSP = "UNCERTAIN"). Regardless of how many P2 prototypes might be firing for this class in the unit, the response type of the unit would still be "UNCERTAIN". In the process by which the unit responses combine to produce a system classification, units producing unambiguous assignments dominate over those yielding uncertain ones. In the general case, prototypes firing within a unit determine its response according to the following rules. If there are firing prototypes within a unit, then the classes represented among them are entered into CATLEV, and NUMCAT>0. If at least some of the firing prototypes are P1 prototypes and if the set of classes associated with these P1 prototypes consists of only one class, then this class is placed first in CATLEV and the unit response type is LEVRSP = "IDENTIFIED". In any other circumstances where there are firing prototypes, the response type of the unit is LEVRSP = "UNCERTAIN". If there are no firing prototypes, then NUMCAT=0 and LEVRSP = "UNIDENTIFIED". B. Response of the System The response of the system's class selection device 122 consists of a list of categories CLASSL, the number of elements in this list, NLIM, and a logical flag, CERTAN. If CERTAN has the value true, the system has identified the pattern as belonging to the first class listed in CLASSL. (The system response is IDENTIFIED.) If CERTAN is false and NLIM>0, then the system is UNCERTAIN about the identify of the pattern but has narrowed the range of possibilities to one of the NLIM elements listed in CLASSL. They are ordered from most likely to least likely. (Note that it is possible for the system to be uncertain despite the fact that there might be only one class in CLASSL. The system offers this class as a likely but not a definite classification.) If NLIM=0, then the system response is UNIDENTIFIED. To synthesize the system response from the individual classification unit outputs, the units can be assigned a priority that determines the order in which their responses are evaluated. This establishes a hierarchy among the units, and the units are referenced by this priority number. For example U₁ may have the highest priority, U k , the lowest. To compose the system response, the individual units are searched in the sequence 1 through k, stopping at the first unit whose LEVRSP is "IDENTIFIED". Let the priority index of this unit be IDNLEV (1≦IDNLEV≦k). The first class listed in CATLEV for the IDNLEV unit is put into the first position of CLASSL. Additionally, classes listed in the CATLEVs for the units 1 through (IDNLEV-1) are put in CLASSL starting at position 2, possibly ordered in any number of ways; e.g., frequency of occurence among units, average priority value of the units responding for the class, etc. CERTAN is set to true, and the system response is IDENTIFIED. If the search through the units reveals no unit for which LEVRSP is "IDENTIFIED", then either all the units have LEVRSP of "UNIDENTIFIED" or at least one unit has LEVRSP = "UNCERTAIN". If all have LEVRSP = "UNIDENTIFIED" then NLIM=0 and the system response is UNIDENTIFIED. It is possible to take advantage of a hierarchial arrangement of units to reduce the average number of units "polled" (and thus the average number of computations performed) before a system classification emerges. In this spirit, computations are performed within each unit down to the unit priority at which an unambiguous classification arises. On the other hand, unit priorities need not be unique. The same priority can be assigned to a set of units. All units at the same priority function in parallel. A pattern that is processed by one unit at a given priority must be processed in any and all other units with the same priority. This gives each such unit the same opportunity to contribute to the system response. C. Vote-Counting If all classification units have LEVRSP = "UNCERTAIN", then vote-counting is done among the units in an attempt to correlate the class outputs of one unit with the class outputs of others. As an example of this correlation, assume U₁ has class outputs (a,b) and U₂ has class outputs (b,c). A vote-counting scheme which counts the units voting for classes a,b,c might assign them votes 1,2,1, respectively. The system would then choose b as the category of the pattern. To do the vote-counting, the units are searched in the sequence of their priority, and the class votes are updated after each unit. At priority j, the vote count of a class is defined as some function of the number of units with priority numbers less than or equal to j whose class outputs include the given class. If among all the highest priority units, one class has more votes than any other, then this class is declared the winner and the vote counting ends. If no winner is found then the vote counting is updated by polling all the units at the next highest priority and looking for a winning class. Assuming a winner has been found after vote-counting down to some priority, the class outputs of the units polled go into CLASSL, ordered from highest to lowest vote. If there was a single class that had more votes than any other class, then CERTAN is set to true, and the system response is IDENTIFIED. If, after vote-counting, no single class emerges with more votes than any other, then CERTAN is set to false and the system response is UNCERTAIN. III. Modifying Memory Modifications to memory of a Nestor adaptive module occur during training in response to the presentation of a pattern and its class, the latter typically being supplied by the user. The basic operations involved in changing the module memory are (1) the commitment of a P1 prototype, (2) reduction of the threshold of a P1 prototype, (3) transformation of a P1 prototype into a P2 prototype and (4) the commitment of a P2 prototype. A. Commitment of a P1 Prototype The process for commitment of a P1 prototype within a classification unit is based on the procedures for prototype commitment as discussed in the U.S. Patent No. 4,326,259. If a P1 prototype is to be committed in U j , then the pattern code vector in this unit F j , becomes a new prototype vector P(m) in U j , with the class of the pattern becoming the class of the newly created prototype. As has been discussed elsewhere, the threshold of a prototype defines a "region of influence" in the multi-dimensional pattern space in which the prototype vector is located. (This is true irrespective of the particular details of pattern-prototype comparison.) The influence region is centered on the prototype and extends for some distance surrounding it. This distance is determined by the threshold. The threshold of a newly committed prototype is initialized to a value less than or equal to the distance to the nearest prototype (of P1 or P2 type) of a differing class or some default value. Prototypes must have a certain minimum threshold. If the threshold to be assigned to a newly committed P1 prototype is less than this cutoff, then the attempt at P1 commitment fails and the P1 prototype with its vector and class cannot be added to the memory of this unit. B. Reduction of Prototype Threshold Reduction in the threshold of a prototype is designed to modify the threshold of the prototype so that, in a subsequent comparison of this pattern with the prototype, the prototype does not fire. In general, this involves setting the threshold of the prototype to some number less than or equal to the distance between the pattern and the prototype. C. Transformation of a P1 to a P2 Prototype A P1 prototype can be transformed into a P2 prototype if, in the process of reducing the size of its threshold, it becomes necessary to diminish it below the cutoff for P1 thresholds. When this occurs the prototype is flagged as a P2 prototype and its threshold is set to some number between the P1 cutoff and the distance to the closest P1. D. Commitment of P2 a Prototype If it is desired to commit a P2 prototype at some unit, the code vector and class of the input pattern becomes the prototype vector and class at the given unit. The prototype is flagged as a P2 prototype. Its threshold is set to either the distance to the nearest P1 prototype or to some percentage of the dimensionality of the space, whichever is smaller. E. Algorithm for Learning The algorithm describing how these different mechanisms are orchestrated in the process of learning has a number of variations. In general terms, it can be outlined in the following way. Let a prototype whose class is different from that of the input pattern be known as an incorrect prototype. A prototype whose class matches that of the incoming pattern will be referred to as a correct prototype. The first step in modifying memory is to reduce the thresholds of all firing incorrect P1 prototypes so that they no longer fire in response to the presently occuring pattern. (In different versions of the algorithm, this threshold modification of the firing P1 prototypes occurs only for units of priority lower than that of the unit that identified the pattern.) If after this is done, the pattern is not correctly identified, the system attempts to commit this pattern as a P1 prototype in a unit with the highest priority possible that can accommodate a new P1 prototype. If the pattern cannot be committed as a P1 prototype at any unit, then, beginning with the highest priority unit, U₁, the system will commit the pattern as a P2 prototype as long as a correct P2 prototype is not already firing. Vote-counting is repeated. If the system response is now such that CERTAN = true and the first element of CLASSL is the correct classification, then this pattern introduces no further changes to memory. Alternatively, if the system response is not one of correct classification of the pattern, then P2 commitment is attempted for the next lowest priority unit, U₂, and vote-counting is again repeated. The process ends when the correct class has become the unambiguous system response or after all the units with the lowest priority have been processed. In the latter case, though uncertain, the system will offer a set of classes as most likely candidates for the pattern identity, and this set will necessarily include the correct pattern class. IV. Examples of Operation of the System A. Case I - Selection for the Separating Code As an illustration of the functioning of the system, consider the case in which there are two codes c₁ and c₂ such that the various representations of the pattern class "a" are well separated by c₁ but confused with another class of patterns "b" by c₂ In the spaces of c₁ and c₂ we might therefore have relations shown in Fig. 10A. Clearly c₁ will easily separate and classify a and b while c₂ will have great difficulty in separating them. (In practice, a device based on c₂ will not be able to reliably classify examples of a and b.) We will see that, independently of the way in which the priority is assigned to the two units implementing these two codes, the system will be able to select c₁ as the code in which to develop prototypes that separate these two pattern classes. Assume that c₁ is implemented by U₁, and c₂ by U₂. c₁ → U₁ c₂ → U₂ (U₁ has the higher priority.) In this case, U₁ acquires P1 prototypes, the influence regions of the prototypes are adjusted in the standard fashion, and the memory of the system converges to distinct coverings of the a and b territories in U₁. Consider now that c₂ is implemented by U₁, and c₁ by U₂. c₂ → U₁ c₁ → U₂ Again, U₁ begins to acquire P1 prototypes. However, in the course of training, they are reduced to P2 prototypes because a P1 influence field of any significant extent will result in classification errors. When this occurs, U₂ will begin to acquire P1 prototypes. Their influence field sizes will be modified to cover and separate the two class regions. As U₂ begins to correctly classify the incoming events, prototype commitment in U₁ will cease. In the course of training out the incorrect responses of U₁, its remaining prototypes will all be converted to P2. Thus, the response type of U₁ will be either "UNIDENTIFIED" or "UNCERTAIN". Consequently, the response of the system will be determined exclusively by U₂ (code c₁, where the class regions are correctly separated.) Finally, consider the case in which U₁ and U₂ are assigned equivalent priorities. c₁ → U₁ c₂ → U₂ priority (U₁) = priority (U₂) In this case, both units begin to acquire P1 prototypes simultaneously. But once again, as incorrect prototypes have their influence fields reduced, the prototypes in U₂ are transformed to P2 prototypes, whereas in U₁, separate coverings of the a and b class territories develop. The responses of U₁ become more often unambiguous and correct; the commitment of P1 prototypes in both units ceases. Eventually the response of the system is solely based on the output of U₁. B. Case II - Correlations among Codes In another example illustrated in Fig. 10B, consider a situation in which there are two codes and three classes, a, b and e. In code c₁, class a is well separated but classes b and e occupy the same region. In code c₂, however, b is well separated from neighboring classes but a and e overlap. From the discussion of case 1 above, it is clear that, regardless of how priorities are assigned to the units implementing these codes, the system will be able to commit P1 prototypes in c₁ to separate and define class a, and, similarly, P1 prototypes in c₂ to define class b. Further, the unit implementing c₁ will dominate the system response for type a patterns, while the unit for c₂ will control the system response for b patterns. But, how will the system learn to discriminate examples of class e among its inputs? The answer lies in the contribution of P2 prototypes. The unit for c₁ will be unable to sustain P1 prototypes for either b or e in region (b,e). Similarly, the unit for c₂ will be unable to keep P1 prototypes for a or e in region (a,e). Regardless of how the priorities are assigned to the units implementing codes c₁ and c₂, both regions (b,e) in c₁ and (a,e) in c₂ will become covered by P2 prototypes for e. These coverings will be, at minimum, complementary in the following sense. Assume, for argument's sake, that the unit for c₁ has the higher priority. System training will have produced a covering of the (b,e) region such that, upon presentation of an example of e, U₁'s response will be either UNCERTAIN in e, or UNCERTAIN in b or e. Since we have already indicated that no P1 prototype will have survived in region (a,e) of c₂, it is impossible for U₂ to dominate the system output. Vote-counting will turn a U₁ response of UNCERTAIN in e into a system classification of e. If, on the other hand, U₁'s response is UNCERTAIN in b or e, then the complementarity of the mapping developed in c₂ will assure that its response will be either UNCERTAIN in e or UNCERTAIN in a or e. In either case, vote-counting will combine responses from both units into the classification response, e. In this example, the system has learned how to correlate the respnses of several units to separate and classify a pattern category that is not separated in any code. c. An Example Problem from Character Recognition We consider finally a simple illustration of this system applied to a problem in character recognition. Suppose that we wished to train the system to recognize the three block letters H, I and □. We choose a very simple set of codes for the coding units. Define c₁ to be a code that, in one dimension, counts the number of horizontal line segments in a pattern, and in another dimension records the ratio of the average length of the horizontal segments to the longest such segment. Let c₂ be a code that records the same information but for the vertical segments in the pattern. Clearly in the case of the three letters we have chosen, when drawn in block form, the pattern class territories in c₁ and c₂ look like the diagramms of Fig. 10C. This is an example of Case II discussed above where H is class a, I is class b and □ is class e. Here, the a region in c₁ is a point and the (b,e) region is a set of points in a line. In the c₂ code, the b region is a point and the (a,e) region is a line. It should be noted that, in the discussion of case II, no restrictions were placed on the geometries of the class territories. Regardless of which units implement which codes, system memory will develop to cover the point for H in c₁ with a P1 prototype. Similarly, training will result in a P1 prototype covering the point representing I in c₂. The two line regions in c₁ and c₂ will be covered by a complementary P2 mapping for □. Consequently and without the aid of specific instruction to do so, the system will have learned to select individual separating codes for H and I and to correlate information from both codes to learn the character class □. There has thus been shown and described a novel parallel, multi-unit, adaptive nonlinear pattern class separator and identifier which fulfills all the objects and advantages sought therefor. Many changes, modifications, variations and other uses and applications of the subject invention within the scope of the appended claims will, however, become apparent to those skilled in the art after considering this specification and the accompanying drawings which disclose preferred embodiments thereof. Appendix Glossary of Terms Class: A conceptual definition of a group of patterns which elicits the same response from a pattern class separator and identifier. All vector signals S representing patterns within this group will produce the identical output response R. A Nestor adaptive module does not have any preset or preconceived classes before it is trained. Classification Unit: One of a number of conceptually (or physically) separate units of the system. These units operate in parallel, or in sequence, and each comprise both an encoding portion and a classification portion. The encoding portion transforms the vector signal S into an encoded vector signal F; the classification portion attempts to translate the vector signal F into a unique output response R identifying the class of the input pattern represented by the vector signal S. Each classification unit is designated by its own hierarchy level or "priority" within the system. Confusion Zone: An area in multi-dimensional pattern space associated with more than one pattern class. Typically, such areas are covered with at least two overlapping layers of phase 2 prototypes, each layer being associated with a different class. In some cases, these zones may also be covered by overlapping influence fields of phase 1 prototypes for different classes. Correlation: The selection of the correct class from among several output responses of a number of Nestor adaptive modules, each of which has been presented with an encoded vector signal F representing the same input pattern. Encode: A transformation of an incoming vector signal S, representing an input pattern, into an encoded vector signal F, using a code "c". The transformation depends upon the presence or absence of particular features in the pattern. The purpose of the transformation is to eliminate irrelevant information contained in the signal S. Event: A real world occurence which may be detected and represented by a vector signal S. For example, the event may be a visual pattern, detectable by a camera, or a sound pattern, detectable by a microphone. The term "event" may be used synonomously with "pattern". Influence Field of a Prototype: A variable-sized region or territory in the multi-dimensional pattern space centered on a prototype. Upon presentation, an input pattern that falls within this territory will cause the prototype to fire. Neighbor Search: A search within a Nestor adaptive module for neighboring prototypes within a certain distance, in the multi-dimensioanl pattern space, from the point representing an input pattern. Nestor Adaptive Module: A device or method disclosed and claimed in one or more of the following U.S. patents: 3,950,733; 4,044,243; 4,254,474 and 4,326,259. Pattern: A particular set of data, resulting from a real world "event" and represented by a vector signal S, which is to be classified by a pattern class separator and identifier. Although each pattern presented to the pattern class separator and identifier may be at least slightly different from every other pattern previously presented, it can be grouped into one of an arbitrary number of classes. Pattern Signal: A vector signal S comprised of individual scalar signals s₁, s₂...s k , which represents an input pattern to a pattern class separator and identifier. Phase 1 Prototype: A type of prototype which, when "fired", will direct the response of a Nestor adaptive module and cause a particular output response to occur. Phase 2 Prototype: A type of prototype which, when "fired", can only indicate that an incoming pattern may fall within a designated one of a number of classes. Prototype: A prototypal representation of a pattern as stored in a Nestor adaptive module memeory. Each prototype is defined in memeory by (1) a vector in the multi-dimensional pattern space; (2) a "region of influence" within the pattern space; (3) a particular pattern class with which the prototype is associated; and (4) a label specifying the phase of the prototype. Prototype "Commitment": The establishment of a new prototype (either phase 1 or phase 2 prototype) in a Nestor adaptive module in association with, and as a result of the presentation of, an input pattern. Upon presentation, during training, every input pattern will either fall within the influence field of an existing prototype, or cause the formation of a new prototype. To "Fire" a Prototype: A prototype is said to "fire" when an input pattern, represented by a vector signal S, falls within the influence field of that prototype. This causes the Nestor adaptive module, in which the prototype resides, to produce an output response. System Level: A collection of classification units having the same priority. Vote Counting: A correlation technique which is used when an input pattern falls within a "confusion zone" in the multi-dimensional pattern space.

Claims: A system for classification and identification of patterns, each pattern being represented by an input signal S, said system comprising: (a) a plurality of classification units U₁, U₂...U i ...U k , each unit including: (1) pattern feature encoding means, responsive to said signal S, for producing an intermediate signal F i (F₁, F₂...F i ...F k ) representative of a selected subset of features contained in the pattern represented by said signal S, each intermediate signal F i comprising a plurality of signal components (f 1i , f 2i ,...f ii ...f Mi ); and (2) pattern classification means, responsive to said intermediate signal F i , for producing an output signal R i (R₁, R₂...R i ...R k ), representative of a proposed respective class of said pattern represented by said signal S as identified by the features represented by said intermediate signal F i , said pattern classification means including memory means for storing a plurality of prototypes within a multi-dimensional pattern space, and means for comparing an input pattern, represented by said intermediate signal F, with each of said prototypes stored in said memory means, to determine whether said input pattern falls within a region of influence of at least one of said prototypes; and (b) class selection means, responsive to all of said output signals R i produced by said classification units, for producing a single output response R representing the class of said pattern. The system defined in claim 1, wherein each pattern feature encoding means encodes a different set of features in said pattern, whereby all of said intermediate signals F i produced by said encoding means are unique and different from each other. The system defined in claim 1, wherein each pattern classification means classifies said pattern with respect to a different set of classes, whereby all of said output signals R i produced by said classification means are unique and different from each other. The system defined in claim 1, wherein said class selection means includes means for selecting the output signal R i which best represents an identifiable pattern class. The system defined in claim 1, wherein said pattern classification means comprises: (1) a plurality M of input terminals each coupled to receive one scalar component f i (f₁, f₂...f i ...f M ) of an intermediate signal F; (2) a plurality N of summing means, each summing means having M inputs and an output and being operative to produce a scalar component signal r j (r₁, r₂...r j ...r N ) at its output representing the sum of the signal representations applied to its inputs; (3) a plurality N of threshold devices, each coupled to one of said summing means, for producing a scalar output response p i (p₁, p₂...p i ...p N ) when the scalar component signal applied thereto exceeds a prescribed threshold level ϑ i ; and (4) a plurality MXN of junction elements, each junction element coupling one of said input terminals with one of said summing means and providing a transfer of information from the respective input terminal to the respective summing means in dependence upon the signal appearing at the respective input terminal and upon the junction element transfer function, whereby the respective scalar output responses p₁, p₂...p N are components of the output response R of said module. The system defined in claim 5, wherein said pattern classification means further comprises a plurality N of scalar multipliers, each coupled between one of said summing means and its associated threshold device, for producing a scalar component signal λr i , where λ is a multiplier factor. The system defined in claim 5, further comprising means for modifying the transfer function of at least one of said junction elements, when in a treining mode, in dependence upon the incoming signal applied thereto and the output signal of the summing means with which said respective junction element is associated. The system defined in claim 6, further comprising means for modifying said multiplier factor λ of at least one of said scalar multipliers, when in a training mode, so as to avoid ambiguous class separation and identification. The system defined in claim 5, further comprising means for modifying said threshold level ϑ, when in a training mode, so as to avoid ambiguous class separation and identification. The system defined in claim 1, wherein said class selection means comprises: (1) a plurality M of input terminals each coupled to receive one scalar component f i , (f₁, f₂...f i ...f M ) of an intermediate signal F i ; (2) a plurality N of summing means, each summing means having M inputs and an output and being- operative to produce a first scalar component signal r j (r₁, r₂...r j ...r N ) at its output representing the sum of the signal representations applied to its inputs; (3) a plurality N of threshold devices, each coupled to one of said summing means, for producing a scalar output response p i (p₁, p₂...p i ...p N ) when the scalar component signal applied thereto exceeds a prescribed threshold level ϑ i ; and (4) a plurality MXN of junction elements, each junction element coupling one of said input terminals with one of said summing means and providing a transfer of information from the respective input terminal to the respective summing means in dependence upon the signal appearing at the respective input terminal and upon the junction element transfer function, whereby the respective scalar output responses p₁, p₂...p N are components of the output response R of said module. The system defined in claim 10, wherein said class selection means further comprises a plurality N of scalar-multipliers, each coupled between one of said summing means and its associated threshold device, for producing a scalar component signal λ r i , where λ is a multiplier factor. The system defined in claim 10, further comprising means for modifying the transfer function of at least one of said junction elements, when in a training mode, in dependence upon the incoming signal applied thereto and the output signal of the summing means with which said respective junction element is associated. The system defined in claim 11, further comprising means for modifying said multiplier factor λ of at least one of said scalar multipliers, when in a training mode, so as to avoid ambiguous class separation and identification. The system defined in claim 10, further comprising means for modifying said threshold level ϑ, when in a training mode, so as to avoid ambiguous class separation and identification. The system defined in claim 1, wherein each prototype includes, as prototype information stored in said memory means, a vector location in said multi-dimensional pattern space; a scalar distance defining the size of a region of influence about said vector location in said pattern space; and a particular class with which said prototype is associated; and wherein said comparing means includes means for determining whether the location of said input pattern in said pattern space falls within the region of influence of one or more of said prototypes, and for producing a response indicative of the class associated with such-prototype if said input pattern falls within the region of influence thereof. The system defined in claim 15, wherein each prototype is designated by one of at least two types, said designated type being stored in said memory means for its associated prototype as a part of said prototype information, wherein a first type of prototype produces a first output signal 1R i indicative of the certain recognition of the class of an input pattern that falls within the region of influence thereof, and wherein a second type of prototype produces a second output signal 2R i indicative of a possible, but not certain recognition of the class of an input pattern that falls within the region of influence thereof. The system defined in claim 15, wherein said pattern classification means further includes means for modifying said prototype information in said memory means, when in the training mode, in response to the receipt of an input pattern. The system defined in claim 17, wherein said means for modifying said prototype information reduces said sclar distance of a prototype if an input pattern falls within the region of influence of such prototype, thereby producing a response R i indicative of the class associated with such prototype, when the class is incorrect, said sclar distance being reduced sufficiently so that said input pattern falls outside of said region of influence of such prototype. The system defined in claim 18, wherein said scalar distance is reduced to a value substantially equal to, but less than the distance between the vector locations in said pattern space of such prototype and said input pattern. The system defined in claim 18, wherein each prototype is designated by one of at least two types, said designated type being stored in said memory means for its associated prototype as a part of said prototype information, wherein a first type of prototype produces a first output signal 1R i indicative of the certain recognition of the class of an input pattern that falls within the region of influence thereof, and wherein a second type of prototype produces a second output signal 2R i indicative of a possible, but not certain recognition of the class of an input pattern that falls within the region of influence thereof; and wherein said means for modifying said prototype information changes the designated type of a prototype from a first type to a second type when said scalar distance of such prototype is reduced below a prescribed threshold value. The system defined in claim 20, wherein said means for modifying said prototype information expands said scalar distance of a given prototype out to the nearest region of influence of a prototype of said first type, whenever the designated type of such given prototype has been changed from a first type to a second type. The system defined in claim 16, wherein said class selection means includes means for selecting, as said output response R, one of a plurality of output signals produced by said pattern classification means. The system defined in claim 22, wherein each pattern classification means is assigned a prescribed priority indicative of a hierarchy level, and wherein said selecting means selects, as said output response R, the first output signal 1R i produced by said classification means which has the highest priority, said first output signal being indicative of certain recognition of a particular class by said classification means. The system defined in claim 23, wherein said selecting means includes means for (1) counting the numbers of each class indicated by the second output signal 2R i , produced by each successive classification means in order of priority, until one class has a majority count, whenever no classification means produces a first output signal 1R i , and (2) producing said output response R indicative of said majority class. The system defined in claim 1, wherein said class selection means includes means for selecting, as said output response R, one of a plurality of output signals produced by said pattern classification means. The system defined in claim 25, wherein each pattern classification means is assigned a prescribed priority indicative of a hierarchy level, and wherein said selecting means selects, as said output response R, the output signal produced by said classification means which has the highest priority. The system defined in claim 18, wherein said means for modifying said prototype information includes means for storing a new prototype in said memory means when an input pattern fails to fall within the region of influence of any previously stored prototype. The system defined in claim 1, wherein each output signal R i comprises a plurality of signal components (r 1i , r 2i ...r ii ...r Ni ). The system defined in claim 1, wherein said output response R comprises a plurality of signal components (p₁, p₂,...p N ).

Inventors: COOPER LEON N, ELBAUM CHARLES, REILLY DOUGLAS L, SCOFIELD CHRISTOPHER L, COOPER, LEON N., ELBAUM, CHARLES, REILLY, DOUGLAS L., SCOFIELD, CHRISTOPHER L.
Applicants: NESTOR INC, NESTOR, INC.
Application year: 1986
Main classification: G06K9
IPC codes: G06T7, G06F15, G06K9, G06N3