Case study - AI passenger-flow analytics for city buses

A production video-analytics service for passenger detection, door-zone modeling, multi-object tracking, boarding and alighting events, OD association, and domestic AI accelerator deployment.

Client
Anonymized public transportation client
Service
Computer vision / Video analytics / Production deployment
  • Object detection
  • BoTSORT + ReID
  • Temporal events
  • OD analytics
  • Ascend

Business challenge

Passenger counting is not a single-frame detection problem. The system must understand door areas, trajectories, time windows, and state changes while coping with occlusion, vibration, lighting changes, and crowded scenes.

The result also needed to integrate with a real operational workflow through task submission, asynchronous processing, status tracking, callbacks, logs, and recoverable failures.

Solution

We designed a pipeline covering passenger and door detection, stable door-zone modeling, BoTSORT and ReID tracking, trajectory matching, boarding and alighting event recognition, and OD association.

Each key event keeps structured intermediate results and evidence frames so abnormal statistics can be traced back to the task, clip, trajectory, and decision rather than rerunning a black-box script.

Engineering delivery

The models were packaged behind APIs with asynchronous queues, workers, caching, task state management, callbacks, monitoring metrics, and deployment documentation.

We also adapted inference for Ascend 300i ACL, including model outputs, buffers, numerical edge cases, API compatibility, and performance profiling.

Outcome

The final system can be integrated into a transportation business platform and operated as a maintainable production service.

The same architecture can extend to multi-stream RTSP input, occupancy analysis, station-level flow, abnormal behavior alerts, and industrial or facility video analytics.

Have an AI project and want to assess feasibility first?

Send the business goal, sample data type, existing systems, deployment environment, and expected timeline. We can help decide whether a PoC, prototype, or production delivery is the right next step.