Text this: Knowledge reasoning and strategy optimization for ship operation and maintenance based on digital twin and improved KD tree algorithm