A roller conveyor deviation detection method and system

Through the combination of multi-view comparative learning, energy conservation condition neural network, quantum tunneling strategy and annealing strategy, the inefficiency and inaccuracy problems of the existing roller offset detection method are solved, and the roller offset is realized. Efficient and accurate detection.

CN118587510BActive Publication Date: 2024-09-27HUZHOU MENGTAI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411046382.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-09-27
Estimated Expiration
2044-08-01

AI Technical Summary

Technical Problem

Existing roller offset detection methods have low detection efficiency, insufficient accuracy, and cannot be monitored in real time. It is especially difficult to effectively detect subtle offsets in the complex environment of industrial sites.

Method used

The generative adversarial network of multi-view comparative learning is used for data expansion, the neural network based on simulated energy conservation conditions is used to extract features, the self-encoding neural network of the quantum tunneling strategy is used for feature dimensionality reduction, and the overfinite learning machine of the annealing strategy is used for classification. , forming a comprehensive roller conveyor offset detection method and system.

Benefits of technology

It improves the generalization ability of the model, the ability to process complex data, the effectiveness of feature dimensionality reduction, and the accuracy and robustness of classification, achieving efficient and accurate detection of roller deflection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587510B
    Figure CN118587510B
Patent Text Reader

Abstract

This invention discloses a method and system for detecting roller conveyor offset. The method includes acquiring roller images of a conveyor belt in operation using a camera; augmenting the data using a generative adversarial network based on multi-view contrastive learning; inputting the augmented data into a feature extraction model for training; subsequently training a feature dimensionality reduction model; and using the trained feature extraction model, data dimensionality reduction model, and classifier model to detect offset in the acquired roller images of the conveyor belt in operation. This invention solves the problem of insufficient training samples in traditional supervised learning, enhances the model's generalization ability, extracts subtle features from image data, improves the traditional over-limit learning machine algorithm, dynamically adjusts weights and bias parameters, and improves classification accuracy and robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of roller detection, and in particular to a roller conveying deviation detection method and system. Background Art

[0002] In modern industrial production, the conveyor belt system is an indispensable part of material handling, and its running stability is directly related to production efficiency and product quality. As the key supporting component of the conveyor belt, the accuracy of the roller position is crucial to the smooth operation of the entire conveying system. However, due to factors such as mechanical wear, installation errors or external impacts, the roller may be offset, which will not only affect the conveying efficiency, but also cause material accumulation, blockage and even equipment damage, resulting in production interruption and economic losses.

[0003] In the existing technology, roller deviation detection methods mostly rely on manual inspection or simple sensor detection. These methods have problems such as low detection efficiency, insufficient accuracy or inability to monitor in real time. In addition, due to the complex industrial field environment, variable image acquisition conditions, and the subtlety of roller deviation, traditional image recognition algorithms face challenges in practical applications. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In order to solve the above technical problems, the present invention provides a roller conveyor deviation detection method and system.

[0006] (II) Technical solution

[0007] In order to solve the above-mentioned technical problems and achieve the purpose of the invention, the present invention is implemented by the following technical solutions:

[0008] A roller conveyor deviation detection method, characterized in that it comprises the following steps:

[0009] S1, data collection and annotation, based on the high-resolution camera, the roller image data of the conveyor belt is collected regularly and the image is annotated;

[0010] S2. Data expansion. Specifically, sample generation based on a generative adversarial network based on multi-view contrastive learning is used for data expansion.

[0011] S3. Feature extraction model training, specifically, a neural network based on simulated energy conservation conditions is used as a feature extraction model;

[0012] S4, feature dimension reduction model training, inputting the feature-extracted data into the feature dimension reduction model for training the feature dimension reduction model, specifically, using an autoencoder neural network algorithm based on a quantum tunneling strategy as the feature dimension reduction model;

[0013] S5, classifier model training, inputting the dimension-reduced data into the classifier for classifier training, specifically, training the classifier using an extreme learning machine classification algorithm based on an annealing strategy;

[0014] S6. Roller conveyor offset detection and identification: Use the trained model to process new samples and obtain the final classification results to realize the detection of roller conveyor offset.

[0015] Furthermore, the image is annotated according to whether the conveyor belt roller is offset, and the annotated categories include two categories: "normal" and "offset".

[0016] Furthermore, the generative adversarial network algorithm based on multi-view contrastive learning includes the following steps:

[0017] S201, initializing network parameters of the generator and the discriminator, wherein the parameters include weights and biases;

