Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 2.06 KB

README.md

File metadata and controls

37 lines (24 loc) · 2.06 KB

Real-time Detection of Cavings in Shale Shaker

Some experiments I did when I worked in PRORES AS - not part of company project.

In this project, I implement paper by Skea, 2018 that classified borehole failure mode based on cavings shape. Cavings are classified into Angular, Tabular, Blocky, and Splintery, and each shape correspond to different failure mode.

I developed a real-time segmentation using YOLOv11 on a shaker video, calculated the shape of cavings, and produced real-time plot. The 10-second video is publicly accessed from YouTube. Training data can be found as ZIP file in my Kaggle

Here is the result of the detection:

Cavings_Detected_Clip.mp4

And here is the failure plot animation:

Failure_Animation.mp4

Here is the final plot of all detected cavings. You can see how cavings move from bedding to tensile failure over time.

image

The notebook explains process as follows:

  1. Train a YOLOv11 segmentation model with default hyperparams on the data
  2. Use the pre-trained segmentation model (.pt) to do inference on the video, producing both video result (.avi) and text output on frames
  3. Read every caving in every frame of the text output as Polygon and calculate roundness and circularity using OpenCV
  4. Plot the points in the Circularity vs. Roundness plot
  5. Produce animation using FFMPeg

Libraries

  • Ultralytics==8.3.47
  • OpenCV==4.10.0.84
  • FFMPeg==0.2.0
  • Shapely==1.8.5.post1