Skip to main content

FiftyFive Tech

Email Us sales@fiftyfivetech.io
Get in Touch
A bearded man in ear protection and safety glasses holding a pistol at an indoor shooting range, with a paper target behind him

Mobile applications

How an offline-first MVP detects a shooter's own gunshots on-device

FiftyFive built an offline-first mobile MVP detecting a shooter's own gunshots on-device with over 95% accuracy and syncing shared sessions in under 200ms.

Discuss on-device detection
Industry
Sports technology — shooting sports
Region
Europe
Solution
Offline-first gunshot detection MVP
Story

About the client

FiftyFive Technologies built a mobile MVP for a European sports-technology company that wanted shooting sports to have the performance data other sports take for granted.

Challenge

Whose shot was that?

  • Acoustic source separation Tell the user's own shot apart from background noise and from other shooters nearby.
  • Real-time multi-user sync Show each participant's shots on every other device almost immediately, over unstable rural connections.
  • Continuous on-device processing Process audio and accelerometer streams for a whole session without draining the battery.
  • Offline-first operation Capture every event with no coverage and reconcile later, with no dropped or duplicated shots.
  • Hardware variation Normalise microphone and accelerometer signals so accuracy holds across iOS and Android devices.
Solution

What FiftyFive built

A three-person FiftyFive team took the MVP from architecture to deployment. The design principle was that the phone does the detection alone and the network is only ever an enhancement. FiftyFive built the hybrid shot-registration engine, native on-device inference on iOS and Android, offline-first state management with background sync, a Node.js real-time backend and a data layer that stores session audio for future model retraining.

How the solution works

  1. Hybrid shot registration

    • A registration needs corroboration from three signals, not a single trigger.
    • TensorFlow Lite audio models perform the primary gunshot classification; accelerometer recoil validation confirms the shot came from the device's own user; and decibel-based spike detection separates near shots from distant ones.
    • Signals are normalised across devices before classification.
  2. On-device inference and offline state

    • Models run natively on iOS and Android, so detection never waits for a server and continues through network loss.
    • During a session the device is the source of truth: Redux Toolkit manages state, SQLite stores shot events and session data, and background sync reconciles with the backend when connectivity returns, without user action.
  3. Real-time backend

    • A Node.js and Express.js API handles application and session endpoints.
    • Socket.IO rooms keep participants in a shared session in sync.
    • BullMQ on Redis runs notification, email and data-processing jobs off the request path, and Firebase Cloud Messaging and APNs deliver push notifications.
  4. Data for retraining

    • PostgreSQL holds users, sessions and shot events with relational integrity.
    • An AWS S3 pipeline captures audio and session artefacts so detection models can be retrained as real-world session volume grows.

Technology stack

TensorFlow LiteOn-device audio gunshot classification
Accelerometer and microphoneRecoil validation and decibel spike detection
Redux Toolkit, SQLiteOffline-first session state and local persistence
Node.js, Express.jsBackend API
Socket.IORoom-based real-time session sync
BullMQ, RedisAsynchronous job queues
PostgreSQLUsers, sessions and shot events
AWS S3Audio and session artefacts for retraining
Firebase Cloud Messaging, APNsPush notifications

What the solution enabled

Outcomes

Business transformation

Over 95%

Detection accuracy

Sub-200ms

Synchronisation latency between participants

Under 5%

Additional battery drain per active hour

Over 95% detection accuracy

With under 0.5% false positives across live sessions.

Sub-200ms synchronisation latency

Between participants in a shared session.

No data loss under connectivity drops

In rural range conditions, through SQLite persistence and background sync.

Under 5% additional battery drain

Per active hour of continuous session use.

FAQ

Technical questions

How can a phone tell its owner's gunshot from a neighbour's?

FiftyFive Technologies combined three signals: a TensorFlow Lite audio classifier, accelerometer recoil validation and decibel-based near/far spike detection. A shot is registered only when the signals corroborate each other. In this sports-technology MVP the approach reached over 95% detection accuracy with under 0.5% false positives across live sessions.

Talk to FiftyFive's mobile and ML engineers about running detection on-device and offline.

Book a call

Project snapshot

Industry
Sports technology — shooting sports
Region
Europe
Services
MVP and mobile app development, on-device ML, backend and real-time engineering
Duration
April 2025 – June 2026
Status
MVP
Core technologies
TensorFlow Lite, Redux Toolkit, SQLite, Node.js, Socket.IO, BullMQ, Redis, PostgreSQL, AWS S3