Electric energy meter assembly process detection device and method based on deep learning image recognition
Through deep learning technology and generative adversarial network algorithms, the meter installation and connection process of electric power students is automatically scored, which solves the problems of heavy scoring workload and strong subjectivity in the existing technology, improves the objectivity and fairness of scoring, and achieves high efficiency. , accurate recognition effect.
Patent Information
- Application Number
- CN202310875243.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-07-17
AI Technical Summary
In the existing technology, power companies have a large workload and are subjective in grading students' meter installation and connection techniques, which affects the fairness and objectivity of the competition.
Image recognition technology based on deep learning is used to collect images of the meter installation process through the image acquisition module, and the image recognition module and image deep learning model module are used for automatic identification and scoring, combined with the Generative Adversarial Network (GAN) algorithm for image preprocessing. , Feature point extraction and analysis to determine the standardization and level of the wiring process.
Automated scoring is realized, reducing teachers' scoring workload, improving the objectivity and fairness of scoring, improving recognition efficiency and accuracy, and forming a more comprehensive and accurate scoring system.
Smart Images

Figure CN116893386B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electric energy meter assembly process detection devices based on deep learning image recognition, and in particular to an electric energy meter assembly process detection device-level method based on deep learning image recognition. Background Art
[0002] At present, in recent years, my country's economy has developed rapidly, the quality of life of the people has been greatly improved, and the demand for electricity has continued to increase. With the continuous expansion of the scale of electricity consumption, the requirements for power companies have also increased to a certain extent, especially the installation and connection of meters, which has affected the power supply environment and the quality of electricity consumption. In order to improve the installation and connection technology and process of on-site operation and maintenance personnel, power supply units and power training schools in various places organize installation and connection process training and competitions from time to time. However, due to the huge workload of teachers to score the students' installation and connection process, and the subjectivity of the scoring, the fairness and objectivity of the competition have been affected to a certain extent. Summary of the invention
[0003] In view of the above problems, the present invention proposes an electric energy meter installation process detection device based on deep learning and image recognition. The device captures images of the electric energy meter installation process area of the trainee on the device (image acquisition module), automatically recognizes the captured images (image recognition module), and compares, trains, and performs deep learning among different models according to the learning method and rules (image deep learning model module). In addition, scoring grades and judgment areas are given according to the judging criteria. This solves the problems of the existing teachers' huge workload in scoring the trainees' meter installation and connection process and the subjectivity of scoring, which affects the fairness and objectivity of the competition to a certain extent.
[0004] The technical solution adopted by the present invention is as follows:
[0005] An electric energy meter assembly process detection device based on deep learning image recognition, comprising:
[0006] An image acquisition module; the image acquisition module is used to acquire the wiring image on the device panel;
[0007] An image recognition module; the image recognition module recognizes corresponding elements on the collected image;
[0008] An image deep learning model module; the image deep learning model module is used to identify and score the collected images according to the target, classify them according to the scores and feature points, and store them in the image deep learning model module.
[0009] The present invention compares, trains, and deeply learns different models for the recognized images according to the learning methods and rules, and performs classification operations at the same time, and stores them in a learning model library for subsequent learning. After multiple cycles of such operations, the limitation of comparing with only the same sample image each time has been broken away, so that the types and quantities of sample libraries are increasing, and the comparison and analysis are more objective, comprehensive, accurate, and referenceable.
[0010] The present invention adopts the image after recognition, and according to the learning method and rules, performs comparison, training, and deep learning between different models, and performs classification operations at the same time, and stores them in the learning model library for subsequent continued learning. After multiple cycles of such operations, it gets rid of the limitation of only comparing with the same sample image each time in the past, so that the types and quantities of the sample library are increasing, and the comparison and analysis are more objective, and more comprehensive, correct and referenceable. In the wiring process competition before the present invention, the scoring depends on the subjective scoring of the teacher. Now this invention can be used to pass the first step: taking pictures (image acquisition), the second step: recognition (image algorithm, recognition of process specifications), and then the third step: deep learning (model self-learning, so that in the second step of recognition, it can be more accurately positioned later). Deep learning is similar to artificial intelligence such as Xiaoai and Xiaodu. When interacting, it can also self-learn, and can quickly communicate when encountering similar problems later.
[0011] Optionally, a database service module is also included, and the database service module stores the collected images.
[0012] Optionally, the database service module is used to use the images collected and stored by the image acquisition module for later model learning or for use when the application service module calls.
[0013] Optionally, it also includes an application service module, which is used to control the database service module, image acquisition module, image recognition module and image deep learning model module in the system and display module data and information.
[0014] Optionally, the image recognition module recognizes elements of the captured image including color, horizontality, inclination, and flatness.
[0015] The present invention also discloses a method for detecting an electric energy meter assembly process based on deep learning image recognition, comprising the following steps:
[0016] 1) After collecting images and preprocessing them, feature points are extracted, and then the feature points are modeled and analyzed to obtain the difference between this image and the standard image;
[0017] 2) After preprocessing the image, extract feature points;
[0018] 3) Modeling is performed based on the extracted feature points to obtain a mask map;
[0019] 4) Extract line segments based on the mask, detect straight line segments, and calculate the line segment angles.
[0020] The electric energy meter assembly process detection method based on deep learning and image recognition of the present invention also includes the following steps: after calculating the line segment angle, judging whether it meets the specifications based on the horizontal and vertical angles.
[0021] The electric energy meter assembly process detection method based on deep learning and image recognition of the present invention also includes the following steps: after calculating the line segment angle, judging whether the line segments are flat.
[0022] Traditional convolution algorithms still have some shortcomings, such as
[0023] 1) The storage cost is high. When the image is decomposed into pixel blocks and the blocks are sliding continuously, the number of times the storage space is needed and the cost increases exponentially due to the continuous category judgment of CNN.
[0024] 2) The efficiency is relatively low. Adjacent pixel blocks need to perform convolution operations repeatedly, which seriously affects the efficiency and speed of recognition.
[0025] 3) The recognition accuracy is limited, because the size of the pixel block is much smaller than the size of the entire image, and only some local features can be extracted, resulting in one-sided recognition and inaccurate accuracy.
[0026] In step 1), a generative adversarial network is used to process the image;
[0027] It includes the following specific formula (GAN objective function):
[0028] Pdata is the distribution of real data, z is the noise (input data), pz is the distribution of original noise, G() is the generation mapping function, D() is the discrimination mapping function, G is a generated image template library, it receives a random noise point z, and judges by this noise point, denoted as G(z).
[0029] From the perspective of the discriminator D, it hopes to distinguish real samples from fake samples as much as possible, so it hopes that D(x) is as large as possible and D(G(z)) is as small as possible, that is, V(D,G) is as large as possible. From the perspective of the generator G, it hopes to deceive D as much as possible, that is, it hopes that D(G(z)) is as large as possible, that is, V(D,G) is as small as possible. The two models compete with each other and finally reach the global optimum.
[0030] D is a network to be learned, which identifies which category a new image belongs to. Its input parameter is x, where x represents a picture to be learned. The output D(x) represents the discriminator value of x for the picture. If it is 1, it means that it is 100% consistent with a picture in the picture template library, and if the output is 0, it means that there is no picture in the template library that has any similarity with the picture. The present invention adopts a generative adversarial network (GAN), and combined with this algorithm, it can well avoid the above problems, thereby relatively completely and correctly identifying the image to be identified.
[0031] (III) Beneficial effects
[0032] 1. The present invention uses a neural network algorithm to compare, train, and deeply learn different models of the recognized image according to learning methods and rules, and performs classification operations at the same time, and stores them in a learning model library for subsequent learning. After multiple cycles of such operations, it gets rid of the limitation of comparing with only the same sample image each time, making the types and quantities of sample libraries more and more, and the comparison and analysis more comprehensive, accurate, and referenceable.
[0033] 2. The present invention adopts a generative adversarial network, which has lower overhead, high recognition efficiency and speed, and higher recognition accuracy.
[0034] 3. The detection method of the present invention performs pre-operation processing on the collected image, such as size adjustment, pixel standardization, color space conversion, filtering and enhancement, etc., establishes feature points to model the image, and judges whether the wiring process meets the requirements and what level it belongs to through the data in the mask model diagram, and gives a process score.
[0035] 4. The detection method of the present invention can systematically analyze each image after collecting it, establish a neural network algorithm for deep learning, and classify it and store it in the model library. The more classifications and images stored in the model library, the more accurate and deep the recognition can be, making the competition more fair, objective, comprehensive and systematic. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is a working diagram of the method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning according to Embodiment 2 of the present invention. Figure 1 ;
[0037] Figure 2 This is a working diagram of the method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning according to Embodiment 2 of the present invention. Figure 2 ;
[0038] Figure 3This is a working diagram of the method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning according to Embodiment 2 of the present invention. Figure 3 ;
[0039] Figure 4 This is a working diagram of the method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning according to Embodiment 2 of the present invention. Figure 4 ;
[0040] Figure 5 This is a working diagram of the method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning according to Embodiment 2 of the present invention. Figure 5 ;
[0041] Figure 6 It is a flow chart of an electric energy meter assembly process detection method based on deep learning and image recognition according to Example 2 of the present invention.
[0042] Figure 7 is a stereoscopic diagram of an electric energy meter assembly process detection device based on deep learning image recognition according to Embodiment 3 of the present invention;
[0043] Figure 8 is a front cross-sectional view of an installation cabin of an electric energy meter assembly process detection device based on deep learning image recognition according to Embodiment 3 of the present invention;
[0044] Fig. 9 is a side sectional view of an installation cabin of an electric energy meter assembly process detection device based on deep learning image recognition according to Embodiment 3 of the present invention;
[0045] Fig.10 It is a flow chart of the control unit of the installation cabin of the electric energy meter assembly process detection device based on deep learning image recognition in embodiment 3 of the present invention.
[0046] 1. Body, 2. Tablet computer, 3. Installation compartment, 4. Opening, 5. Plug, 6. Installation slot, 7. First air duct, 8. Piston block, 9. Spring, 10. Air bag, 11. Second air duct, 12. Shock absorbing part, 13. Sealed conductive ball, 14. Conductive block, 15. Ammeter, 16. Control chip, 17. Control switch. DETAILED DESCRIPTION
[0047] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0048] In the description of the present invention, unless otherwise specified, "multiple" means two or more than two; the orientation or position relationship indicated by the terms "upper", "lower", "left", "right", "inner", "outer", "front end", "rear end", "head", "tail", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] Deep learning image technology uses classification algorithms to visualize data and build image classification models by analyzing elements such as color, size, and shape. In addition, deep learning image algorithms can also perform fine-grained classification and confidence based on complex image features such as image level, contrast, and borders. The deep learning technology used in this invention is achieved by combining convolutional neural networks (CNNs) and optimized generative adversarial networks (GANs).
[0050] Convolutional Neural Networks (CNN): In mathematics, convolution is an integral measure of how much two functions overlap when one function passes over another.
[0051] Example 1
[0052] The technical solution adopted by the present invention is as follows:
[0053] The present invention discloses an electric energy meter assembly process detection device based on deep learning image recognition, comprising: an image acquisition module, an image recognition module, an image deep learning model module, a database service module and an application service module.
[0054] Among them, the image acquisition module is used to acquire the wiring image on the device panel; the image recognition module identifies the corresponding elements on the acquired image; the image deep learning model module is used to classify the acquired image according to the score and feature points after target recognition and scoring, and store it in the image deep learning model module. The database service module stores the acquired images. The database service module is used to use the images acquired and stored by the image acquisition module for later model learning or application service module call. The application service module is used to control the database service module, image acquisition module, image recognition module and image deep learning model module in the system and display module data and information. The image recognition module identifies the elements of the acquired image including color, levelness, inclination and flatness.
[0055] Example 2
[0056] like Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 and Figure 6 As shown, the present invention also discloses a method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning, comprising the following steps:
[0057] 1) After collecting images and preprocessing them, feature points are extracted, and then the feature points are modeled and analyzed to obtain the difference between this image and the standard image;
[0058] 2) After preprocessing the image, extract feature points;
[0059] 3) Modeling is performed based on the extracted feature points to obtain a mask map;
[0060] 4) Extract line segments based on the mask, detect straight line segments, and calculate the line segment angles.
[0061] 5) After calculating the line segment angle, determine whether it meets the specification based on the horizontal and vertical angles. After calculating the line segment angle, determine whether the line segments are flat.
[0062] In step 1), a generative adversarial network is used to process the image. The generative adversarial network includes the following specific formula (GAN objective function):
[0063] pdata is the distribution of real data, z is the noise (input data), pz is the distribution of original noise, G() is the generation mapping function, D() is the discrimination mapping function, G is a generated image template library, it receives a random noise point z, and judges by this noise point, denoted as G(z).
[0064] From the perspective of the discriminator D, it hopes to distinguish real samples from fake samples as much as possible, so it hopes that D(x) is as large as possible and D(G(z)) is as small as possible, that is, V(D,G) is as large as possible. From the perspective of the generator G, it hopes to deceive D as much as possible, that is, it hopes that D(G(z)) is as large as possible, that is, V(D,G) is as small as possible. The two models compete with each other and finally reach the global optimum.
[0065] D is a network to be learned, which identifies which category a new image belongs to. Its input parameter is x, where x represents a picture to be learned. The output D(x) represents the discriminator value of the picture x. If it is 1, it means that it is 100% consistent with a picture in the picture template library, and if the output is 0, it means that there is no picture in the template library that has any similarity with the picture.
[0066] The range of D(x) is [0,1], but the generative adversarial network algorithm has a disadvantage, that is, it can only be compared with the same image, also called the real image (D(x) is 1.0), which will lose the meaning of deep learning. For this reason, it is necessary to establish a template library, treat all the images in it as standard images, and compare the images to be identified with it one by one to obtain D(x)1. According to which image’s D(x) value D(x)1 is closer to: D(x)2, multiply them and obtain D(x)3, also known as the offset of the offset standard image. The formula is as follows:
[0067] D(x)p = D(x)1 * D(x)2
[0068] For example, there are 4 images in the learning template library, namely, Image 0 (standard image): D(x)0=1.0, Figure 1 :D(x)1=0.8, Figure 2 :D(x)2=0.6, Figure 3 :D(x)3=0.5, the picture to be learned is calculated by the formula to obtain D(x)k=0.85, which is the same as Figure 1 :D(x)1=0.8 is the closest, so through the product formula D(x)3 = D(x)1 * D(x)2, we can get D(x)p=0.8*0.85=0.68 of the image to be identified, that is, the image to be identified should belong to Figure 1 In this category, the relative offset from the standard template image is 0.68, and the modified image and D(x) value are stored in the learning template library for next use. After each learning, a new image and D(x) value will be added to the learning template library. The more learning, the smaller the D(x) difference to be recognized later, that is, the higher the recognition accuracy.
[0069] The main starting point of the generative adversarial network (GAN) of the present invention is the problem of generating models in machine learning, that is, given some unlabeled real data, a generative model can be obtained using GANs, and the data generated by the model is consistent with the distribution of the real data. In addition, GANs do not require complex methods such as MCMC or variational Bayes, but only need to run back propagation or gradient descent algorithms in the corresponding multi-layer perceptron.
[0070] The two models are trained simultaneously through an adversarial process. The generator learns to create realistic images, while the discriminator learns to classify them by distinguishing the similarities between regions. During training, the higher the value of the discriminator, the more balanced the process is, and it can determine which category the image belongs to.
[0071] Example 3
[0072] like Figure 7 , Figure 8 , Fig. 9 and Fig.10 As shown, the difference between this embodiment 3 and embodiment 1 is that the electric energy meter assembly process detection device based on deep learning image recognition includes a body 1, and the image recognition module adopts a tablet computer 2, the body is provided with an installation cabin 3 for placing the tablet computer, the top of the installation cabin is provided with an opening 4, the bottom of the installation cabin is provided with a plug 5 adapted to the charging socket at the bottom of the tablet computer, the bottom of the installation cabin is provided with a pair of installation grooves 6, the pair of installation grooves are connected by a first air duct 7, a piston block 8 is provided in the installation groove, the bottom of the piston block is provided with a spring 9, an airbag 10 is provided in the side wall of the installation cabin, the installation groove and the airbag are filled with compressed nitrogen, the installation groove is connected to the airbag through a second air duct 11, the side wall of the installation cabin located inside the airbag of the installation cabin is provided with a shock absorbing part 12, the bottom of the airbag is provided with a sealed conductive ball 13, and the sealed conductive ball seals the second air duct under the action of gravity after falling. The cross section of the airbag is elliptical, and the conductive ball can be a hollow structure.
[0073] Conductive blocks 14 are provided on both sides of the bottom of one of the airbags, one of the conductive blocks is connected to one pole of an external power supply, and the other conductive block is connected to the other pole of the external power supply. An ammeter 15 is provided between one of the conductive blocks and the power supply, and the ammeter is electrically connected to a control chip 16, and the control chip is electrically connected to a control switch 17. The control switch is connected in series between the charging plug and the power supply to control whether the charging plug enters the power-on circuit. When the charging plug enters the power-on circuit, it can be used for charging operation.
[0074] When the tablet is placed in the installation cabin, on the one hand, the plug is inserted into the charging socket at the bottom of the tablet, and on the other hand, the bottom of the tablet squeezes the piston block and moves it downward, increasing the air pressure in the installation slot and pushing the sealed conductive ball upward to form a gap, so that the gas in the installation slot enters the airbag, causing the airbag to expand and the shock absorber to be located on the side wall of the tablet, fixing the tablet. When the sealed conductive ball moves upward, it disconnects a pair of conductive blocks, disconnects the power circuit formed by the power supply, the ammeter, the pair of conductive blocks and the conductive ball, and the ammeter electrical signal is interrupted. At this time, the control chip controls the charging plug to start powering on, allowing charging. After a certain period of time, the control switch is automatically turned off, and charging is impossible at this time. In this way, automatic charging and automatic disconnection are achieved to avoid leakage.
[0075] The above description is only a preferred embodiment of the present invention, and does not limit the patent protection scope of the present invention. Any equivalent structural transformation made by using the contents of the present invention and the drawings, directly or indirectly used in other related technical fields, is also included in the protection scope of the present invention.
Claims
1. A method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning, characterized in that: An electric energy meter assembly process detection device based on deep learning image recognition is applied, and the electric energy meter assembly process detection device based on deep learning image recognition includes an image acquisition module, an image recognition module, an image deep learning model module, a database service module and an application service module; The electric energy meter assembly process detection method based on deep learning image recognition includes the following steps: 1) Collect images; 2) Preprocess the image and extract feature points; 3) Obtain a mask image based on the extracted feature points and the image deep learning model; at the same time, the image deep learning model module is used to classify the collected images according to the scores and feature points after target recognition and scoring, and store them in the image deep learning model module, and then establish a template library, wherein the image deep learning model compares, trains, and deeply learns different models for the recognized images according to the learning method and rules, and performs classification operations at the same time, and stores them in the learning model library for subsequent learning, and repeats such operations multiple times; The specific operation of establishing a template library after the optimized generative adversarial network is to treat all the pictures in it as standard pictures, compare the pictures to be identified with them one by one, and obtain D(x)1. According to which picture’s D(x) value D(x)1 is closer to: D(x)2, multiply them to obtain the offset of the standard picture; the formula is as follows: D(x)p=D(x)1*D(x)2;and store the corresponding graph and D(x) value in the learning template library for next use; 4) Extract line segments according to the mask, detect straight line segments, and calculate the line segment angles; 5) After calculating the line segment angle, determine whether it meets the specifications based on the horizontal and vertical angles.
2. The method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning as claimed in claim 1, characterized in that: The method also includes the following steps: after calculating the line segment angle, determining whether the line segments are flat.
3. The method for detecting the assembly process of an electric energy meter based on image recognition based on deep learning as claimed in claim 1, characterized in that: In step 3), the image is processed using a generative adversarial network. It includes the following specific formula: pdata is the distribution of real data, z is noise, pz is the distribution of original noise, G() is the generative mapping function, D() is the discriminant mapping function, G is a generated image template library, it receives a random noise point z, and judges by this noise point, denoted as G(z); D is a network to be learned, which identifies which category the new image belongs to; its input parameter is x, x represents a picture to be learned, and the output D(x) represents x as the discriminator value of the picture. If it is 1, it means that it is 100% consistent with a picture in the image template library, and if the output is 0, it means that there is no picture in the template library that has any similarities with the picture.
Citation Information
Patent Citations
Installation technique quality detection system of electric energy metering device based on image recognition
CN107316131A
Metering device installation acceptance online identification evaluation device and evaluation method
CN111754737A
Deep learning based training material intelligent identification method, device and equipment
CN113313169A
Image recognition method based on neural network and related device
CN113723310A
Method for tracing complex and missing textures in crack propagation process based on deep learning
CN114049343A
Cited By
Wiring correctness and error detection method and system and meter installation and power connection intelligent process detection method and system
CN119360013A
Connection correctness detection method and system, meter installation and power connection intelligent process detection method and system
CN119360013B
