Three-dimensional path planning method for AUV in ocean current environment based on improved artificial traveling wave algorithm
By improving the artificial lemming algorithm, using chaotic mapping to generate the initial population and optimizing the comprehensive fitness function, and combining ocean current thrust-assisted power, the problems of ocean current model simplification and coarse energy consumption calculation in AUV path planning are solved, realizing efficient and low-energy three-dimensional path planning in complex environments.
Patent Information
- Application Number
- CN202611468794.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-21
- Publication Date
- 2026-11-27
AI Technical Summary
Existing AUV path planning algorithms suffer from problems such as simplified ocean current models, coarse energy consumption calculations, and unreasonable path planning in complex ocean current environments. They are unable to find feasible paths or plan high-energy-consuming paths in areas with dense obstacles. Furthermore, traditional artificial lemming algorithms are prone to getting trapped in local optima in three-dimensional space.
An initial population is generated based on chaotic mapping. The artificial lemming algorithm is optimized by combining a comprehensive fitness function and a differential mutation operator. Ocean current thrust is used as an auxiliary driving force to establish a three-dimensional path planning constraint model. Various types of obstacles and ocean current field environment are integrated to dynamically adjust the search strategy to optimize the path.
It improves population diversity and path planning accuracy, ensures short, low-energy and smooth paths, avoids local optima traps, and achieves efficient three-dimensional path planning in complex ocean current environments.
Smart Images

Figure CN123175284A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of path planning technology, and in particular to a three-dimensional path planning method for AUVs in ocean current environments based on an improved artificial lemming algorithm. Background Technology
[0002] Faced with the complex and ever-changing marine environment, especially in path planning research for complex ocean current fields, there are two major shortcomings: First, ocean current models are oversimplified. Traditional methods often ignore ocean currents or simplify them to uniform flows, making it difficult to reflect the spatial nonlinear changes in the actual velocity and direction of the flow. Second, energy consumption calculation methods are crude. They often use geometric path length as a proxy for energy consumption and fail to establish an accurate energy consumption model based on the relative velocity vector relationship between underwater vehicles (AUVs) and ocean currents, resulting in unreasonable results where the geometric path is the shortest but the actual energy consumption is the highest.
[0003] Existing path planning algorithms typically treat all underwater obstacles, such as reefs, dense vegetation, and low-density plankton colonies, indiscriminately as "impassable" no-entry zones. In areas with dense or narrow obstacles, this often results in the algorithm failing to find a feasible path or planning a complex and costly route. In fact, traversable obstacles such as vegetation and fish colonies are permissible for underwater vehicles to cross under certain risks in emergency situations or when energy consumption is extremely limited.
[0004] Current AUV path planning algorithms are mainly divided into two categories: traditional algorithms and intelligent optimization algorithms. The Artificial Lemming Algorithm (ALA) has a simple structure, few parameters, and shows good application potential in the field of path planning. However, its application to 3D path planning for underwater vehicles still has significant shortcomings. First, the use of pseudo-random numbers to initialize the population leads to uneven distribution and insufficient diversity of path points, making it prone to getting trapped in local optima. Second, the use of a fixed search step size makes it impossible to dynamically adjust according to the characteristics of the marine environment, making it difficult to balance search efficiency and accuracy. Third, the use of a linearly decreasing update method for the energy factor results in abrupt transitions between the algorithm exploration and development stages, leading to poor convergence stability. Summary of the Invention
[0005] This invention provides a three-dimensional path planning method for AUVs in ocean current environments based on an improved artificial lemming algorithm, which addresses the shortcomings of existing technologies and improves the common problem of premature convergence of the original algorithm in high-dimensional solution spaces.
[0006] In a first aspect, the present invention provides a three-dimensional path planning method for AUVs in ocean current environments based on an improved artificial lemming algorithm, comprising: An initial population is generated in the underwater navigation space based on chaotic mapping, where each individual in the initial population represents a navigation path of an underwater vehicle. The initial population is iteratively optimized using the artificial lemming algorithm to obtain the optimal flight path, including: In the current iterative optimization phase, the comprehensive fitness function value of each individual in the population is calculated based on the comprehensive fitness function, and the individual with the smallest comprehensive fitness function value is selected as the optimal individual. The comprehensive fitness function consists of the total path length, total path energy consumption, path smoothness, and obstacle penalty term. The initial population is used in the initial iterative optimization phase. Using the optimal individual as a benchmark, the lemming behavior is adaptively selected based on environmental factors to optimize the population, and the population is updated using a differential mutation operator. Global smoothing is performed on the individual with the smallest overall fitness function value in the updated population to obtain the navigation path generated in the current iteration optimization stage; Determine if the maximum number of iterations has been reached. If so, use the navigation path generated in the current iteration optimization phase as the optimal navigation path; otherwise, continue the iteration optimization process.
[0007] In a second aspect, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment as described above.
[0008] Thirdly, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the AUV three-dimensional path planning method in an ocean current environment based on the improved artificial lemming algorithm as described above.
[0009] Fourthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the AUV three-dimensional path planning method based on the improved artificial lemming algorithm in an ocean current environment as described above.
[0010] According to the specific embodiments provided in this application, the following technical effects are disclosed: This invention provides an AUV 3D path planning method in an ocean current environment based on an improved artificial lemming algorithm. First, an initial population is generated in the underwater navigation space based on chaotic mapping. Addressing the problem of uneven population distribution and insufficient diversity caused by pseudo-random number initialization in traditional artificial lemming algorithms, this invention utilizes a chaotic system to generate a highly uniform initial population, ensuring that path points are evenly distributed in the 3D search space. This overcomes the defect of initial solution aggregation and significantly enhances population diversity. Second, an iterative optimization process of the initial population is executed according to the artificial lemming algorithm. Under the constraint of maintaining a safe distance from obstacles, a space environment model of the autonomous underwater vehicle (AUV) integrating various types of obstacles and a 3D variable ocean current field is established. Using the thrust of the ocean current as auxiliary power, a 3D path planning constraint model is established with short path, low energy consumption, and high smoothness as joint optimization objectives. The 3D path planning problem is then solved based on a multi-strategy improved artificial lemming algorithm. This solves the defect of traditional artificial lemming algorithms easily getting trapped in local optima in high-dimensional space planning and improves the common problem of premature convergence of the original algorithm in high-dimensional solution space. Attached Figure Description
[0011] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0012] Figure 1 This is one of the flowcharts illustrating the AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environments provided by this invention. Figure 2 This is the second flowchart of the AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment provided by the present invention; Figure 3 This is a schematic diagram of the obstacle model in the AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment provided by the present invention; Figure 4 This is a schematic diagram of the collision mechanism between path points and obstacles in the AUV three-dimensional path planning method based on the improved artificial lemming algorithm provided by the present invention. Figure 5 This is a geometrical diagram illustrating the lemming behavior update in the AUV three-dimensional path planning method under ocean current environment based on the improved artificial lemming algorithm provided by this invention. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0014] In one exemplary embodiment, such as Figures 1 to 2 As shown, this application provides a three-dimensional path planning method for AUVs in ocean current environments based on an improved artificial lemming algorithm. This method is executed by a computer device, specifically by a terminal or server alone, or by both. In this embodiment, the three-dimensional path planning method for AUVs in ocean current environments based on the improved artificial lemming algorithm includes the following steps S101 to S102. Wherein: Step S101: Generate an initial population in the underwater navigation space based on chaotic mapping, wherein each individual in the initial population represents a navigation path of an underwater vehicle; Step S102: Perform an iterative optimization process on the initial population according to the artificial lemming algorithm to obtain the optimal navigation path, including the following steps S201 to S204. Wherein: Step S201: In the current iterative optimization stage, calculate the comprehensive fitness function value of each individual in the population according to the comprehensive fitness function, and select the individual with the smallest comprehensive fitness function value as the optimal individual. The comprehensive fitness function consists of the total path length, total path energy consumption, path smoothness, and obstacle penalty term. The initial population is used in the initial iterative optimization stage. Step S202: Using the optimal individual as a benchmark, adaptively select lemming behaviors based on environmental factors to optimize the population, and update the population using the differential mutation operator; Step S203: Perform global smoothing on the individual with the smallest comprehensive fitness function value in the updated population to obtain the navigation path generated in the current iteration optimization stage; Step S204: Determine whether the number of iterations has reached the maximum number of iterations. If so, take the navigation path generated in the current iteration optimization stage as the optimal navigation path; otherwise, continue to execute the iteration optimization process.
[0015] By implementing steps S101 to S102 and S201 to S204, this application first generates an initial population in the underwater navigation space based on chaotic mapping. Addressing the problem of uneven population distribution and insufficient diversity caused by pseudo-random number initialization in traditional artificial lemming algorithms, this invention utilizes a chaotic system to generate a highly uniform initial population, ensuring that path points are evenly distributed in the three-dimensional search space, overcoming the defect of initial solution aggregation, and significantly enhancing population diversity. Secondly, iterative optimization of the initial population is performed according to the artificial lemming algorithm. This paper proposes a method to establish a three-dimensional path planning constraint model for autonomous underwater vehicles (AUVs) that integrates various types of obstacles and a three-dimensional variable ocean current field, while satisfying the constraint of maintaining a safe distance from obstacles. The model utilizes the thrust of ocean currents as auxiliary power and takes short path, low energy consumption, and high smoothness as joint optimization objectives. Based on a multi-strategy improved artificial lemming algorithm, the three-dimensional path planning problem is solved. This method addresses the defect of traditional artificial lemming algorithms that are prone to getting trapped in local optima in high-dimensional space planning and improves the common problem of premature convergence of the original algorithm in high-dimensional solution space.
[0016] As one embodiment of this application, step S101, which involves generating an initial population in the underwater navigation space based on chaotic mapping, includes steps S301 to S304. Wherein: Step S301: Generate highly uniform initial control points in the underwater navigation space using a three-dimensional Logistic-Tent chaotic mapping.
[0017] Step S302: Iteratively generate a chaotic sequence containing multiple control nodes based on the initial control point. These control nodes connect the starting point and the ending point to form the underwater vehicle's navigation path. The iterative expression of the three-dimensional Logistic-Tent chaotic mapping in one dimension is: ; In the formula, This represents the value of the chaotic variable at the nth iteration. This represents the value of the chaotic variable at the (n+1)th iteration; This represents the control parameters. Initial control points with uniform height are generated within the feasible navigation space. Then, iterative processing is performed using a 3D Logistic-Tent chaotic mapping, with each iteration generating a 3D vector that serves as a control node. All components of this three-dimensional vector are in the interval (0,1). The navigation path of the underwater vehicle can be formed by connecting multiple control nodes at the starting point and the ending point. Since the chaotic sequence has ergodicity and uniform distribution, it can go through all states without repetition in a specific region, and its distribution is more uniform than that of a pure random sequence.
[0018] It should be noted that when the control parameters At this time, the function is in a chaotic state. As a preferred implementation method in this embodiment, the control parameters... This can make the sequences generated by the Logistic-Tent mapping have better traversal and randomness.
[0019] Step S303: Map the chaotic sequence to the actual three-dimensional search space boundary using a linear mapping function, and determine whether each control node is located inside an insurmountable obstacle. If the determination result is yes, then iterate and generate the chaotic sequence again; otherwise, generate a navigation path based on each control node, the starting point, and the ending point as an individual in the initial population. Step S304: Repeat the above process of generating the navigation path to obtain a result containing... The initial population of individuals. Indicates the size of the initial population.
[0020] As one embodiment of this application, step S102 further includes setting initial parameters for the improved artificial lemming algorithm, wherein the initial parameters include: population size. Maximum number of iterations Initial energy boundary value Basic penalty coefficient for obstacles that can be traversed And the weight allocation coefficients of the multi-objective fitness function.
[0021] In one embodiment of this application, in step S201, the total energy consumption of the path is calculated based on an energy consumption integral model. The method for constructing the energy consumption integral model includes the following steps S501 to S503. Wherein: Step S501: The underwater navigation space is divided into interconnected cell grids using a three-dimensional vector mesh method, and the ocean current velocity vector of each cell grid node is generated. In this embodiment, the ocean current velocity vector at grid node j is defined as: ; In the formula, u, v, and w represent the ocean current velocity components of the ocean current velocity vector at grid node j in the three spatial coordinate axes, respectively; specifically, u represents the ocean current velocity component on the x-axis; v represents the ocean current velocity component on the y-axis; and w represents the ocean current velocity component on the z-axis.
[0022] Step S502: Based on the ocean current velocity vector of each cell grid node, generate the ocean current velocity vector at any continuous coordinate in the underwater navigation space through trilinear interpolation. The ocean current velocity vector includes the ocean current velocity and direction. The trilinear interpolation process can be expressed as: ; In the formula, Indicates the point to be found The smallest integer index of the bottom left corner of the grid cell; This represents the trilinear interpolation weights related to the distances along each axis.
[0023] By implementing step S502 above, this application uses trilinear interpolation to calculate the ocean current velocity vector of any continuous coordinate in the navigation space by weighted averaging the known ocean current velocity components on 8 adjacent grid nodes around the target point according to their distance. This allows for the construction of a non-uniform, nonlinear spatial variable ocean current field model for underwater navigation space.
[0024] Step S503: Using the maximum speed, minimum horizontal turning radius, maximum pitch angle, and safe distance as constraints, construct the energy consumption integral model based on the ocean current velocity vector at any continuous coordinate in space. The maximum speed is the maximum absolute speed of the underwater vehicle, the maximum pitch angle is the maximum vertical pitch angle of the underwater vehicle, and the safe distance is the preset safe navigation distance at the obstacle boundary. The energy consumption integral model is an AUV energy consumption integral model based on ocean current sensing, which can be specifically expressed as: ; In the formula, T represents the total travel time of the route; k represents the energy consumption coefficient; This represents the absolute velocity vector of the underwater vehicle at time t; The ocean current velocity vector represents the position of the underwater vehicle at time t. This ocean current velocity vector is calculated by trilinear interpolation in step S502.
[0025] In one embodiment of this application, in step S201, the obstacle penalty term is calculated based on the underwater vehicle's preset safe navigation distance and the obstacle's center point, where the obstacle's center point is the coordinate of the spatial center sphere of the obstacle model; wherein, the method for constructing the obstacle model includes the following steps S601 to S603. Wherein: Step S601: The underwater navigation space is divided using a grid method to form a three-dimensional grid map. Step S602: Determine obstacles in the underwater navigation space based on the marking results of the spatial three-dimensional grid map; wherein, the method for obtaining the marking results includes: digitally marking each grid in the underwater navigation space where there are static reefs, obstacles, and dangerous ocean current areas, dividing the obstacle space and the movable space to obtain the marking results.
[0026] Step S603: The obstacle is puffed into a sphere, and its map data is stored using a three-dimensional array to obtain the obstacle model. The obstacle model includes the spatial center coordinates of the obstacle, its radius, and the obstacle type, which includes impassable obstacles and traversable obstacles. The obstacle model can be represented as: ; In the formula, Represents the coordinates of the spatial geometric center of the i-th obstacle; This represents the circumscribed radius of the i-th obstacle after expansion; This represents the type attribute identifier of the i-th obstacle.
[0027] It should be noted that, as Figure 3 As shown, this application defines obstacles as hard obstacles and soft obstacles. Hard obstacles are strictly impassable, while soft obstacles impose a penalty for crossing them; when When the time is right, it indicates that the obstacle is a hard obstacle, that is... Figure 3 Inaccessible obstacles; when When the time is right, it indicates that the obstacle is a soft obstacle, that is... Figure 3 For traversable obstacles, this application introduces a density coefficient. It is used to characterize the resistance and inherent risk costs when an AUV traverses the area.
[0028] As one embodiment of this application, the expression for the comprehensive fitness function is: ; In the formula, L represents the total path length; E represents the total path energy consumption, which is calculated based on the energy consumption integral model; S represents the path smoothness; C represents the obstacle penalty; where: The formula for calculating the total path length L is: In the formula, This represents the total number of waypoints (control points); This represents the three-dimensional coordinate vector of the i-th path point.
[0029] The formula for calculating path smoothness S is: In the formula, This represents the angle between two adjacent path segments, used to evaluate the cost of multi-level curves and turns; specifically, This represents the (i-1)th path segment on the path (starting from point i). and (consisting of) and the i-th path segment (composed of point) and The angle between the components in three-dimensional space reflects the AUV's arrival at the control point. The angle at which you need to turn.
[0030] The formula for calculating the obstacle penalty C is: ; In the formula, This indicates the preset safe cruising distance for the AUV. Indicates the center point of the obstacle. This represents the penalty coefficient. It should be noted that when the path point... Entering the danger radius of a passable obstacle When inside, the magnitude of the obstacle penalty is related to the obstacle's drag density coefficient. The penalty coefficient is proportional to the intrusion distance; if a pathpoint is detected to have intruded into an insurmountable obstacle, the penalty coefficient is increased. It is given an extremely large, infinitely large penalty weight, which directly eliminates the path point.
[0031] like Figure 4 As shown, Figure 4 This demonstrates the collision mechanism between pathpoints and obstacles. Specifically, for the j-th obstacle in 3D space, its center point is... , Figure 4 In the diagram, the inner solid circle represents obstacle j as an impassable obstacle, and the outer dashed circle represents obstacle j as a traversable obstacle. Path point PA is located outside the outer dashed circle, and its obstacle penalty C relative to obstacle j is 0. The danger radius for path point PB entering a traversable obstacle is... Within, the magnitude of the obstacle penalty is related to the obstacle's drag density coefficient. The penalty coefficient is proportional to the intrusion distance; when a pathpoint PC intrudes into an insurmountable obstacle, the penalty coefficient is increased. The path point is given an extremely large, infinitely large penalty weight and is directly eliminated.
[0032] In one embodiment of this application, in step S202, the environmental factors include energy factors, obstacle density, and ocean current characteristics; the lemming behaviors include long-distance migration, burrowing, foraging, and predator avoidance; the adaptive selection of lemming behaviors based on environmental factors to optimize the population includes steps S701 to S702. Wherein: Step S701: Adjust the selection probability of long-distance migration behavior, burrowing behavior, foraging behavior, and predator avoidance behavior based on energy factor, obstacle density, and ocean current characteristics; wherein: The formula for calculating the probability of long-distance migration behavior is: ; The formula for calculating the probability of choosing the digging behavior is: ; The formula for calculating the probability of foraging behavior selection is: ; The formula for calculating the probability of choosing to avoid predators is: ; In the formula, The dynamic energy factor of the artificial lemming individual in the t-th iteration stage is represented. This indicates the maximum value of the preset dynamic energy factor; Representing path points Local obstacle density; This indicates the angle between the direction of travel of an underwater vehicle and the direction of the ocean current.
[0033] In this embodiment of the application, step S701, adjusting the selection probability of long-distance migration behavior, burrowing behavior, foraging behavior, and predator avoidance behavior based on energy factor, obstacle density, and ocean current characteristics, includes the following: First, the selection probability of each lemming behavior is normalized to obtain a normalized value for each behavior. The sum of the normalized values of all lemming behaviors is 1, representing the total range of the selection interval for each lemming behavior. It should be noted that the normalized value of each lemming behavior represents the proportion of the corresponding behavior within the selection interval; a larger normalized value indicates a larger proportion of the corresponding behavior. This application adjusts the selection probability of each lemming behavior by using energy factors, obstacle density, and ocean current characteristics, thereby adjusting the normalized value. A larger normalized value indicates a higher probability that the corresponding behavior is selected. Specifically, in the embodiments of this application, for each lemming behavior: When the dynamic energy factor is at a relatively high level, the density of local obstacles around the current waypoint is low, and the local ocean current has a positive component in the current planned course of the AUV, the probability of choosing long-distance migration behavior is increased, making lemming individuals more inclined to use a larger search scale to search the three-dimensional feasible space.
[0034] As the dynamic energy factor decreases, the algorithm gradually shifts from global exploration to local development. When the density of local obstacles around a path point is high, large-span position updates are prone to collisions or infeasible paths. Therefore, the selection probability of digging behavior is increased. Lemming individuals selected to perform digging behavior conduct a small-range neighborhood search near the current control node to improve the search accuracy of feasible paths in complex obstacle areas.
[0035] When the algorithm does not have a significant need for large-scale migration and the current search has not yet stagnated for a long period, the probability of selecting foraging behavior is increased. The path nodes selected to perform foraging behavior undergo a spiral random walk around the current better solution, causing the candidate paths to gradually approach the current better region, thus enhancing local development capabilities while maintaining a certain degree of randomness.
[0036] Predator avoidance behavior: triggered when an individual or the global optimal solution stops updating for multiple consecutive generations.
[0037] Furthermore, in this embodiment, an S-shaped nonlinear function is used to nonlinearly update the energy factor with the number of iterations to smoothly transition between the global exploration and local development stages. The update process can be expressed as follows: ; In the formula, They represent the adjustment coefficients, t represents the current iteration step; These represent the maximum and minimum values of the preset dynamic energy factor, respectively.
[0038] It should be noted that the dynamic energy factor E(t) mainly reflects the current search stage of the artificial lemming algorithm, and its value is determined by the current iteration number t according to a preset sigmoid nonlinear function. In the early stages of algorithm iteration, the energy factor is at a relatively high level, enabling individuals to maintain a strong global exploration ability; as the number of iterations increases, the energy factor gradually decreases, causing the search process to gradually shift towards local development of the currently better region.
[0039] The local obstacle density The calculation formula is: ; In the formula, Indicates path point With the geometric center, To determine the total number of obstacles contained within the spherical space of the detection radius. This represents the total number of obstacles in the scene.
[0040] It's important to note that obstacle density adaptively adjusts the search scale of the artificial lemming algorithm based on the complexity of the environment surrounding the current waypoint. When the local obstacle density is low, it indicates a large continuous free space around the waypoint, allowing individuals to perform larger-scale position updates. This increases the probability of selecting long-distance migration behaviors, enhancing the algorithm's search range and efficiency in three-dimensional space. As the local obstacle density increases, the usable navigation space near the waypoint decreases. If a large search step size is still used, newly generated control nodes are more likely to enter obstacle areas. Therefore, in this case, the preference for long-distance migration behaviors should be reduced, while the probability of selecting small-range neighborhood search behaviors such as burrowing should be increased, enabling the algorithm to perform more refined local searches among obstacles.
[0041] In addition, when When the local ocean current has a positive component in the planned course, it can be considered to be in a downstream state; when At this point, the local ocean current has a reverse component along the planned course, and can be considered to be in a counter-current state. The magnitude of the ocean current velocity vector is used to reflect the intensity of the local ocean current, and the ocean current intensity at this path point is expressed as: .
[0042] It should be noted that the formula for normalizing the selection probability of each lemming behavior is as follows: ; ; ; ; In the formula, represents the normalized value of the selection probability of long-distance migration behavior, burrowing behavior, foraging behavior, and predator avoidance behavior, respectively, and the sum of the normalized values of each behavior is 1.
[0043] Step S702: Select the corresponding lemming behavior according to the selection probability, and optimize the population based on the selected lemming behavior, including the following steps: First, for the current artificial lemming individual generation interval... Given a uniformly distributed random number r, the action to be performed by the current artificial lemming is selected based on the random number r, which can be specifically expressed as: when At this time, long-distance migration behavior is performed; the migration step size of long-distance migration behavior is positively correlated with the local ocean current velocity, and its adaptive step size adjustment formula is: ; In the formula, Indicates the basic step size. Indicates the influence coefficient of ocean currents. This represents the angle between the underwater vehicle's direction of travel and the direction of the ocean current. Under this step size constraint, an individual lemming performs Brownian motion towards the target direction, achieving downstream acceleration for propulsion.
[0044] when When performing the digging behavior, the lemming individual conducts a small-scale, refined neighborhood search around the current control node.
[0045] when When the foraging behavior is executed, the foraging behavior is executed in the intermediate state, and the path nodes are asymptotically approximated by a spiral random walk formula around the current local optimum.
[0046] In other cases, the predator avoidance behavior is executed; specifically, when an individual or the global optimal solution stops updating for multiple consecutive generations, the node is subjected to random perturbation using the large-span uneven jump feature of Levy flight, forcing it to jump out of the local optimal trap.
[0047] like Figure 5 As shown, Figure 5 A geometric diagram illustrating the update of lemming behavior. Figure 5 In This represents the current location of the underwater vehicle, indicating the geometric center for all behavior updates. The solid arrow pointing horizontally to the left indicates the AUV's preset heading, representing the target direction set by the algorithm. The solid arrow at the lower right represents the real-time local ocean current vector, indicating the direction and intensity of the underwater current detected at the current location. This represents the angle between the preset heading and the ocean current vector; the digging behavior searches the envelope region R, with... The dashed circle centered on the center represents the range within which the AUV performs a fine-grained local search at the current location.
[0048] As one embodiment of this application, step S202, which involves updating the population using a differential mutation operator, includes steps S801 to S804. Wherein: Step S801: Calculate the comprehensive fitness function value of each individual in the optimized population, and select multiple elite individuals to form an elite set based on this comprehensive fitness function value. Specifically, first, sort the optimized population in ascending order of fitness, and select those with the highest comprehensive fitness function values. Individuals constitute an elite group, typically representing 10% of the population size. .
[0049] Step S802: Determine the globally optimal individual in the current population. And randomly select two distinct elite individuals from the elite set other than the current global best individual. and The difference vector is obtained by subtracting and scaling the two extracted elite individuals using the difference mutation operator. Step S803: Superimpose the difference vector onto the globally optimal individual, and use the difference vector between the two elite individuals to perturb the current globally optimal path to generate a new individual, the expression of which is: ; In the formula, F represents the difference scaling factor, which is 0.5 in this embodiment. It should be noted that the number of elite individuals selected and the number of new candidate path solutions need to be set according to the population size, that is, how many new candidate path solutions are generated through several differential mutations.
[0050] Step S804: Replace the population with the new individual to obtain an updated population. Specifically, if the new individual is better than the current global best individual, then the new individual is replaced with the current global best individual; otherwise, individuals with lower fitness rankings in the population are replaced based on fitness evaluation.
[0051] As one embodiment of this application, in step S203, the global smoothing process for the individual with the smallest comprehensive fitness function value in the updated population includes: taking the navigation route corresponding to the individual with the smallest comprehensive fitness function value in the updated population as the object, taking multiple control nodes in the navigation route as vertices of the feature polygon, using cubic uniform B-spline curves for global trajectory smoothing interpolation, and generating a three-dimensional trajectory that is continuous and has smooth curvature in geometric space by adjusting the control nodes as the navigation path generated in the current iteration optimization stage.
[0052] In one exemplary embodiment, this application also provides a computer device including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0053] In one exemplary embodiment, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0054] In one exemplary embodiment, this application provides a computer program product including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0055] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0056] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0057] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0058] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0059] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A three-dimensional path planning method for AUVs in ocean current environments based on an improved artificial lemming algorithm, characterized in that, include: An initial population is generated in the underwater navigation space based on chaotic mapping, where each individual in the initial population represents a navigation path of an underwater vehicle. The initial population is iteratively optimized using the artificial lemming algorithm to obtain the optimal flight path, including: In the current iterative optimization phase, the comprehensive fitness function value of each individual in the population is calculated based on the comprehensive fitness function, and the individual with the smallest comprehensive fitness function value is selected as the optimal individual. The comprehensive fitness function consists of the total path length, total path energy consumption, path smoothness, and obstacle penalty term. The initial population is used in the initial iterative optimization phase. Using the optimal individual as a benchmark, the lemming behavior is adaptively selected based on environmental factors to optimize the population, and the population is updated using a differential mutation operator. Global smoothing is performed on the individual with the smallest overall fitness function value in the updated population to obtain the navigation path generated in the current iteration optimization stage; Determine if the maximum number of iterations has been reached. If so, use the navigation path generated in the current iteration optimization phase as the optimal navigation path; otherwise, continue the iteration optimization process.
2. The AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment according to claim 1, characterized in that, The generation of the initial population in the underwater navigation space based on chaotic mapping includes: Three-dimensional Logistic-Tent chaotic mapping is used to generate highly uniform initial control points in the underwater navigation space; Based on the initial control point, a chaotic sequence containing multiple control nodes is iteratively generated. The multiple control nodes are used to connect the start point and the end point to form the navigation path of the underwater vehicle. The chaotic sequence is mapped to the actual three-dimensional search space boundary using a linear mapping function, and it is determined whether each control node is located inside an insurmountable obstacle. If the determination result is yes, the chaotic sequence is regenerated iteratively; otherwise, a navigation path is generated based on each control node, the starting point, and the ending point to serve as an individual in the initial population. Repeat the above process of generating the navigation path to obtain the initial population.
3. The AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment according to claim 1, characterized in that, The total energy consumption of the path is calculated based on an energy consumption integral model, and the method for constructing the energy consumption integral model includes: The underwater navigation space is divided into interconnected cell grids using a three-dimensional vector grid method, and the ocean current velocity vector of each cell grid node is generated. Based on the ocean current velocity vector of each cell grid node, the ocean current velocity vector at any continuous coordinate in the underwater navigation space is generated by trilinear interpolation. The energy consumption integral model is constructed based on the ocean current velocity vector at any continuous coordinate in space, with the maximum sailing speed, minimum horizontal turning radius, maximum pitch angle, and safe distance as constraints.
4. The AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment according to claim 1, characterized in that, The obstacle penalty is calculated based on the underwater vehicle's preset safe navigation distance and the obstacle's center point, where the obstacle's center point is the coordinate of the spatial center sphere of the obstacle model; wherein, the method for constructing the obstacle model includes: The underwater navigation space is divided using a grid method to form a three-dimensional grid map. Obstacles in the underwater navigation space are identified based on the marking results of the three-dimensional spatial raster map; The obstacle is puffed into a sphere, and the map data of the obstacle is stored using a three-dimensional array to obtain the obstacle model. The obstacle model includes the spatial center coordinates of the obstacle, the radius, and the obstacle type, which includes impassable obstacles and traversable obstacles.
5. The AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment according to claim 1, characterized in that, The environmental factors include energy factors, obstacle density, and ocean current characteristics; The lemming behaviors include long-distance migration, burrowing, foraging, and predator avoidance; the adaptive selection of lemming behaviors based on environmental factors to optimize the population includes: Adjust the selection probability of long-distance migration behavior, burrowing behavior, foraging behavior, and predator avoidance behavior based on energy factors, obstacle density, and ocean current characteristics; The corresponding lemming behavior is selected based on the selection probability, and the population is optimized based on the selected lemming behavior.
6. The AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment according to claim 1, characterized in that, The step of updating the population using the differential mutation operator includes: Calculate the comprehensive fitness function value of each individual in the optimized population, and select multiple elite individuals based on the comprehensive fitness function value to form an elite set; Determine the global best individual in the current population, and randomly select two distinct elite individuals from the elite set other than the current global best individual; use the difference mutation operator to subtract and scale the two selected elite individuals to obtain the difference vector; The difference vectors are superimposed on the optimal individual to generate a new individual; the new individual is then used to replace the population to obtain an updated population.
7. The AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment according to claim 2, characterized in that, The step of performing global smoothing on the individual with the smallest comprehensive fitness function value in the updated population includes: taking the navigation route corresponding to the individual with the smallest comprehensive fitness function value in the updated population as the object, taking multiple control nodes in the navigation route as vertices of the feature polygon, performing global trajectory smoothing interpolation using cubic uniform B-spline curves, and generating a three-dimensional trajectory that is continuous and has smooth curvature in geometric space by adjusting the control nodes, which is then used as the navigation path generated in the current iteration optimization stage.
8. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the AUV three-dimensional path planning method based on the improved artificial lemming algorithm in ocean current environment as described in any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the AUV three-dimensional path planning method in ocean current environment based on the improved artificial lemming algorithm as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the AUV three-dimensional path planning method in ocean current environment based on the improved artificial lemming algorithm as described in any one of claims 1 to 6.
