The present application relates to the technical field of
water pollution tracing, and particularly relates to a method and
system for tracing
water pollution by an unmanned ship, which comprises the following steps: constructing an improved dynamic behavior tree
decision model after starting a tracing task, which comprises three parallel behavior sub-trees of tracing,
obstacle avoidance and returning; collecting the concentrations of pollutants, the distances of obstacles and the remaining power of the unmanned ship in real time in four directions of front, back, left and right; calculating the behavior weights and normalizing them in each sampling period; judging based on behavior switching logic, which introduces
hysteresis constraint and time constraint, and requires that the normalized weight of the behavior to be switched is higher than the sum of the current behavior weight and a threshold increment, and the duration of this state exceeds the anti-shake time, and if the conditions are met, the behavior with the highest weight is switched to; finally, the corresponding
algorithm is called to execute the action; the
system comprises the modules of main control, concentration detection,
obstacle avoidance, positioning, driving, power,
wireless communication and host
computer control, which is beneficial to solve the problems of inflexible task switching and easy decision shock caused by instantaneous interference or close weights of the traditional behavior tree in complex water areas, and improves the autonomy, task execution efficiency and overall
system stability of the unmanned ship tracing.