Fluid Inclusion Detection Algorithm Based on Improved YOLOv5s Model and Its Application
Fluid inclusions have important guiding significance for oil and gas resource evaluation,reservoir geochemistry,fluid types,fluid sources,and exploration.However,The identification of fluid inclusions primarily relies on manual searching,a process that is time-consuming and labor-intensive.To address this issue,an improved YOLOv5s fluid inclusion object detection algorithm was proposed.The feature extraction and feature fusion components of the original YOLOv5s model were enhanced to improve the model's detection capability,making it more suitable for fluid inclusion detection.A coordinate attention mechanism was introduced in the fea-ture extraction component to enhance localization and recognition capabilities.Additionally,the original path aggregation network in the feature fusion component was replaced with a bidirectional feature pyramid network.The upgraded network possesses stronger feature fusion capabilities,thereby enhancing the detection capability of small targets.Experimental results demonstrate that compared to the original YOLOv5s model,the average precision of the improved YOLOv5s increases from 75.3%to 77.3%,representing a 2%im-provement over the original algorithm.The detection speed also improves from 58.14 frames/s to 62.89 frames/s,resulting in a 4.75 frames/s improvement,thus achieving more accurate and efficient fluid inclusion detection.
YOLOv5sidentification of fluid inclusionsobject detectionBiFPNcoordinate attention