The application discloses a
loess drilling core image-based
lithology and sedimentary
facies identification and layering method, and aims to solve the problems that
loess drilling cores have broken cores, missing sections, insufficient
recovery rates, and that core box segmented shooting and splicing result in difficulties in automatic alignment of core images and well depth, accurate positioning of layering boundaries, and continuous output of the layering boundaries. The application obtains a core image set and well depth
metadata, performs image preprocessing and splicing according to the core box sequence, and establishes an image position coordinate sequence. Image coding network and
metadata coding network are used to extract features and generate an alignment feature sequence through cross-
modal fusion of cross-attention
Transformer. A
depth mapping function that satisfies a monotonic increasing constraint is solved under the constraints of a starting well depth, a terminal well depth, a
coring recovery rate and a depth marker point, so as to realize the mapping of the image position to the real well depth. Then, the image features are aligned to the well depth sampling points, and a
lithology and sedimentary
facies probability sequence is output. Finally, the final layering boundary is determined under the constraints of a minimum
layer thickness and adjacent layer section category transition, so as to realize the continuity constraint output of the layering result and improve the alignment accuracy and layering reliability.