[0018] S202, in each training cycle, the generator attempts to generate new image data according to the current network parameters and the selected comparison samples, and the training process is achieved by minimizing the loss function;

[0019] S203, using multi-relation graph attention mechanism to dynamically adjust the focus and prioritize key features;

[0020] S204, the discriminator classifies the generated image and the real image;

[0021] S205, calculating the adversarial loss and contrast loss between the generated image and the real image, and updating the network parameters of the generator and the discriminator according to this composite loss;

[0022] S206: Repeat the above steps until a preset stop iteration condition is met.

[0023] Furthermore, the loss function in step S202 is calculated as follows:

[0024] , In the formula, Express expectations, It means that it obeys a specific distribution. represents the distribution of the original data set, express The real data of the corresponding category, represents the set of all categories, is the loss function of the generator, is the contrast loss term, is the real image data, is the random noise of the input, is the regularization parameter, represents the L2 norm, is the discriminator function, is a generator function.

[0025] Furthermore, the neural network algorithm training based on the simulated energy conservation condition includes the following steps:

[0026] S301, initializing the weights and biases of the neural network;

[0027] S302, the input roller image data is processed by an activation function at each layer, and the output of each layer is calculated using the weighted input and the activation function;

[0028] S303, dynamically adjusting the weights of each layer of the network according to the simulated energy conservation condition;

[0029] S304, calculating a loss function according to the deviation between the actual roller position and the network predicted position;

[0030] S305. At the end of each training cycle, the update weight and bias of the network weights are adjusted according to the loss function value of the cycle;

[0031] S306: Repeat the above steps until a preset stop iteration condition is met.

[0032] Furthermore, the step S304 includes:

[0033] According to the simulated energy conservation condition, the energy of each layer output is defined in the neural network , expressed as:

[0034] In the formula, It is Tier The output of a neuron;

[0035] The energy of each layer is set equal to the previous layer to simulate energy conservation, expressed as:

[0036] Dynamically adjust the weights of each layer of the network. The weight adjustment strategy is expressed as: In the formula, It is Tier Line The weight of the column, is the target energy value.

[0037] Furthermore, the self-encoding neural network algorithm based on quantum tunneling strategy includes the following steps:

[0038] S401, initializing the weights and biases of the autoencoder network using a quantum coding method;

[0039] S402, during the forward propagation process, the input data generates a potential representation through the encoder;

[0040] S403, the decoder reconstructs data from the potential representation and further calculates the reconstruction error;

[0041] S404, based on the calculated total loss, updating the network parameters through the back propagation algorithm;

[0042] S405, repeat the above steps until a preset stop iteration condition is met.

[0043] Furthermore, the step S403 further includes:

[0044] The reconstruction error Quantization-based regularization term Calculation, expressed as: In the formula, is the input, pz is the generated potential representation, is the decoder function, , is the regularization coefficient, represents the quantum regularization term.

[0045] Furthermore, the training process of the extreme learning machine classification algorithm based on the annealing strategy is as follows:

[0046] S501, randomly initialize the weights and biases of the extreme learning machine;

[0047] S502, inputting the feature data after dimension reduction into an extreme learning machine, and calculating the output of the hidden layer and the final classification result by forward propagation;

[0048] S503, calculating the system capability according to the classification performance of the current model;

[0049] S504, under the simulated annealing strategy, accepting a configuration with higher capability with a certain probability to escape from the local optimal solution;

[0050] S505, performing annealing update;

[0051] S506, using a dynamic weight adjustment mechanism to adjust the weights, evaluating the classification performance after each iteration and adjusting the weights accordingly;

[0052] S507, repeat the above steps until a preset stop iteration condition is met.

[0053] The present invention also provides a roller conveying deviation detection system, which comprises:

[0054] The data acquisition and annotation module is used to collect the image data of the rollers in the conveyor belt at regular intervals based on a high-resolution camera and to annotate the images;

[0055] A data expansion module, which is used to generate samples based on a generative adversarial network based on multi-view contrastive learning to achieve data expansion;

[0056] A feature extraction model training module is used to input the expanded data into the feature extraction model for training the feature extraction model; specifically, a neural network based on a simulated energy conservation condition is used as a feature extraction model to extract subtle features for roller conveyor deviation detection in the image data;

[0057] A feature dimension reduction model training module is used to input the feature extracted data into the feature dimension reduction model to train the feature dimension reduction model. Specifically, an autoencoder neural network algorithm based on quantum tunneling strategy is used as the feature dimension reduction model.

[0058] A classifier model training module, which is used to input the reduced-dimensional data into the classifier for classifier training, specifically, based on the training of the extreme learning machine classification algorithm based on the annealing strategy;

[0059] The roller conveyor deviation detection and identification module is used to process new samples using the trained model and obtain the final classification results to realize the detection of roller conveyor deviation.

[0060] (III) Beneficial effects

[0061] Compared with the prior art, the present invention has the following beneficial effects:

[0062] 1. The present invention adopts a generative adversarial network algorithm based on multi-view contrastive learning, which solves the problem of insufficient number of training samples in traditional supervised learning and enhances the generalization ability of the model.

[0063] 2. The present invention utilizes a neural network based on simulated energy conservation conditions to extract subtle features in image data and improve the model's ability to process complex or noisy input data.

[0064] 3. The present invention realizes effective dimensionality reduction of high-dimensional data through an autoencoding neural network algorithm based on quantum tunneling strategy, optimizes data representation, and improves the effectiveness of feature dimensionality reduction.

[0065] 4. The present invention adopts an extreme learning machine classification algorithm based on annealing strategy, improves the traditional extreme learning machine algorithm, dynamically adjusts weight and bias parameters, and improves the accuracy and robustness of classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0067] Figure 1 It is a schematic diagram of the steps of a roller conveyor deviation detection method according to an embodiment of the present application;

[0068] Figure 2 It is a schematic diagram of a neural network algorithm flow based on a simulated energy conservation condition according to an embodiment of the present application. DETAILED DESCRIPTION

[0069] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0070] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0071] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0072] See also Figure 1 , a roller conveyor deviation detection method comprises the following steps:

[0073] S1. Data collection and annotation

[0074] Based on the high-resolution camera, the image data of the rollers in the conveyor belt are collected regularly and the images are annotated.

[0075] Specifically, the collected image data is stored in JPEG format, and the resolution of each image is 1920x1080 pixels.

[0076] The high-resolution camera is arranged beside the conveyor belt.

[0077] Specifically, the data is annotated manually, that is, the annotator annotates the image according to whether the conveyor belt roller is offset, and the annotated categories include "normal" and "offset".

[0078] S2. Data expansion

[0079] The collection, acquisition, labeling and preprocessing of training data are time-consuming and labor-intensive, and insufficient training samples can easily lead to poor generalization ability of the model and affect the accuracy of the model.

[0080] The present invention adopts a generative adversarial network based on multi-view contrastive learning to generate samples, thereby realizing data expansion. The generative adversarial network algorithm based on multi-view contrastive learning is based on a generative adversarial network, in which the generator bG is responsible for generating new image data and the discriminator bD is responsible for evaluating the authenticity of the image. Furthermore, the present invention adopts a multi-relational graph attention mechanism, allowing the generator to consider the correlation between different images and the importance of features when generating new images, thereby improving the quality and relevance of the generated images.

[0081] Specifically, the training process of the generative adversarial network algorithm based on multi-view contrastive learning is as follows:

[0082] S201, Initialize Generator and the discriminator The network parameters are set are the initial parameters of the generator and the discriminator respectively.

[0083] Furthermore, a batch of images are randomly selected from the existing dataset as the benchmark, and then images from multiple perspectives are selected to generate comparison samples. represents the benchmark image set, represents the comparison sample set, and They represent the number of benchmark images and the number of comparison samples respectively.

[0084] Preferably, the generator and the discriminator The initial parameter setting uses uniform distribution random initialization, and the range is set to [-0.05, 0.05]; the benchmark image set and comparison sample set Size and Set them to 100 and 300 respectively.

[0085] S202. In each training cycle, the generator According to the current network parameters and the selected comparison samples, try to generate new image data. The training process minimizes the loss function. The implementation is expressed as:

[0086] ,

[0087] In the formula, Express expectations, It means that it obeys a specific distribution. represents the distribution of the original data set, express The real data of the corresponding category, represents the set of all categories, is the loss function of the generator, is the contrast loss term, is the real image data, is the random noise of the input, is the regularization parameter, represents the L2 norm, is the discriminator function, is a generator function. Preferably, Set to 0.3.

[0088] Furthermore, the calculation method of the contrast loss term is expanded as follows:

[0089]

[0090] In the formula, Indicates the first feature dimensions, is the value of the generated image in this dimension.

[0091] S203, using a multi-relationship graph attention mechanism to dynamically adjust the focus and prioritize key features. In one embodiment, the attention weight matrix To achieve dynamic adjustment of attention, the update method of the matrix is ​​expressed as:

[0092]

[0093] In the formula, represents the attention weight matrix, and are the projections of the query and the key respectively, is the dimension of the key, The function is used for normalization to ensure the reasonable distribution of weights. Preferably, Set to 64.

[0094] Further, and The calculation method is:

[0095] ,

[0096] In the formula, and is the learned weight matrix used to map hidden states to the space of queries and keys; It is the hidden layer feature obtained from the previous layer of the network.

[0097] S204, Discriminator Classify the generated images and real images, trying to distinguish which ones are generated and which ones are real. The training process minimizes the loss function The implementation is expressed as:

[0098] In the formula, Express expectations, It means that it obeys a specific distribution. represents the distribution of the original data set, represents the random noise distribution, express The real data of the corresponding category, is the loss function of the discriminator, and are the probability distributions of real data and input noise respectively, is the real image data, is the random noise of the input.

[0099] S205. Calculate the adversarial loss and contrast loss between the generated image and the real image. Update the network parameters of the generator and the discriminator based on this composite loss. The optimization process can be expressed as:

[0100] ,

[0101] In the formula, and are the parameters of the generator and discriminator at time t+1, and are the parameters of the generator and discriminator at time t, is the dynamic adjustment factor, and are the learning rates of the generator and the discriminator, respectively. represents the gradient calculation, is the gradient of the generator, is the gradient of the discriminator. Preferably, and Set to 0.001 and 0.005 respectively.

[0102] Furthermore, the gradient calculation method of the generator is expressed as:

[0103]

[0104] Where Z is the random noise of the input, is the probability distribution of the input noise, is the gradient of the error between the generated image and the comparison sample, is the regularization parameter.

[0105] Furthermore, the dynamic adjustment factor Based on the discriminator The learning rate of the generator is dynamically adjusted according to the performance of the discriminator. When the discriminator performs too well, the update speed of the generator is slowed down to prevent the quality of the generated image from decreasing due to excessive learning. The adjustment method is expressed as:

[0106] In the formula, is a constant that adjusts the curvature, is the number of midpoint iterations during training. Preferably, Set to 3, Set to 500.

[0107] S206, repeat the above steps until the preset stop iteration condition is met, which means that the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.

[0108] After the data expansion model training is completed, the trained data expansion model is used to increase the number of samples. In one embodiment, assuming that the original collected samples are 800, and the data expansion model expands and generates 200 samples, the expanded data set contains 1000 samples.

[0109] S3. Feature extraction model training

[0110] The expanded data set is input into the feature extraction model for training the feature extraction model. The present invention adopts a neural network based on simulated energy conservation conditions as a feature extraction model to extract subtle features for roller conveyor offset detection in image data, so that the network can more effectively extract valuable information when facing complex or noisy input data, thereby ensuring the accuracy and adaptability of feature extraction.

[0111] Specifically, Figure 2 As shown, the training process of the neural network algorithm based on the simulated energy conservation condition is as follows:

[0112] S301, initialize the weights and biases of each layer of the neural network. In one embodiment, the network weights and bias Initialization uses the Xavier initialization method, expressed as: ,

[0113] In the formula, represents a normal distribution, is the number of nodes in the previous layer, Indicates that it obeys a specific distribution.

[0114] S302, the input roller image data is processed by the activation function at each layer, using weighted input and activation function Calculate the output of each layer, expressed as: ,

[0115] In the formula, It is The weighted input of the layer, For the The output of the layer, For the The output of the layer, and Respectively The weights and biases of the layers, is the activation function.

[0116] In one embodiment, the activation function is a ReLU activation function based on dynamic adjustment, and the dynamic adjustment parameter is , then the activation function It is expressed as:

[0117] In the formula, is a parameter that is dynamically adjusted during the training process. is the input value.

[0118] Furthermore, due to is a parameter that is dynamically adjusted during the training process, then the next iteration The calculation method can be expressed as:

[0119] In the formula, is the learning rate, is the loss function about Preferably, Set to 0.01.

[0120] S303, according to the simulated energy conservation condition, define the first Layer output energy , expressed as:

[0121]

[0122] In the formula, It is Tier The output of a neuron.

[0123] Furthermore, the energy of each layer is set to be equal to that of the previous layer to simulate energy conservation, expressed as:

[0124]

[0125] In the formula, For the The energy output of the layer.

[0126] Furthermore, the weights of each layer of the network are dynamically adjusted so that the energy of important features is retained and the energy of unimportant features is suppressed. The weight adjustment strategy is expressed as:

[0127]

[0128] In the formula, It is Tier Line The weight of the column, is the target energy value. Preferably, The energy of the first layer is taken as the target energy value.

[0129] S304: Calculate the loss function based on the deviation between the actual roller position and the network predicted position , expressed as:

[0130]

[0131] In the formula, is the sample size, Indicates The characteristic values ​​of sample data, It is The labels of samples, It is The output of the layer, is the regularization parameter, is the total number of layers in the neural network, is the network weight of the lth layer.

[0132] S305. At the end of each training cycle, the updated weights and biases of the network weights are adjusted according to the loss function value of the cycle, expressed as: ,

[0133] In the formula, is the learning rate, and is the gradient of the loss function with respect to the weights and biases.

[0134] Furthermore, taking the calculation of the partial derivative of the weight as an example, the calculation method is expanded as follows:

[0135]

[0136] In the formula, is the sample size, It is The output of the layer, Indicates The characteristic values ​​of sample data, Indicates The labels of samples, is the regularization parameter, For the The network weights of the layer.

[0137] Furthermore, the learning rate Use dynamic adjustment to set the Learning rate of the layer The adjustment method is expressed as:

[0138]

[0139] In the formula, is the decay rate parameter, is the initial learning rate, is the current iteration number. Preferably, Set to 0.01, Set to 0.005.

[0140] S306, repeat the above steps until the preset stop iteration condition is met, which means the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.

[0141] S4. Feature dimensionality reduction model training

[0142] The data after feature extraction is input into the feature dimensionality reduction model to train the feature dimensionality reduction model. The present invention adopts an autoencoder neural network algorithm based on a quantum tunneling strategy as a feature dimensionality reduction model. The autoencoder neural network based on a quantum tunneling strategy includes two parts: an encoder and a decoder. The encoder is responsible for converting the input high-dimensional data (i.e., the data after feature extraction) into a low-dimensional potential representation, and the decoder attempts to reconstruct the original input data from this potential representation. The present invention adopts a quantum tunneling effect strategy, and by simulating the tunneling behavior of quantum particles, allows the potential representation in the encoding process to cross the potential energy barrier, thereby achieving a better data representation state to improve the effectiveness of feature dimensionality reduction.

[0143] Specifically, the training process of the autoencoder neural network algorithm based on the quantum tunneling strategy is as follows:

[0144] S401, using the quantum coding method to initialize the weight and bias of the autoencoder network, assuming that the weight and bias parameters of the autoencoder network are expressed as and , the initialization method is expressed as: ,

[0145] In the formula, Indicates The quantized representation of the weights, represents the number of neurons in the input layer, Indicates The random phase of each neuron, Indicates Bias terms, represents the quantum random initialization value of the bias. Preferably, Randomly initialized in In the interval, the parameter Set to 0.1.

[0146] S402, during the forward propagation process, input Through the encoder Generating latent representations , the calculation method is expressed as:

[0147]

[0148] in is the Sigmoid activation function.

[0149] Furthermore, during the quantum tunneling phase, the potential representation Perform a tunneling operation. In one embodiment, the tunneling operation uses a tunneling operation function The implementation is expressed as:

[0150] In the formula, is the tunneling strength parameter, and are the parameters of tunnel center and width, respectively. represents the L2 norm.

[0151] Furthermore, the intensity parameter The calculation method is expressed as:

[0152] In the formula, represents the coefficient for adjusting sensitivity, Indicates the depth reached by the current iteration. represents the threshold value for triggering the tunneling effect. Preferably, Set to 0.3, Set to .

[0153] S403, the decoder reconstructs the data from the potential representation and then calculates the reconstruction error , the reconstruction error Quantization-based regularization term The calculation, to improve the quality and diversity of the latent representation, can be expressed as:

[0154] In the formula, For input, is the decoder function, is the tunneling operation vector, calculated as , is the regularization coefficient, represents the quantum regularization term. Preferably, Set to 0.3.

[0155] Furthermore, the quantum regularization term Evaluating latent representations The distribution quality and diversity of is calculated as:

[0156] In the formula, is the dimension of the latent space, is the potential representation of dimensions, and They are The expectations and standard deviations of the dimensions.

[0157] S404, based on the calculated total loss, the network parameters are updated through the back propagation algorithm, which can be expressed as:

[0158]

