Industrial pointer type instrument reading identification system based on deep learning
By designing a deep learning -based industrial pointer -based meter reading recognition system, using a variety of deep learning feature extraction modules and identification algorithms to solve the problem of low efficiency and insufficient accuracy of pointer instrument reading in traditional methods, realizing efficiency, accuracy and accuracy Automation reading collection.
Patent Information
- Application Number
- CN202411443028.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-10-16
AI Technical Summary
Traditional pointer instrument reading acquisition methods are inefficient and insufficient in accuracy. It is difficult to accurately capture multi-scale information of pointer instruments in extreme environments, and deep learning networks are difficult to effectively extract detailed feature information of pointers and scales.
Design a deep learning -based industrial pointer -based meter reading recognition system, including data set construction and dividing module, industrial pointer meter reading extraction network module and identification module, using multiple residual small target feature extraction, multiple types of empty convolution characteristics extraction extraction Details with pointer instruments Extract the second -level sub -module, and read the semantic segmentation images of pointer and scale through the Huffyuan transformation and angle method.
It realizes the automatic collection of pointer meter readings, greatly improves efficiency and accuracy, reduces missed and wrong readings, and is suitable for applications in extreme environments.
Smart Images

Figure CN119360394A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer vision image processing, and in particular to an industrial pointer instrument reading recognition system based on deep learning. Background Art
[0002] Pointer instruments mainly consist of two parts: the instrument and the pointer. They have been widely used in many fields such as power systems and manufacturing due to their simple structure, low design cost, strong anti-interference ability and high reliability. However, the traditional method of collecting readings from pointer instruments usually relies on manual inspection, which is not only inefficient and inaccurate, but also requires a lot of manpower. Especially in extreme environments with complex factors such as high temperature, high risk and strong radiation, the task of reading pointer instruments is more difficult.
[0003] The specific problems are as follows:
[0004] 1. The size of the pointer and scale in the industrial pointer instrument will change due to different shooting distances. The existing methods are not effective when dealing with small targets such as pointers and scales, resulting in unsatisfactory results when extracting the pointer and scale in the pointer instrument.
[0005] 2. In extreme environments, such as radiation, high temperature, and high pressure, industrial pointer instruments will become blurred, resulting in the existing methods being unable to accurately capture the multi-scale information of pointer instruments.
[0006] 3. Traditional deep learning networks find it difficult to effectively extract the detailed feature information of pointers and scales, which may result in omissions or errors when extracting pointers and scales.
[0007] Therefore, in order to solve the above problems, an industrial pointer meter reading recognition system based on deep learning is invented. The machine vision technology of deep learning is used to replace manual reading of pointer meters, which can realize the automatic collection of meter readings and greatly improve efficiency and accuracy. Therefore, an industrial pointer meter reading recognition system based on deep learning is invented. Summary of the invention
[0008] In view of the above-mentioned and / or existing problems in an existing industrial pointer instrument reading recognition system based on deep learning, the present invention is proposed.
[0009] Therefore, the purpose of the present invention is to provide an industrial pointer instrument reading recognition system based on deep learning, which can solve the above-mentioned existing problems.
[0010] To solve the above technical problems, according to one aspect of the present invention, the present invention provides the following technical solutions:
[0011] An industrial pointer instrument reading recognition system based on deep learning, comprising:
[0012] The dataset construction and division module is used to construct and divide the industrial pointer instrument image dataset;
[0013] Industrial pointer instrument reading extraction network module, used to extract the semantic segmentation image of the pointer and scale of the industrial pointer instrument;
[0014] Industrial pointer instrument reading recognition module, used to read the semantic segmentation image of pointer and scale using Hough circle transform and angle method;
[0015] The data set construction and division module is connected to the industrial pointer instrument reading extraction network module, and the industrial pointer instrument reading extraction network module is connected to the industrial pointer instrument reading recognition module.
[0016] As a preferred solution of the industrial pointer instrument reading recognition system based on deep learning described in the present invention, the specific process of the data set construction and division module is as follows:
[0017] Process 1: Construct an industrial pointer instrument image dataset: First, use a camera to collect industrial pointer instrument image data to form an industrial pointer instrument classification dataset; then adjust each image in the industrial pointer instrument classification dataset to a uniform size, and annotate the pointers and scales in each image of the industrial pointer instrument classification dataset to generate an industrial pointer instrument segmentation dataset; then convert the industrial pointer instrument segmentation dataset into a semantic segmentation dataset, and convert the RGB color label of each image in the semantic segmentation dataset into a corresponding single-channel digital label; finally, combine the industrial pointer instrument single-channel digital label with the industrial pointer instrument classification dataset to form an industrial pointer instrument image dataset;
[0018] Process 2: Divide the industrial pointer instrument image dataset: Divide the industrial pointer instrument image dataset constructed by S1 into a training set, a validation set, and a test set according to a certain ratio.
[0019] As a preferred solution of the industrial pointer instrument reading recognition system based on deep learning described in the present invention, the industrial pointer instrument reading extraction network module is composed of a reading extraction network first-level sub-module, a model training and verification first-level sub-module and a pointer and scale extraction first-level sub-module.
[0020] As a preferred solution of the industrial pointer instrument reading recognition system based on deep learning described in the present invention, the first-level submodule of the reading extraction network is composed of a second-level submodule for extracting multiple residual small target features, a second-level submodule for extracting multiple types of void convolution features, and a second-level submodule for extracting pointer instrument detail feature information.
[0021] As a preferred solution of the industrial pointer instrument reading recognition system based on deep learning described in the present invention, the specific process of the industrial pointer instrument reading extraction network module is as follows:
[0022] S1: Use the first-level submodule of the reading extraction network to extract features from the industrial pointer instrument image dataset constructed by the dataset construction and partitioning module, and generate semantic segmentation images of the pointer and scale;
[0023] S2: Use the model training and verification first-level submodule to train and verify the industrial instrument fingerprint extraction network IPRE-Net;
[0024] S3: In the first-level sub-module of pointer and scale extraction, the IPRE-Net algorithm model is applied to extract the semantic segmentation images of pointers and scales.
[0025] As a preferred solution of the industrial pointer meter reading recognition system based on deep learning described in the present invention, the specific steps of S1 are as follows:
[0026] S11: Use the multi-residual small target feature extraction secondary submodule to extract the shallow and deep features of the original pointer and scale;
[0027] S12: Use multiple types of dilated convolution feature extraction submodules to extract multi-scale deep industrial pointer instrument image features;
[0028] S13: Use the pointer instrument detail feature information extraction secondary submodule to extract the industrial pointer instrument detail feature information.
[0029] As a preferred solution of the industrial pointer meter reading recognition system based on deep learning described in the present invention, the specific steps of S11 are as follows:
[0030] S111: The size of the original pointer instrument image is 512×512 pixels, and the number of channels is 3. After the original pointer instrument image is input into the multi-residual small target feature extraction secondary submodule, a convolution operation is first performed by a convolution kernel with a size of 1×1 and a number of channels of 32 to obtain a shallow pointer instrument feature map F1. The size of F1 is 256×256 pixels, and the number of channels is 32. After that, F1 is input into the feature fusion convolution block;
[0031] S112: input the shallow pointer instrument feature map F1 into the feature fusion convolution block, firstly perform convolution operation by a convolution kernel of size 3×3 and padding 1, then process it through the ReLU activation function, then perform convolution operation by a convolution kernel of size 3×3 and padding 1, then concatenate it with F1 in the channel dimension, and finally use a convolution kernel of size 1×1 and padding 0 to adjust the number of channels, so as to obtain the shallow pointer instrument feature map F2;
[0032] S113: Perform spatial feature compression on the shallow pointer instrument feature map F2, that is, use average pooling and maximum pooling in parallel to process F2 in the spatial dimension to obtain a one-dimensional vector of length C, and then perform one-dimensional convolution C1D on the one-dimensional vector. t After processing, the weight w of each channel is obtained through the Sigmoid activation function. Finally, the weight w is multiplied by F2 to obtain the deep pointer instrument feature map F3. The process is shown in the following formula (1):
[0033] F3=w⊙F2=σ(C1D t (F 3×3 ([AvgPool(F2);MaxPool(F2)]))⊙F2 (1)
[0034] Among them, AvgPool represents average pooling, MaxPool represents maximum pooling, and F 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, C1D t represents a one-dimensional convolution with a kernel size of t, σ represents the Sigmoid activation function, ⊙ represents the element-wise product, and C1D t The role of is to generate channel weights, and t is adaptively determined according to the mapping of the number of channels c of the output feature:
[0035]
[0036] Where []odd represents the nearest odd number of the parameter, ω, β and γ are hyperparameters;
[0037] Finally, the deep pointer instrument feature map F3 is input into the multi-class hole convolution feature extraction secondary submodule. The size of F3 is 128×128 pixels and the number of channels is 64.
[0038] As a preferred solution of the industrial pointer instrument reading recognition system based on deep learning described in the present invention, the specific steps of S12 are as follows:
[0039] S121: The deep pointer instrument feature map F3 is input into the multi-type dilated convolution feature extraction secondary submodule. F3 is first processed in parallel by four dilated convolutions, and the dilated rates of the four dilated convolutions are 1, 3, 5, and 7, respectively. Then, F3 is subjected to dilated convolution operations to obtain multi-scale depth feature maps R1, R2, R3, and R4, respectively. Finally, R1, R2, R3, R4, and F3 are concatenated in the channel dimension, where the sizes of R1, R2, R3, and R4 are all 128×128 pixels, and the number of channels is 64.
[0040] S122: After concatenating R1, R2, R3, R4 and F3 in the channel dimension, the result is a multi-scale deep feature map F4, the size of F4 is 128×128 pixels, the number of channels is 32, and after F4 undergoes 1×1 convolution, the number of channels of F4 is compressed to 64. Finally, after 3×3 convolution, the result of the secondary sub-module of multi-type hole convolution feature extraction is obtained, that is, the multi-scale deep pointer instrument feature map F5, the size of F5 is 256×256 pixels, the number of channels is 64, and F5 is input into the secondary sub-module of pointer instrument detail feature information extraction.
[0041] As a preferred solution of the industrial pointer meter reading recognition system based on deep learning described in the present invention, the specific steps of S13 are as follows:
[0042] S131: input F5 and F2 together to the pointer instrument detail feature information extraction secondary submodule, in which there are two processing routes, L1 and L2: in L1, F5 is processed by a 1×1 ordinary convolution and a Sigmoid activation function to obtain a detail feature information extraction feature map F6, the size of F6 is 256×256 pixels, and the number of channels is 64; in L2, F5 is processed by a 3×3 size, a hole rate of 2 hole convolution and a Sigmoid activation function to obtain a detail feature information extraction feature map F7, the size of F7 is 256×256 pixels, and the number of channels is 64;
[0043] S132: Connect the shallow pointer instrument feature map F2, the detail feature information extraction feature map F6, the detail feature information extraction feature map F7 and the multi-scale deep pointer instrument feature map F5 and splice them in the channel dimension to obtain the detail feature information extraction feature map F8, the size of F8 is 256×256 pixels, the number of channels is 256, and then F8 is input into the dual-line parallel attention three-level sub-module TPAM;
[0044] S133: In the two-line parallel attention three-level sub-module TPAM, the detail feature information extraction feature map F8 is bilinearly reshaped, the size is adjusted to 512×512 pixels, and the number of channels is adjusted to 256, so as to obtain the detail feature information extraction feature map F9;
[0045] S134: After bilinear reshaping, average pooling and maximum pooling are performed in parallel, followed by double 1×1 convolution operations, addition, and finally Sigmoid activation function operations to obtain detail feature information extraction feature map F10. The size of F10 is 512×512 pixels and the number of channels is 256. The formula for obtaining F10 from F9 is as follows:
[0046] F10=σ(B1(Avg(F9))+B2(Max(F9))) (3)
[0047] Among them, Avg() represents average pooling, Max() represents maximum pooling, B1() and B2() represent the convolution combination operation of two convolution kernels of size 1×1, and σ represents the Sigmoid activation function;
[0048] S135: performing a convolution operation on the detail feature information extraction feature map F10, wherein the convolution kernel size of the convolution operation is 1×1, and obtaining a semantic segmentation image of the pointer and the scale, wherein the semantic segmentation image size of the pointer and the scale is 512×512 pixels, and the number of channels is 1.
[0049] As a preferred solution of the industrial pointer instrument reading recognition system based on deep learning described in the present invention, the specific process of the industrial pointer instrument reading recognition module is as follows:
[0050] Step 1: Use Hough circle transform to calculate the center and radius of the circle in the semantic segmentation image of the pointer and scale;
[0051] Step 2: Get the deflection angle of the pointer;
[0052] Step 3: Calculate the relationship between the deflection angle of the pointer and the angle of the minimum scale line;
[0053] Step 4: Combine the relationship between the range and the angle to calculate the specific reading of the industrial pointer instrument.
[0054] Compared with existing technologies:
[0055] 1. The multi-residual small target feature extraction secondary sub-module in the industrial instrument fingerprint extraction network IPRE-Net based on deep learning in the present invention can enable the segmentation and extraction model to obtain richer feature information in the shallow network, and improve the effect of extracting small target edge information when extracting small targets such as pointers and scales.
[0056] 2. Based on the multi-type hole convolution feature extraction secondary sub-module in the industrial instrument finger print extraction network IPRE-Net, the present invention can splice four multi-scale deep feature maps with hole rates of 1, 3, 5 and 7 respectively in the channel dimension, thereby improving the network's ability to obtain multi-scale information, and can simultaneously obtain the global information of large-scale pointer instruments and the local detail information of small-scale pointers and scales.
[0057] 3. The present invention is based on the pointer instrument detail feature information extraction secondary submodule in the industrial instrument finger mark extraction network IPRE-Net, which can effectively extract the detail feature information of the pointer and scale, and reduce the occurrence of missed detection and wrong detection when extracting the pointer and scale in the pointer instrument. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 This is a flow chart of the overall technical solution of the system of the present invention;
[0059] Figure 2 It is a flow chart of the network module for extracting readings of industrial pointer instruments of the present invention;
[0060] Figure 3 The structure diagram of the industrial instrument finger extraction network IPRE-Net of the present invention;
[0061] Figure 4 It is an execution flow chart of the industrial instrument fingerprint extraction network IPRE-Net of the present invention;
[0062] Figure 5 It is a secondary submodule diagram for extracting multi-residual small target features of the present invention;
[0063] Figure 6 This is the structure diagram of the feature fusion convolution block of the present invention;
[0064] Figure 7 It is a secondary submodule diagram for extracting multiple types of hole convolution features of the present invention;
[0065] Figure 8 It is a secondary submodule diagram for extracting detailed feature information of a pointer instrument according to the present invention;
[0066] Fig. 9 It is a diagram of the dual-line parallel attention three-level submodule TPAM of the present invention;
[0067] Fig.10 This is the angle identification diagram of the semantic segmentation image of the pointer and scale of the present invention. DETAILED DESCRIPTION
[0068] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0069] The present invention provides an industrial pointer instrument reading recognition system based on deep learning, please refer to Figure 1-Figure 10 , including a data set construction and division module, which is used to construct and divide the industrial pointer instrument image data set; an industrial pointer instrument reading extraction network module, which is used to extract the semantic segmentation image of the pointer and scale of the industrial pointer instrument; an industrial pointer instrument reading recognition module, which is used to read the semantic segmentation image of the pointer and scale using the Hough circle transform and angle method;
[0070] The data set construction and division module is connected with the industrial pointer instrument reading extraction network module, and the industrial pointer instrument reading extraction network module is connected with the industrial pointer instrument reading recognition module.
[0071] The specific process of data set construction and division module is as follows:
[0072] Process 1: Construct an industrial pointer instrument image dataset: First, use a camera to collect industrial pointer instrument image data to form an industrial pointer instrument classification dataset; then adjust each image in the industrial pointer instrument classification dataset to a uniform size, and annotate the pointers and scales in each image of the industrial pointer instrument classification dataset to generate an industrial pointer instrument segmentation dataset; then convert the industrial pointer instrument segmentation dataset into a semantic segmentation dataset, and convert the RGB color label of each image in the semantic segmentation dataset into a corresponding single-channel digital label; finally, combine the industrial pointer instrument single-channel digital label with the industrial pointer instrument classification dataset to form an industrial pointer instrument image dataset;
[0073] Process 2: Divide the industrial pointer instrument image dataset: divide the industrial pointer instrument image dataset constructed by S1 into a training set, a validation set, and a test set according to a certain ratio;
[0074] The data set construction and division module includes but is not limited to the following embodiments:
[0075] Use a camera to collect 2000 images of industrial pointer instruments to form an industrial pointer instrument classification dataset; use Python scripts to resize the 2000 images in the industrial pointer instrument classification dataset to 512×512 pixels; use Labelme to manually annotate each image in the industrial pointer instrument classification dataset, and use the "labelme2voc" script to convert the industrial pointer instrument classification dataset into a semantic segmentation dataset, and convert the 2000 RGB color labels in the semantic segmentation dataset into corresponding single-channel digital labels;
[0076] The final industrial pointer instrument image dataset includes 2,000 single-channel digital labels of pointer instruments and 2,000 industrial pointer instrument classification datasets taken from cameras;
[0077] The dataset is divided into training set, validation set and test set according to a certain ratio; the training set accounts for 70% of the total dataset, that is, 1,400 pointer instrument images; the validation set and test set each account for 15% of the total dataset, that is, 300 pointer instrument images respectively;
[0078] In the actual experiment of the present invention, the data set division ratio (training set: validation set: test set) is 70%: 15%: 15%;
[0079] Among them, Labelme annotation tool is used as the annotation tool;
[0080] A Python script is a set of instructions or codes written in the Python programming language, usually ending in a .py file; it is an automated program used to perform a specific task or series of operations;
[0081] labelme2voc is a script that converts Labelme annotation format to VOC (Pascal VOC) format. It is usually used to convert Labelme annotated image semantic segmentation data to Pascal VOC dataset format for training models in deep learning frameworks (such as TensorFlow, PyTorch);
[0082] The semantic segmentation label of the present invention is a binary classification semantic segmentation label, which is usually a single channel; the label value of each pixel can be one of two categories. For example, in image segmentation tasks, 0 and 1 are usually used to represent two categories (such as foreground and background); therefore, for binary classification semantic segmentation tasks, the label image only needs one channel to represent the category of the pixel.
[0083] The industrial pointer instrument reading extraction network module is composed of the reading extraction network first-level submodule, the model training and verification first-level submodule and the pointer and scale extraction first-level submodule; the reading extraction network first-level submodule is composed of the multi-residual small target feature extraction second-level submodule (used to extract the detailed feature information of industrial pointer instruments), the multi-type hole convolution feature extraction second-level submodule (used to extract the shallow and deep features of the original pointer and scale) and the pointer instrument detail feature information extraction second-level submodule (used to extract multi-scale deep industrial pointer instrument image features); the structure of the industrial instrument finger print extraction network IPRE-Net is as follows: Figure 3As shown in the figure; In addition, the function of the industrial instrument fingerprint extraction network IPRE-Net is to correctly extract the pointer and scale in the industrial instrument when there is complex background interference in the industrial pointer instrument picture, that is, to obtain the semantic segmentation image of the pointer and scale, so as to facilitate the subsequent reading recognition of the industrial instrument; Among them, the execution flow chart of the industrial instrument fingerprint extraction network IPRE-Net is shown in the figure Figure 4 As shown;
[0084] The specific process of the industrial pointer instrument reading extraction network module is as follows:
[0085] S1: Use the first-level submodule of the reading extraction network to extract features from the industrial pointer instrument image dataset constructed by the dataset construction and partitioning module, and generate semantic segmentation images of the pointer and scale;
[0086] The specific steps of S1 are as follows:
[0087] S11: Use the multi-residual small target feature extraction secondary submodule to extract the shallow features and deep features of the original pointer and scale; among them, the structure of the multi-residual small target feature extraction secondary submodule is as follows Figure 5 As shown;
[0088] The specific steps of S11 are as follows:
[0089] S111: The size of the original pointer instrument image is 512×512 pixels, and the number of channels is 3. After the original pointer instrument image is input into the multi-residual small target feature extraction secondary submodule, a convolution operation is first performed by a convolution kernel of size 1×1 and number of channels 32 to obtain a shallow pointer instrument feature map F1. The size of F1 is 256×256 pixels, and the number of channels is 32. After that, F1 is input into the feature fusion convolution block; the structure of the feature fusion convolution block is as follows Figure 6 As shown;
[0090] S112: The shallow pointer instrument feature map F1 is input into the feature fusion convolution block, and firstly, a convolution operation is performed by a convolution kernel of size 3×3 and filled with 1, then it is processed by the ReLU activation function, and then a convolution operation is performed by a convolution kernel of size 3×3 and filled with 1, and then it is spliced with F1 in the channel dimension (i.e. Figure 6 The concat operation in is performed, and finally the number of channels is adjusted using a convolution kernel of size 1×1 and filled with 0 to obtain the shallow pointer instrument feature map F2 (size 256×256 pixels, number of channels 32);
[0091] S113: Perform spatial feature compression on the shallow pointer instrument feature map F2, that is, use average pooling and maximum pooling in parallel to process F2 in the spatial dimension to obtain a one-dimensional vector of length C, and then perform one-dimensional convolution C1D on the one-dimensional vector. tAfter processing, the weight w of each channel is obtained through the Sigmoid activation function. Finally, the weight w is multiplied by F2 to obtain the deep pointer instrument feature map F3. The process is shown in the following formula (1):
[0092] F3=w⊙F2=σ(C1D t (F 3×3 ([AvgPool(F2);MaxPool(F2)]))⊙F2 (1)
[0093] Among them, AvgPool represents average pooling, MaxPool represents maximum pooling, and F 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, C1D t represents a one-dimensional convolution with a kernel size of t, σ represents the Sigmoid activation function, ⊙ represents the element-wise product, and C1D t The role of is to generate channel weights, and t is adaptively determined according to the mapping of the number of channels c of the output feature:
[0094]
[0095] Where []odd represents the nearest odd number of the parameter, ω, β and γ are hyperparameters;
[0096] Finally, the deep pointer instrument feature map F3 is input into the multi-class dilated convolution feature extraction secondary submodule. The size of F3 is 128×128 pixels and the number of channels is 64.
[0097] S12: Use multiple types of dilated convolution feature extraction secondary submodules to extract multi-scale deep industrial pointer instrument image features; among them, multiple types of dilated convolution feature extraction secondary submodules such as Figure 7 As shown;
[0098] The specific steps of S12 are as follows:
[0099] S121: The deep pointer instrument feature map F3 is input into the multi-type dilated convolution feature extraction secondary submodule. F3 is first processed in parallel by four dilated convolutions, and the dilated rates of the four dilated convolutions are 1, 3, 5, and 7, respectively. Then, F3 is subjected to dilated convolution operations to obtain multi-scale depth feature maps R1, R2, R3, and R4, respectively. Finally, R1, R2, R3, R4, and F3 are concatenated in the channel dimension (i.e., Figure 7 Concat operation in ), where the sizes of R1, R2, R3, and R4 are all 128×128 pixels and the number of channels is 64;
[0100] S122: After concatenating R1, R2, R3, R4 and F3 in the channel dimension, the result is a multi-scale deep feature map F4, the size of which is 128×128 pixels and the number of channels is 32. After F4 is subjected to 1×1 convolution, the number of channels of F4 is compressed to 64. Finally, after 3×3 convolution, the result of the secondary submodule of multi-type hole convolution feature extraction is obtained, that is, the multi-scale deep pointer instrument feature map F5, the size of which is 256×256 pixels and the number of channels is 64, and F5 is input into the secondary submodule of pointer instrument detail feature information extraction. Among them, the ordinary convolution operation is to calculate the pixel value of the corresponding position of the output feature map by multiplying the convolution kernel with each pixel point of the input feature map and summing them. The hole convolution inserts additional intervals (or "holes") in the convolution kernel. These intervals can increase the effective size of the convolution kernel without increasing the number of parameters. The size of this interval is called the "hole rate" (Dilation rate). Rate), usually expressed as an integer, which determines the size of the interval in the convolution kernel;
[0101] S13: extracting the detailed feature information of the industrial pointer instrument using the secondary submodule of the pointer instrument detailed feature information extraction; wherein the secondary submodule of the pointer instrument detailed feature information extraction is as follows: Figure 8 As shown;
[0102] The specific steps of S13 are as follows:
[0103] S131: input F5 and F2 together to the pointer instrument detail feature information extraction secondary submodule, in which there are two processing routes, L1 and L2: in L1, F5 is processed by a 1×1 ordinary convolution and a Sigmoid activation function to obtain a detail feature information extraction feature map F6, the size of F6 is 256×256 pixels, and the number of channels is 64; in L2, F5 is processed by a 3×3 size, a hole rate of 2 hole convolution and a Sigmoid activation function to obtain a detail feature information extraction feature map F7, the size of F7 is 256×256 pixels, and the number of channels is 64;
[0104] S132: Connect the shallow pointer instrument feature map F2, the detail feature information extraction feature map F6, the detail feature information extraction feature map F7 and the multi-scale deep pointer instrument feature map F5 and splice them in the channel dimension (i.e. Figure 8 Concat operation in the middle), and obtain the detail feature information extraction feature map F8, the size of F8 is 256×256 pixels, the number of channels is 256, and then F8 is input into the two-line parallel attention three-level submodule TPAM (two-line parallel attention module, Two-lineParallel Attention Module); the structure of the two-line parallel attention three-level submodule TPAM is as follows Fig. 9 As shown;
[0105] S133: In the two-line parallel attention three-level sub-module TPAM, the detail feature information extraction feature map F8 is bilinearly reshaped, the size is adjusted to 512×512 pixels, and the number of channels is adjusted to 256, so as to obtain the detail feature information extraction feature map F9;
[0106] S134: After bilinear reshaping, average pooling and maximum pooling are performed in parallel, followed by double 1×1 convolution operations, addition, and finally Sigmoid activation function operations to obtain detail feature information extraction feature map F10. The size of F10 is 512×512 pixels and the number of channels is 256. The formula for obtaining F10 from F9 is as follows:
[0107] F10=σ(B1(Avg(F9))+B2(Max(F9)))(3)
[0108] Among them, Avg() represents average pooling, Max() represents maximum pooling, B1() and B2() represent the convolution combination operation of two convolution kernels of size 1×1, and σ represents the Sigmoid activation function; Among them, bilinear reshaping is an existing technology, and its bilinear reshaping is to achieve image enlargement or reduction without distorting the image resolution through bilinear reshaping; this technology is widely used in digital image processing, computer vision and graphics, such as image scaling function in image editing software and texture mapping in game development;
[0109] S135: performing a convolution operation on the detail feature information extraction feature map F10, wherein the convolution kernel size of the convolution operation is 1×1, and obtaining a semantic segmentation image of the pointer and the scale, wherein the semantic segmentation image size of the pointer and the scale is 512×512 pixels, and the number of channels is 1;
[0110] Among them, S1 includes but is not limited to the following embodiments:
[0111] Input size is 512×512 pixels, the number of channels is 3 RGB original industrial pointer instrument feature map: the original pointer instrument image is input to the multi-residual small target feature extraction secondary submodule to perform shallow and deep feature extraction of the original pointer and scale. First, after the convolution operation with a convolution kernel size of 1×1, the shallow pointer instrument feature map F1 is obtained. The size of F1 is 256×256 pixels and the number of channels is 32. Then F1 is input into FFCB to obtain the shallow pointer instrument feature map F2. The size of F2 is 256×256 pixels and the number of channels is 32. The spatial feature of F2 is compressed and the one-dimensional vector is passed through the one-dimensional convolution C1D tDuring processing, the three hyperparameters used by t are adaptively determined: ω, β and γ are set to 2, 1 and 1 respectively, and the deep pointer instrument feature map F3 is obtained. The size of F3 is 128×128 pixels and the number of channels is 64; F3 is input to the multi-type hole convolution feature extraction secondary submodule to extract the multi-scale deep industrial pointer instrument image features. The deep pointer instrument feature map F3 is processed in parallel by four hole convolutions with hole rates of 1, 3, 5 and 7 respectively, and the multi-scale depth feature maps R1, R2, R3 and R4 are obtained. The multi-scale deep feature map R4 is obtained, and then R1, R2, R3, R4 and the deep pointer instrument feature map F3 are connected and concatenated in the channel dimension (Concat operation). The size of the four feature maps R1, R2, R3 and R4 are 128×128 pixels, the number of channels is 64, and the multi-scale deep feature map F4 is obtained after the Concat operation. The size of F4 is 128×128 pixels and the number of channels is 32. After 1×1 convolution, the number of channels of the concatenated feature map is compressed to 64, and the multi-scale deep pointer instrument feature map F5 is obtained. The size of F5 is 256× 256 pixels, the number of channels is 64, and after a 3×3 convolution operation, the size becomes the same as F2, and a multi-scale deep pointer instrument feature map F5 is obtained. The size of F5 is 256×256 pixels, the number of channels is 64, and F5 is input into the pointer instrument detail feature information extraction secondary submodule; the multi-scale deep pointer instrument feature map F5 is input into the pointer instrument detail feature information enhancement secondary submodule to enhance the industrial pointer instrument detail feature information, and a detail feature information extraction feature map F6 is obtained in L1, the size of F6 is 256×256 pixels, and the number of channels is 64; In L2, the feature map F7 of detail feature information extraction is obtained. The size of F7 is 256×256 pixels and the number of channels is 64. F5, F6, F7 and F2 are concat-operated to obtain the feature map F8 of detail feature information extraction, which is then input into the two-line parallel attention module TPAM to obtain the semantic segmentation image of the pointer and scale. The size of the semantic segmentation image of the pointer and scale is 512×512 pixels and the number of channels is 1, that is, the final result of the IPRE-Net network is obtained (the background in the original industrial pointer instrument image is removed, and only the image of the pointer and scale is retained);
[0112] S2: Use the model training and verification first-level submodule to train and verify the industrial instrument fingerprint extraction network IPRE-Net. Specifically, based on the industrial instrument fingerprint extraction network IPRE-Net model constructed in S1, train and update the parameters of each layer; first initialize all neural network parameters and set model-related hyperparameters, including training rounds, batch size, weight decay coefficient, learning rate, and total number of iterations;
[0113] Wherein, S2 includes but is not limited to the following embodiments:
[0114] The industrial instrument fingerprint extraction network IPRE-Net is trained, and the whole training round is 100 epochs; the weight decay coefficient is set to 0.05, the learning rate is set to 0.0000001, the batch size is set to 4, the number of iterations in the first 50 epochs is 217, the number of iterations in the next 50 epochs is 292, and the total number of iterations is 25450. Mosaic data enhancement is enabled in each round, and the resolution of the input image is uniformly adjusted to 512×512 format; after initializing the parameters, the industrial pointer instrument training set and industrial pointer instrument verification set data processed by Step 1 are divided into multiple batches, and a batch of industrial pointers are added each time. The instrument training set data is input into IPRE-Net for training to obtain the training loss value loss of the batch; after completing one round of training for all batches of data in the entire pointer instrument training set (in the actual training process, there may be multiple rounds), the pointer instrument verification set is input into the industrial instrument finger extraction network IPRE-Net in batches to obtain the corresponding batch loss value batch_loss; during training and verification, IPRE-Net will automatically learn and adjust parameters according to each loss and batch_loss situation; when the training process has been carried out for one or more rounds until the batch_loss value converges, the IPRE-Net model training is completed;
[0115] S3: In the first-level submodule of pointer and scale extraction, the IPRE-Net algorithm model is applied to extract the semantic segmentation image of the pointer and scale. Specifically, after the IPRE-Net model of industrial instrument finger mark extraction network is trained, the IPRE-Net model is applied to automatically extract the pointer and scale in the industrial pointer instrument image, and extract the semantic segmentation image of the pointer and scale;
[0116] Among them, S3 includes but is not limited to the following embodiments:
[0117] In practical applications, the remote sensing image classification dataset collected by the camera is input, and then the remote sensing image classification dataset is constructed and input into the IPRE-Net network model, and the extraction result of the industrial pointer instrument is output, that is, the semantic segmentation image of the pointer and scale (that is, the background interference is removed and only the pointer and scale are retained).
[0118] The specific process of the industrial pointer instrument reading recognition module is as follows:
[0119] Step 1: Use Hough circle transform to calculate the center and radius of the circle in the semantic segmentation image of the pointer and scale;
[0120] Step 2: Get the deflection angle of the pointer;
[0121] Step 3: Calculate the relationship between the deflection angle of the pointer and the angle of the minimum scale line;
[0122] Step 4: Combine the relationship between the range and the angle to calculate the specific reading of the industrial pointer instrument;
[0123] Among them, Hough circle transform and angle method are both existing technologies; Hough circle transform is a popular method for detecting circles; by searching for circles that meet specified parameters in an image, using methods such as Canny edge detection, Hough circle transform is applied to detect circles in an image; the algorithm outputs the center coordinates and radius of each detected circle;
[0124] In addition, the industrial pointer instrument reading recognition module includes but is not limited to the following embodiments:
[0125] like Fig.10 As shown in the semantic segmentation image of the pointer and the scale, P is the pointer line, min is the minimum scale line, max is the maximum scale line, the angle between min and P is β, and the angle between max and P is α. The calculation formula of the pointer instrument reading R is:
[0126]
[0127] Assume that the coordinates of the circle center obtained by Hough circle transform are (x0, y0), the radius of the instrument dial is r, and the intersection points of P, min, and max with the scale boundary are (x P ,y P )、(x min ,y min ) and (x max ,y max ),but: use The pointer instrument reading R can be obtained;
[0128] Substitute specific values: In the industrial pointer instrument for measuring mass, the coordinates of the center of the circle are (0, 0), the radius of the instrument dial is 1, the intersection points of P, min and max with the scale boundary are (0, 1), (-1, -1) and (1, -1), min = 0kg, max = 180kg, and we get β = 135°, α = 135°, and finally get the pointer instrument reading;
[0129] That is, the corresponding industrial pointer instrument reading is 90kg.
[0130] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed in the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.
Claims
1. An industrial pointer instrument reading recognition system based on deep learning, characterized in that: include: The dataset construction and division module is used to construct and divide the industrial pointer instrument image dataset; Industrial pointer instrument reading extraction network module, used to extract the semantic segmentation image of the pointer and scale of the industrial pointer instrument; Industrial pointer instrument reading recognition module, used to read the semantic segmentation image of pointer and scale using Hough circle transform and angle method; The data set construction and division module is connected to the industrial pointer instrument reading extraction network module, and the industrial pointer instrument reading extraction network module is connected to the industrial pointer instrument reading recognition module.
2. According to the deep learning-based industrial pointer instrument reading recognition system of claim 1, it is characterized in that: The specific process of the data set construction and division module is as follows: Process 1: Construct an industrial pointer instrument image dataset: First, use a camera to collect industrial pointer instrument image data to form an industrial pointer instrument classification dataset; then adjust each image in the industrial pointer instrument classification dataset to a uniform size, and annotate the pointers and scales in each image of the industrial pointer instrument classification dataset to generate an industrial pointer instrument segmentation dataset; then convert the industrial pointer instrument segmentation dataset into a semantic segmentation dataset, and convert the RGB color label of each image in the semantic segmentation dataset into a corresponding single-channel digital label; finally, combine the industrial pointer instrument single-channel digital label with the industrial pointer instrument classification dataset to form an industrial pointer instrument image dataset; Process 2: Divide the industrial pointer instrument image dataset: divide the industrial pointer instrument image dataset constructed by S1 into a training set, a validation set, and a test set according to a certain ratio.
3. The industrial pointer instrument reading recognition system based on deep learning according to claim 1 is characterized in that: The industrial pointer instrument reading extraction network module is composed of a reading extraction network first-level submodule, a model training and verification first-level submodule and a pointer and scale extraction first-level submodule.
4. The industrial pointer instrument reading recognition system based on deep learning according to claim 3 is characterized in that: The first-level submodule of the reading extraction network is composed of a second-level submodule for extracting multi-residual small target features, a second-level submodule for extracting multi-type hole convolution features, and a second-level submodule for extracting pointer instrument detail feature information.
5. The industrial pointer instrument reading recognition system based on deep learning according to claim 4 is characterized in that: The specific process of the industrial pointer instrument reading extraction network module is as follows: S1: Use the first-level submodule of the reading extraction network to extract features from the industrial pointer instrument image dataset constructed by the dataset construction and partitioning module, and generate semantic segmentation images of the pointer and scale; S2: Use the model training and verification first-level submodule to train and verify the industrial instrument fingerprint extraction network IPRE-Net; S3: In the first-level sub-module of pointer and scale extraction, the IPRE-Net algorithm model is applied to extract the semantic segmentation images of pointers and scales.
6. The industrial pointer instrument reading recognition system based on deep learning according to claim 5 is characterized in that: The specific steps of S1 are as follows: S11: Use the multi-residual small target feature extraction secondary submodule to extract the shallow and deep features of the original pointer and scale; S12: Use multiple types of dilated convolution feature extraction submodules to extract multi-scale deep industrial pointer instrument image features; S13: Use the pointer instrument detail feature information extraction secondary submodule to extract the industrial pointer instrument detail feature information.
7. The industrial pointer instrument reading recognition system based on deep learning according to claim 6 is characterized in that: The specific steps of S11 are as follows: S111: The size of the original pointer instrument image is 512×512 pixels, and the number of channels is 3. After the original pointer instrument image is input into the multi-residual small target feature extraction secondary submodule, a convolution operation is first performed by a convolution kernel with a size of 1×1 and a number of channels of 32 to obtain a shallow pointer instrument feature map F1. The size of F1 is 256×256 pixels, and the number of channels is 32. After that, F1 is input into the feature fusion convolution block; S112: input the shallow pointer instrument feature map F1 into the feature fusion convolution block, firstly perform convolution operation by a convolution kernel of size 3×3 and padding 1, then process it through the ReLU activation function, then perform convolution operation by a convolution kernel of size 3×3 and padding 1, then concatenate it with F1 in the channel dimension, and finally use a convolution kernel of size 1×1 and padding 0 to adjust the number of channels, so as to obtain the shallow pointer instrument feature map F2; S113: Perform spatial feature compression on the shallow pointer instrument feature map F2, that is, use average pooling and maximum pooling in parallel to process F2 in the spatial dimension to obtain a one-dimensional vector of length C, and then perform one-dimensional convolution C1D on the one-dimensional vector. t After processing, the weight w of each channel is obtained through the Sigmoid activation function. Finally, the weight w is multiplied by F2 to obtain the deep pointer instrument feature map F3. The process is shown in the following formula (1): <h2 style=";text-align:left;direction:ltr">F3 = w⊙F2 = σ(C1D<h2 style=";text-align:left;direction:ltr"> t <h2 style=";text-align:left;direction:ltr"> (F<h2 style=";text-align:left;direction:ltr"> 3×3 <h2 style=";text-align:left;direction:ltr"> ([AvgPool(F2);MaxPool(F2)]))⊙F2 (1) Among them, AvgPool represents average pooling, MaxPool represents maximum pooling, and F 3×3 () indicates a convolution operation with a convolution kernel size of 3×3, C1D t represents a one-dimensional convolution with a kernel size of t, σ represents the Sigmoid activation function, ⊙ represents the element-wise product, and C1D t The role of is to generate channel weights, and t is adaptively determined according to the mapping of the number of channels c of the output feature: Where []odd represents the nearest odd number of the parameter, ω, β and γ are hyperparameters; Finally, the deep pointer instrument feature map F3 is input into the multi-class hole convolution feature extraction secondary submodule. The size of F3 is 128×128 pixels and the number of channels is 64.
8. The industrial pointer instrument reading recognition system based on deep learning according to claim 6 is characterized in that: The specific steps of S12 are as follows: S121: The deep pointer instrument feature map F3 is input into the multi-type dilated convolution feature extraction secondary submodule. F3 is first processed in parallel by four dilated convolutions, and the dilated rates of the four dilated convolutions are 1, 3, 5, and 7, respectively. Then, F3 is subjected to dilated convolution operations to obtain multi-scale depth feature maps R1, R2, R3, and R4, respectively. Finally, R1, R2, R3, R4, and F3 are concatenated in the channel dimension, where the sizes of R1, R2, R3, and R4 are all 128×128 pixels, and the number of channels is 64. S122: After concatenating R1, R2, R3, R4 and F3 in the channel dimension, the result is a multi-scale deep feature map F4, the size of F4 is 128×128 pixels, the number of channels is 32, and after F4 undergoes 1×1 convolution, the number of channels of F4 is compressed to 64. Finally, after 3×3 convolution, the result of the secondary sub-module of multi-type hole convolution feature extraction is obtained, that is, the multi-scale deep pointer instrument feature map F5, the size of F5 is 256×256 pixels, the number of channels is 64, and F5 is input into the secondary sub-module of pointer instrument detail feature information extraction.
9. The industrial pointer instrument reading recognition system based on deep learning according to claim 6 is characterized in that: The specific steps of S13 are as follows: S131: input F5 and F2 together to the pointer instrument detail feature information extraction secondary submodule, in which there are two processing routes, L1 and L2: in L1, F5 is processed by a 1×1 ordinary convolution and a Sigmoid activation function to obtain a detail feature information extraction feature map F6, the size of F6 is 256×256 pixels, and the number of channels is 64; in L2, F5 is processed by a 3×3 size, a hole rate of 2 hole convolution and a Sigmoid activation function to obtain a detail feature information extraction feature map F7, the size of F7 is 256×256 pixels, and the number of channels is 64; S132: Connect the shallow pointer instrument feature map F2, the detail feature information extraction feature map F6, the detail feature information extraction feature map F7 and the multi-scale deep pointer instrument feature map F5 and splice them in the channel dimension to obtain the detail feature information extraction feature map F8, the size of F8 is 256×256 pixels, the number of channels is 256, and then F8 is input into the dual-line parallel attention three-level sub-module TPAM; S133: In the two-line parallel attention three-level sub-module TPAM, the detail feature information extraction feature map F8 is bilinearly reshaped, the size is adjusted to 512×512 pixels, and the number of channels is adjusted to 256, so as to obtain the detail feature information extraction feature map F9; S134: After bilinear reshaping, average pooling and maximum pooling are performed in parallel, followed by double 1×1 convolution operations, addition, and finally Sigmoid activation function operations to obtain detail feature information extraction feature map F10. The size of F10 is 512×512 pixels and the number of channels is 256. The formula for obtaining F10 from F9 is as follows: F10=σ(B1(Avg(F9))+B2(Max(F9))) (3) Among them, Avg() represents average pooling, Max() represents maximum pooling, B1() and B2() represent the convolution combination operation of two convolution kernels of size 1×1, and σ represents the Sigmoid activation function; S135: performing a convolution operation on the detail feature information extraction feature map F10, wherein the convolution kernel size of the convolution operation is 1×1, and obtaining a semantic segmentation image of the pointer and the scale, wherein the semantic segmentation image size of the pointer and the scale is 512×512 pixels, and the number of channels is 1.
10. The industrial pointer instrument reading recognition system based on deep learning according to claim 1 is characterized in that: The specific process of the industrial pointer instrument reading recognition module is as follows: Step 1: Use Hough circle transform to calculate the center and radius of the circle in the semantic segmentation image of the pointer and scale; Step 2: Get the deflection angle of the pointer; Step 3: Calculate the relationship between the deflection angle of the pointer and the angle of the minimum scale line; Step 4: Combine the relationship between the range and the angle to calculate the specific reading of the industrial pointer instrument.
Citation Information
Patent Citations
Method for carrying out real-time identification by pointer-type round single instrument panel of mobile equipment
CN107066998A
Instrument pointer count reading method based on machine vision, and medium
CN113657339A
Method for extracting high-resolution remote sensing building
CN115661662A
Adaptive Auto Meter Detection Method based on Character Segmentation and Cascade Classifier
US20190095739A1
Cited By
Power grid operator safety helmet wearing detection method and device, computer equipment, readable storage medium and program product
CN120823453A
Power grid operator safety helmet wearing detection method and device, computer equipment, readable storage medium and program product
CN120823453B