Next Article in Journal
Predictive Model for Hydrostatic Curves of Chine-Type Small Ships Based on Deep Learning
Next Article in Special Issue
Detection Technique Tailored for Small Targets on Water Surfaces in Unmanned Vessel Scenarios
Previous Article in Journal
Phytoplankton Dynamics and Biogeochemistry: Model Studies
Previous Article in Special Issue
Trajectory-Following Control of an Unmanned Aerial–Aquatic Vehicle under Complex Coupling Interferences
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Intelligent Task Allocation and Planning for Unmanned Surface Vehicle (USV) Using Self-Attention Mechanism and Locking Sweeping Method

1
Science and Technology on Underwater Vehicle Laboratory, Harbin Engineering University, Harbin 150001, China
2
Jiangsu Automation Research Institute, Lianyungang 222061, China
*
Author to whom correspondence should be addressed.
J. Mar. Sci. Eng. 2024, 12(1), 179; https://doi.org/10.3390/jmse12010179
Submission received: 25 December 2023 / Revised: 7 January 2024 / Accepted: 12 January 2024 / Published: 17 January 2024
(This article belongs to the Special Issue Control and Navigation of Underwater Robot Systems)

Abstract

:
The development of intelligent task allocation and path planning algorithms for unmanned surface vehicles (USVs) is gaining significant interest, particularly in supporting complex ocean operations. This paper proposes an intelligent hybrid algorithm that combines task allocation and path planning to improve mission efficiency. The algorithm introduces a novel approach based on a self-attention mechanism (SAM) for intelligent task allocation. The key contribution lies in the integration of an adaptive distance field, created using the locking sweeping method (LSM), into the SAM. This integration enables the algorithm to determine the minimum practical sailing distance in obstacle-filled environments. The algorithm efficiently generates task execution sequences in cluttered maritime environments with numerous obstacles. By incorporating a safety parameter, the enhanced SAM algorithm adapts the dimensional influence of obstacles and generates paths that ensure the safety of the USV. The algorithms have been thoroughly evaluated and validated through extensive computer-based simulations, demonstrating their effectiveness in both simulated and practical maritime environments. The results of the simulations verify the algorithm’s capability to optimize task allocation and path planning, leading to improved performance in complex and obstacle-laden scenarios.

1. Introduction

The research and development of unmanned surface vehicles (USVs) have garnered increasing attention in recent years. These vehicles are being actively developed and deployed across various practical applications [1,2,3], predominantly in the military domain. By employing USVs for hazardous tasks such as maritime patrol and coast guarding in dangerous environments, human risk can be greatly minimized as operator involvement is limited. It is important to note that USVs also hold promise for civilian applications. One such application is environmental monitoring, where USVs can be utilized to efficiently collect water sampling data in heavily polluted lakes, eliminating the need for human exposure to harmful elements [4,5]. Another potential application is search and rescue missions in post-disaster scenarios. Research has shown that the effective deployment of USVs can significantly enhance the success rate of rescue missions by reducing response times and improving overall effectiveness [6].
In the task allocation process, the problem can be mathematically represented as the traveling salesman problem (TSP). It involves a given set of cities with distances specified between each pair of cities. The goal is to determine the shortest route that visits each city exactly once and returns to the initial city. In the context of task allocation, the goal is to determine the optimal path planning for multiple task points, ensuring that each task point is covered once. By solving the TSP, efficiently allocating tasks, and planning the trajectory, the overall distance traveled is minimized while ensuring all task points are visited. Recently, the most commonly used task allocation algorithms include genetic algorithms [7], ant colony algorithms [8], and neural network algorithms [9].
A et al. [10] used GA to solve the defined optimization problem model and developed an unmanned boat task allocation system. Wang et al. [11] discussed a dual-chromosome encoding genetic algorithm based on alignment, introduced alignment-based learning and multiple mutation operators to improve the genetic algorithm, and obtained better allocation results. Jia et al. [12] proposed a metaheuristic algorithm based on an improved genetic algorithm to solve the task pre-allocation problem with multiple constraints. Zhai et al. [13] used a particle swarm optimization algorithm and the entropy weight method to propose a cooperative task allocation method for multi-heterogeneous aircraft under strong spatiotemporal constraints; Chen et al. [14] proposed a heuristic algorithm based on an ant colony system to minimize the task completion time. Oriented by the time consumption of the task, the approximate optimal solution is sought in the collaborative search task. Inspired by the immune endocrine short feedback system, Huang et al. [15] proposed an artificial immune algorithm that can produce an asymptotically optimal allocation strategy and achieve rapid convergence on a large number of variables. Zhu et al. used the Self-Organizing Map (SOM) algorithm in the task allocation problem for the first time [16]. This algorithm well solved the collaboration problem between robots in the task allocation problem. Subsequently, Zhu et al. [17] proposed an improved task based on SOM. The distribution algorithm adds a path tracking controller to make the robot’s planned path smoother.
Many existing methods for task allocation in USVs rely on the Euclidean distance as the cost metric between task points, which often overlooks the influence of obstacles present in the environment. Liu et al. [18,19] attempted to address this limitation by introducing a repulsive field within the iterative process of the SOM algorithm. However, the results obtained from this approach only achieved a relatively optimal outcome. As a result, these allocation algorithms need to be combined with path planning algorithms to optimize the generation of safe paths, but this can lead to poor real-time performance in complex environments. Another significant issue with the current state of USV task allocation is the lack of algorithm validation in simulation environments that accurately represent practical scenarios. For instance, numerous simulation experiments [20] have been conducted in simplistic, artificially constructed environments rather than real-world oceanic environments. This gap between simulation and reality hampers the assessment of algorithm performance and its applicability to practical situations.
To properly address the abovementioned issues, this paper has proposed an improved algorithm based upon self-attention mechanism. Environmental factors are incorporated into the input model of SAM through the locking sweeping method [21]. Highlights of this paper can be summarized as follows:
(1)
The proposed algorithm fully considers environmental obstacle factors in the task allocation process, and the output allocation results can minimize the actual voyage of the USV.
(2)
The proposed algorithm can optimize some dangerous paths in the task allocation results to ensure the safe navigation of USV. No additional combination of path planning algorithms is required.
(3)
The proposed algorithm incorporates a shoreline extension approach to ensure the safety of USV by maintaining a user-configurable clearance distance from the shoreline.
The rest of the paper is organized as follows: Section 2 specifically introduces the adaptive distance field construction process. Section 3 describes the detailed algorithm structure for intelligent allocation and path planning is described, which includes the SAM algorithm and the improved SAM algorithm. The proposed algorithms are verified by simulations in Section 4. Section 5 concludes the paper and discusses future work.