[0159] In the formula, , are the weight and bias parameters of the network respectively, is the reconstruction error, For input data The local complexity index is is the learning rate, represents the gradient calculation. Preferably, Set to 0.03.

[0160] Furthermore, the gradient The calculation method is expressed as:

[0161] Where PD( ) is the decoder function, is the tunneling operation vector, calculated as , is the partial derivative of the decoder with respect to the weight.

[0162] and, The calculation method is expressed as:

[0163] In the formula, It is The error gradient of the output node, is the number of output layer nodes.

[0164] Furthermore, the complexity index The update degree of the parameters is dynamically adjusted according to the characteristics of the input data. The calculation method is expressed as:

[0165] In the formula, Is the input data No. Quantity, is the gradient of this component, is the dimensionality of the input data.

[0166] S405, repeat the above steps until the preset stop iteration condition is met, which means the model training is completed. In one embodiment, the preset stop iteration condition is reaching a preset maximum number of iterations, preferably, the preset maximum number of iterations is set to 1000 times.

[0167] S5. Classifier model training

[0168] The data after dimension reduction is input into the classifier to train the classifier. The present invention adopts an extreme learning machine classification algorithm based on annealing strategy to optimize the weight and bias parameters of the extreme learning machine and improve the accuracy and robustness of classification.

[0169] The annealing strategy-based extreme learning machine adopted in the present invention is an improvement on the traditional extreme learning machine algorithm. In the traditional extreme learning machine, the weights and biases of the hidden layer nodes are randomly generated, while in the present invention, these parameters are dynamically adjusted through the capacity change and the simulated annealing strategy to find a better model configuration.

[0170] Specifically, the training process of the extreme learning machine classification algorithm based on the annealing strategy is as follows:

[0171] S501, randomly initialize the weights of the extreme learning machine and bias , set the initial annealing temperature and cooling rate The weight matrix and the bias vector Initialized to random values, following a standard normal distribution, can be expressed as: ,

[0172] Furthermore, set the initial temperature and cooling rate , preferably, .

[0173] S502: Input the reduced feature data into the extreme learning machine, and calculate the output of the hidden layer and the final classification result by forward propagation. By input data , weight and bias Calculated, using the activation function Calculated, expressed as:

[0174] In the formula, is the Sigmoid activation function.

[0175] S503, according to the classification performance of the current model, the ability of the system is calculated. The present invention uses a loss function to represent the ability of the system. In one embodiment, the mean square error loss function is used to represent the ability of the system. The calculation method can be expressed as:

[0176] In the formula, E is the system capacity, L is the loss function, is the sample size, It is The target output of samples is It is The hidden layer output of samples.

[0177] S504. Under the simulated annealing strategy, a configuration with higher capability (i.e., worse performance) is accepted with a certain probability to escape from the local optimal solution. Randomly adjust the weights and bias , and calculate the capacity under the new configuration. Specifically, the probability is determined by the current temperature The decision can be expressed as:

[0178] Where P is the probability, is the capacity change. If , then always accept the new solution; if , then with probability Accept new interpretations.

[0179] In one embodiment, the capacity change amount It is calculated based on the capability difference between the current state and the new state. For the current state of capability, is the capacity of the new state, the calculation method can be expressed as:

[0180] In this embodiment, the acceptance probability used in the simulated annealing adjustment step is Use the following selection method:

[0181] If the new state has a lower capability than the current state (i.e. ), the new state will be accepted unconditionally. If the new state has a higher capacity than the current state, the new state will be accepted with a probability that is related to the amount of capacity increase and the current temperature.

[0182] S505, perform annealing update, according to the cooling rate Update Temperature Repeat steps S503 and S504 until the temperature is lower than the preset threshold or the maximum number of iterations is reached. Specifically, after a certain number of iterations, the current temperature is updated. , until the temperature is lower than the preset minimum value or the maximum number of iterations is reached, the update method can be expressed as:

[0183] In the formula, is the updated temperature, is the temperature before updating, is the cooling rate.

[0184] S506: Use a dynamic weight adjustment mechanism to adjust the weights. After each iteration, evaluate the classification performance and adjust the weights accordingly. The dynamic weight adjustment mechanism can make the model pay more attention to those samples that are misclassified. Specifically, for the weight matrix of the classifier , the feature matrix input to the classifier , the true label moment is the label matrix predicted by the model The dynamic weight adjustment mechanism first calculates the classification error of each sample , the calculation method can be expressed as:

[0185] Furthermore, the classification error is converted into a weight adjustment In one embodiment, the adjustment is performed using a linear conversion method, and the calculation method can be expressed as:

[0186] In the formula, is the conversion factor, is the transpose symbol of the matrix, is the classification error of the i-th sample, is the feature matrix of the i-th sample.

[0187] Furthermore, the weight matrix is ​​updated using the weight adjustment amount, and the update method can be expressed as:

[0188] In the formula, is the average of all sample weight adjustments, is the weight matrix before updating, is the updated weight matrix.

[0189] S507, repeat the above steps 1000 times, record the weights and biases when the ability is the lowest as the parameters of the final model, which means that the model training is completed.

[0190] S6, roller conveyor deviation detection and identification

[0191] The trained model is used to process new samples and obtain the final classification results to detect roller conveyor deviation.

[0192] In one embodiment, the collected new image data is input into the trained feature extraction model and feature dimension reduction model for feature processing, and further, the processed features are input into the trained classifier for classification. In this embodiment, the classification category is roller conveyor deviation detection, which specifically includes two categories: "normal" and "deviation".

[0193] In this embodiment, the technical effects include:

[0194] 1. Through data augmentation technology, the model can learn richer feature representations, reduce dependence on specific training samples, and improve the generalization performance of the model on unseen data.

[0195] 2. Feature extraction technology ensures that the network can extract valuable information from images more effectively and maintain high accuracy even in the face of complex or noisy data.

[0196] 3. Feature dimensionality reduction technology simulates the tunneling behavior of quantum particles, allowing potential representations to cross energy barriers, thereby obtaining a better data representation state and providing more refined features for subsequent classification.

[0197] 4. The classifier training technology effectively avoids falling into the local optimal solution through the simulated annealing strategy, finds more globally optimized model parameters, and thus improves the accuracy of the classification results.

[0198] The embodiment of the present invention further provides a roller conveying deviation detection system, comprising:

[0199] The data acquisition and annotation module is used to collect the image data of the rollers in the conveyor belt at regular intervals based on a high-resolution camera and to annotate the images;

[0200] A data expansion module, which is used to generate samples based on a generative adversarial network based on multi-view contrastive learning to achieve data expansion;

[0201] A feature extraction model training module is used to input the expanded data into the feature extraction model for training the feature extraction model; specifically, a neural network based on a simulated energy conservation condition is used as a feature extraction model to extract subtle features for roller conveyor deviation detection in the image data;

[0202] A feature dimension reduction model training module is used to input the feature extracted data into the feature dimension reduction model to train the feature dimension reduction model. Specifically, an autoencoder neural network algorithm based on quantum tunneling strategy is used as the feature dimension reduction model.

[0203] The classifier model training module is used to input the dimension-reduced data into the classifier for classifier training. Specifically, the training is based on the extreme learning machine classification algorithm based on the annealing strategy.

[0204] The roller conveyor deviation detection and identification module is used to process new samples using the trained model and obtain the final classification results to realize the detection of roller conveyor deviation.

[0205] The embodiments described above are only descriptions of the preferred implementation modes of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should all fall within the protection scope determined by the claims of the present invention.

Claims

1. A roller conveyor deviation detection method, characterized in that: The steps include: S1, data collection and annotation, based on the high-resolution camera, the roller image data of the conveyor belt is collected regularly and the image is annotated; S2. Data expansion. Specifically, sample generation based on a generative adversarial network based on multi-view contrastive learning is used for data expansion. S3. Feature extraction model training, specifically, a neural network based on simulated energy conservation conditions is used as a feature extraction model; The neural network algorithm training based on the simulated energy conservation condition includes the following steps: S301, initializing the weights and biases of the neural network; S302, the input roller image data is processed by an activation function at each layer, and the output of each layer is calculated using the weighted input and the activation function; S303, dynamically adjusting the weights of each layer of the network according to the simulated energy conservation condition; S304, calculating a loss function according to the deviation between the actual roller position and the network predicted position; S305. At the end of each training cycle, the update weight and bias of the network weights are adjusted according to the loss function value of the cycle; S306, repeating the above steps until a preset stop iteration condition is met; The step S304 includes: According to the simulated energy conservation condition, the energy of each layer output is defined in the neural network , expressed as: In the formula, It is Tier The output of a neuron; The energy of each layer is set equal to the previous layer to simulate energy conservation, expressed as: Dynamically adjust the weights of each layer of the network. The weight adjustment strategy is expressed as: In the formula, It is Tier Line The weight of the column, is the target energy value; S4, feature dimension reduction model training, inputting the feature-extracted data into the feature dimension reduction model for training the feature dimension reduction model, specifically, using an autoencoder neural network algorithm based on a quantum tunneling strategy as the feature dimension reduction model; S5, classifier model training, inputting the dimension-reduced data into the classifier for classifier training, specifically, training the classifier using an extreme learning machine classification algorithm based on an annealing strategy; S6. Roller conveyor offset detection and identification: Use the trained model to process new samples and obtain the final classification results to realize the detection of roller conveyor offset.

