Smart Campus Gate Monitoring System

Engineering virtual prototype · Hybrid AI + Rule-Based architecture · interactive simulation

1 · System architecture & data flow

Alternate GateSliding / swing gate (physical) state CCTV (elevated camera)Pole-mounted, 1080p video streamRTSP / H.264 → frames Railway GateLevel-crossing barrier Position SensorAt gate closed-position contact pointContact: CLOSED · digital I/O Train Information APIREST/JSON · schedule + live ETATrain: none Central Computer with AI AI Computer Vision Frame capture → CNN classifierClasses: OPEN / CLOSED (+confidence) Alternate Gate: –Confidence: – Hybrid Rule-Based System Sensor fusion + decision logic R1 sensor contact → Railway stateR2 train near + gate OPEN → CRITICAL R3 AI conf < 70% → UNCERTAIN, flagR4 both gates CLOSED → access blocked R5 state change → event + email Railway Gate: – Alert level: – Status PublisherHTTPS POST / WebSocket · SMTP trigger videocontacttrain JSON Internet /Network HTTPS / TLS WebsitePublic dashboard Railway Gate:– Alternate Gate:– Real-time · auto-refresh 2 sTrain ETA + alerts bannerVisitors: browser / mobile EmailSMTP notification service • Train approaching• Gate state changed• Critical: gate OPEN• Low AI confidence Sent: 0

Animated dashed arrows = live data flow. Solid grey arrows = physical observation (sensor contact / camera view). Use the controls below to drive the simulation.

2 · Simulation inputs

3 · Public dashboard (Website)

4 · Rule engine trace

5 · Email notifications

No emails yet. Change an input to trigger events.

Engineering notes

AIHandles perception: a CNN classifies each CCTV frame as OPEN/CLOSED with a confidence score; uncertain frames are never silently trusted. RULESHandle decisions: deterministic, auditable logic fuses the API train state, the sensor contact, and the AI output. The railway gate status is derived from the sensor (most reliable) cross-checked with train data; the alternate gate status comes from the vision model. Suggested hardware: industrial PC with GPU/NPU, PoE camera, isolated digital input for the contact sensor, UPS power, and a cloud-hosted dashboard behind TLS. Note: this is a monitoring concept, not a safety-rated interlock for the crossing itself.