The application belongs to the technical field of
underwater operation and maintenance process, and discloses an
underwater facility generative
cavitation cleaning method and
system based on a
diffusion model. The method comprises the following steps: obtaining
sonar images, body attitudes and
water depth data of the
underwater facility; inputting the data into a conditional
diffusion model to obtain a cooperative control action sequence, wherein the sequence comprises
propeller thrust instructions and
cavitation jet instructions, and the feedforward compensation thrust in the thrust instructions is ahead of the jet opening instruction in time; first, the
propeller is controlled to output compensation thrust according to the feedforward compensation thrust instruction, and then the
cavitation jet device is controlled to be opened; during the jet process, the real-time output thrust of the
propeller is monitored, and if it is less than the
recoil force estimated according to the current jet parameter, the jet parameter is reduced. The above-mentioned method generates cooperative sequence actions through a
diffusion model, combines feedforward thrust pre-compensation and closed-loop safety clamping, realizes active inhibition of
recoil force and self-adaptive cleaning of materials, and effectively improves the stability of underwater operation and the cleaning quality.