A method for analyzing the logistics transportation capacity of unmanned aerial vehicles
By building a quantitative analysis and evaluation index system and prediction model for drone flight distance, identifying abnormal data, and determining the scope of drone logistics distribution, the problem of unclear drone transportation capacity is solved and transportation efficiency and safety are improved.
Patent Information
- Application Number
- CN202411594926.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-11-11
AI Technical Summary
The impact of various factors on the transport capacity of drones during drone flight is not considered in the prior art, resulting in unclear actual logistics transport capacity of drones and difficult to meet actual transport needs.
By building a quantitative analysis and evaluation index system for drone flight distance, identify abnormal data of influencing factors, establish a drone flight distance prediction model, predict the flight capabilities of drone under specific conditions, and determine all logistics transportation points within the drone logistics distribution range.
The flight capabilities of drones under different conditions have been clarified, the accuracy of drone flight distance estimates has been improved, the use of drones has been optimized, and the mission planning can be carried out within the range of endurance permitted by drones, so as to avoid power exhaustion or other risks in the middle.
Smart Images

Figure CN119128463B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for analyzing the logistics transportation capacity of an unmanned aerial vehicle, and belongs to the technical field of quantification of the transportation capacity of unmanned aerial vehicles. Background Art
[0002] In the context of low-altitude economy, the application of drones in the logistics industry is changing the way goods are delivered, especially showing significant advantages in improving efficiency and reducing costs. In urban areas, drones can effectively avoid ground traffic congestion and directly deliver small goods to the destination quickly, greatly improving the delivery speed and timeliness. In addition, drones have lower operating costs than traditional means of transportation such as trucks or motorcycles, especially in short-distance and small-batch delivery scenarios. This cost advantage is more obvious. Therefore, the use of drones not only improves the efficiency of logistics distribution, but also significantly reduces the overall logistics costs, especially in the express delivery industry and urgent delivery services.
[0003] From the perspective of environmental impact and sustainability, drone transportation also shows its advantages. Due to the reduction in the use of ground transportation, drone delivery plays an important role in alleviating traffic congestion and reducing carbon emissions. Especially when drones are powered by electricity and the energy comes from renewable energy, their negative impact on the environment will be further reduced, which not only helps the logistics industry to shift to a more environmentally friendly operating model, but also promotes the environmental sustainability of the entire society. As an efficient, environmentally friendly and flexible delivery method, drones can play a significant role in alleviating urban traffic congestion, reducing carbon emissions, increasing delivery speed and reducing operating costs. By analyzing the transportation capacity of drones in detail, companies and policymakers can better evaluate their applicability and benefits in specific scenarios. Analysis of drone transportation capacity can also reveal the challenges and opportunities faced by drone transportation in terms of technology, economies of scale and regulatory compliance, providing data support and decision-making basis for future technological improvements and policy formulation.
[0004] In the prior art, a patent document with publication number CN112520040A discloses a UAV and a UAV system for logistics transportation, which designs a UAV for logistics transportation and has the ability to automatically load and unload goods, which is achieved through a cargo bin and an intelligent sliding box at the bottom of the frame. The box design includes a reverse-threaded slide plate, which fixes the goods by clamping them with springs, thereby preventing the goods from falling during transportation and achieving shock absorption protection, significantly improving the efficiency and quality of logistics transportation; however, the prior art does not consider the impact of various factors on the transportation capacity of the UAV during the flight of the UAV, resulting in unclear actual logistics transportation capacity of the UAV, making it difficult to meet actual transportation needs.
[0005] Therefore, a method for analyzing the logistics transportation capabilities of drones is needed. Summary of the invention
[0006] A brief overview of the present invention is provided below in order to provide a basic understanding of certain aspects of the present invention. It should be understood that this overview is not an exhaustive overview of the present invention. It is not intended to identify key or important parts of the present invention, nor is it intended to limit the scope of the present invention. Its purpose is merely to present certain concepts in a simplified form as a prelude to a more detailed description discussed later.
[0007] In view of this, in order to solve the problem that the traditional method of using drones for logistics transportation in the prior art does not involve drone transportation capacity analysis, the present invention provides a drone logistics transportation capacity analysis method.
[0008] The technical solution is as follows: A method for analyzing the logistics transportation capacity of unmanned aerial vehicles includes the following steps:
[0009] S1. Collect data based on the evaluation indicators, build a quantitative analysis evaluation index system for the flight distance of UAVs, and obtain the element matrix corresponding to the evaluation indicators;
[0010] S2. According to the element matrix corresponding to the evaluation index, identify the abnormal data of the UAV influencing factors and obtain the updated UAV evaluation index element matrix;
[0011] S3. Build a UAV flight distance prediction model, input the updated UAV evaluation index element matrix to train the model, and output the predicted UAV flight distance;
[0012] S4. Determine the coordinates of the logistics transportation points according to the drone flight area, and determine all the logistics transportation points within the drone logistics distribution range by calculating the distance relationship between the numbered logistics transportation points and the predicted drone flight distance.
[0013] Further, in said S1, the evaluation indexes include battery capacity, motor efficiency, propeller diameter, fuselage mass, load, flight speed, flight mode, wind speed, wind direction, temperature, humidity, flight altitude and flight distance;
[0014] The quantitative analysis and evaluation index system of UAV flight distance is specifically expressed as follows:
[0015] The battery capacity element matrix corresponding to the battery capacity is RL, RL = [rl1 rl2...rl WN ], WN is the number of drones, rl WN is the battery capacity corresponding to the WNth drone;
[0016] The motor efficiency element matrix corresponding to the motor efficiency is XL, XL = [xl1 xl2...xl WN ], xlWN is the motor efficiency corresponding to the WNth UAV;
[0017] The propeller diameter element matrix corresponding to the propeller diameter is ZJ, ZJ = [zj1 zj2...zj WN ],zj WN is the propeller diameter corresponding to the WNth UAV;
[0018] The fuselage mass element matrix corresponding to the fuselage mass is ZL, ZL = [zl1 zl2 ... zl WN ], zl WN is the fuselage mass corresponding to the WNth UAV;
[0019] The load element matrix corresponding to the load is ZZ, ZZ = [zz1 zz2...zz WN ],zz WN is the load corresponding to the WNth UAV;
[0020] The flight speed element matrix corresponding to the flight speed is SD, SD = [sd1 sd2 ... sd WN ], sd WN is the flight speed corresponding to the WNth UAV;
[0021] The flight mode element matrix corresponding to the flight mode is MS, MS = [ms1 ms2...ms WN ],ms WN The flight mode corresponding to the WNth drone;
[0022] The wind speed element matrix corresponding to the wind speed is FS, FS = [fs1 fs2...fs WN ], fs WN is the wind speed corresponding to the WNth UAV;
[0023] The wind direction element matrix corresponding to the wind direction is FX, FX = [fx1 fx2...fx WN ], fx WN is the wind direction corresponding to the WNth UAV;
[0024] The temperature element matrix corresponding to the temperature is QW, QW = [qw1 qw2...qw WN ], qw WN is the temperature corresponding to the WNth UAV;
[0025] The humidity element matrix corresponding to humidity is PD, PD = [pd1 pd2...pd WN ], pd WN is the humidity corresponding to the WNth drone;
[0026] The flight height element matrix corresponding to the flight height is GD, GD = [gd1 gd2 ... gd WN ], gd WN is the flight altitude corresponding to the WNth UAV;
[0027] The flight distance element matrix corresponding to the flight distance is JL, JL = [jl1 jl2 ... jl WN ], jl WN is the flight distance corresponding to the WNth UAV.
[0028] Furthermore, in S2, the process of identifying abnormal battery capacity data is as follows: the average value of the battery capacity of WN drones is calculated. The standard deviation σ of the battery capacity of WN drones rl The relative distance D between any data and the mean value rl , compare the relative distance D between a single data point and the mean rl Relationship with 3, when D rl ≤3, the data rl for judging the battery capacity of the drone i Normal data is retained. rl >3, the data rl for judging the battery capacity of the drone i The above operation is performed on all data, and all abnormal data are deleted to obtain the updated battery capacity element matrix RL', RL' = [rl1'rl2'...rl WM '],rl WM 'The updated battery capacity data corresponding to the WNth drone;
[0029] The average battery capacity of WN drones It is expressed as:
[0030]
[0031] The standard deviation σ of the battery capacity of WN drones rl It is expressed as:
[0032]
[0033] The relative distance D between any data and the mean value rl It is expressed as:
[0034]
[0035] According to the battery capacity abnormal data identification process, an updated motor efficiency element matrix XL', an updated propeller diameter element matrix ZJ', an updated fuselage mass element matrix ZL', an updated load element matrix ZZ', an updated flight speed element matrix SD', an updated flight mode element matrix MS', an updated wind speed element matrix FS', an updated wind direction element matrix FX', an updated temperature element matrix QW', an updated humidity element matrix PD', an updated flight altitude element matrix GD' and an updated flight distance element matrix JL' are established.
[0036] Furthermore, in S3, the UAV flight distance prediction model includes an input layer, 7 hidden layers, a self-attention layer, 2 residual layers and an output layer;
[0037] The neural network structure of the established UAV flight distance prediction model is connected in the following order:
[0038] Input layer: take the updated battery capacity element matrix RL', the updated motor efficiency element matrix XL', the updated propeller diameter element matrix ZJ', the updated fuselage mass element matrix ZL', the updated load element matrix ZZ', the updated flight speed element matrix SD', the updated flight mode element matrix MS', the updated wind speed element matrix FS', the updated wind direction element matrix FX', the updated temperature element matrix QW', the updated humidity element matrix PD', the updated flight altitude element matrix GD' and the updated flight distance element matrix JL' as input;
[0039] Hidden layer 1: Number of neurons: 512, activation function: ReLU, batch normalization;
[0040] Hidden layer 2: number of neurons: 256, activation function: ReLU, batch normalization;
[0041] Self-attention layer: input the output matrix X of hidden layer 2; initialize the weight matrix and establish the initial weight query matrix W in turn Q , initial weight key matrix W K and the initial weight matrix W V , transform the output matrix X into the query matrix Q, key matrix K and value matrix V, Q = XW Q , K = XW K , V = XW V ; Calculate the similarity between the query matrix Q and the key matrix K to obtain the attention score matrix A, Among them, d k is the scaling factor; the softmax function is used to normalize the attention score matrix A so that the sum of the elements in each row is 1, and the normalized matrix B is obtained and output.
[0042] Hidden layer 3: Number of neurons: 128, activation function: ReLU, batch normalization;
[0043] Residual layer 1: The output of hidden layer 1 is connected to the output of hidden layer 3 through residual connection.
[0044] Hidden layer 4: number of neurons: 64, activation function: ReLU, batch normalization;
[0045] Hidden layer 5: number of neurons: 32, activation function: ReLU, batch normalization;
[0046] Hidden layer 6: number of neurons: 16, activation function: ReLU, batch normalization;
[0047] Residual layer 2: The output of hidden layer 4 is connected to the output of hidden layer 6 through residual connection;
[0048] Hidden layer 7: Number of neurons: 8, activation function: ReLU, batch normalization;
[0049] Output layer: Number of neurons: 1, outputs the predicted flight distance of the drone.
[0050] Furthermore, in S4, a three-dimensional coordinate system is established for the logistics transportation area, the coordinates of the logistics transportation points are determined, and the coordinates of the i-th logistics transportation point are marked as C i , C i =[x i y i z i ], where i = 1, 2, 3, ..., F, F is the total number of logistics transportation points, x i is the horizontal coordinate of the i-th logistics transportation point, y i is the ordinate of the i-th logistics transport point, z i is the vertical coordinate of the i-th logistics transportation point, and the coordinate of the first drone landing pad is marked as C w , C w =[x w y w z w ], where x w is the horizontal coordinate of the drone landing pad, y w is the y value of the coordinate of the drone landing pad, z w is the z value of the coordinates of the drone landing pad;
[0051] For the first logistics transportation point C1, C1 = [x1 y1 z1], the distance D between the first logistics transportation point and the drone landing pad is calculated 1-w ;
[0052] The first distance D between the first logistics transportation point and the drone landing pad 1-w It is expressed as:
[0053]
[0054] According to the output predicted flight distance JL1 of the first UAV, compare the first distance D 1-w The relationship between the predicted flight distance of the first UAV JL1 and the predicted flight distance of the first UAV JL1 is 1-w ≥JL1, indicating that the distance between the first logistics transportation point and the drone landing apron exceeds the flight range of the first drone, and it is determined that the first logistics transportation point is not within the logistics distribution range of the first drone. 1-w When <JL1, it indicates that the first logistics transportation point is within the logistics distribution range of the first drone, in D 1-w <JL1, calculate the distance D between other logistics transportation points and the first logistics transportation point 1-i ;
[0055] The distance D between other logistics transportation points and the first logistics transportation point 1-i It is expressed as:
[0056]
[0057] The distance D between all other logistics transportation points and the first logistics transportation point 1-i Sort from small to large, and number the logistics transportation points in the above order. The coordinates of the i-th logistics transportation point after numbering are E i , E i =[x ei y ei z ei ], where x ei is the horizontal coordinate of the numbered i-th logistics transportation point, y ei is the ordinate of the numbered i-th logistics transport point, z ei is the vertical coordinate of the numbered ith logistics transport point, the coordinate of the first logistics transport point after numbering is E1, E1 = [x e1 y e1 z e1 ], where x e1 is the horizontal coordinate of the first logistics transportation point after numbering, y e1 is the ordinate of the first logistics transport point after numbering, z e1 is the vertical coordinate of the first logistics transportation point after numbering, and the first center point coordinate CE1 between the first logistics transportation point C1 and the first logistics transportation point E1 after numbering is calculated, CE1 = [x ce1 yce1 z ce1 ], where x ce1 is the horizontal coordinate of the first center point, y ce1 is the ordinate of the first center point, z ce1 is the vertical coordinate of the first center point, Calculate the distance D between the first center point and the first drone landing pad 1-CE1 ;
[0058] The second distance D between the first center point and the first drone landing pad 1-CE1 It is expressed as:
[0059]
[0060] Compare the second distance D 1-CE1 The distance between the predicted first UAV flight distance JL1, when D 1-CE1 ≥JL1, indicating that the first logistics transport point E1 after the numbering is not within the logistics distribution range of the first drone. 1-CE1 When <JL1, it indicates that the first logistics transportation point E1 after the numbering is within the logistics distribution range of the first drone, in D 1-CE1 <JL1, the coordinates of the second logistics transportation point are E2, E2=[x e2 y e2 z e2 ], where x e2 is the horizontal coordinate of the second logistics transportation point after numbering, y e2 is the ordinate of the second logistics transport point after the numbering, z e2 is the vertical coordinate of the second logistics transportation point after numbering, and the second center point coordinate CE between the first logistics transportation point C1 and the first logistics transportation point E1 and the second logistics transportation point E2 after numbering is calculated. 12 , C.E. 12 =[x ce12 y ce12 z ce12 ], where x ce12 is the horizontal coordinate of the second midpoint, y ce12 is the ordinate of the second midpoint, z ce12 is the vertical coordinate of the second midpoint, Calculate the distance D between the second center point and the first drone landing pad 1-CE12 ;
[0061] The third distance D between the second center point and the first drone landing pad 1-CE12It is expressed as:
[0062]
[0063] Compare the third distance D 1-CE12 The distance between the predicted first UAV flight distance JL1, when D 1-CE12 ≥JL1, indicating that the second logistics transport point E2 after the numbering is not within the logistics distribution range of the first drone. 1-CE12 When <JL1, it indicates that the second logistics transportation point E2 after the numbering is within the logistics distribution range of the first drone;
[0064] Repeat the above steps to determine all logistics transportation points within the entire drone logistics distribution range.
[0065] The beneficial effects of the present invention are as follows: the present invention systematically evaluates the performance of drones by establishing a quantitative analysis and evaluation index system for drone flight distance, and clarifies the flight capabilities of drones under different conditions; the present invention identifies abnormal data related to data on factors affecting the flight distance of drones, ensures the accuracy and reliability of the data, and improves the accuracy of drone flight distance estimation; the present invention establishes a drone flight distance prediction model that can predict the flight capabilities of drones under specific conditions, optimizes the use of drones, and ensures that drones can plan missions within the range allowed by their endurance, avoiding mid-trip power depletion or other risks; the present invention clarifies the transportation capacity of drones by determining all logistics transportation points within the logistics distribution range of all drones, and effectively supports distribution efficiency optimization, transportation risk management and cost control. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0067] Figure 1 The figure is a flow chart of a method for analyzing the logistics transportation capacity of unmanned aerial vehicles. DETAILED DESCRIPTION
[0068] In order to make the technical solutions and advantages of the embodiments of the present invention more clearly understood, the exemplary embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0069] refer to Figure 1 The present embodiment is described in detail, a method for analyzing the logistics transportation capacity of a drone, specifically comprising the following steps:
[0070] S1. Collect data based on the evaluation indicators, build a quantitative analysis evaluation index system for the flight distance of UAVs, and obtain the element matrix corresponding to the evaluation indicators;
[0071] S2. According to the element matrix corresponding to the evaluation index, identify the abnormal data of the UAV influencing factors and obtain the updated UAV evaluation index element matrix;
[0072] S3. Build a UAV flight distance prediction model, input the updated UAV evaluation index element matrix to train the model, and output the predicted UAV flight distance;
[0073] S4. Determine the coordinates of the logistics transportation points according to the drone flight area, and determine all the logistics transportation points within the drone logistics distribution range by calculating the distance relationship between the numbered logistics transportation points and the predicted drone flight distance.
[0074] Furthermore, in S1, the quantitative analysis and evaluation index system of the UAV flight distance includes battery capacity, motor efficiency, propeller diameter, fuselage mass, load, flight speed, flight mode, wind speed, wind direction, temperature, humidity, flight altitude and flight distance;
[0075] The battery capacity determines the total amount of electrical energy that the drone can use, thus affecting its continuous flight time. The battery capacity element matrix corresponding to the battery capacity is RL, RL = [rl1 rl2...rl WN ], WN is the number of drones, rl WN is the battery capacity corresponding to the WNth drone;
[0076] Motor efficiency refers to the efficiency of the motor in converting electrical energy into mechanical energy. A high-efficiency motor can increase the flight time. The motor efficiency element matrix corresponding to the motor efficiency is XL, XL = [xl1 xl2...xl WN ], xl WN is the motor efficiency corresponding to the WNth UAV;
[0077] The propeller size affects the thrust and flight efficiency of the drone. The propeller diameter directly affects the thrust and aerodynamic performance it provides. The propeller diameter element matrix corresponding to the propeller diameter is ZJ, ZJ = [zj1 zj2...zj WN ],zj WN is the propeller diameter corresponding to the WNth UAV;
[0078] The fuselage mass affects the take-off and flight stability of the UAV. The fuselage mass element matrix corresponding to the fuselage mass is ZL, ZL = [zl1 zl2 ... zl WN ], zl WNis the fuselage mass corresponding to the WNth UAV;
[0079] The load refers to the extra weight that the drone can carry in addition to its own weight. The load element matrix corresponding to the load is ZZ, ZZ = [zz1 zz2...zz WN ],zz WN is the load corresponding to the WNth UAV;
[0080] The flight speed directly affects the flight distance and time. The flight speed element matrix corresponding to the flight speed is SD, SD = [sd1 sd2...sd WN ], sd WN is the flight speed corresponding to the WNth UAV;
[0081] The flight mode determines different energy consumption and operating conditions. The flight modes include manual mode, stable mode, hovering mode, heading mode, return mode, follow mode, waypoint flight, and track flight. For quantitative comparison, the above modes are encoded as 1-8 in sequence. The flight mode element matrix corresponding to the flight mode is MS, MS = [ms1 ms2...ms WN ],ms WN The flight mode corresponding to the WNth drone;
[0082] Wind speed will affect the flight efficiency and control of the drone. The wind speed element matrix corresponding to the wind speed is FS, FS = [fs1fs2...fs WN ], fs WN is the wind speed corresponding to the WNth UAV;
[0083] Wind direction affects the flight path and energy consumption of the drone. The wind direction angle is used to quantitatively analyze and compare the wind direction. The wind direction element matrix corresponding to the wind direction is FX, FX = [fx1 fx2...fx WN ], fx WN is the wind direction corresponding to the WNth UAV;
[0084] The temperature affects the battery performance and air density, which in turn affects the flight. The temperature element matrix corresponding to the temperature is QW, QW = [qw1 qw2...qw WN ], qw WN is the temperature corresponding to the WNth UAV;
[0085] High humidity will affect the efficiency and reliability of electronic equipment. The humidity element matrix corresponding to humidity is PD, PD = [pd1 pd2...pd WN ], pd WN is the humidity corresponding to the WNth drone;
[0086] The flight altitude affects the air density and flight efficiency. The flight altitude element matrix corresponding to the flight altitude is GD, GD = [gd1 gd2...gd WN ], gd WN is the flight altitude corresponding to the WNth UAV;
[0087] The flight distance element matrix corresponding to the flight distance is JL, JL = [jl1 jl2 ... jl WN ], jl WN is the flight distance corresponding to the WNth UAV;
[0088] Specifically, the flight distance of the drone directly affects the logistics transportation capacity. Therefore, the flight distance of the drone is used as a quantitative indicator of the logistics transportation capacity of the drone. At the same time, there are many factors that affect the flight distance of the drone, including battery capacity, motor efficiency, propeller diameter, fuselage mass, load, flight speed, flight mode, wind speed, wind direction, temperature, humidity, flight altitude, etc. In order to quantify the impact of each factor on the flight distance of the drone, it is necessary to first clarify the quantitative analysis indicators of each factor, and establish the corresponding element matrix based on the collected data.
[0089] Furthermore, in S2, the process of identifying abnormal battery capacity data is as follows: the average value of the battery capacity of WN drones is calculated. The standard deviation σ of the battery capacity of WN drones rl The relative distance D between any data and the mean value rl , compare the relative distance D between a single data point and the mean rl Relationship with 3, when D rl ≤3, the data rl for judging the battery capacity of the drone i Normal data is retained. rl >3, the data rl for judging the battery capacity of the drone i The above operation is performed on all data, and all abnormal data are deleted to obtain the updated battery capacity element matrix RL', RL' = [rl1'rl2'...rl WM '],rl WM 'The updated battery capacity data corresponding to the WNth drone;
[0090] The average battery capacity of WN drones It is expressed as:
[0091]
[0092] The standard deviation σ of the battery capacity of WN drones rl It is expressed as:
[0093]
[0094] The relative distance D between any data and the mean value rl It is expressed as:
[0095]
[0096] According to the abnormal battery capacity data identification process, the updated motor efficiency element matrix XL', the updated propeller diameter element matrix ZJ', the updated fuselage mass element matrix ZL', the updated load element matrix ZZ', the updated flight speed element matrix SD', the updated flight mode element matrix MS', the updated wind speed element matrix FS', the updated wind direction element matrix FX', the updated temperature element matrix QW', the updated humidity element matrix PD', the updated flight altitude element matrix GD' and the updated flight distance element matrix JL' are established, XL'=[xl1'xl2'...xl WM '],ZJ'=[zj1'zj2'...zj WM '], ZL'=[zl1'zl2'...zl WM '], ZZ' = [zz1'zz2'...zz WM '], SD' = [sd1'sd2'...sd WM '], MS' = [ms1' ms2' ... ms WM '], FS' = [fs1'fs2'...fs WM '],FX'=[fx1'fx2'...fx WM '], QW' = [qw1'qw2'...qw WM '], PD' = [pd1'pd2'...pd WM '],GD'=[gd1'gd2'...gd WM '],JL'=[jl1'jl2'...jl WM '], where xl WM ' is the updated motor efficiency data corresponding to the WNth drone, zj WM ' is the updated motor efficiency data corresponding to the WNth drone, zl WM ' is the updated data of the fuselage mass corresponding to the WNth UAV, zz WM ' is the updated load data corresponding to the WNth UAV, sd WM ' is the updated flight speed data of the WNth drone, ms WM ' is the updated flight mode data corresponding to the WNth drone, fs WM' is the updated wind speed data corresponding to the WNth drone, fx WM ' is the updated wind direction data corresponding to the WNth UAV, qw WM ' is the updated temperature data corresponding to the WNth drone, pd WM ' is the updated humidity data corresponding to the WNth drone, gd WM ' is the updated flight altitude data corresponding to the WNth UAV, jl WM ' is the updated flight distance data corresponding to the WNth UAV;
[0097] Specifically, the number of elements in all element matrices needs to remain the same, so the number of elements in the updated element matrix, that is, the amount of data after deleting abnormal data, is still WN.
[0098] Furthermore, in S3, the UAV flight distance prediction model includes an input layer, 7 hidden layers, a self-attention layer, 2 residual layers and an output layer;
[0099] The neural network structure of the established UAV flight distance prediction model is connected in the following order:
[0100] Input layer: take the updated battery capacity element matrix RL', the updated motor efficiency element matrix XL', the updated propeller diameter element matrix ZJ', the updated fuselage mass element matrix ZL', the updated load element matrix ZZ', the updated flight speed element matrix SD', the updated flight mode element matrix MS', the updated wind speed element matrix FS', the updated wind direction element matrix FX', the updated temperature element matrix QW', the updated humidity element matrix PD', the updated flight altitude element matrix GD' and the updated flight distance element matrix JL' as input;
[0101] Hidden layer 1: Number of neurons: 512, activation function: ReLU, batch normalization;
[0102] Hidden layer 2: number of neurons: 256, activation function: ReLU, batch normalization;
[0103] Self-attention layer: input the output matrix X of hidden layer 2; initialize the weight matrix and establish the initial weight query matrix W in turn Q , initial weight key matrix W K and the initial weight matrix W V , transform the output matrix X into the query matrix Q, key matrix K and value matrix V, Q = XW Q , K = XW K , V = XW V; Calculate the similarity between the query matrix Q and the key matrix K to obtain the attention score matrix A, Among them, d k is the scaling factor; the softmax function is used to normalize the attention score matrix A so that the sum of the elements in each row is 1, and the normalized matrix B is obtained and output. The output of the normalization operation is a weighted average value matrix, that is, each element in the sequence adjusts its representation according to its correlation with other elements; the normalized matrix B captures the important relationships within the output matrix X of hidden layer 2 and serves as the input of the next layer;
[0104] Hidden layer 3: Number of neurons: 128, activation function: ReLU, batch normalization;
[0105] Residual layer 1: The output of hidden layer 1 is connected to the output of hidden layer 3 through residual connection.
[0106] Hidden layer 4: number of neurons: 64, activation function: ReLU, batch normalization;
[0107] Hidden layer 5: number of neurons: 32, activation function: ReLU, batch normalization;
[0108] Hidden layer 6: number of neurons: 16, activation function: ReLU, batch normalization;
[0109] Residual layer 2: The output of hidden layer 4 is connected to the output of hidden layer 6 through residual connection;
[0110] Hidden layer 7: Number of neurons: 8, activation function: ReLU, batch normalization;
[0111] Output layer: Number of neurons: 1, outputs the predicted flight distance of the drone;
[0112] Specifically, when the UAV flight distance prediction model is applied, it only needs to input the battery capacity, motor efficiency, propeller diameter, fuselage mass, load, flight speed, flight mode, wind speed, wind direction, temperature, humidity, and flight altitude data of the UAV to output the estimated flight distance of the UAV;
[0113] Compared with traditional mathematical models, neural network models have advantages in UAV flight distance prediction. First, neural network models can effectively capture and model the complex nonlinear relationship between input features, enabling neural network models to handle problems that are difficult to solve with traditional linear models. For example, the flight distance of a UAV is affected by many factors, and the interactions between these factors may be very complex. Neural networks can automatically learn and extract effective features from large amounts of data, reducing the need for manual selection and design of features. In the prediction of UAV flight distance, the network can automatically learn the key factors that determine the flight distance from the raw data without the need for specialized domain knowledge to guide feature engineering.
[0114] The present invention constructs a UAV flight distance prediction model based on a neural network, which mainly includes a hidden layer, a self-attention layer, a residual layer, etc., wherein the hidden layer can help the network capture the nonlinear relationship in the input data through a nonlinear activation function, and can be used to characterize the nonlinear influence of multiple factors on the flight distance of the UAV. Each hidden layer can be regarded as performing a feature conversion, gradually converting the original input into an internal representation with more predictive value for the output variable. In the above process, the deep network structure helps to extract more abstract high-level features; the self-attention layer enables the network to evaluate the importance of other features when processing each input feature, and dynamically adjusts the weight distribution by learning the contribution of different features to the prediction task, so as to more flexibly capture the interaction between the features and improve the accuracy of the prediction and the adaptability of the model; the residual layer ensures that the initial information can directly affect the final output by adding the features of the early layer to the features of the subsequent layer, which is very helpful for maintaining the information integrity of the network in the deep structure.
[0115] Furthermore, a three-dimensional coordinate system is established for the logistics transportation area to determine the coordinates of the logistics transportation points. Since the flight range of the drone is related to the coordinates of the logistics transportation points, for the convenience of description, the coordinates of the i-th logistics transportation point are marked as C i , C i =[x i y i z i ], where i = 1, 2, 3, ..., F, F is the total number of logistics transportation points, x i is the horizontal coordinate of the i-th logistics transportation point, y i is the ordinate of the i-th logistics transport point, z i is the vertical coordinate of the i-th logistics transportation point, and the coordinate of the first drone landing pad is marked as C w , C w =[x w y w z w ], where x w is the horizontal coordinate of the drone landing pad, yw is the y value of the coordinate of the drone landing pad, z w is the z value of the coordinates of the drone landing pad;
[0116] For the first logistics transportation point C1, C1 = [x1 y1 z1], the distance D between the first logistics transportation point and the drone landing pad is calculated 1-w ;
[0117] The first distance D between the first logistics transportation point and the drone landing pad 1-w It is expressed as:
[0118]
[0119] According to the output predicted flight distance JL1 of the first UAV, compare the first distance D 1-w The relationship between the predicted flight distance of the first UAV JL1 and the predicted flight distance of the first UAV JL1 is 1-w When ≥JL1, it indicates that the distance between the first logistics transportation point and the drone landing apron exceeds the flight range of the first drone. It is determined that the first logistics transportation point is not within the logistics distribution range of the first drone. When analyzing the flight range of the drone, the first logistics transportation point is not considered. 1-w When <JL1, it indicates that the first logistics transportation point is within the logistics distribution range of the first drone, in D 1-w <JL1, calculate the distance D between other logistics transportation points and the first logistics transportation point 1-i ;
[0120] The distance D between other logistics transportation points and the first logistics transportation point 1-i It is expressed as:
[0121]
[0122] The distance D between all other logistics transportation points and the first logistics transportation point 1-i Sort from small to large, and number the logistics transportation points in the above order. The coordinates of the i-th logistics transportation point after numbering are E i , E i =[x ei y ei z ei ], where x ei is the horizontal coordinate of the numbered i-th logistics transportation point, y ei is the ordinate of the numbered i-th logistics transport point, z ei is the vertical coordinate of the numbered ith logistics transport point, the coordinate of the first logistics transport point after numbering is E1, E1 = [x e1 y e1 ze1 ], where x e1 is the horizontal coordinate of the first logistics transportation point after numbering, y e1 is the ordinate of the first logistics transport point after numbering, z e1 is the vertical coordinate of the first logistics transportation point after numbering, and the first center point coordinate CE1 between the first logistics transportation point C1 and the first logistics transportation point E1 after numbering is calculated, CE1 = [x ce1 y ce1 z ce1 ], where x ce1 is the horizontal coordinate of the first center point, y ce1 is the ordinate of the first center point, z ce1 is the vertical coordinate of the first center point, Calculate the distance D between the first center point and the first drone landing pad 1-CE1 ;
[0123] The second distance D between the first center point and the first drone landing pad 1-CE1 It is expressed as:
[0124]
[0125] Compare the second distance D 1-CE1 The distance between the predicted first UAV flight distance JL1, when D 1-CE1 ≥JL1, it indicates that the first logistics transport point E1 after the numbering is not within the logistics distribution range of the first drone. At this time, when analyzing the flight range of the drone, the first logistics transport point E1 after the numbering is not considered. 1-CE1 When <JL1, it indicates that the first logistics transportation point E1 after the numbering is within the logistics distribution range of the first drone, in D 1-CE1 <JL1, the coordinates of the second logistics transportation point are E2, E2=[x e2 y e2 z e2 ], where x e2 is the horizontal coordinate of the second logistics transportation point after numbering, y e2 is the ordinate of the second logistics transport point after the numbering, z e2 is the vertical coordinate of the second logistics transportation point after numbering, and the second center point coordinate CE between the first logistics transportation point C1 and the first logistics transportation point E1 and the second logistics transportation point E2 after numbering is calculated. 12 , C.E. 12 =[x ce12 y ce12 z ce12 ], where xce12 is the horizontal coordinate of the second midpoint, y ce12 is the ordinate of the second midpoint, z ce12 is the vertical coordinate of the second midpoint, Calculate the distance D between the second center point and the first drone landing pad 1-CE12 ;
[0126] The third distance D between the second center point and the first drone landing pad 1-CE12 It is expressed as:
[0127]
[0128] Compare the third distance D 1-CE12 The distance between the predicted first UAV flight distance JL1, when D 1-CE12 ≥JL1, it indicates that the second logistics transport point E2 after the numbering is not within the logistics distribution range of the first drone. At this time, when analyzing the flight range of the drone, the second logistics transport point E2 after the numbering is not considered. 1-CE12 When <JL1, it indicates that the second logistics transportation point E2 after the numbering is within the logistics distribution range of the first drone. So far, all logistics transportation points within the logistics distribution range of the first drone have been determined;
[0129] Repeat the above steps to determine all logistics transportation points within the range of all drone logistics distribution, that is, to identify the numbered logistics transportation points E3, E4, ..., E F The distance relationship between the predicted flight distance of the first UAV JL1 and the numbered logistics transportation points E3, E4, ..., E F Is it within the logistics delivery range of the first drone?
[0130] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.
Claims
1. A method for analyzing the logistics transportation capacity of unmanned aerial vehicles, characterized in that: The following steps are involved: S1. Collect data based on the evaluation indicators, build a quantitative analysis evaluation index system for the flight distance of UAVs, and obtain the element matrix corresponding to the evaluation indicators; S2. According to the element matrix corresponding to the evaluation index, identify the abnormal data of the UAV influencing factors and obtain the updated UAV evaluation index element matrix; S3. Build a UAV flight distance prediction model, input the updated UAV evaluation index element matrix to train the model, and output the predicted UAV flight distance; S4. Determine the coordinates of the logistics transportation points according to the drone flight area, and determine all logistics transportation points within the drone logistics distribution range by calculating the distance relationship between the numbered logistics transportation points and the predicted drone flight distance; In S4, a three-dimensional coordinate system is established for the logistics transportation area, the coordinates of the logistics transportation points are determined, and the coordinates of the i-th logistics transportation point are marked as C i , C i =[x i y i z i ], where i = 1, 2, 3, ..., F, F is the total number of logistics transportation points, x i is the horizontal coordinate of the i-th logistics transportation point, y i is the ordinate of the i-th logistics transport point, z i is the vertical coordinate of the i-th logistics transportation point, and the coordinate of the first drone landing pad is marked as C w , C w =[x w y w z w ], where x w is the horizontal coordinate of the drone landing pad, y w is the y value of the coordinate of the drone landing pad, z w is the z value of the coordinates of the drone landing pad; For the first logistics transportation point C1, C1 = [x1 y1 z1], the distance D between the first logistics transportation point and the drone landing pad is calculated 1-w ; The first distance D between the first logistics transportation point and the drone landing pad 1-w It is expressed as: According to the output predicted flight distance JL1 of the first UAV, compare the first distance D 1-w The relationship between the predicted flight distance of the first UAV JL1 and the predicted flight distance of the first UAV JL1 is 1-w ≥JL1, indicating that the distance between the first logistics transportation point and the drone landing apron exceeds the flight range of the first drone, and it is determined that the first logistics transportation point is not within the logistics distribution range of the first drone. 1-w When <JL1, it indicates that the first logistics transportation point is within the logistics distribution range of the first drone, in D 1-w <JL1, calculate the distance D between other logistics transportation points and the first logistics transportation point 1-i ; The distance D between other logistics transportation points and the first logistics transportation point 1-i It is expressed as: The distance D between all other logistics transportation points and the first logistics transportation point 1-i Sort from small to large, and number the logistics transportation points in the above order. The coordinates of the i-th logistics transportation point after numbering are E i , E i =[x ei y ei z ei ], where x ei is the horizontal coordinate of the numbered ith logistics transport point, y ei is the ordinate of the numbered i-th logistics transport point, z ei is the vertical coordinate of the numbered ith logistics transport point, the coordinate of the first logistics transport point after numbering is E1, E1 = [x e1 y e1 z e1 ], where x e1 is the horizontal coordinate of the first logistics transportation point after numbering, y e1 is the ordinate of the first logistics transport point after numbering, z e1 is the vertical coordinate of the first logistics transportation point after numbering, and the first center point coordinate CE1 between the first logistics transportation point C1 and the first logistics transportation point E1 after numbering is calculated, CE1 = [x ce1 y ce1 z ce1 ], where x ce1 is the horizontal coordinate of the first center point, y ce1 is the ordinate of the first center point, z ce1 is the vertical coordinate of the first center point, Calculate the distance D between the first center point and the first drone landing pad 1-CE1 ; The second distance D between the first center point and the first drone landing pad 1-CE1 It is expressed as: Compare the second distance D 1-CE1 The distance between the predicted first UAV flight distance JL1, when D 1-CE1 ≥JL1, indicating that the first logistics transport point E1 after the numbering is not within the logistics distribution range of the first drone. 1-CE1 When <JL1, it indicates that the first logistics transportation point E1 after the numbering is within the logistics distribution range of the first drone, in D 1-CE1 <JL1, the coordinates of the second logistics transportation point are E2, E2=[x e2 y e2 z e2 ], where x e2 is the horizontal coordinate of the second logistics transportation point after numbering, y e2 is the ordinate of the second logistics transport point after the numbering, z e2 is the vertical coordinate of the second logistics transportation point after numbering, and the second center point coordinate CE between the first logistics transportation point C1 and the first logistics transportation point E1 and the second logistics transportation point E2 after numbering is calculated. 12 , C.E. 12 =[x ce12 y ce12 z ce12 ], where x ce12 is the horizontal coordinate of the second midpoint, ,y ce12 is the ordinate of the second midpoint, , z ce12 is the vertical coordinate of the second midpoint, , calculate the distance D between the second center point and the first UAV landing pad 1-CE12 ; The third distance D between the second center point and the first drone landing pad 1-CE12 It is expressed as: Compare the third distance D 1-CE12 The distance between the predicted first UAV flight distance JL1, when D 1-CE12 ≥JL1, indicating that the second logistics transport point E2 after the numbering is not within the logistics distribution range of the first drone. 1-CE12 When <JL1, it indicates that the second logistics transportation point E2 after the numbering is within the logistics distribution range of the first drone; Repeat the above steps to determine all logistics transportation points within the entire drone logistics distribution range.
2. The method for analyzing the logistics transportation capacity of unmanned aerial vehicles according to claim 1 is characterized in that: In S1, the evaluation indicators include battery capacity, motor efficiency, propeller diameter, fuselage mass, load, flight speed, flight mode, wind speed, wind direction, temperature, humidity, flight altitude and flight distance; The quantitative analysis and evaluation index system of UAV flight distance is specifically expressed as follows: The battery capacity element matrix corresponding to the battery capacity is RL, RL = [rl1 rl2...rl WN ], WN is the number of drones, rl WN is the battery capacity corresponding to the WNth drone; The motor efficiency element matrix corresponding to the motor efficiency is XL, XL = [xl1 xl2...xl WN ], xl WN is the motor efficiency corresponding to the WNth UAV; The propeller diameter element matrix corresponding to the propeller diameter is ZJ, ZJ = [zj1 zj2...zj WN ],zj WN is the propeller diameter corresponding to the WNth UAV; The fuselage mass element matrix corresponding to the fuselage mass is ZL, ZL = [zl1 zl2 ... zl WN ], zl WN is the fuselage mass corresponding to the WNth UAV; The load element matrix corresponding to the load is ZZ, ZZ = [zz1 zz2...zz WN ],zz WN is the load corresponding to the WNth UAV; The flight speed element matrix corresponding to the flight speed is SD, SD = [sd1 sd2 ... sd WN ], sd WN is the flight speed corresponding to the WNth UAV; The flight mode element matrix corresponding to the flight mode is MS, MS = [ms1 ms2...ms WN ],ms WN The flight mode corresponding to the WNth drone; The wind speed element matrix corresponding to the wind speed is FS, FS = [fs1 fs2...fs WN ], fs WN is the wind speed corresponding to the WNth UAV; The wind direction element matrix corresponding to the wind direction is FX, FX = [fx1 fx2...fx WN ], fx WN is the wind direction corresponding to the WNth UAV; The temperature element matrix corresponding to the temperature is QW, QW = [qw1 qw2...qw WN ], qw WN is the temperature corresponding to the WNth UAV; The humidity element matrix corresponding to humidity is PD, PD = [pd1 pd2...pd WN ], pd WN is the humidity corresponding to the WNth drone; The flight height element matrix corresponding to the flight height is GD, GD = [gd1 gd2 ... gd WN ], gd WN is the flight altitude corresponding to the WNth UAV; The flight distance element matrix corresponding to the flight distance is JL, JL = [jl1 jl2 ... jl WN ], jl WN is the flight distance corresponding to the WNth UAV.
3. The method for analyzing the logistics transportation capacity of unmanned aerial vehicles according to claim 2 is characterized in that: In S2, the process of identifying abnormal battery capacity data is as follows: the average value of the battery capacity of WN drones is calculated. The standard deviation σ of the battery capacity of WN drones rl The relative distance D between any data and the mean value rl , compare the relative distance D between a single data point and the mean rl Relationship with 3, when D rl ≤3, the data rl for judging the battery capacity of the drone i It is normal data and is retained. rl >3, the data rl for judging the battery capacity of the drone i The above operation is performed on all data, and all abnormal data are deleted to obtain the updated battery capacity element matrix RL', RL' = [rl1'rl2'...rl WM '],rl WM 'The updated battery capacity data corresponding to the WNth drone; The average battery capacity of WN drones It is expressed as: The standard deviation σ of the battery capacity of WN drones rl It is expressed as: The relative distance D between any data and the mean value rl It is expressed as: According to the battery capacity abnormal data identification process, an updated motor efficiency element matrix XL', an updated propeller diameter element matrix ZJ', an updated fuselage mass element matrix ZL', an updated load element matrix ZZ', an updated flight speed element matrix SD', an updated flight mode element matrix MS', an updated wind speed element matrix FS', an updated wind direction element matrix FX', an updated temperature element matrix QW', an updated humidity element matrix PD', an updated flight altitude element matrix GD' and an updated flight distance element matrix JL' are established.
4. The method for analyzing the logistics transportation capacity of unmanned aerial vehicles according to claim 3 is characterized in that: In S3, the UAV flight distance prediction model includes an input layer, 7 hidden layers, a self-attention layer, 2 residual layers and an output layer; The neural network structure of the established UAV flight distance prediction model is connected in the following order: Input layer: take the updated battery capacity element matrix RL', the updated motor efficiency element matrix XL', the updated propeller diameter element matrix ZJ', the updated fuselage mass element matrix ZL', the updated load element matrix ZZ', the updated flight speed element matrix SD', the updated flight mode element matrix MS', the updated wind speed element matrix FS', the updated wind direction element matrix FX', the updated temperature element matrix QW', the updated humidity element matrix PD', the updated flight altitude element matrix GD' and the updated flight distance element matrix JL' as input; Hidden layer 1: Number of neurons: 512, activation function: ReLU, batch normalization; Hidden layer 2: number of neurons: 256, activation function: ReLU, batch normalization; Self-attention layer: inputs the output matrix X of hidden layer 2; Initialize the weight matrix and build the initial weight query matrix W in turn Q , initial weight key matrix W K and the initial weight matrix W V , transform the output matrix X into the query matrix Q, key matrix K and value matrix V, Q = XW Q , K = XW K , V = XW V ; Calculate the similarity between the query matrix Q and the key matrix K to obtain the attention score matrix A. Among them, d k is the scaling factor; the softmax function is used to normalize the attention score matrix A so that the sum of the elements in each row is 1, and the normalized matrix B is obtained and output. Hidden layer 3: Number of neurons: 128, activation function: ReLU, batch normalization; Residual layer 1: The output of hidden layer 1 is connected to the output of hidden layer 3 through residual connection. Hidden layer 4: number of neurons: 64, activation function: ReLU, batch normalization; Hidden layer 5: number of neurons: 32, activation function: ReLU, batch normalization; Hidden layer 6: number of neurons: 16, activation function: ReLU, batch normalization; Residual layer 2: The output of hidden layer 4 is connected to the output of hidden layer 6 through residual connection; Hidden layer 7: Number of neurons: 8, activation function: ReLU, batch normalization; Output layer: Number of neurons: 1, outputs the predicted flight distance of the drone.
Citation Information
Patent Citations
Unmanned aerial vehicle and unmanned aerial vehicle system for logistics transportation
CN112520040A
Logistics distribution visualization system based on big data
CN118886807A
Indoor drone flight trajectory evaluation method
WO2024207699A1