Summary of the invention
The objective of the invention is to, the special-purpose neural network computer of a kind of pattern-recognition system is provided, put into practice bionical pattern recognition theory, improve the sample discrimination of pattern recognition system, it is higher and add the problem that new samples need be trained again to all samples to overcome in the traditional mode identification training sample misclassification rate not.Because the pattern-recognition application process that adopts neural network learning to separate with identification, the special-purpose neural network computer of pattern-recognition of the present invention system has higher performance and ease for operation, can be applicable to artificial intelligence teaching demonstration teaching aid.
The special-purpose neural network computer of a kind of pattern-recognition of the present invention system is characterized in that, comprising:
One bus
One memory member provides data space in system;
One arithmetic/logic and control assembly, this arithmetic/logic and control assembly are born the arithmetic/logic task in system, and pass through the operation and the exchanges data of other each parts of bus control system;
One neural network hardware, this neural network hardware carry out neural network by bus from memory member reception data according to the instruction of arithmetic/logic and control assembly and calculate, and the result is saved in memory member;
One environmental interface parts, these environmental interface parts obtain information according to the instruction of arithmetic/logic and control assembly from environment, or The results of running is expressed by voice or alternate manner.
Neural network hardware is wherein born the distributed parallel neural network and is calculated in system, this neural network hardware is the essential structure unit with the general neuron of multiple weighing value cynapse, and wherein the general neuronic mathematical model basic calculating formula of multiple weighing value cynapse is as follows:
Y=f[Φ (W
1, W
2..., W
m, X)], wherein Y is neuronic output, W
i(i=1...m) be the synapse weights, X is the neuron input.
Wherein arithmetic/logic and control assembly are finished arithmetic/logic in system, and the operation by total line traffic control neural network hardware, environmental interface parts, and the data access operation of memory member.
Embodiment
The invention provides the special-purpose neural network computer of pattern-recognition system among the present invention of a kind of disengaging microcomputer.The embodiment of the special-purpose neural network computer of the pattern-recognition among the present invention system sees also Fig. 1, is described below:
The special-purpose neural network computer of a kind of pattern-recognition system is characterized in that, comprising:
One bus 50;
One memory member 10, this memory member 10 comprises nonvolatile memory 11 and volatile memory RAM 12, is perhaps all realized by nonvolatile memory, and data space is provided in system;
One arithmetic/logic and control assembly 30, this arithmetic/logic and control assembly are born the arithmetic/logic task in system, and pass through the operation and the exchanges data of bus 50 other each parts of control system;
One neural network hardware 20, this neural network hardware 20 carry out neural network by bus 50 from memory member 10 reception data according to the instruction of arithmetic/logic and control assembly 30 and calculate, and the result is saved in memory member 10;
One interface unit 40, these environmental interface parts 40 obtain information according to the instruction of arithmetic/logic and control assembly 30 from environment, or The results of running is expressed by voice or alternate manner.
Wherein neural network hardware 20 is born the neural calculating of distributed parallel in system, this neural network hardware 20 adopts the multiplexing mode of hardware neuron to realize, hardware neuron wherein is the general neuron of a kind of multiple weighing value cynapse, and the general neuronic mathematical model basic calculating formula of multiple weighing value cynapse is as follows:
Y=f[Φ (W
1, W
2..., W
m, X)], wherein Y is neuronic output, W
i(i=1...m) be the synapse weights, X is the neuron input.
Wherein arithmetic/logic and control assembly 30 adopt MCU 31 (MicrocontrolerUnit single-chip microcomputer) and utilize association's controller 32 of programmable logic device (PLD) exploitation to realize, also can adopt a powerful general processor to realize.This arithmetic/logic and control assembly 30 are finished arithmetic/logic in system, and pass through the operation of bus 50 control neural network hardwares 20, environmental interface parts 40, and the data access operation of memory member 10.
The application process of the special-purpose neural network computer of a kind of pattern-recognition of the present invention system, it is characterized in that, be a kind of based on bionical pattern recognition theory, realize the artificial intelligence demonstration application method that neural network learning separates with identification with the special-purpose neural network computer of pattern-recognition of the present invention system.Comprise the steps:
1) the neural network learning process of microcomputer assistance; The neural network learning that this microcomputer is assisted is meant and utilizes microcomputer to assist the special-purpose neuro-computer of pattern-recognition of the present invention that training sample set is learnt, and makes it have " identification " ability to the things of having learnt.Wherein the microcomputer neural network learning process of assisting is meant by microcomputer and gathers sample and feature extraction, and according to the distance between the sample point in the feature space, and sample is selected and sorted; The special-purpose neural network computer of pattern-recognition of the present invention then system is learnt the sample of selecting ordering, constructing neural network, and neural network structure is saved in the nonvolatile memory.
2) break away from microcomputer, the neural network identification presentation process that the special-purpose neural network computer of pattern-recognition system independently finishes.Wherein break away from the neural network identification demonstration that the special-purpose neural network computer of microcomputer pattern-recognition system independently finishes, be meant that the special-purpose neural network computer of pattern-recognition of the present invention breaks away from microcomputer, independently finish network mode identification demonstration work.
Wherein break away from the neural network identification presentation process that the special-purpose neural network computer of microcomputer pattern-recognition system independently finishes, be meant the pattern-recognition demo system of the special-purpose neural network computer of pattern-recognition of the present invention system as an independent operation, independently finish following work: gather pattern sample to be identified and this sample is carried out feature extraction, calculate and judgement by neural network, the output mode recognition result or (with) carry out corresponding actions.
The special-purpose neural network computer system application method of pattern-recognition among the present invention is a kind of bionical pattern recognition theory based on non-division, realize with the special-purpose neural network computer of pattern-recognition of the present invention system, the artificial intelligence demonstration application method that neural network learning separates with identification, its concrete implementation step sees also Fig. 2, Fig. 3.Be described below:
1, the neural network learning process of microcomputer assistance, its process flow diagram as shown in Figure 2.Gather sample and feature extraction by microcomputer, and according to the distance between the sample point in the feature space, sample is selected and sorted.The special-purpose neural network computer of pattern-recognition of the present invention then system constructs the sample distribution subspace of such sample according to the complicated geometirc physique that similar sample point distributed in the feature space with the method for higher dimensional space complicated geometirc physique piecewise approximation covering.For example the actual body of sample is distributed as a hypercurve, then can adopt the straight line of segmentation to be similar to the sample distribution subspace that such sample is constructed in covering.Repeat said process until the structure of finishing all types sample distribution subspace, thereby finish the study of neural network and network architecture parameters is stored in the nonvolatile memory 11.
2, break away from the neural network identification presentation process that the special-purpose neural network computer of pattern-recognition system independently finishes among microcomputer the present invention, its process flow diagram as shown in Figure 3.The special-purpose neural network computer of pattern-recognition among the present invention system is as the pattern-recognition demo system of an independent operation, independently finish following work: gather pattern sample to be identified and this sample is carried out feature extraction, calculate and judgement by neural network, the output mode recognition result or (with) carry out corresponding actions.
Embodiment
The application example of the special-purpose neural network computer of pattern-recognition of the present invention system is that requirement is discerned demonstration to the mock-up of different angles on the surface level.The collection of sample be utilize microcomputer from different directions the Bmp file that collects of observation post screen and sort composing training sample set S={S
i' | (in the formula, i is the sequence number of training sample to i=0...j}, and j is the number of training sample, S
i' be i training sample).The sample of training sample being concentrated by the special-purpose neural network computer of pattern-recognition of the present invention system carries out feature extraction then, and each sample image obtains the proper vector of one 256 dimension.Because direction of observation all is a level, we can say that the change of direction has only a variable, thereby the distribution of sample point is one-dimensional manifold distribution Pa in the feature space.Therefore we adopt the approximate geometry body of such sample subspace of the approximate structure of mode of super sausage segmentation covering, and it is super sausage neuron that multiple weighing value cynapse hardware neuron is set, and finishes the training of neural network.Super sausage approximate geometry body covering method is described below:
Cover Pa approx with j neuron Pi (i=0...j-1), wherein Pi is:
P
i={x|ρ(x,y)≤K,y∈B
i,x∈R
n}
B
i={x|x=αS
i′+(1-α)S
i+1′,α∈[0,1]}
Wherein (x y) is x to ρ, the distance between 2 of the y, B
iFor with sample point S
i', S
I+1' be the line segment of end points.
The sample subspace Pa that then obtains is:
In experiment, as training sample model, gather 6400 in sample with 8 models such as lion, tiger, tank altogether, wherein every class sample is selected 26 to 50 real training samples of conduct, and 8 classes have 338.In addition with 6 models such as cat, doggie, 400 test sample books that conduct is not trained of respectively sampling.Drawing that the correct recognition rata of training sample is 99.75%, is 0.25% according to the knowledge rate, and misclassification rate is 0; The training sample misclassification rate is not 0.From top result as can be seen, the artificial intelligence demo system that the present invention realizes can not known training objects not by mistake, has demonstrated fully the superiority of bionical pattern recognition theory with respect to the traditional mode recognition methods.
The system architecture of the special-purpose neural network computer of the pattern-recognition system in the special-purpose neural network computer of the pattern-recognition of the present invention system as shown in Figure 1, solve the speciality of thinking in images problem and the arithmetic/logic unit ability in the logical thinking field in conjunction with neural network hardware, this system adopts the institutional framework of dual processor shared storage.
The special-purpose neural network computer system application method of pattern-recognition in the special-purpose neural network computer of the pattern-recognition of the present invention system, be a kind of based on bionical pattern recognition theory, realize the artificial intelligence demonstration application method that neural network learning separates with identification with the special-purpose neural network computer of pattern-recognition of the present invention system.Because the technological means that has adopted study to separate with identification, greatly reduce the cost of system and the complicacy of system operation, the participation presentation process is simple to operate, the result is accurate, interesting strong, therefore, be suitable as very much large, medium and small student's teaching demonstration teaching aid, to improve the interest of student's Scientific exploration knowledge.