A dual-view image recognition method based on improved moment and BP neural network
Through the improved octonion polar coordinate complex exponential transformation and BP neural network, combined with the fast Fourier transform, the problem of information redundancy and calculation error in dual-view image recognition is solved, and more efficient and accurate image feature extraction and Recognition improves the accuracy and robustness of image recognition.
Patent Information
- Application Number
- CN202410804331.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Existing image moment technology has information redundancy and calculation errors when processing dual-view images, and cannot effectively process multi-channel images, resulting in low image recognition accuracy. Support vector machines also face memory and computing resources in large-scale image data processing. Challenge, lack of mature dual-view image recognition scheme.
The improved octonion polar coordinate complex exponential transform combined with the fast Fourier transform is used to extract dual-view image features and input them into the BP neural network for identification. The invasive weed optimization algorithm is used for feature selection and training. Cross-entropy loss function for image classification.
It improves the calculation accuracy and speed of image features, enhances the robustness against geometric attacks such as rotation and scaling, provides richer contextual information, and improves the accuracy and efficiency of image recognition.
Smart Images

Figure CN118379561B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of image processing, and in particular to a dual-viewing image recognition method based on improved moments and BP neural network. Background Art
[0002] With the development of the Internet, mobile devices and sensor technology, a large amount of image data is generated and stored, which needs to be processed and analyzed effectively. Image recognition technology can realize automatic analysis and understanding of images, help people obtain and understand image information more quickly, and assist decision-making and analysis. At present, non-orthogonal moments and gray-level co-occurrence matrix technologies have been widely used for image feature extraction, and support vector machines have been widely used for image recognition classification. However, the technology used for image feature extraction has problems such as information redundancy in the acquired image features and inability to process multi-channel images. Support vector machines may face challenges in memory and computing resources when processing large-scale image data. The emergence of hypercomplex continuous orthogonal moment technology and BP neural network has provided new ideas for the problem of image recognition accuracy and has become a hot area of current research.
[0003] Ordinary image moment technology projects the image function onto the basis function to obtain a set of coefficients, and uses the coefficients as image features for image recognition. However, traditional image moments have information redundancy and calculation errors occur during the calculation process, resulting in insufficient stability of the obtained image features, which affects the accuracy of image recognition. At present, there are grayscale images and color images in the research of image recognition. However, there is no mature solution for the image recognition research of dual-view images. Multi-dual-view images refer to two or more images obtained from different positions or angles, which can capture different perspectives of the same scene or object. Such images are usually used in the fields of computer vision and image processing to extract richer information and solve some specific problems. They are widely used in virtual reality, augmented reality, medical imaging and other fields. Research in the field of dual-view images is very extensive, but there is no effective image recognition technology to analyze them.
[0004] Traditional image moment technology has information redundancy in the calculation process and seems helpless when processing multi-channel images. In the calculation process, there are calculation errors that affect the performance of image moments. Support vector machine technology may face challenges in memory and computing resources when processing large-scale image data, especially when the dimension is very high, and the efficiency is low. At present, image recognition research has grayscale images and color images. However, there is no mature solution for the research of image recognition of dual-view images.
[0005] Pattern recognition technology is always used in life and many scientific fields. As the foundation of artificial intelligence, it has huge development space and plays a very important role in the information society. Multi-distortion invariant pattern recognition is an important research direction, and using multi-distortion invariant image features to describe images is one of the key issues. Image moment is a very effective multi-distortion invariant image feature, so the algorithm of image moment and how to use image moment to achieve multi-distortion invariant image recognition in multi-distortion invariant pattern recognition are important research contents. At present, the research on image moment includes exponential moment, circular harmonic-Fourier moment, Jacobi-Fourier moment, etc. There are many problems with these traditional moments. They cannot process multi-channel images and have the disadvantages of low calculation accuracy and slow calculation time, which leads to low accuracy of image recognition as image features. In order to solve the above problems, we apply fast Fourier transform to octonion polar coordinate complex exponential transform to form an improved octonion polar coordinate complex exponential transform, which improves the calculation accuracy and speed of the moment and allows it to describe image features more accurately. The improved hypercomplex polar coordinate complex exponential transform can effectively resist various noise attacks, conventional attacks such as filtering attacks, and geometric attacks such as rotation and scaling. It has good robustness and is a stable image feature. In the image recognition process, feature extraction and selection are one of the focuses of this technology, and the accuracy of feature selection will directly affect the recognition rate. BP neural network is a deep learning model that is widely used in image recognition and computer vision tasks. It performs well in the field of image recognition because it can effectively process the features of image data. The image recognition method of improved octonion polar coordinate complex exponential transform and BP neural network can increase feature representation and solve problems such as occlusion and deformation, thereby improving the performance of image recognition.
[0006] At present, there is still a lack of a method to combine the fast Fourier transform technology with the octonion polar coordinate complex exponential transform to obtain image features for use in the BP neural network to realize the recognition of dual-view images. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a dual-view image recognition method based on improved moments and BP neural network, which can better understand the spatial structure and positional relationship of objects in the image, provide richer contextual information for image recognition, and improve the accuracy of image recognition.
[0008] The present invention adopts the following technical solutions to achieve the invention objectives:
[0009] A dual-view image recognition method based on improved moment and BP neural network, characterized by comprising the following steps:
[0010] S1: collect dual-view images;
[0011] S2: Image preprocessing, input dual-view images Preprocessing, using Mosaic, Mixup, photometric distortion and geometric distortion Preprocessing to obtain image ;
[0012] S3: Feature extraction: IOPCET calculation of pre-processed dual-view images The maximum moment order is The moment value of , which is the image feature of the dual-view image;
[0013] S4: Feature selection: Use the invasive weed optimization algorithm to select the dual-view image features calculated by IOPCET, and select the features with large information content and important for effective identification;
[0014] S5: Image classification and recognition: Use BP neural network as the identifier of image recognition and extract image feature vectors using invasive weed optimization algorithm Construct and train the network to obtain output results;
[0015] S6: Performance evaluation: Evaluate the classification and recognition results, using the root mean square error as the accuracy indicator and the recognition speed as the performance indicator.
[0016] As a further limitation of the present technical solution, for polar coordinate images , whose polar coordinate complex exponential is defined as follows:
[0017] (1);
[0018] in: is the polar coordinate complex exponential transform PCET;
[0019] is the polar coordinate image radius;
[0020] is the order, ;
[0021] For repeatability, ;
[0022] for conjugation of;
[0023] is the radial basis function;
[0024] is the imaginary part of the calculation;
[0025] (2);
[0026] exist The orthogonality relationship can be expressed as:
[0027] (3);
[0028] in: is the radial basis function;
[0029] The order is The radial basis function of
[0030] for conjugation of;
[0031] is the Kronecker function;
[0032] The basis functions of PCET are defined as:
[0033] (4);
[0034] Angular Fourier factor The conjugation property and the orthogonality of the radial basis function can be deduced that the basis function They are orthogonal within the unit circle, and their orthogonality relationship can be expressed as:
[0035] (5);
[0036] in: The repetition rate is The order is The radial basis function, for The conjugate of , is the Kronecker symbol,
[0037] , , is the normalization factor;
[0038] To calculate PCET in the unit circle, replace the radius of the unit circle with and angle Divide into parts, so the unit circle is divided into sub-regions, and the initial position of each sub-region is:
[0039] (6);
[0040] Polar Coordinates Image The PCET is:
[0041] (7);
[0042] in , , then the above formula becomes:
[0043] (8);
[0044] make , ,but:
[0045] (9);
[0046] in: stands for Fast Fourier Transform;
[0047] represents the order;
[0048] Represents repetitiveness;
[0049] Complex numbers can be extended to eight dimensions and are called octonions, which consist of one real part and seven imaginary parts:
[0050] (10);
[0051] in: is the real part;
[0052] is an imaginary unit;
[0053] A dual-view image It can be expressed as a set of pure octonions. The specific expression method is as follows:
[0054] (11);
[0055] in: for The polar coordinate form of
[0056] Represents dual-view images The red, green and blue components of the 2 viewing angles;
[0057] The improved octonion polar coordinate complex exponential transform is constructed based on the octonion polar coordinate complex exponential transform and the fast Fourier transform method, because the multiplication of octonions does not satisfy the commutative law, and and are both octonions, so there are two ways to define IOPCET:
[0058] (12);
[0059] (13);
[0060] in: is the radial basis function of IOPCET, is a unit pure octonion, which can be expressed as:
[0061] (14)
[0062] The same set of images The right IOPCET and left IOPCET can be derived from each other, and their relationship can be expressed as:
[0063] (15);
[0064] because is a pure octonion matrix, then ,so:
[0065] (16);
[0066] The improved octonion polar coordinate complex exponential transform is applied to BP neural network to recognize dual-view images.
[0067] As a further limitation of the present technical solution, the formula for feature selection in S4 is:
[0068] (17);
[0069] in: Indicates the number of seeds generated;
[0070] is the maximum number of seeds;
[0071] is the minimum number of seeds, which is an adjustable parameter;
[0072] is the current individual fitness value;
[0073] is the maximum fitness value in the current population;
[0074] is the minimum fitness value in the current population.
[0075] As a further limitation of the present technical solution, the cross entropy loss function used in S5 is:
[0076] (18);
[0077] in: is the true label;
[0078] is the predicted output;
[0079] is the number of categories;
[0080] For category.
[0081] Compared with the prior art, the advantages and positive effects of the present invention are as follows: the present invention proposes an improved dual-view image recognition method of octonion polar coordinate complex exponential transformation and BP neural network, uses the improved hypercomplex continuous orthogonal moment technology to extract features from dual-view images, and then imports the BP neural network to send these features to the fully connected layer for recognition, thereby completing the task of dual-view image recognition. The improved octonion polar coordinate complex exponential transformation has high efficiency calculation, extremely high precision, and strong stability. It is an excellent image feature, which can effectively resist geometric attacks such as rotation, scaling, shearing, aspect ratio change, and various noise attacks and filtering attacks, and has good robustness. The dual-view image provides multiple perspectives from different angles or positions, and these perspectives contain rich object feature information. By comprehensively utilizing this information, a more comprehensive and accurate feature representation can be obtained. The dual-view image can simulate human binocular vision, has a stereoscopic effect, and helps to provide more accurate depth information. Through depth perception, the spatial structure and positional relationship of objects in the image can be better understood, providing richer contextual information for image recognition, and improving the accuracy of image recognition. The present invention uses an improved hypercomplex continuous orthogonal moment technology for dual-view image feature extraction to improve the calculation accuracy and speed of the moment, so that it can more accurately describe the image features. The BP neural network is introduced to use the excellent image features to identify the dual-view image to obtain the image recognition result. When the improved octonion polar coordinate complex exponential transformation is used to calculate the moment values of the dual-view image and the image to be verified, there will be shortcomings such as slow time and low precision. The inventor uses the fast Fourier transform method to greatly improve the speed and precision of calculating the moment value. The combination of the octonion polar coordinate complex exponential transformation and the fast Fourier transform is called the improved octonion polar coordinate complex exponential transformation. The improved octonion moment has efficient calculation, extremely high precision, strong stability and excellent image reconstruction ability, which is an excellent image feature. The BP neural network is introduced to reduce the feature dimension through pooling operation, and these features are sent to the fully connected layer for classification and recognition to complete the image recognition task, and the accuracy of image recognition can be well improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 This is a flow chart of image recognition of dual-view images of the present invention. DETAILED DESCRIPTION
[0083] A specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation.
[0084] The present invention comprises the following steps:
[0085] S1: collect dual-view images;
[0086] S2: Image preprocessing, input dual-view images Preprocessing, using Mosaic (data enhancement), Mixup (mixed class enhancement), photometric distortion and geometric distortion Preprocessing to obtain image ;
[0087] S3: Feature extraction: IOPCET (Improved Octonion Polar Coordinate Complex Exponential Transform) computes the pre-processed dual-view image The maximum moment order is The moment value of , which is the image feature of the dual-view image;
[0088] For polar coordinate images , whose polar coordinate complex exponential is defined as follows:
[0089] (1);
[0090] in: is the polar coordinate complex exponential transform PCET;
[0091] is the polar coordinate image radius;
[0092] is the order, ;
[0093] For repeatability, ;
[0094] for conjugation of;
[0095] is the radial basis function;
[0096] is the imaginary part of the calculation;
[0097] (2);
[0098] exist The orthogonality relationship can be expressed as:
[0099] (3);
[0100] in: is the radial basis function;
[0101] The order is Radial basis function;
[0102] for conjugation of;
[0103] is the Kronecker function;
[0104] The basis functions of PCET are defined as:
[0105] (4);
[0106] Angular Fourier factor The conjugation property and the orthogonality of the radial basis function can be deduced that the basis function They are orthogonal within the unit circle, and their orthogonality relationship can be expressed as:
[0107] (5);
[0108] in: The repetition rate is The order is The radial basis function, for The conjugate of , is the Kronecker symbol,
[0109] , , is the normalization factor;
[0110] To calculate PCET in the unit circle, replace the radius of the unit circle with and angle Divide into parts, so the unit circle is divided into sub-regions, and the initial position of each sub-region is:
[0111] (6);
[0112] Polar Coordinates Image The PCET is:
[0113] (7);
[0114] in , , then the above formula becomes:
[0115] (8);
[0116] make , ,but:
[0117] (9);
[0118] in: stands for Fast Fourier Transform;
[0119] represents the order;
[0120] Represents repetitiveness;
[0121] Complex numbers can be extended to eight dimensions and are called octonions, which consist of one real part and seven imaginary parts:
[0122] (10);
[0123] in: is the real part;
[0124] is an imaginary unit;
[0125] A dual-view image It can be expressed as a set of pure octonions. The specific expression method is as follows:
[0126] (11);
[0127] in: for The polar coordinate form of
[0128] Represents dual-view images The red, green and blue components of the 2 viewing angles;
[0129] The improved octonion polar coordinate complex exponential transform is constructed based on the octonion polar coordinate complex exponential transform and the fast Fourier transform method, because the multiplication of octonions does not satisfy the commutative law, and and are both octonions, so there are two ways to define IOPCET:
[0130] (12);
[0131] (13);
[0132] in: is the radial basis function of IOPCET, is a unit pure octonion, which can be expressed as:
[0133] (14)
[0134] The same set of images The right IOPCET and left IOPCET can be derived from each other, and their relationship can be expressed as:
[0135] (15);
[0136] because is a pure octonion matrix, then ,so:
[0137] (16);
[0138] The improved octonion polar coordinate complex exponential transform is applied to BP neural network to recognize dual-view images.
[0139] S4: Feature selection: Use the invasive weed optimization algorithm to select the dual-view image features calculated by IOPCET, and select the features with large information content and important for effective identification;
[0140] The formula for feature selection in S4 is:
[0141] (17);
[0142] in: Indicates the number of seeds generated;
[0143] is the maximum number of seeds;
[0144] is the minimum number of seeds, which is an adjustable parameter;
[0145] is the current individual fitness value;
[0146] is the maximum fitness value in the current population;
[0147] is the minimum fitness value in the current population.
[0148] S5: Image classification and recognition: Use BP neural network as the recognizer for image recognition, and use the image feature vector extracted by the invasive weed optimization algorithm to construct and train the network to obtain the output result.
[0149] The cross entropy loss function used in S5 is:
[0150] (18);
[0151] in: is the true label;
[0152] is the predicted output;
[0153] is the number of categories;
[0154] For category.
[0155] S6: Performance evaluation: Evaluate the classification and recognition results, using the root mean square error (RMSE) as the accuracy indicator and the recognition speed as the performance indicator. Based on the evaluation results, optimize and adjust the system to improve recognition accuracy and efficiency.
[0156] The above disclosure is only a specific embodiment of the present invention, but the present invention is not limited thereto, and any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.
Claims
1. A dual-view image recognition method based on improved moment and BP neural network, It is characterized in that The following steps are involved: S1: collect dual-view images; S2: Image preprocessing, input dual-view images Preprocessing, using Mosaic, Mixup, photometric distortion and geometric distortion Preprocess and obtain the image ; S3: Feature extraction: IOPCET calculation of pre-processed dual-view images The maximum moment order is The moment value of , which is the image feature of the dual-view image; S4: Feature selection: Use the invasive weed optimization algorithm to select the dual-view image features calculated by IOPCET, and select the features with large information content and important for effective identification; S5: Image classification and recognition: Use BP neural network as the identifier of image recognition and extract image feature vectors using invasive weed optimization algorithm Construct and train the network to obtain output results; S6: Performance evaluation: Evaluate the classification and recognition results, using the root mean square error as the accuracy index and the recognition speed as the performance index; For polar coordinate images , whose polar coordinate complex exponential is defined as follows: (1); in: is the polar coordinate complex exponential transform PCET; is the polar coordinate image radius; is the order, ; For repeatability, ; for conjugation of; is the radial basis function; is the imaginary part of the calculation; (2); exist The orthogonality relationship can be expressed as: (3); in: is the radial basis function; The order is The radial basis function of for conjugation of; is the Kronecker function; The basis functions of PCET are defined as: (4); Angular Fourier factor The conjugation property and the orthogonality of the radial basis function can be deduced that the basis function They are orthogonal within the unit circle, and their orthogonality relationship can be expressed as: (5); in: The repetition rate is The order is The radial basis function, for The conjugate of , is the Kronecker symbol, , , is the normalization factor; To calculate PCET in the unit circle, replace the radius of the unit circle with and angle Divide into parts, so the unit circle is divided into sub-regions, and the initial position of each sub-region is: (6); Polar Coordinates Image The PCET is: (7); in , , then the above formula becomes: (8); make , ,but: (9); in: stands for Fast Fourier Transform; represents the order; Represents repetitiveness; Complex numbers can be extended to eight dimensions and are called octonions, which consist of one real part and seven imaginary parts: (10); in: is the real part; is an imaginary unit; A dual-view image It can be expressed as a set of pure octonions. The specific expression method is as follows: (11); in: for The polar coordinate form of Represents dual-view images The red, green and blue components of the 2 viewing angles; The improved octonion polar coordinate complex exponential transform is constructed based on the octonion polar coordinate complex exponential transform and the fast Fourier transform method, because the multiplication of octonions does not satisfy the commutative law, and and are both octonions, so there are two ways to define IOPCET: (12); (13); in: is the radial basis function of IOPCET, is a unit pure octonion, which can be expressed as: (14); The same set of images The right IOPCET and left IOPCET can be derived from each other, and their relationship can be expressed as: (15); because is a pure octonion matrix, then ,so: (16); The improved octonion polar coordinate complex exponential transform is applied to BP neural network to recognize dual-view images.
2. According to the dual-view image recognition method based on improved moment and BP neural network in claim 1, Features: The formula for feature selection in S4 is: (17); in: Indicates the number of seeds generated; is the maximum number of seeds; is the minimum number of seeds, which is an adjustable parameter; is the current individual fitness value; is the maximum fitness value in the current population; is the minimum fitness value in the current population.
3. The dual-view image recognition method based on improved moment and BP neural network according to claim 1, Features: The cross entropy loss function used in S5 is: (18); in: is the true label; is the predicted output; is the number of categories; For category.
