The invention discloses a shipping
accident analysis method. The method comprises the following steps: constructing a shipping accident
knowledge graph; inputting questions, retrieving the shipping accident
knowledge graph by adopting a retrieval enhancement generation method, and generating answers; wherein the retrieval enhancement generation method is adopted to retrieve the shipping accident
knowledge graph and generate the answer, and the method comprises the following steps of: analyzing a question by adopting a large
language model to generate a
query statement; retrieving in the shipping accident knowledge graph according to the
query statement, outputting nodes and edges matched with the
query statement from the shipping accident knowledge graph, and generating a
Bayesian network according to the matched nodes and edges; generating a query result according to the
conditional probability of a target node and a father node thereof and / or the
posterior probability of a child node thereof in the
Bayesian network, and inputting the query result into the large
language model; and the large
language model generates an answer according to the query result. The invention further discloses a shipping
accident analysis device,
computer equipment and a storage medium. The method comprises the following steps: extracting and storing shipping accident data by adopting a large language model in combination with a knowledge graph, and analyzing the shipping accident data in combination with a
Bayesian network analysis model to obtain an
occurrence probability of a complete causal chain from causes to accident results in an accident, so that objective and accurate accident causals are sorted out for complex shipping accidents, and the probability of occurrence of the complete causal chain is improved. And reliable conclusions and suggestions are provided for subsequent shipping businesses.