2. Adaptive Distance Cost

In the majority of algorithms designed to address task assignment problems, the Euclidean distance is commonly employed as the basis for estimating the distance cost between two task points. This approach disregards the influence of obstacles within the environment, thereby overlooking crucial factors. The task area of a USV often encompasses diverse obstacles, and ensuring safety is of paramount importance in autonomous navigation. When obstacles are present between two task points, it is essential for the planned task route to consistently avoid entering the safety range of the obstacle. As a result, the actual distance cost between task points exceeds the Euclidean distance, as shown in Figure 1. To overcome this, a new distance cost construction approach based on the locking sweeping method (LSM) has been proposed in this paper.

2.1. Locking Sweeping Method (LSM)

The locking sweeping method (LSM) is an improved method of the fast sweeping method (FSM), which is an iterative method used to calculate the time-of-arrival field by solving the Eikonal equation. This method achieves the computation by iteratively sweeping (traversing) the entire grid in a specific order. Each sweep is responsible for solving the time-of-arrival field propagation in a particular direction. The Eikonal equation is:
| t ( x , y ) | v ( x , y ) = 1 , ( x , y ) Ω
where t ( x , y ) is the time of arrival at the node ( x , y ) , v ( x , y ) is the propagation velocity, and Ω is the model space. Equation (1) can be expressed as:
( t ( x , y ) t x m i n ) 2 + ( t ( x , y ) t y m i n ) 2 = s 2 ( x , y )   h 2
t x m i n = min ( t ( x h , y ) , t ( x + h , y ) )
t y m i n = min ( t ( x , y h ) , t ( x , y + h ) )
s ( x , y ) = 1 v ( x , y )
where h is the spatial lag and assume h to be equal to 1. The solution of Equation (2) can be obtained as:
t ( x , y ) = { min ( t x m i n , t y m i n ) + s ( x , y ) h , | t x m i n t y m i n | s ( x , y ) h , t x m i n + t y m i n + 2 s 2 ( x , y ) h 2 ( t x m i n t y m i n ) 2 2 , | t x m i n t y m i n | < s ( x , y ) h .
The time of arrival of each node can be solved by its adjacent nodes. The pseudo-code of the LSM is shown in Algorithm 1. A locking structure is maintained by each node in the model space. During the remaining sweep process, if a node’s value remains unchanged, the node is locked. This enables faster skipping in subsequent processes. The LSM based calculated processes are illustrated in Figure 2a. To generate a potential field, interface sweep processes are simulated from the four corners of the entire model space. By recursively tracing back to the initial node, the potential value at each node can be determined, representing the local interface time of arrival. Assuming a constant propagation velocity, the time of arrival of the interface is directly proportional to the distance between the current node and the initial node. The arrival time increases as the distance grows. Nodes within obstacles have a value of 1, while other nodes have values ranging from 0 to 1. Figure 2b illustrates the node locking process, where nodes with converged values get locked during each sweep process. For further details on the LSM, refer to [21].
Algorithm 1 Locking Sweeping Method algorithm.
Input: grid map ( M ), initial node ( P i n i t i a l ), locking map ( L ), time-of-arrival field ( T )
Initialization:
1. Let T ( p i ) = , L ( p i ) = 0 , p i   M and T ( P i n i t i a l ) = 0
Sweeping:
2. Let stop = False
3. while stop ≠ True do
4.    if neighbor nodes of p i have valid value and L ( p i ) =   0  then
5.      using Equation (6) calculate the time-of-arrival T ( p i ) of p i
6.    else
7.      skip the calculate process of node p i
8.    end if
9.    if T ( p i ) remains unchanged during two adjacent sweep processes then
10.        L ( p i ) =   1 and node p i is convergent
11.    end if
12.    if  L ( p i ) =   1 , p i   M  then
13.       stop = True
14.    end if
15. end while
16. return  T

2.2. The Adaptive Distance Field Construction Process

The distance field example given in Figure 2a has a single sweep origin node. The potential value assigned to each node corresponds to its distance weight in relation to the position of the origin node. As depicted in Figure 3, the potential value of the blue dot represents the length of the collision-free path. Considering the complex and changeable nature of the USV operating area, along with the potential inaccuracies in the map data, it is not advisable to directly employ the raw obstacle boundary data. To ensure USV safety, it is recommended to extend each obstacle boundary by a configurable distance. The specific value of extend distance can be adjusted according to the user’s requirements.
By setting multiple initial points from the obstacles, the field generated by the LSM can provide distance information. This information can be utilized to create a new field that indicates how close a local point is to obstacles. Using this new field, a distance field related to the extended obstacles can be derived.
The process of creating the extended obstacle boundary consists of two steps: (1) using the LSM to generate a field implicitly reflecting the risk of obstacles and (2) configuring the extended weight α to adjust the influence range of obstacles. In the first step, we set the node value at the obstacle boundary equal to 0, the LSM is run to sweep the entire model space. The resulting output is denoted as D o _ i n i t , where the value of D o _ i n i t represents the distance between the corresponding position and the obstacle. The farther the distance, the larger the value. D o _ i n i t can be calculated using the expression:
D o _ i n i t = s o f t m a x ( ( L S M ( P o b s ) )
where P o b s is the obstacle’s node location set. Figure 4 represents the process of generating the obstacle field.
A simulated environment representing a typical maritime environment with multiple small islands is displayed in Figure 4a. The generated obstacle field is shown in Figure 4b. The brown areas in the visualization represent obstacle areas, indicating regions where the USV should avoid navigating. Conversely, lighter-colored nodes indicate safer areas. The USV should aim to sail in these lighter-colored regions to ensure safer navigation.
After generating the obstacle field, the next step is further visualizing and configure the actual influence range of obstacles, the new obstacle field D o can be obtained as:
D o ( x , y ) = { 0 if   D c _ i n i t ( x , y ) < α D c _ i n i t ( x , y ) α 1 α otherwise
where α is a sweeping scale limitation parameter which can control the influence range of obstacles according to the user’s requirements. Figure 4 illustrates the field obtained by restricting the expansion range of the obstacle boundary. By limiting how far the obstacles extend, the resulting field provides a clearer depiction of the navigable areas. The generated D o with α = 0.4 is represented in Figure 5a. In Figure 5b–d, by gradually increasing the value of α , the impact range of obstacles diminishes progressively. This phenomenon highlights the controllability of the dimension of the D o through the adjustment of α . Note that the determination of α should be carried out adaptively, taking into account various factors such as safety considerations and overall distance requirements. These adaptive calculations for α are beyond the scope of this paper and will not be discussed in detail.
After generating D o , the model space distance field T i for task i can be expressed as follows:
T i = s o f t m a x ( ( L S M ( D o , P i ) )
where P i is the position of task i . The obtained T i is shown in Figure 6, where distance weight of each node from the task i has been clearly shown.

3. Task Allocation and Path Planning Based on the Improved SAM

3.1. Self-Attention Mechanism

The self-attention mechanism is a network model that addresses the challenge of handling input vectors with uncertain sizes and lengths [22]. Its primary objective is to enable the machine to capture correlations among different components of the input vector. Information transfer is facilitated through weighted processing, wherein the relevance and importance of different elements are determined by learned weights. The self-attention mechanism modifies the representation of the target element’s position through comparison and learning processes, resulting in an enhanced expression of the information encoded within the input vector. The core of the algorithm is query, key, and value.
The structure of the self-attention mechanism is shown in Figure 7. For each element in the sequence, the self-attention mechanism calculates the similarity between that element and the other elements, and subsequently normalizes these similarities to obtain attention weights. The output of the self-attention mechanism is then obtained by performing a weighted sum of each element and its respective attention weight. The calculation process is as follows:
Firstly, perform the Embedding operation on the input element, denoted as:
a i = W x i
where W represents the parameter matrix of Embedding. a i serves as the input data of the attention mechanism to solve query q i , key k i , and value v i :
q i = W q a i
k i = W k a i
v i = W v a i
Then, the attention weight α i between task i and resource j is calculated by:
α i , j = q i k j d
α i , j = s o f t m a x ( α i , j )
where d represents the matrix dimensions of q and k . In the self-attention mechanism, their dimensions are the same. After the normalization operation, the attention weight is obtained and denoted by the α i , j . The final output relevance weight of task i is then calculated by:
b i = j α i , j v j

3.2. Improved Multi-Head Self-Attention Mechanism for TSP

When applying the SAM to the TSP problem, the input elements are the information of tasks in the task-allocation problem. Each task in the TSP problem includes its location, a distance matrix to other task points, and factors related to environmental obstacles. In order to capture various correlations and local features, we employ a multi-head attention mechanism. This mechanism allows for the exploration and integration of different relationships, enabling the SAM to generate a more flexible and comprehensive solution for the TSP problem.
In multi-head self-attention mechanism, each task will correspond to multiple q , k , v . Such as, for task 1:
q 1 = { q 1 , 1 , q 1 , 2 , , q 1 , n } k 1 = { k 1 , 1 , k 1 , 2 , , k 1 , n } v 1 = { v 1 , 1 , v 1 , 2 , , v 1 , n }
where n is the number of heads. The task i can be denoted as:
t i = { P i , T i }
where P i , T i is the position and distance field of task i respectively. Then, the distance matrix κ between each task can be expressed as:
κ = [ 0 T 2 ( P 1 ) T 3 ( P 1 ) T m ( P 1 ) T 1 ( P 2 ) 0 T 3 ( P 2 ) T m ( P 2 ) T 1 ( P 2 ) T 2 ( P 3 ) 0 T m ( P 3 ) 0 T 1 ( P m ) T 2 ( P m ) T 3 ( P m ) 0 ]
where m is the number of task points. The NO . i column of the matrix represents the distance from other tasks to task i . Then, the linear layer input can be expressed as:
a i = W κ ( : , i ) + τ
where W represents the parameter matrix, and τ is a bias vector. Then, bring Equations (19) and (20) into Equations (11)–(16) to obtain the final output relevance weight of task i .
The pseudo-code of the improved multi-head self-attention mechanism for TSP is shown in Algorithm 2. Enter all task points into a multi-headed layer to obtain the corresponding attention vector, and then calculate the correlation weight of all task points through a single attention layer, and use the task point with the largest correlation weight as the output result of this iteration. The resulting model will be obtained after all iterations.
Algorithm 2 Improved multi-head self-attention mechanism algorithm for TSP.
Input: Number of task points ( m ), task position set ( P ), grid map ( M ),
distance matrix ( κ ), the maximum number of iterations ( i t e r max )
Initialization: κ = 0
1.  for  i = 1 : m  do
2.     T i = LSM ( P i , M )
3.  end for
4.  using Equation (19) calculate κ
5.  using Equation (20) get linear layer input a i
6.  while  i t e r i t e r max  do
7.      task sequence L i s t = ISAM( κ , a i ) ► using Equations (11)–(17)
8.       i t e r = i t e r + 1
9.  end while
10. return  L i s t

3.3. Multi-Goal Path Planning for USV

An accurate determination of the optimized task execution sequence can be achieved using the improved SAM. Subsequently, the path planning algorithm is invoked to generate trajectories that visit each task point. In this study, the trajectory calculation prioritizes achieving the minimum distance cost. It is intuitive to consider the straight line connecting two task points as the optimal path when no obstacles exist between them. While the SAM provides initial solutions for path planning, additional enhancements are necessary to address a crucial concern, namely the possibility of encountering obstacles along the connection between two tasks.
While the evaluation function in the iterative process of the improved self-attention mechanism (SAM) algorithm considers obstacle factors, the resulting output may not provide direct insight into the presence of obstacles between two adjacent task sequences. However, due to the inclusion of distance information between all task points in the input distance matrix of the improved SAM (ISAM) algorithm, it becomes possible to determine the existence of obstacles between adjacent nodes as follows:
d ( i , i + 1 ) = P i P i + 1 2
B ( i , i + 1 ) = { 0 i f   T i ( P i + 1 ) = d ( i , i + 1 ) 1 o t h e r w i s e
where d ( i , i + 1 ) is the Euclidean distance between nodes i and i + 1 . B is a BOOL variable indicating the obstruction between adjacent nodes. A value of 0 means there is no obstruction between nodes. If B ( i , i + 1 ) = 1 , it is necessary to search for a collision-free path between nodes. Because of the characteristics of the node distance field, the collision-free path is calculated from:
P a t h ( i , i + 1 ) = g r a d ( T i , P i + 1 )
where P a t h ( i , i + 1 ) is the path set between nodes i and i + 1 . g r a d ( ) is the gradient descent algorithm. The detailed search process of the path can refer to [21]. The pseudo-code of multi-goal path planning algorithm is shown in Algorithm 3.
Algorithm 3 Multi-goal path planning algorithm.
Input: Task nodes sequence set ( L i s t ), number of task nodes ( m ),
task position set ( P ), task node distance fields ( T )
1. for  i = 1 : m 1  do
2.   if the Euclidean distance between nodes i and i + 1 equal to T i ( P i + 1 )  then
3.    Straight line connecting nodes
4.   else
5.    using Equation (23) calculate P a t h ( i , i + 1 )
6.   end if
7.   set the P a t h ( i , i + 1 ) into the total path set P a t h _ a l l
8. end for
9. return  P a t h _ a l l

4. USV Path Planning Simulation

4.1. Task Allocation Performance Comparison in Environment Containing Obstacles

The objective of this simulation is to validate the efficacy of the proposed improved SAM in addressing intelligent task allocation in complex environments. To simulate a typical constrained maritime environment, an area of size 400 pixels × 400 pixels was created, featuring three irregularly shaped obstacles closely positioned (as shown in Figure 8a). Within this area, a total of 20 tasks were randomly and sparsely distributed in the unoccupied space (represented by the white area). To ensure a safe and optimal distance between paths and obstacles, parameter α in Equation (8) was set to 0.9. This allowed the algorithm to identify the task execution sequence that optimizes both distance and safety considerations. Furthermore, the effectiveness of the improved SAM algorithm was compared to the SOM and SAM algorithms in the same task allocation scenario.
The simulation results are shown in Figure 8b–d, which show the calculation results of different algorithms. The total distance cost of allocation results based on three algorithms as shown in Table 1. Simulation results present all three algorithms generate a circular task sequence and path set with the position of the USV as the No. 1 node.
When the influence of obstacles in the environment is not considered, the SAM algorithm performs best and its total distance is 1498.6. In an attempt to minimize distance costs, both SOM and SAM algorithms generated paths that intersected with the island in the upper left corner. Consequently, it becomes necessary to incorporate a global path search algorithm to optimize their results. Relatively, the improved SAM algorithm already accounts for obstacle factors in its input model, resulting in a more reasonable and safer output results within the environment. After re-planning the path, the distance costs of the SOM algorithm and the SAM algorithm increased by 43.7 and 37.6, respectively, while the distance cost of the improved SAM algorithm only increased by 8.4.
Furthermore, leveraging the characteristics of the distance field, the improved SAM algorithm can use Equation (23) to optimize certain hazardous paths without the need for an additional path search algorithm. Notably, in an obstacle-filled environment, the improved SAM algorithm exhibits superior task allocation effectiveness and achieves the lowest overall distance cost, amounting to 1535.5. In conclusion, the improved SAM algorithm attains best performance and possesses practical value.

4.2. Simulations of Intelligent Task Allocation and Path Planning

In this section, simulations have been conducted to verify the effectiveness of the proposed algorithm in intelligent task allocation and path planning. The scenario involves an unmanned surface vehicle (USV) performing an environmental monitoring mission, where the vehicle is tasked with collecting water sampling data from multiple water monitoring stations. The selected area of interest is located near the Songhua River, China. Figure 9a displays the electronic map representing the designated area, which is then converted into a binary map of size 400 pixels × 600 pixels, as shown in Figure 9b.
In addition to fulfill the overall objectives of the environmental monitoring mission, which involves the USV visiting all water monitoring stations while minimizing distance costs, there is another crucial factor that must be considered: the impact of high and low tides. The varying tide levels have a significant effect on the dimensions of obstacles, rendering certain water sampling stations inaccessible to the USV during low tide periods. Therefore, the algorithm is required to identify the stations (or tasks) that can be executed based on the specific situation. Subsequently, it needs to allocate the tasks and plan the trajectory accordingly. This ensures the optimal execution of tasks within the constraints imposed by tide conditions.
The simulation results considering the tide effect are depicted in Figure 10. In Figure 10a, the area consists of 20 water sampling stations represented by orange stars. Among them, five stations (marked by pink dash circles) are situated in riparian areas. During low tide periods, the USV is unable to visit these five stations due to the low water level. This issue is addressed by adjusting the sweeping scale limit ( α ) in this study to accommodate the tide height effect. During the rising tide period, the reduced dimensions of the obstacle area result in a larger free space. Thus, a higher value of α is selected to enable the algorithm to explore more tasks. The results for α = 0.9 are presented in Figure 10b, where a closed tour depicted by the light blue line successfully covers all 20 stations (tasks). Conversely, Figure 10c illustrates the outcomes with α = 0.8 . An observation reveals that tasks situated in shallow water areas are excluded from consideration due to the extended obstacle boundary. Nevertheless, the remaining tasks can still be visited by following the closed tour depicted by the light blue line.

5. Conclusions and Future Work

This paper presents a novel algorithm, based on the self-attention mechanism (SAM), to address the issue of intelligent task allocation for USV. The operating environment of a USV usually contains various obstacles, and safety is the most important thing to pay attention to. How to reasonably and effectively allocate multiple tasks based on the minimum distance cost while ensuring navigation safety is one of the main bottlenecks in deploying complex marine missions. To address this, the algorithm incorporates environmental obstacle factors into the input model of the SAM algorithm, utilizing the actual navigation distance as the distance cost between nodes. Additionally, the algorithm includes a path planning module, enabling efficient optimization of hazardous paths. By employing this algorithm, tasks can be assigned to minimize the actual sailing distance of the USV. It generates feasible paths for the USV to avoid collisions, meeting the most critical requirements in maritime navigation.
In future research, the first enhancement is to further consider the kinematic characteristics of USVs [23], as they can potentially impact the task allocation outcome. Additionally, to enhance the practical performance of the proposed approaches, they will undergo validation using real boats in a realistic environment [24]. The final enhancement involves extending the current algorithm to accommodate larger-scale unmanned vehicle systems. This expansion aims to enable multiple USV formations to undertake more complex missions that require extended mission durations [19].

Author Contributions

Conceptualization, J.L., Y.Z., J.Z. and Y.S.; methodology, J.L. and Y.Z.; validation, J.L. and Y.Z.; formal analysis, J.L.; investigation, J.L., J.Z. and Y.S.; resources, J.L.; data curation, J.L.; writing—original draft preparation, J.L.; writing—review and editing, J.L., Y.Z. and J.Z.; visualization, J.L.; supervision, Y.S.; project administration, J.Z.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China, grant number 52071100.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

All authors have read and agreed to the published version of the manuscript.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to privacy restrictions.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Huang, B.; Song, S.; Zhu, C. Finite-time distributed formation control for multiple unmanned surface vehicles with input saturation. Ocean Eng. 2021, 233, 109158. [Google Scholar] [CrossRef]
  2. Huang, B.; Zhang, S.; He, Y. Finite-time anti-saturation control for Euler–Lagrange systems with actuator failures. ISA Trans. 2022, 124, 468–477. [Google Scholar] [CrossRef] [PubMed]
  3. Zhou, B.; Huang, B.; Su, Y.; Wang, W.; Zhang, E. Two-layer leader-follower optimal affine formation maneuver control for networked unmanned surface vessels with input saturations. Int. J. Robust Nonlinear Control 2023, 1–25. [Google Scholar] [CrossRef]
  4. Liang, X.; Qu, X.; Hou, Y. Distributed coordinated tracking control of multiple unmanned surface vehicles under complex marine environments. Ocean Eng. 2020, 205, 107328. [Google Scholar] [CrossRef]
  5. Fan, J.; Li, Y.; Liao, Y. A formation reconfiguration method for multiple unmanned surface vehicles executing target interception missions. Appl. Ocean Res. 2020, 104, 102359. [Google Scholar] [CrossRef]
  6. Li, J.; Xiong, Y.; She, J. UAV Path Planning for Target Coverage Task in Dynamic Environment. IEEE Internet Things J. 2023, 10, 17734–17745. [Google Scholar] [CrossRef]
  7. Yan, X.S.; Liu, H.M.; Yan, J. A fast evolutionary algorithm for traveling salesman problem. In Proceedings of the Third International Conference on Natural Computation (ICNC 2007), IEEE, Haikou, China, 24–27 August 2007; pp. 85–90. [Google Scholar]
  8. Dorigo, M.; Gambardella, L.M. Ant colony system: A cooperative learning approach to the traveling salesman problem. IEEE Trans. Evol. Comput. 1997, 1, 53–66. [Google Scholar] [CrossRef]
  9. Hertz, J.; Krogh, A.; Palmer, R.G. Introduction to the Theory of Neural Computation; Basic Books; CRC Press: Boca Raton, FL, USA, 2018. [Google Scholar]
  10. Park, J.; Kim, S.; Noh, G.; Kim, H.; Lee, D.; Lee, I. Mission planning and performance verification of an unmanned surface vehicle using a genetic algorithm—ScienceDirect. Int. J. Nav. Archit. Ocean Eng. 2021, 13, 575–584. [Google Scholar] [CrossRef]
  11. Wang, Z.; Liu, L.; Long, T. Multi-UAV reconnaissance task allocation for heterogeneous targets using an opposition-based genetic algorithm with double-chromosome encoding. Chin. J. Aeronaut. 2018, 31, 339–350. [Google Scholar] [CrossRef]
  12. Jia, Z.; Yu, J.; Ai, X. Cooperative multiple task assignment problem with stochastic velocities and time windows for heterogeneous unmanned aerial vehicles using a genetic algorithm. Aerosp. Ence Technol. 2018, 76, 112–125. [Google Scholar] [CrossRef]
  13. Zhai, S.; Li, G.; Wu, G. Cooperative task allocation for multi heterogeneous aerial vehicles using particle swarm optimization algorithm and entropy weight method. Appl. Soft Comput. 2023, 148, 110918. [Google Scholar] [CrossRef]
  14. Chen, J.; Ling, F.; Zhang, Y. Coverage path planning of heterogeneous unmanned aerial vehicles based on ant colony system. Swarm Evol. Comput. 2022, 69, 101005. [Google Scholar] [CrossRef]
  15. Huang, L.; Zhou, M.C.; Hao, K. Non-dominated immune-endocrine short feedback algorithm for multi-robot maritime patrolling. IEEE Trans. Intell. Transp. Syst. 2019, 21, 362–373. [Google Scholar] [CrossRef]
  16. Zhu, A.M.; Yang, S.X. A Neural Network Approach to Dynamic Task Assignment of Multirobots. IEEE Trans. Neural Netw. 2006, 17, 1278–1287. [Google Scholar] [PubMed]
  17. Zhu, A.M.; Yang, S.X. An Improved SOM-based Approach to Dynamic Task Assignment of Multi-robots. In Proceedings of the 8th World Congress on Intelligent Control and Automation, Jinan, China, 7–9 July 2010. [Google Scholar]
  18. Liu, Y.C.; Bucknall, R. Efficient multi-task allocation and path planning for unmanned surface vehicle in support of ocean operations. Neurocomputing 2018, 275, 1550–1566. [Google Scholar] [CrossRef]
  19. Liu, Y.C.; Song, R.; Bucknall, R. Intelligent multi-task allocation and planning for multiple unmanned surface vehicles (USVs) using self-organising maps and fast marching method. Inf. Sci. 2019, 496, 180–197. [Google Scholar] [CrossRef]
  20. Zhu, D.Q.; Huang, H. Dynamic Task Assignment and Path Planning of Multi-AUV System Based on an Improved Self-Organizing Map and Velocity Synthesis Method in Three-Dimensional Underwater Workspace. IEEE Trans. Cybern. 2013, 43, 504–514. [Google Scholar] [PubMed]
  21. Su, Y.M.; Luo, J.; Zhuang, J.Y. A constrained locking sweeping method and velocity obstacle based path planning method for unmanned surface vehicles in complex maritime traffic scenarios. Ocean Eng. 2023, 279, 113578. [Google Scholar] [CrossRef]
  22. Buades, A.; Coll, B.; Morel, J.M. A non-local algorithm for image denoising. In Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, San Diego, CA, USA, 20–26 June 2005; Volume 2, pp. 60–65. [Google Scholar]
  23. Huang, B.; Zhou, B.; Zhang, S. Adaptive prescribed performance tracking control for underactuated autonomous underwater vehicles with input quantization. Ocean Eng. 2021, 221, 108549. [Google Scholar] [CrossRef]
  24. Zhuang, J.Y.; Zhang, L.; Wang, B. Navigating high-speed unmanned surface vehicles: System approach and validations. J. Field Robot. 2021, 38, 619–652. [Google Scholar] [CrossRef]
Figure 1. Example of task allocation.
Figure 1. Example of task allocation.
Jmse 12 00179 g001
Figure 2. The potential field constructed by LSM in a space with obstacles. (a) The sweep processes; (b) the locked state of the nodes in the configuration space. (The red dot represents sweep initial point and the gray area represents the locked nodes set).
Figure 2. The potential field constructed by LSM in a space with obstacles. (a) The sweep processes; (b) the locked state of the nodes in the configuration space. (The red dot represents sweep initial point and the gray area represents the locked nodes set).
Jmse 12 00179 g002
Figure 3. Example of path planning. (The red line represents collision-free path from blue dot to red dot).
Figure 3. Example of path planning. (The red line represents collision-free path from blue dot to red dot).
Jmse 12 00179 g003
Figure 4. Example of the process of generating the obstacle field. (a) The simulated environment including multiple small islands; (b) the generated obstacle field.
Figure 4. Example of the process of generating the obstacle field. (a) The simulated environment including multiple small islands; (b) the generated obstacle field.
Jmse 12 00179 g004
Figure 5. Example of the process of generating constrained obstacle field. (a) α = 0.4 ; (b) α = 0.5 ; (c) α = 0.7 ; (d) α = 0.9 .
Figure 5. Example of the process of generating constrained obstacle field. (a) α = 0.4 ; (b) α = 0.5 ; (c) α = 0.7 ; (d) α = 0.9 .
Jmse 12 00179 g005
Figure 6. Example of the process of generating distance field. (a) α = 0.4 ; (b) α = 0.5 ; (c) α = 0.7 ; (d) α = 0.9 . (The red dot indicates the location of task i ).
Figure 6. Example of the process of generating distance field. (a) α = 0.4 ; (b) α = 0.5 ; (c) α = 0.7 ; (d) α = 0.9 . (The red dot indicates the location of task i ).
Jmse 12 00179 g006aJmse 12 00179 g006b
Figure 7. The algorithm structure of the self-attention mechanism.
Figure 7. The algorithm structure of the self-attention mechanism.
Jmse 12 00179 g007
Figure 8. Simulation results of intelligent task allocation and path planning when α = 0.9 . (a) The simulation environment; (b) SOM + path planning algorithm; (c) SAM + path planning algorithm; (d) improved SAM algorithm. (The green line indicates the straight line without considering obstacles, and the light blue dashed line represents collision-free paths).
Figure 8. Simulation results of intelligent task allocation and path planning when α = 0.9 . (a) The simulation environment; (b) SOM + path planning algorithm; (c) SAM + path planning algorithm; (d) improved SAM algorithm. (The green line indicates the straight line without considering obstacles, and the light blue dashed line represents collision-free paths).
Jmse 12 00179 g008
Figure 9. A practical simulation environment. (a) The electronic map near Songhua River, China; (b) the converted binary map of the electronic map.
Figure 9. A practical simulation environment. (a) The electronic map near Songhua River, China; (b) the converted binary map of the electronic map.
Jmse 12 00179 g009
Figure 10. Simulation results with 20 water sampling stations. (a) The simulation environment; (b) results when α = 0.9 ; (c) results when α = 0.8 .
Figure 10. Simulation results with 20 water sampling stations. (a) The simulation environment; (b) results when α = 0.9 ; (c) results when α = 0.8 .
Jmse 12 00179 g010
Table 1. The total distance cost of allocation results based on three algorithms.
Table 1. The total distance cost of allocation results based on three algorithms.
Environmental FactorSOM + Path Planning Algorithm (Distance Cost)SAM + Path Planning Algorithm (Distance Cost)Improved SAM (Distance Cost)
disregard obstacles1562.9 pixels1498.6 pixels1527.1 pixels
consider the impact of obstacles1619.2 pixels1561 pixels1535.5 pixels
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Luo, J.; Zhang, Y.; Zhuang, J.; Su, Y. Intelligent Task Allocation and Planning for Unmanned Surface Vehicle (USV) Using Self-Attention Mechanism and Locking Sweeping Method. J. Mar. Sci. Eng. 2024, 12, 179. https://doi.org/10.3390/jmse12010179

AMA Style

Luo J, Zhang Y, Zhuang J, Su Y. Intelligent Task Allocation and Planning for Unmanned Surface Vehicle (USV) Using Self-Attention Mechanism and Locking Sweeping Method. Journal of Marine Science and Engineering. 2024; 12(1):179. https://doi.org/10.3390/jmse12010179

Chicago/Turabian Style

Luo, Jing, Yuhang Zhang, Jiayuan Zhuang, and Yumin Su. 2024. "Intelligent Task Allocation and Planning for Unmanned Surface Vehicle (USV) Using Self-Attention Mechanism and Locking Sweeping Method" Journal of Marine Science and Engineering 12, no. 1: 179. https://doi.org/10.3390/jmse12010179

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop