A method for predicting the volume of a scrap steel stockpile based on three-dimensional collection by a drone
By combining the improved Red-tailed Kite optimization algorithm with a BP neural network, the accuracy and stability issues of scrap steel stockpile volume measurement in UAV 3D data processing were solved, achieving efficient and accurate prediction of scrap steel stockpile volume.
Patent Information
- Application Number
- CN202411074148.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-08-07
AI Technical Summary
Existing UAV 3D data processing technology struggles to guarantee the accuracy and stability of scrap steel stockpile volume measurement in complex environments. Traditional methods rely on manual measurement, which is inefficient and prone to large errors, and lack in-depth data prediction research.
By combining the improved Red-tailed Kite Optimization Algorithm (WRTH) and Backpropagation Neural Network (BP), and through data preprocessing, feature extraction, and model training, the hidden layer weights and biases of the BP neural network are optimized to establish an efficient and accurate prediction model for scrap steel stockpile volume.
It improves the accuracy and stability of scrap steel stockpile volume prediction, reduces reliance on manual measurement, and enhances measurement efficiency and precision.
Smart Images

Figure CN119068041B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data prediction technology, specifically a method for predicting the volume of scrap steel stockpiles based on 3D data acquisition by unmanned aerial vehicles (UAVs). Background Technology
[0002] In scrap steel management, accurately predicting the volume of scrap steel stockpiles is crucial for optimizing resource utilization and reducing environmental impact. Traditional methods rely on manual measurement, which is inefficient and prone to errors. The development of drone technology has made automated measurement of scrap steel stockpiles possible. By acquiring three-dimensional data through drones, a three-dimensional model of the scrap steel stockpile can be constructed quickly and accurately.
[0003] Scrap steel, as an important recyclable resource, plays a crucial role in resource reuse through its storage and management. However, the volume measurement and management of scrap steel stockpiles has always been a complex and critical issue. Traditional volume measurement methods mainly rely on manual measurement and estimation, which suffers from drawbacks such as low accuracy, low efficiency, and high labor intensity. In recent years, with the development of drone technology, using drones for scrap steel stockpile volume measurement has become a new trend. Drones can quickly and accurately acquire three-dimensional data of scrap steel stockpiles, and combined with advanced point cloud processing technology, precise measurement and dynamic monitoring of scrap steel stockpile volume can be achieved. However, current research and applications mainly focus on the acquisition and preliminary processing of point cloud data, and in-depth research is still lacking on how to use this data for accurate volume prediction and management. In particular, how to ensure the accuracy and stability of measurements in complex environments remains an urgent problem to be solved.
[0004] Backpropagation Neural Network (BP) is a classic artificial neural network model widely used in tasks such as data prediction, classification, and regression. BP neural networks adjust network weights through the backpropagation algorithm, thereby learning and predicting complex data patterns. Compared to other neural network models, BP neural networks are simple in structure, easy to implement, and computationally efficient, making them suitable for prediction tasks involving various data types. In the industrial field, BP neural networks are used to predict key indicators in production processes, such as equipment failure rates, product quality, and energy consumption.
[0005] The Red-tailed Hawk Optimization (RTH) algorithm is an emerging nature-inspired optimization algorithm that simulates the intelligent behavior of the red-tailed kite during its hunting process in nature. This algorithm achieves a balance between global and local search by simulating the red-tailed kite's prey-hunting process, including the initial search, tracking, and final capture stages. The RTH algorithm performs exceptionally well in solving complex optimization problems, particularly exhibiting strong adaptability and robustness when handling nonlinear, multimodal, and high-dimensional optimization problems. Currently, this algorithm has been widely applied in fields such as engineering optimization, image processing, and machine learning parameter optimization. However, further research and practical validation are needed to improve its effectiveness and efficiency in real-world applications when applying the RTH algorithm to UAV 3D data processing and volume prediction.
[0006] Publication No. CN117452806A discloses an improved red-tailed buzzard optimization algorithm, which improves the gravity factor of the red-tailed kite algorithm. In the improvement process, the gravity factor is nonlinearly modified using the relationship between the current iteration count and the maximum iteration count. This relationship can reduce the risk of the algorithm getting trapped in local optima to some extent. However, simply relying on this relationship does not consider population diversity, which is a crucial factor in preventing optimization algorithms from getting trapped in local optima. If the population diversity is too low, the algorithm may converge to a local optimum early on, failing to find the global optimum. Secondly, due to the lack of a feedback mechanism for the population state, relying solely on the number of iterations to adjust the gravity factor may cause the algorithm to easily get trapped in local optima when encountering complex or multi-peaked optimization problems. Summary of the Invention
[0007] This invention aims to provide a method for predicting the volume of scrap steel stockpiles based on three-dimensional data acquisition from unmanned aerial vehicles (UAVs). By combining the improved Red-tailed Kite Optimization Algorithm (WRTH) and Backpropagation Neural Network (BP), it achieves efficient and accurate prediction of the volume of scrap steel stockpiles.
[0008] The technical solution adopted by this invention to achieve the above objectives is as follows: A BP neural network model optimized based on an improved Red-tailed Kite optimization algorithm is used to process 3D point cloud data collected by UAVs and predict the volume of scrap steel stockpiles. A method for predicting the volume of scrap steel stockpiles based on 3D data collected by UAVs includes four main steps: data preprocessing, feature extraction, model training, and volume prediction. The specific steps are as follows:
[0009] S1. Use a drone to collect three-dimensional point cloud data of scrap steel piles, and preprocess the data. The preprocessing includes noise filtering, missing point completion and point cloud alignment to obtain high-quality three-dimensional point cloud data.
[0010] S2. Extract effective feature data from the preprocessed 3D point cloud data. The effective feature data includes the density, distance, angle, and height of the scrap steel stockpile volume points, and use the effective feature data as input to train the BP neural network.
[0011] S3. By adjusting the hidden layer weights β and bias α of the BP neural network using the improved Red-tailed Kite optimization algorithm, a WRTH-BP prediction model for scrap steel stockpile volume is established; the improved Red-tailed Kite optimization algorithm includes:
[0012] Step 1: Improve the transition factor of the Red-tailed Kite optimization algorithm. Use different forms of transition factors at different stages of the Red-tailed Kite optimization algorithm to improve the position update mathematical model of the global search stage of the standard Red-tailed Kite optimization algorithm.
[0013] Step 2: Improve the gravity factor of the Red-tailed Kite optimization algorithm and combine it with the improved transition factor γ(t) to improve the position update mathematical model of the local development stage of the standard Red-tailed Kite optimization algorithm.
[0014] S4. Use the WRTH-BP prediction model to predict the volume of the newly acquired 3D point cloud data and output the accurate volume value of the scrap steel stockpile.
[0015] Furthermore, in step S1, the mathematical model for data preprocessing is as follows:
[0016] ;
[0017] In the formula, P represents point cloud data, and the mathematical model is: C represents the noisy point cloud, and the mathematical model is: q represents the number of point cloud data points, and s represents the number of noisy point clouds. This is the 3D point cloud data of the pre-processed scrap steel stockpile.
[0018] Furthermore, missing point completion uses a neighborhood interpolation algorithm. Let the missing points in the 3D point cloud data of the scrap steel stockpile be... For each missing point in the 3D point cloud data of the scrap steel stockpile, a neighborhood size is set, and the nearest known points around it are found. The k-nearest neighbor algorithm (k-NN) is used to find the missing points within the neighborhood. A weighted average method is used to interpolate the missing points in the 3D point cloud data of the scrap steel stockpile, where the weights are determined based on the distance between the missing point and the y-th neighbor point. The mathematical model is as follows:
[0019] ;
[0020] In the formula, Let y be the weight of the y-th neighborhood point. Let ϵ be the distance between the k-th missing point and the y-th neighboring point in its neighborhood, where ϵ is a local minimum value of 0.001.
[0021] The interpolation mathematical model is as follows:
[0022] ;
[0023] In the formula, The coordinates of the missing points in the 3D point cloud data of the scrap steel stockpile. Let y be the coordinates of the y-th neighboring point;
[0024] The least squares method is used to fit a plane, and the coordinates of the missing points in the 3D point cloud data of the scrap steel pile are projected onto the fitted plane to obtain interpolated values. The mathematical model for the projection is as follows:
[0025] ;
[0026] In the formula, The coordinates are the projected coordinates, v, b, z are the plane parameters, and o, r, z are the horizontal axis, vertical axis, and vertical axis, respectively.
[0027] Further, in step S2, effective feature data is extracted from the preprocessed 3D point cloud data. The effective feature data extraction adopts the Kendall rank correlation coefficient method, and the mathematical model is as follows:
[0028] ;
[0029] In the formula, The number of predicted values for the 3D point cloud data of the scrap steel stockpile. and For the two rankings in the first dataset, and For the corresponding ranking in the second dataset, For a symbolic function, if ,but The function value is 1. but The function value is -1, otherwise, The function value is 0.
[0030] Furthermore, the RTH-BP prediction model for scrap steel stockpile volume in step S2 includes an improved Red-tailed Kite optimization algorithm module, a three-dimensional point cloud data input module and an output module for scrap steel stockpile, a forward propagation module, and a backward propagation module; the forward propagation module includes a hidden layer and an output layer, and the weight β and bias α in the hidden layer are tuned using the improved Red-tailed Kite optimization algorithm.
[0031] The mathematical model for computation from the input module to the hidden layer is as follows:
[0032] ;
[0033] In the formula, The output value of the j-th neuron in the hidden layer of the 3D point cloud data of the scrap steel pile; For activation functions; The ir-th 3D point cloud data value of the scrap steel stockpile is input to the RTH-BP prediction model. Let be the weights from the ir-th feature in the input layer to the j-th neuron in the hidden layer. This is the bias of the j-th neuron in the hidden layer;
[0034] The mathematical model for computation from the hidden layer to the output module is as follows:
[0035] ;
[0036] In the formula, The predicted value of scrap steel stockpile volume output by the RTH-BP prediction model; The weight from the j-th neuron in the hidden layer to the output layer, where cr is the bias of the output layer.
[0037] Further, in step S3, the improved Red-tailed Kite optimization algorithm improves the position update mathematical model of the global search phase of the standard Red-tailed Kite optimization algorithm by improving the transition factor of the Red-tailed Kite optimization algorithm. The specific steps are as follows:
[0038] Different forms of transition factors are used at different stages of the Red-tailed Kite optimization algorithm. An adaptive fitness value feedback mechanism and a random perturbation intensity control parameter are introduced to improve the transition factors of the Red-tailed Kite optimization algorithm. ;
[0039] (1);
[0040] In equation (1), γ(t) is the improved transition factor. This represents the current iteration number. The maximum number of iterations, Let be the minimum fitness value in the t-th iteration. Let be the average fitness value of the t-th iteration. The minimum fitness value is the global minimum fitness value, and rand(0,1) is a random number between 0 and 1. The mathematical model for the random disturbance intensity control parameters is as follows:
[0041] (2);
[0042] In equation (2), The initial value for the random disturbance intensity control parameter is 2. Let be the maximum standard deviation of the population fitness in the Red-tailed Kite optimization algorithm. Let be the standard deviation of the population fitness at the t-th iteration;
[0043] D2. Using formula (3), the transition factor γ(t) of the improved Red-tailed Kite optimization algorithm is used to improve the position update mathematical model of the global search stage of the Red-tailed Kite optimization algorithm;
[0044] (3);
[0045] In equation (3), Let be the latest position of the red-tailed kite in the t-th iteration. This represents the average position of the red-tailed kite population. This is the optimal position for the Red-tailed Kite in the entire game. Let be the flight distribution function, and γ be the transition factor for improvement in the t-th iteration. This is the problem dimension.
[0046] Furthermore, by combining the number of iterations and the difference in population fitness, the improved transition factor can enhance exploration capability in the early stages and development capability in the later stages, thus better balancing exploration and development. In the early stages, the transition factor incorporates the difference in fitness, ensuring a larger step size and enhanced exploration capability when population diversity is high. In the later stages, by introducing random perturbation and standard deviation adjustment mechanisms, appropriate diversity is maintained, preventing premature convergence to local optima. Simultaneously, The dynamic adjustment enables the random perturbation intensity to be adaptively adjusted according to the fitness distribution of the population, further enhancing the adaptability and robustness of the algorithm. In the later stage, by introducing a random perturbation term, the algorithm is guaranteed to have a certain degree of randomness when it is close to convergence, preventing it from getting trapped in a local optimum.
[0047] Furthermore, in step S3, by improving the gravity factor of the Red-tailed Kite optimization algorithm and combining it with an improved transition factor γ(t), the position update mathematical model of the local development stage of the standard Red-tailed Kite optimization algorithm is improved. The specific steps are as follows:
[0048] Y1. The distribution density H(t) of the red-tailed kite population is calculated using the fitness distribution. The mathematical model is as follows:
[0049] (4);
[0050] In equation (4), Let be the fitness value of the i-th position of the red-tailed kite in the t-th iteration. This is the largest scale of the red-tailed kite;
[0051] Y2. Improving the gravity factor of the Red-tailed Kite optimization algorithm by combining the distribution density H(t) and the number of iterations t. The improved gravity factor ;
[0052] (5);
[0053] In equation (5), H(t) is the density of the red-tailed kite population at the t-th iteration, and Hmax is the maximum value of the distribution density;
[0054] Y3, Utilizing the improved gravity factor The improved transition factor γ(t) improves the position update mathematical model of the Red-tailed Kites optimization algorithm in the local development phase;
[0055] (6);
[0056] In equation (6), and For direction coordinates, The mathematical model is as follows: ; The mathematical model is , Let t be the spiral flight radius, a random number between 0 and 1, and θ(t) be the angle gain. Let be the acceleration coefficient for the t-th iteration, and StepSize1(t) be the step size. The mathematical model is:
[0057] ;
[0058] StepSize2(t) is the second step size, and the mathematical model is as follows:
[0059] ; For improved gravity factors.
[0060] Furthermore, by introducing the entropy value H(t), the diversity of the population can be effectively measured. When the population diversity is high, the gravity factor is larger, which enhances the exploration ability; when the population diversity is low, the gravity factor is smaller, which enhances the exploitation ability and prevents premature convergence to a local optimum. At the same time, the dynamically adjusted gravity factor helps to enhance the exploration ability in the early stage of optimization and enhance the exploitation ability in the later stage, thereby better balancing global search and local optimization, converging to a high-quality solution faster, reducing the number of iterations, and improving the solution accuracy.
[0061] Furthermore, the specific steps for adjusting the hidden layer weights β and biases α of the BP neural network using the improved Red-tailed Kite optimization algorithm are as follows:
[0062] S31. The hidden layer weights β and bias α of the BP neural network used for predicting the volume of scrap steel stockpiles are encoded into a spatial vector U, and the spatial vector U is mapped in two dimensions to the individual positions of red-tailed kites in the red-tailed kite optimization algorithm.
[0063] S32. Initialize the population position of the Red-tailed Kites optimization algorithm using formula (7). Set parameters including population size N, problem dimension dim, upper bound of the algorithm search space UB, lower bound of the algorithm search space LB, maximum number of iterations T, initial number of iterations t=0, and fitness function.
[0064] (7);
[0065] In equation (7), This is the initial position of the Red-tailed Kite. Let be the position of the i-th individual red-tailed kite in the j-th dimension, where j = 1, 2, 3, ..., dim, and rand(0, 1) is a random number between 0 and 1;
[0066] S33. Determine whether the current iteration number t satisfies t=T. If it does, exit the tuning of the hidden layer weights β and bias α of the BP neural network, output the position of the red-tailed kite corresponding to the global minimum fitness value and parse it into the spatial vector of the hidden layer weights β and bias α of the BP neural network, and obtain the optimal parameter values of the hidden layer weights β and bias α of the BP neural network for predicting the scrap steel stockpile volume; otherwise, proceed to step S34.
[0067] S34. Calculate the fitness value of individuals in the current iteration of the red-tailed kite population using the fitness function, and the minimum fitness value is... and compared with the fitness value of the previous iteration. The smaller fitness value is selected as the current best fitness value.
[0068] S35. Establish population position update formulas for the Red-tailed Kite optimization algorithm in the global search phase, local development phase, and transition phase, and update the individual positions of Red-tailed Kites. The specific steps are as follows:
[0069] S351. During the high-flying phase, the red-tailed kite will search for the best position of its prey in the air. According to formula (3), establish the position update mathematical model of the red-tailed kite optimization algorithm in the global search phase.
[0070] S352. During the low-flying phase, the red-tailed kite will spiral around the prey's location to select the best attack opportunity and position. The position update mathematical model of the red-tailed kite optimization algorithm in the transition phase is established according to formula (8).
[0071] (8);
[0072] In equation (8), and For direction coordinates, The mathematical model is as follows: ; The mathematical model is ; Let t be the spiral flight radius, a random number between 0 and 1, and θ(t) be the angle gain. For the current iteration The step size in time, the mathematical model is: ;
[0073] S353. During the dive phase, the red-tailed kite suddenly dives from the best position to attack the prey. According to formula (6), establish the position update mathematical model of the red-tailed kite optimization algorithm in the local development phase.
[0074] S36, for the current iteration number t, execute t=t+1, and return to step S33.
[0075] Furthermore, the fitness function f is:
[0076] ;
[0077] In the formula, The number of three-dimensional data samples for scrap steel stockpiles. For the first The true value of a three-dimensional data sample of a scrap steel stockpile. No. Predicted values of three-dimensional data samples of scrap steel stockpiles.
[0078] The beneficial effects of this invention are as follows: The improved transition factor, by combining fitness differences, introducing random perturbations, and a dynamic adjustment mechanism, makes the Red-tailed Buzzard optimization algorithm more efficient and stable in solving complex optimization problems. By better balancing exploration and exploitation, increasing randomness, and considering population diversity, the improved model can effectively improve the algorithm's global search capability and convergence performance. By introducing distribution density and a dynamic adjustment mechanism, the improved gravity factor model has significant advantages in maintaining population diversity, balancing exploration and exploitation, and improving convergence speed and accuracy. Compared with existing gravity factor models, the improved model is more flexible and adaptable, and can better cope with complex optimization problems. By adjusting the hidden layer weights β and biases α of the BP neural network using the improved Red-tailed Buzzard optimization algorithm, a WRTH-BP prediction model for scrap steel stockpile volume is established, solving the problem that traditional methods rely on manual measurement for scrap steel stockpile volume prediction, which is inefficient and has large errors. Attached Figure Description
[0079] Figure 1 This is a step-by-step diagram for predicting the volume of scrap steel stockpiles based on the improved Red-tailed Kite optimization algorithm.
[0080] Figure 2 The flowchart shows the process of adjusting the hidden layer weights β and bias α of a BP neural network based on the improved Red-tailed Kite optimization algorithm.
[0081] Figure 3 A comparison of the training sets for predicting scrap steel stockpile volume using the Red-tailed Kite Optimized Algorithm-BP Prediction Model and the Improved Red-tailed Kite Optimized Algorithm-BP Prediction Model.
[0082] Figure 4 A comparison of the fitness of the Red-tailed Kite Optimized Algorithm-BP Prediction Model and the Improved Red-tailed Kite Optimized Algorithm-BP Prediction Model for predicting scrap steel stockpile volume.
[0083] Figure 5 A comparison of the errors in predicting scrap steel stockpile volume using the Red-tailed Kite Optimized Algorithm-BP Prediction Model and the Improved Red-tailed Kite Optimized Algorithm-BP Prediction Model.
[0084] Figure 6 A comparison chart showing the performance of the Red-tailed Kite Optimized Algorithm-BP Prediction Model and the Improved Red-tailed Kite Optimized Algorithm-BP Prediction Model in predicting the volume of scrap steel stockpiles. Detailed Implementation
[0085] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0086] Please see Figures 1-6 This invention provides a technical solution: a method for predicting the volume of scrap steel stockpiles based on UAV 3D acquisition, comprising four main steps: data preprocessing, feature extraction, model training, and volume prediction. The specific steps are as follows: Figure 1 As shown.
[0087] S1. Use a drone to collect three-dimensional point cloud data of scrap steel piles, and preprocess the data. The preprocessing includes noise filtering, missing point completion and point cloud alignment to obtain high-quality three-dimensional point cloud data.
[0088] More specifically, the mathematical model for data preprocessing is as follows:
[0089] ;
[0090] In the formula, P represents point cloud data, and the mathematical model is: C represents the noisy point cloud, and the mathematical model is: q represents the number of point cloud data points, and s represents the number of noisy point clouds. This is the 3D point cloud data of the pre-processed scrap steel stockpile.
[0091] More specifically, missing point completion uses a neighborhood interpolation algorithm. Let the missing points in the 3D point cloud data of the scrap steel stockpile be... For each missing point in the 3D point cloud data of the scrap steel stockpile, a neighborhood size is set, and the nearest known points around it are found. The k-nearest neighbor algorithm (k-NN) is used to find the missing points within the neighborhood. A weighted average method is used to interpolate the missing points in the 3D point cloud data of the scrap steel stockpile, where the weights are determined based on the distance between the missing point and the y-th neighbor point. The mathematical model is as follows:
[0092] ;
[0093] In the formula, Let y be the weight of the y-th neighborhood point. Let ϵ be the distance between the k-th missing point and the y-th neighboring point in its neighborhood, where ϵ is a local minimum value of 0.001.
[0094] The interpolation mathematical model is as follows:
[0095] ;
[0096] In the formula, The coordinates of the missing points in the 3D point cloud data of the scrap steel stockpile. Let y be the coordinates of the y-th neighboring point;
[0097] The least squares method is used to fit a plane, and the coordinates of the missing points in the 3D point cloud data of the scrap steel pile are projected onto the fitted plane to obtain interpolated values. The mathematical model for the projection is as follows:
[0098] ;
[0099] In the formula, The coordinates are the projected coordinates, v, b, z are the plane parameters, and o, r, z are the horizontal axis, vertical axis, and vertical axis, respectively.
[0100] S2. Extract effective feature data from the preprocessed 3D point cloud data. The effective feature data includes the density, distance, angle, and height of the scrap steel stockpile volume points. Use the effective feature data as input to train the BP neural network.
[0101] More specifically, effective feature data is extracted from the preprocessed 3D point cloud data. The Kendall rank correlation coefficient method is used for effective feature data extraction, and the mathematical model is as follows:
[0102] ;
[0103] In the formula, The number of predicted values for the 3D point cloud data of the scrap steel stockpile. and For the two rankings in the first dataset, and For the corresponding ranking in the second dataset, For a symbolic function, if ,but The function value is 1. but The function value is -1, otherwise, The function value is 0.
[0104] More specifically, the RTH-BP prediction model for scrap stockpile volume includes an improved Red-tailed Kite optimization algorithm module, a 3D point cloud data input module and output module for scrap stockpile, a forward propagation module, and a backward propagation module; the forward propagation module includes a hidden layer and an output layer, and the weights β and biases α in the hidden layer are tuned using the improved Red-tailed Kite optimization algorithm.
[0105] The mathematical model for computation from the input module to the hidden layer is as follows:
[0106] ;
[0107] In the formula, The output value of the j-th neuron in the hidden layer of the 3D point cloud data of the scrap steel pile; For activation functions; The ir-th 3D point cloud data value of the scrap steel stockpile is input to the RTH-BP prediction model. Let be the weights from the ir-th feature in the input layer to the j-th neuron in the hidden layer. This is the bias of the j-th neuron in the hidden layer;
[0108] The mathematical model for computation from the hidden layer to the output module is as follows:
[0109] ;
[0110] In the formula, The predicted value of scrap steel stockpile volume output by the RTH-BP prediction model; The weight from the j-th neuron in the hidden layer to the output layer, where cr is the bias of the output layer.
[0111] S3. By adjusting the hidden layer weights β and bias α of the BP neural network using the improved Red-tailed Kite optimization algorithm, a WRTH-BP prediction model for scrap steel stockpile volume is established; the improved Red-tailed Kite optimization algorithm includes:
[0112] Step 1: Improve the transition factor of the Red-tailed Kite optimization algorithm. Use different forms of transition factors at different stages of the Red-tailed Kite optimization algorithm to improve the position update mathematical model of the global search stage of the standard Red-tailed Kite optimization algorithm; the specific steps are as follows:
[0113] D1. Different forms of transition factors are used at different stages of the Red-tailed Kite optimization algorithm. An adaptive fitness value feedback mechanism and a random perturbation intensity control parameter are introduced to improve the transition factors of the Red-tailed Kite optimization algorithm. ;
[0114] (1);
[0115] In equation (1), γ(t) is the improved transition factor. This represents the current iteration number. The maximum number of iterations, Let be the minimum fitness value in the t-th iteration. Let be the average fitness value of the t-th iteration. The minimum fitness value is the global minimum fitness value, and rand(0,1) is a random number between 0 and 1. The mathematical model for the random disturbance intensity control parameters is as follows:
[0116] (2);
[0117] In equation (2), The initial value for the random disturbance intensity control parameter is 2. Let be the maximum standard deviation of the population fitness in the Red-tailed Kite optimization algorithm. Let be the standard deviation of the population fitness at the t-th iteration;
[0118] D2. Using formula (3), the transition factor γ(t) of the improved Red-tailed Kite optimization algorithm is used to improve the position update mathematical model of the global search stage of the Red-tailed Kite optimization algorithm;
[0119] (3);
[0120] In equation (3), Let be the latest position of the red-tailed kite in the t-th iteration. This represents the average position of the red-tailed kite population. This is the optimal position for the Red-tailed Kite in the entire game. Let be the flight distribution function, and γ be the transition factor for improvement in the t-th iteration. This is the problem dimension.
[0121] Step 2: Improve the gravity factor in the Red-tailed Kite optimization algorithm and, combined with the improved transition factor γ(t), improve the position update mathematical model in the local development phase of the standard Red-tailed Kite optimization algorithm; the specific steps are as follows:
[0122] Y1. The distribution density H(t) of the red-tailed kite population is calculated using the fitness distribution. The mathematical model is as follows:
[0123] (4);
[0124] In equation (4), Let be the fitness value of the i-th position of the red-tailed kite in the t-th iteration. This is the largest scale of the red-tailed kite;
[0125] Y2. Improving the gravity factor of the Red-tailed Kite optimization algorithm by combining the distribution density H(t) and the number of iterations t. The improved gravity factor ;
[0126] (5);
[0127] In equation (5), H(t) is the density of the red-tailed kite population at the t-th iteration, and Hmax is the maximum value of the distribution density;
[0128] Y3, Utilizing the improved gravity factor The improved transition factor γ(t) improves the position update mathematical model of the Red-tailed Kites optimization algorithm in the local development phase;
[0129] (6);
[0130] In equation (6), and For direction coordinates, The mathematical model is as follows: ; The mathematical model is , Let t be the spiral flight radius, a random number between 0 and 1, and θ(t) be the angle gain. Let be the acceleration coefficient for the t-th iteration, and StepSize1(t) be the step size. The mathematical model is:
[0131] ;
[0132] StepSize2(t) is the second step size, and the mathematical model is as follows:
[0133] ; For improved gravity factors.
[0134] More specifically, the hidden layer weights β and biases α of the BP neural network are adjusted using an improved Red-tailed Kite optimization algorithm, such as... Figure 2 As shown, the specific steps are as follows:
[0135] S31. The hidden layer weights β and bias α of the BP neural network used for predicting the volume of scrap steel stockpiles are encoded into a spatial vector U, and the spatial vector U is mapped in two dimensions to the individual positions of red-tailed kites in the red-tailed kite optimization algorithm.
[0136] S32. Initialize the population position of the Red-tailed Kites optimization algorithm using formula (7). Set parameters including population size N, problem dimension dim, upper bound of the algorithm search space UB, lower bound of the algorithm search space LB, maximum number of iterations T, initial number of iterations t=0, and fitness function.
[0137] (7);
[0138] In equation (7), This is the initial position of the Red-tailed Kite. Let be the position of the i-th individual red-tailed kite in the j-th dimension, where j = 1, 2, 3, ..., dim, and rand(0, 1) is a random number between 0 and 1;
[0139] S33. Determine whether the current iteration number t satisfies t=T. If it does, exit the tuning of the hidden layer weights β and bias α of the BP neural network, output the position of the red-tailed kite corresponding to the global minimum fitness value and parse it into the spatial vector of the hidden layer weights β and bias α of the BP neural network, and obtain the optimal parameter values of the hidden layer weights β and bias α of the BP neural network for predicting the scrap steel stockpile volume; otherwise, proceed to step S34.
[0140] S34. Calculate the fitness value of individuals in the current iteration of the red-tailed kite population using the fitness function, and the minimum fitness value is... and compared with the fitness value of the previous iteration. The smaller fitness value is selected as the current best fitness value.
[0141] S35. Establish population position update formulas for the Red-tailed Kite optimization algorithm in the global search phase, local development phase, and transition phase, and update the individual positions of Red-tailed Kites. The specific steps are as follows:
[0142] S351. During the high-flying phase, the red-tailed kite will search for the best position of its prey in the air. According to formula (3), establish the position update mathematical model of the red-tailed kite optimization algorithm in the global search phase.
[0143] S352. During the low-flying phase, the red-tailed kite will spiral around the prey's location to select the best attack opportunity and position. The position update mathematical model of the red-tailed kite optimization algorithm in the transition phase is established according to formula (8).
[0144] (8);
[0145] In equation (8), and For direction coordinates, The mathematical model is as follows: ; The mathematical model is ; Let t be the spiral flight radius, a random number between 0 and 1, and θ(t) be the angle gain. For the current iteration The step size in time, the mathematical model is: ;
[0146] S353. During the dive phase, the red-tailed kite suddenly dives from the best position to attack the prey. According to formula (6), establish the position update mathematical model of the red-tailed kite optimization algorithm in the local development phase.
[0147] S36, for the current iteration number t, execute t=t+1, and return to step S33.
[0148] Furthermore, the fitness function f is:
[0149] ;
[0150] In the formula, The number of three-dimensional data samples for scrap steel stockpiles. For the first The true value of a three-dimensional data sample of a scrap steel stockpile. No. Predicted values of three-dimensional data samples of scrap steel stockpiles.
[0151] S4. Use the WRTH-BP prediction model to predict the volume of the newly acquired 3D point cloud data and output the accurate volume value of the scrap steel stockpile.
[0152] More specifically, the standard Red-tailed Kite Optimization (RTH) algorithm and the improved Red-tailed Kite Optimization (WRTH) algorithm were compared. The common parameters of RTH and WRTH were set as follows: population size N=100, dimension dim=2, boundary lb=[0,0], ub=[20,20], maximum number of iterations T=40, and minimum fitness value of 0.1. The main function and optimization algorithm part of the algorithm were implemented by writing m functions in Matlab. A BP neural network prediction model program was written, with the initial number of input layer nodes set to 10, the number of hidden layer nodes set to 15, and the number of output layer nodes set to 10. The training parameters were set, with 50 training iterations, a minimum prediction error of 1e-4 for scrap steel stockpile volume, and an initial learning rate of 0.01.
[0153] More specifically, the 3D scrap steel stockpile data collected by drones was input into a MATLAB program in XLSX format. The data was divided into training and test sets, with 80% of the data used as the training set and 20% as the test set. The test set was used for real-world prediction. The total number of samples was 115. The dataset was shuffled, and the input feature dimension was 4. The program was run, and the 3D scrap steel stockpile training set data was used to make predictions using the WRTH-BP and RTH-BP prediction models. Figure 3 As shown in the figure, the prediction results of the training set show that the WRTH-BP prediction model is closer to the true value and more stable than the RTH-BP prediction model.
[0154] The test set data is input into the trained WRTH-BP prediction model and RTH-BP model, and the output is as follows: Figure 4 , Figure 5 , Figure 6 .
[0155] More specifically, such as Figure 4The figure shows a comparison of the fitness changes of the WRTH-BP and RTH-BP models in predicting scrap stockpile volume. The fitness values are designed using absolute error; a smaller fitness value indicates higher accuracy in predicting scrap stockpile volume. The initial fitness value for RTH-BP in predicting scrap stockpile volume is 0.19, while the initial fitness value for WRTH-BP is 0.18. With increasing iteration count, the fitness value of WRTH-BP decreases rapidly, and its decrease is faster than that of the RTH-BP model. Within the same iteration count range, the fitness value of WRTH-BP decreases more significantly. The results show that the improved algorithm has a more significant effect on improving fitness in the initial iterations. In the middle of the iteration, during the 5th to 10th iterations, the fitness value of RTH-BP begins to gradually decrease, dropping to about 0.15 by the 10th iteration. The fitness value of WRTH-BP continues to decrease, dropping to about 0.13 by the 10th iteration, continuing to outperform RTH-BP. From the final fitness value, the fitness value of RTH-BP is about 0.13, while the fitness value of the improved IRTH is even lower, at about 0.11. This indicates that WRTH-BP has a better effect in predicting the volume of scrap steel stockpiles.
[0156] More specifically, such as Figure 5 As shown, the output errors of the WRTH-BP and RTH-BP models in predicting scrap steel stockpile volume vary with the predicted samples. The RTH-BP model has a larger prediction error range and more drastic fluctuations, with an error range of approximately -20 to 20. In contrast, the WRTH-BP model has a relatively smaller prediction error and a narrower fluctuation range, with an error range of approximately -5 to 5. From the curve trend, the mean error of the RTH-BP model deviates significantly from 0, indicating that this model has a larger deviation in predicting scrap steel stockpile volume. The mean error of the WRTH-BP model is close to 0, indicating that this model is more accurate in predicting scrap steel stockpile volume and has a smaller deviation.
[0157] More specifically, such as Figure 6 As shown, the output values of the WRTH-BP model and the RTH-BP model for predicting scrap steel stockpile volume are compared. The prediction results of the RTH-BP model are unstable, with large fluctuations in the predicted values as the sample changes, exhibiting significant high and low errors. The prediction results of the WRTH-BP model are more stable, with smaller differences between the predicted values and the actual values, and the fluctuations are also more gradual. In summary, the WRTH-BP model significantly outperforms the original RTH-BP model in predicting scrap steel stockpile volume. The WRTH-BP model not only approaches the actual values more closely in terms of overall trend, but also has smaller errors and higher stability, verifying its effectiveness and superiority in practical applications of scrap steel stockpile volume prediction.
[0158] It should be noted that in the description of the invention, the terms "upper", "lower", "left", "right", "front", "rear", etc., indicate the orientation or positional relationship based on the description of the structure of the invention shown in the accompanying drawings. They are only for the convenience of describing the invention and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention.
[0159] The terms "first" and "second" in this technical solution are merely designations for corresponding structures that are identical or similar, or that perform similar functions. They do not represent an arrangement of the importance of these structures, nor do they imply any ranking, comparison of size, or other meaning.
[0160] Furthermore, unless otherwise explicitly specified and limited, the terms "installation" and "connection" should be interpreted broadly. For example, a connection can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be a connection within two structures. Those skilled in the art can understand the specific meaning of the above terms in this invention by considering the overall concept of the invention and the specific context of the solution.
Claims
1. A method for predicting the volume of scrap steel stockpiles based on UAV 3D acquisition, comprising four steps: data preprocessing, feature extraction, model training, and volume prediction, characterized in that... The specific steps are as follows: S1. Use a drone to collect three-dimensional point cloud data of scrap steel piles, and preprocess the data, including noise filtering, missing point completion and point cloud alignment. S2. Extract effective feature data from the preprocessed 3D point cloud data. The effective feature data includes the density, distance, angle and height of the scrap steel stockpile volume points. Use the effective feature data as input to train the BP neural network. S3. By adjusting the hidden layer weights β and bias α of the BP neural network using the improved Red-tailed Kite optimization algorithm, a WRTH-BP prediction model for scrap steel stockpile volume is established; the improved Red-tailed Kite optimization algorithm includes: Step 1: Improve the transition factor of the Red-tailed Kite optimization algorithm. Use different forms of transition factors at different stages of the Red-tailed Kite optimization algorithm to improve the position update mathematical model of the global search stage of the standard Red-tailed Kite optimization algorithm. Step 2: Improve the gravity factor of the Red-tailed Kite optimization algorithm and combine it with the improved transition factor γ(t) to improve the position update mathematical model of the local development stage of the standard Red-tailed Kite optimization algorithm. Step S3, the improved Red-tailed Kite optimization algorithm, improves the position update mathematical model of the global search phase of the standard Red-tailed Kite optimization algorithm by improving the transition factor of the Red-tailed Kite optimization algorithm. The specific steps are as follows: D1. Different forms of transition factors are used at different stages of the Red-tailed Kite optimization algorithm. An adaptive fitness value feedback mechanism and a random perturbation intensity control parameter are introduced to improve the transition factors of the Red-tailed Kite optimization algorithm. ; (1); In equation (1), γ(t) is the improved transition factor. This represents the current iteration number. The maximum number of iterations, Let be the minimum fitness value in the t-th iteration. Let be the average fitness value of the t-th iteration. The minimum fitness value is the global minimum fitness value, and rand(0,1) is a random number between 0 and 1. The mathematical model for the random disturbance intensity control parameters is as follows: (2); In equation (2), The initial value for the random disturbance intensity control parameter is 2. Let be the maximum standard deviation of the population fitness in the Red-tailed Kite optimization algorithm. Let be the standard deviation of the population fitness at the t-th iteration; D2. Using formula (3), the transition factor γ(t) of the improved Red-tailed Kite optimization algorithm is used to improve the position update mathematical model of the global search stage of the Red-tailed Kite optimization algorithm; (t)(3); In equation (3), Let be the latest position of the red-tailed kite in the t-th iteration. This represents the average position of the red-tailed kite population. This is the optimal position for the Red-tailed Kite in the entire game. Let be the flight distribution function, and γ(t) be the transition factor for the t-th iteration improvement. From the perspective of the problem dimension; Step S3 involves improving the gravity factor in the Red-tailed Kite optimization algorithm and combining it with an improved transition factor γ(t) to improve the position update mathematical model for the local development phase of the standard Red-tailed Kite optimization algorithm. The specific steps are as follows: Y1. The distribution density H(t) of the red-tailed kite population is calculated using the fitness distribution. The mathematical model is as follows: (4); In equation (4), Let be the fitness value of the i-th position of the red-tailed kite in the t-th iteration. This is the largest scale of the red-tailed kite; Y2. Improving the gravity factor of the Red-tailed Kite optimization algorithm by combining the distribution density H(t) and the number of iterations t. The improved gravity factor ; (5); In equation (5), H(t) is the density of the red-tailed kite colony at the t-th iteration, H max This represents the maximum value of the distribution density; Y3, Utilizing the improved gravity factor The improved transition factor γ(t) improves the position update mathematical model of the Red-tailed Kites optimization algorithm in the local development phase; (6); In equation (6), and For direction coordinates, The mathematical model is as follows: ; The mathematical model is , Let t be the spiral flight radius, a random number between 0 and 1, and θ(t) be the angle gain. Let be the acceleration coefficient for the t-th iteration, and StepSize1(t) be the step size. The mathematical model is: ; StepSize2(t) is the second step size, and the mathematical model is as follows: ; For an improved gravity factor; S4. Use the WRTH-BP prediction model to predict the volume of the newly acquired 3D point cloud data and output the accurate volume value of the scrap steel stockpile.
2. The method for predicting the volume of scrap steel stockpiles based on UAV 3D acquisition according to claim 1, characterized in that, The mathematical model for data preprocessing in step S1 is as follows: ; In the formula, P represents point cloud data, and the mathematical model is: C represents the noisy point cloud, and the mathematical model is: q represents the number of point cloud data points, and s represents the number of noisy point clouds. This is the 3D point cloud data of the pre-processed scrap steel stockpile.
3. A method for predicting the volume of scrap steel stockpiles based on UAV three-dimensional acquisition, as described in claim 1 or 2, characterized in that, The specific steps for adjusting the hidden layer weights β and biases α of a BP neural network using the improved Red-tailed Kite optimization algorithm are as follows: S31. The hidden layer weights β and bias α of the BP neural network used for predicting the volume of scrap steel stockpiles are encoded into a spatial vector U, and the spatial vector U is mapped in two dimensions to the individual positions of red-tailed kites in the red-tailed kite optimization algorithm. S32. Initialize the population position of the Red-tailed Kites optimization algorithm using formula (7). Set parameters including population size N, problem dimension dim, upper bound of the algorithm search space UB, lower bound of the algorithm search space LB, maximum number of iterations T, initial number of iterations t=0, and fitness function. (7); In equation (7), This is the initial position of the Red-tailed Kite. Let be the position of the i-th individual red-tailed kite in the j-th dimension, where j = 1, 2, 3, ..., dim, and rand(0, 1) is a random number between 0 and 1; S33. Determine whether the current iteration number t satisfies t=T. If it does, exit the tuning of the hidden layer weights β and bias α of the BP neural network, output the position of the red-tailed kite corresponding to the global minimum fitness value and parse it into the spatial vector of the hidden layer weights β and bias α of the BP neural network, and obtain the optimal hidden layer weights β and bias α parameter values of the BP neural network for predicting the scrap steel stockpile volume. Otherwise, proceed to step S34; S34. Calculate the fitness value of individuals in the current iteration of the red-tailed kite population using the fitness function, and the minimum fitness value is... and compared with the fitness value of the previous iteration. The smaller fitness value is selected as the current best fitness value. S35. Establish population position update formulas for the Red-tailed Kite optimization algorithm in the global search phase, local development phase, and transition phase, and update the individual positions of Red-tailed Kites. The specific steps are as follows: S351. During the high-flying phase, the red-tailed kite will search for the best position of its prey in the air. According to formula (3), establish the position update mathematical model of the red-tailed kite optimization algorithm in the global search phase. S352. During the low-flying phase, the red-tailed kite will spiral around the prey's location to select the best attack opportunity and position. The position update mathematical model of the red-tailed kite optimization algorithm in the transition phase is established according to formula (8). (8); In equation (8), and For direction coordinates, The mathematical model is as follows: ; The mathematical model is ; Let t be the spiral flight radius, a random number between 0 and 1, and θ(t) be the angle gain. For the current iteration The step size in time, the mathematical model is: ; S353. During the dive phase, the red-tailed kite suddenly dives from the best position to attack the prey. According to formula (6), establish the position update mathematical model of the red-tailed kite optimization algorithm in the local development phase. S36, for the current iteration number t, execute t=t+1, and return to step S33.
Citation Information
Patent Citations
Course control method of underwater bionic fish robot
CN117452806A
Strip steel thickness prediction method employing shuffled frog leaping feedback extreme learning machine
CN110110447A
Unmanned aerial vehicle and path planning method thereof
CN118387334A
