The invention discloses an automatic
report generation method based on a cross-
modal memory network, and relates to the technical field of automatic generation of
pipe network reports, comprising the following steps: step 1, constructing a defect image-report
data set of an urban underground drainage
pipe network; step 2, extracting image features by adopting an aggregation
discriminant attention mechanism and generating a defect area attention
mask; step 3, reinforcing the key area by utilizing the defect area attention
mask; step 4, constructing a cross-
modal memory network to realize feature alignment; and 5, inputting the enhanced features output by the cross-
modal memory network into an
encoder-
decoder architecture to generate a defect report. According to the method, a collaborative architecture of a fusion aggregation
discriminant attention mechanism and a cross-modal memory network is adopted, multi-defect gradient fusion is used for enhancing
visual localization and sharing a memory matrix to realize image-text feature explicit alignment, the attention precision of a key area is improved,
semantic consistency of terminologies and image features is ensured, and the accuracy of image recognition is improved. And high-precision and structured report output is realized.