Summary of the invention
In view of the above technical problems, the present invention is directed to depth learning technology is applied to minisize dc toothed gearing electric motor
In Quality Detection, the precision and efficiency of motor product examine can be significantly improved using the method for deep learning, reduces the people of enterprise
The problems such as power cost and precision efficiency.
The present invention adopts the following technical scheme that realization:
A kind of toothed gearing electric motor product examine device based on convolutional network depth model, comprising:
D.C. regulated power supply, for being to power to minisize dc toothed gearing electric motor to be detected;
Constant current adapter is believed for powering for acceleration transducer, and by the motor oscillating of acceleration transducer acquisition
Number amplification after be delivered to data collector;
Data collector, for amplified motor oscillating signal to be generated PC machine in digital signal conveying;
Acceleration transducer, for acquiring the motor oscillating letter in the case of minisize dc toothed gearing electric motor to be detected dallies
Number;
PC machine, for judging the superiority and inferiority of minisize dc toothed gearing electric motor to be detected according to the digital signal.
Further, the minisize dc toothed gearing electric motor to be detected passes through with a thickness of 0.1-0.25mm rectangular metal
Steel disc is contacted with acceleration transducer surface rigidity.
Further, acceleration transducer measurement surface realizes that rigidity connects by metal glue with metal steel disc
It connects.
Further, the D.C. regulated power supply uses digital control type linear direct current regulated power supply;The constant current adapter is adopted
With single-channel constant current adapter;The data collector uses usb multifunctional data acquisition card.
A kind of toothed gearing electric motor product examine method based on convolutional network depth model should using such as described product examine device
Method comprising steps of
1) vibration signal for extracting minisize dc toothed gearing electric motor to be measured switchs to digital voltage signal and is passed in PC machine;
2) PC machine obtains the vibration signal of motor, and pretreatment obtains the corresponding triple channel time-frequency figure of vibration signal;
3) the triple channel time-frequency figure is inputted into the convolutional network depth point that selected corresponding motor model training finishes
In class model, the classification information of motor superiority and inferiority is identified, to mitigate the burden of artificial product examine.
Further, the pretreatment obtains the corresponding triple channel time-frequency figure of vibration signal and specifically includes: obtaining five seconds electricity
Then machine time-domain signal carries out adding window, framing, Fast Fourier Transform (FFT) and image standardized processing to signal and obtains triple channel
Five seconds time-frequency figures of signal.
Further, the training of the convolutional network depth sorting model specifically includes:
1) Signals Data Base of minisize dc toothed gearing electric motor is established, i.e. collection specific model superiority and inferiority motor is each hundreds of
Platform, processing obtain five seconds time-frequency data-signals of each motor, and divide training set and test set and verifying according to a certain percentage
Collection;
2) adding window framing carried out to five seconds time-frequency data-signals, carried out at Fast Fourier Transform (FFT) and image standardization
Reason obtains five seconds time-frequency figures of signal of triple channel;
3) convolutional network depth sorting model is then built by tensorflow deep learning library, first initialization model is super
Parameter, including learning rate, batch size, CNN core size and quantity, network frame position and quantity, then in convolutional layer and Quan Lian
Layer addition batch normalized is connect, dropout layers are added after full articulamentum, and L2 regularization is done to weight, is put into last
During LOSS is calculated.This part is the pace of learning and model generalization ability in order to improve model, and model is allowed to possess test set mistake
The characteristics of accidentally rate is low, energy real-time detection motor quality.
4) data of training set are inputted into training in the convolutional network Deep model of initialization, 20 periods or
When the opposite variation of LOSS value for network occur is less than threshold value, the ginseng such as weight of convolutional network Deep model is adjusted by BP algorithm
Number;
5) data of verifying collection are inputted into verifying accuracy rate in the trained model of step 6, it is big if there is accuracy rate
In threshold value, then prototype network parameter is kept, step 3) is otherwise returned to, adjusts the network frame and hyper parameter of model.
Further, the first layer of the convolutional network deep layer disaggregated model uses convolution kernel for the one-dimensional convolution net of 7*1
Network, it is subsequent using the full connection layer network of one layer of maxpool, two layers of two-dimensional convolution network and two layers, divided by softmax
Class.
Further, the model hyper parameter specifically:
The feature of input is the triple channel time-frequency figure of 3*129*92, and the batchsize of network is 40, and learning rate is that 1e-4 is right
1e-5 is changed to the 20th period afterwards.
Further, the classification information for identifying motor superiority and inferiority specifically includes: by dividing to five seconds motor signals
And judge respectively, it is judged as excellent motor if the excellent result of appearance is more;If obtained softmax result is more than certain there are ratio
Threshold value is then furnished position again and is measured to motor.
Compared with prior art, the present invention can accurately extract the vibration signal of minisize dc toothed gearing electric motor, in conjunction with building
The vertical depth model library based on convolutional network judges the superiority and inferiority situation of minisize dc toothed gearing electric motor, improves to miniature straight
The efficiency of the quality identification of toothed gearing electric motor is flowed, is solved huge brought by the widely used artificial detection method in the field at present
The problems such as big labour cost and detection tired out, and then reduce the workload manually judged and improve electric machines test precision, to mention
High motor production efficiency.
Specific embodiment
The present invention is described further in the following with reference to the drawings and specific embodiments.
As shown in Figure 1, a kind of toothed gearing electric motor product examine device based on convolutional network depth model, comprising:
D.C. regulated power supply 1, for power to minisize dc toothed gearing electric motor 2 to be detected, the present embodiment to be used
MOTECH digital control type linear direct current regulated power supply LPS-305;
Constant current adapter 5, for being the power supply of acceleration transducer 4, and the motor oscillating that acceleration transducer 4 is acquired
Data collector 6 is delivered to after signal amplification, the present embodiment uses CT5201 single-channel constant current adapter;
Data collector 6, for amplified motor oscillating signal to be generated PC machine 7 in digital signal conveying, this implementation
Example uses MCC1608G usb multifunctional data acquisition card DAQ;Amplified motor oscillating signal is transported to MCC1608G usb
Behind the simulation input port of multifunctional data acquisition card DAQ, analog signal can be converted to digital signal and is passed to by data collector
Into PC machine 7;
Acceleration transducer 3, for acquiring the motor oscillating in the case of minisize dc toothed gearing electric motor 2 to be detected dallies
Signal, the present embodiment use CT1050LC acceleration transducer, and the minisize dc toothed gearing electric motor to be detected passes through thickness
The rectangle stainless steel substrates and 3 surface of acceleration transducer that degree is 0.25mm pass through metal glue realization rigid contact;
PC machine 7, for judging the superiority and inferiority of minisize dc toothed gearing electric motor 2 to be detected according to the digital signal.
As shown in Fig. 2, a kind of toothed gearing electric motor product examine method based on convolutional network depth model, using such as described product
Checking device, the method comprising the steps of:
1) five seconds motor oscillating signals for extracting minisize dc toothed gearing electric motor to be measured, are then split into five parts of one second electricity
Machine vibration signal switchs to digital voltage signal and is passed in PC machine;
2) PC machine obtains the vibration signal of motor, then to five parts of one second motor oscillating signals carry out adding windows, framing,
Fast Fourier Transform (FFT) and image standardized processing obtain five seconds time-frequency figures of signal of triple channel.
3) the triple channel time-frequency figure is inputted into the convolutional network depth point that selected corresponding motor model training finishes
In class model, obtain five parts of softmax as a result, the small Mr. Yu's threshold value of ratio if there is some softmax, illustrate model without
Method accurately separates motor superiority and inferiority, needs to return to step 1 and is re-measured;Then judge five parts of softmax as a result, such as
Fruit majority result belongs to certain one kind, then judges that the motor quality for such, identifies the classification information of motor superiority and inferiority, to mitigate
The burden of artificial product examine.
Fig. 3 is the training flow chart of the convolutional network depth sorting model, comprising steps of
Step 1: according to the artificial judgment method of vestibule, each 100, superiority and inferiority motor are collected, and is marked.
Step 2: acquiring 5s motor oscillating signal to every sample motor by the product examine device, and each 20 groups.According to 6:
2:2 ratio cut partition training set, test set and verifying collection, and 5s motor signal is divided into 5 parts of 1s motor signals in order.
Step 3: since motor signal belongs to non-stationary signal, Fourier transformation can just be done by needing to do adding window sub-frame processing,
Wherein window function selection is hamming window:
Weaken to offset adding window bring both ends, so needing to need be overlapped, frame when framing, between frame and frame
A length of 256 sampled point, it is 128 sampled points that frame, which moves,.
Step 4: Fast Fourier Transform (FFT) is carried out to the motor signal after adding window framing, obtains corresponding triple channel motor
Time-frequency figure.Then 2 standardization of image is done to every picture:
Wherein x indicates that image array, μ are that the identical matrix of size, element are the mean value of image therewith.σ indicates that standard variance, N indicate the pixel number of image x.Image standardization
It is by going mean value to realize the processing of centralization to be easier that model is allowed to obtain extensive effect in this way by data.
Step 5: convolutional network Deep model, trained model framework are built by tensorflow deep learning library
As shown in Fig. 3, first initialization model hyper parameter, including learning rate at present, batch size, CNN core size and quantity, network frame
Position and quantity etc..Then in convolutional layer and full articulamentum addition batch normalized, dropout is added after full articulamentum
Layer, and L2 regularization is done to weight, it is put into last LOSS calculating.This part is the pace of learning and mould in order to improve model
Type generalization ability.
Step 6: the data of training set are inputted into training in the initialization model of step 5,20 periods or
When there is the LOSS value small Mr. Yu's threshold value of opposite variation of network, passes through BP algorithm and adjust the ginseng such as weight of convolutional network Deep model
Number.
Step 7: the data of verifying collection are inputted into accuracy rate is verified in the trained model of step 6, if there is standard
True rate is greater than threshold value, then keeps prototype network parameter, otherwise return to step 5, adjusts the network frame of model and surpasses ginseng
Number.
As shown in figure 4, the first layer of the embodiment of the present invention convolutional network deep layer disaggregated model uses convolution kernel for 7*1's
One-dimensional convolutional network, it is subsequent using the full connection layer network of one layer of maxpool, two layers of two-dimensional convolution network and two layers, pass through
Softmax classifies.The feature of input is the triple channel time-frequency figure of 3*129*92, and the batchsize of network is 40, study
Rate is 1e-4, is then changed to 1e-5 the 20th period.
In conclusion the embodiment of the present invention mainly includes hardware components and software section, in which:
Hardware components: mainly including acceleration transducer, D.C. regulated power supply, constant current adapter, data collector, PC
Machine.By D.C. regulated power supply give minisize dc toothed gearing electric motor power supply, under no-load condition with acceleration transducer surface
Rigid contact;Powered by constant current adapter and amplify motor vibration signal and data collector generate PC machine number letter
Number, the algorithm designed using the present invention can accurately extract the vibration signal of minisize dc toothed gearing electric motor, in conjunction with foundation
Depth model library based on convolutional network judges the superiority and inferiority situation of minisize dc toothed gearing electric motor, and then reduces artificial tasting
Workload and improve electric machines test precision, to improve motor production efficiency.
Software section: following a few class contents are related generally to:
1, the frequency-region signal of vibration signal: adding window framing is carried out to signal using window function, and each frame signal is carried out fast
Fast Fourier transformation and five seconds signal time-frequency figures for generating corresponding triple channel;
2, the standardization of image: by every image by go mean value realize centralization processing, according to convex optimum theory with
Data probability distributions relevant knowledge, data center meet data distribution rule, it is easier to obtain extensive effect after training;
3, convolutional network is built and is learnt: according to the suitable deep layer convolutional Neural of the signal characteristic design parameter of acquisition point
The hyper parameter of convolutional network and the position and quantity of maxpool and full articulamentum is arranged in class network.Meeting precision while protecting
The generalization ability of model of a syndrome;
4, the optimization of convolutional network: addition batch standardization, the technologies such as L2 regularization and dropout improve the study speed of model
Rate and generalization ability;
5, the identification of telecommunication signal: identifying by five seconds motor signals of segmentation and respectively to improve the discrimination of network, with
And the degree of reliability of classification is measured by judging the ratio of softmax.
The embodiment of the present invention is directed to the problems such as Quality Detection efficiency and precision of minisize dc toothed gearing electric motor, will be deep
The method of degree study incorporates wherein.Feature is carried out by vibration signal of the improved convolutional neural networks to toothed gearing electric motor to mention
It takes and model learning, realizes the Quality Detection task of minisize dc toothed gearing electric motor.While guaranteeing accurate rate, improve
To the efficiency of the quality identification of minisize dc toothed gearing electric motor.
The above, only the invention patent preferred embodiment, but the scope of protection of the patent of the present invention is not limited to
In this, anyone skilled in the art is in the range disclosed in the invention patent, according to the present invention patent
Technical solution and its patent of invention design are subject to equivalent substitution or change, belong to the scope of protection of the patent of the present invention.