The application discloses an automatic diagnosis
algorithm for adaptive multi-agent cooperation for explainability. The application comprises the following steps: firstly, a two-way probability network of symptoms and diseases is constructed based on a
data set, and a
disease weight is calculated through a pre-diagnosis module to determine whether to enter a Doctor Agent module or a Med-Team Agents module. The Doctor Agent simulates single expert diagnosis, combines a
medical knowledge base and the two-way probability network, and judges whether a patient can be definitely diagnosed or continue to ask related symptoms to assist in diagnosis. The Med-Team Agents simulate the consultation of
multiple experts, including a Manager Agent and multiple
Disease Agents, which respectively represent a chief physician and multiple
disease experts. The Manager Agent dynamically manages multiple
Disease Agents, selects appropriate experts according to the symptom information of the patient to generate related symptoms, and finally completes diagnosis. The application is suitable for medical automatic diagnosis tasks, combines multi-agent cooperation with two-way probability network prompts, improves the explainability of diagnosis, and realizes efficient inquiry and accurate diagnosis.