2. The roller conveying deviation detection method according to claim 1, characterized in that: The image is annotated according to whether the conveyor belt roller is offset. The annotated categories include "normal" and "offset".

3. The roller conveying deviation detection method according to claim 1, characterized in that: The generative adversarial network algorithm based on multi-view contrastive learning includes the following steps: S201, initializing network parameters of the generator and the discriminator, wherein the parameters include weights and biases; S202, in each training cycle, the generator attempts to generate new image data according to the current network parameters and the selected comparison samples, and the training process is achieved by minimizing the loss function; S203, using multi-relation graph attention mechanism to dynamically adjust the focus and prioritize key features; S204, the discriminator classifies the generated image and the real image; S205, calculating the adversarial loss and contrast loss between the generated image and the real image, and updating the network parameters of the generator and the discriminator according to this composite loss; S206: Repeat the above steps until a preset stop iteration condition is met.

4. The roller conveying deviation detection method according to claim 3 is characterized in that: The loss function calculation method in step S202 is as follows: , In the formula, Express expectations, It means that it obeys a specific distribution. represents the distribution of the original data set, express The real data of the corresponding category, represents the set of all categories, is the loss function of the generator, is the contrast loss term, is the real image data, is the random noise of the input, is the regularization parameter, represents the L2 norm, is the discriminator function, is a generator function.

5. The roller conveying deviation detection method according to claim 1, characterized in that: The self-encoding neural network algorithm based on quantum tunneling strategy includes the following steps: S401, initializing the weights and biases of the autoencoder network using a quantum coding method; S402, during the forward propagation process, the input data generates a potential representation through the encoder; S403, the decoder reconstructs data from the potential representation and further calculates the reconstruction error; S404, based on the calculated total loss, updating the network parameters through the back propagation algorithm; S405, repeat the above steps until a preset stop iteration condition is met.

6. The roller conveying deviation detection method according to claim 5, characterized in that: The step S403 further includes: The reconstruction error Quantization-based regularization term Calculation, expressed as: In the formula, is the input, pz is the generated potential representation, is the decoder function, , is the regularization coefficient, represents the quantum regularization term.

7. The roller conveying deviation detection method according to claim 1, characterized in that: The training process of the extreme learning machine classification algorithm based on the annealing strategy is as follows: S501, randomly initialize the weights and biases of the extreme learning machine; S502, inputting the feature data after dimension reduction into an extreme learning machine, and calculating the output of the hidden layer and the final classification result by forward propagation; S503, calculating the system capability according to the classification performance of the current model; S504, under the simulated annealing strategy, accepting a configuration with higher capability with a certain probability to escape from the local optimal solution; S505, performing annealing update; S506, using a dynamic weight adjustment mechanism to adjust the weights, evaluating the classification performance after each iteration and adjusting the weights accordingly; S507, repeat the above steps until a preset stop iteration condition is met.

8. A system based on the roller conveyor deviation detection method according to any one of claims 1 to 7, comprising: The data acquisition and annotation module is used to collect the image data of the rollers in the conveyor belt at regular intervals based on a high-resolution camera and to annotate the images; The data expansion module is used to generate samples based on the generative adversarial network of multi-view contrastive learning to achieve data expansion; A feature extraction model training module is used to input the expanded data into the feature extraction model for training the feature extraction model; specifically, a neural network based on a simulated energy conservation condition is used as a feature extraction model to extract subtle features for roller conveyor deviation detection in image data; A feature dimension reduction model training module is used to input the feature extracted data into the feature dimension reduction model to train the feature dimension reduction model. Specifically, an autoencoder neural network algorithm based on quantum tunneling strategy is used as the feature dimension reduction model. A classifier model training module, which is used to input the reduced-dimensional data into the classifier for classifier training, specifically, based on the classification algorithm training of an extreme learning machine based on an annealing strategy; The roller conveyor deviation detection and identification module is used to process new samples using the trained model and obtain the final classification results to realize the detection of roller conveyor deviation.