Detecting Safety Hazards at Bulk Terminals

A practical guide to using computer vision for workplace safety from choosing cameras and training models to detecting hazards and turning alerts into action.

Detecting Safety Hazards at Bulk Terminals

A practical architecture for PPE screening, footwear assessment and vehicle warnings—covering optics, datasets, annotation, model training and the workflow after an alert.

The problem begins before the neural network

A worker walks beside a conveyor while a loader approaches a crossing. A fixed camera records the scene. The helmet occupies a recognisable patch of pixels; the shoes merge into the dark floor. A dust plume briefly hides the worker. The video connection remains healthy throughout.

What should the system conclude?

An ordinary object detector returns boxes and scores. The terminal needs something more demanding: a defensible statement about a particular person, in a particular zone, at a particular time, with enough remaining time for someone to respond. When the evidence disappears, the system must also say that its ability to assess the situation has disappeared.

That distinction defines the implementation. We are engineering an evidence-processing and response system whose inputs happen to include video.

In his article Building an AI Consistency Engine for Financial Reports, Pranav Pathekar separates extraction, contextualised facts, deterministic validation and evidence-backed review. The same architectural principle applies here: learned perception supplies observations; explicit rules interpret those observations; a workflow assigns and verifies action. A plausible model answer is not an operational fact.

For a terminal, four difficulties interact:

  • Observability: dust, shadows, glare, tiny targets and occlusion can make the requested judgement impossible from the available image.
  • Association: a helmet, vest or shoe must be associated with the correct person. Detecting equipment somewhere in a frame is insufficient.
  • Time and geometry: one ambiguous frame differs from a sustained event; two overlapping image boxes do not establish physical collision risk.
  • Intervention: an alert can be generated correctly yet arrive late, reach nobody, or be acknowledged without the hazard being addressed.

The engineering objective is to preserve these distinctions from annotation through the operator interface.

Define the decision before choosing the model

Start with an operational design domain: the locations, lighting, visibility, camera geometry, target sizes and operating conditions in which each use case will be assessed. Record what happens outside that domain. An excluded condition is a coverage gap with an operational fallback, not permission to silently display a green status.

Use case Observable question Necessary evidence Appropriate output
Helmet screening Is the visible head wearing a helmet? Assessable head region and person association Helmet present, visible absence, unknown
Vest screening Is a vest visibly worn on this torso? Assessable torso and worn-versus-carried distinction Visible match, mismatch candidate, unknown
Footwear screening What footwear appearance is visible on each foot? Adequate original detail and per-foot association Appearance category, mismatch candidate, unknown
Restricted-zone intrusion Has a person entered the configured region? Valid calibration, tracked ground contact and boundary uncertainty Entry candidate, confirmed episode, uncertain location
Vehicle warning Are trajectories and separation creating a conflict? Fresh relative position/motion, vehicle geometry and sensor health Directional warning, risk state, unavailable state

“Certified safety shoe” is not an honest image-only class. Toe protection, penetration resistance, electrical properties, authenticity and suitability are not reliably visible. A trainer-style shoe can be certified; a boot-shaped shoe may not be. Procurement records, product markings and inspection supply a different kind of evidence.

If the local rule prohibits open footwear, a clearly visible sandal can support a mismatch finding. A dark closed shoe, by itself, cannot establish either certification or non-compliance. This prevents the system from learning a convenient but false definition of safety.

Build three sensing paths around a shared evidence platform

Use a controlled pedestrian checkpoint for difficult PPE observations; fixed cameras for zone and area monitoring; vehicle-local sensing for warnings that depend on short response times. Their evidence can share a platform without sharing the same timing assumptions.

Three sensing paths feed a shared evidence platform while vehicle warnings remain local.
Three sensing paths feed a shared evidence platform while vehicle warnings remain local.

The cloud or central server may support investigation, reporting and model management. An urgent vehicle warning must not depend on an internet round trip or a supervisor opening a dashboard.

Conceptual bulk terminal with separate PPE checkpoints, area surveillance and vehicle-warning locations.
Different safety decisions need different observation points. Conceptual layout; not a site engineering drawing. AI-generated concept illustration.

Solve the optical problem with a measurable pixel budget

At a particular target plane, a first approximation is:

target_width_pixels ≈ image_width_pixels × projected_target_width_metres / scene_width_metres

Suppose a 2,560-pixel image covers 20 metres at the worker’s position. A shoe feature projected as 0.10 metres is approximately 13 pixels wide. Resize the complete frame to 640 pixels and that feature becomes approximately three pixels wide. No choice of network architecture repairs that information loss.

This estimate ignores perspective, blur and optical resolution; the actual image must be measured. It is not a minimum-pixel standard. Establish minimum usable size experimentally for each task using held-out footage.

The practical pipeline keeps access to the decoded high-resolution frame. A first-stage detector finds a person. The second stage crops the relevant body region from the original frame and only then resizes it for inference. Cropping a three-pixel shoe out of the already reduced detector image merely enlarges three pixels.

At commissioning, collect target-size measurements at near, middle and far positions. Include oblique views, walking motion and actual night exposure. Measure pixels on the feature the classifier needs, not merely person height.

For footwear, create a sheltered, accessible viewpoint along an established pedestrian route. Compare one oblique lower-body camera with two complementary views. Keep the geometry from creating a new trip hazard or pedestrian bottleneck. Use controlled lighting where justified and physically protect a low-mounted camera from dirt and impact.

Evaluate exposure, shutter speed, compression and denoising together. A bright image with motion-smeared shoes is not useful evidence. A sharp still image does not establish performance on moving workers. Generative enhancement and super-resolution must not invent the detail used to decide compliance.