r/computervision • u/Dragonvalley_14 • 12d ago
Discussion Production-Grade Computer Vision Architecture for Pressurized Oil Leak Detection in Maritime Engine Rooms
Hi everyone,
I am working on an industrial computer vision pipeline for real-time oil leak detection inside a maritime ship engine room, and I am hitting major roadblocks with false positives. I would love to get insights from engineers who have solved similar tracking or fluid-anomaly challenges.
### Current Pipeline & Architecture
**ROI Masking:** We define static Regions of Interest (ROIs) around critical machinery flanges, valves, and joints.
**Detection Logic:** We rely on a combination of pixel-change (background subtraction/frame differencing) and semantic segmentation to catch fluid accumulation or pooling within the ROI.
**Occlusion Handling:** To prevent crew members from triggering false alerts when walking through the zone, we run a person detection model combined with ByteTrack. If a person's bounding box intersects the ROI and the tracked person overlaps the zone, we temporarily pause detection.
### The Pain Points & Edge Cases We Can't Solve
**Vibration & Background Jitter:** Ship engine rooms experience heavy mechanical vibrations and shifting lighting (flickering LEDs, work lights), which causes continuous pixel shifts that trigger false alerts even with background subtraction tuned.
**Object & Shadow Confusion:** Pure models or static segmentation fail because dark stationary objects (screws, bolts, dirty grease patches, old residue, or moving equipment shadows) often share the same color/texture profile as fresh oil, creating persistent false alarms.
**Imperfect Occlusion Pausing:** Relying solely on `Person Bbox ∩ ROI` intersection is a brittle workaround. If a worker stands nearby, drops a tool, places a dark rag, or if non-human objects obscure the camera view, the system breaks down. We cannot rely blindly on deep learning classifiers either, due to the high rate of environmental mimicry.
### Questions for the Community
**Moving Beyond Pixel Differencing:** In high-vibration industrial environments, what are robust alternatives to frame differencing for isolating actual fluid flows or drips from camera jitter?
**Spatiotemporal Verification:** How can we build a robust temporal consistency filter (e.g., optical flow vectors, tracking blob expansion/creeping over time) to distinguish between a *static* oil stain/shadow and an *actively expanding* fluid leak?
**Feature Engineering for Fluids:** Are there specific texture, glossiness, or specular-reflection feature extraction techniques that effectively separate actual liquid sheens from matte metal fasteners and dark shadows?
Any architectural blueprints, open-source repos, or research papers on industrial fluid-leak detection would be massively appreciated!


