One way in
Every request passes one gateway, with a revocable key per device. Keys are split by data type, so a key for one flow can't be used for another.
BlueOC built and runs the cloud platform for APOSA — STK ENG's IoT sensor for industrial valves — and an AI model that estimates each valve's torque from inexpensive field data instead of costly factory equipment.
A valve assembly combines a solenoid valve, a pneumatic cylinder, a shaft and a ball valve. When the solenoid loses power, air pressure drops, the cylinder turns the shaft and the ball valve closes. STK ENG wants to know the torque on the ball valve during that moment — it is the clearest sign of the valve's condition.
The legacy platform stored files on a server's disk, every device shared one hard-coded access key, and all customers' data sat in one place.
APOSA devices send sensor data to the cloud; factory torque meters send reference torque.
The platform processes the data, stores it in a time-series database and shows it on dashboards.
The AI server pulls sensor data through the export flow and runs the torque model.
Predictions come back to the cloud and appear next to real torque, so accuracy can be tracked.
| Flow | Sent by | What it carries |
|---|---|---|
| Sensor telemetry (ST) | APOSA device | Time-series sensor data: valve angle, pressure, voltage — up to 100 samples per second. |
| Reference torque (DL) | Factory torque meter | Real torque, used to train and test the AI. Time-zone aware, strictly validated and de-duplicated; only confirmed once written. |
| Power count | APOSA device | A small counter reading every minute, on a slimmed-down path straight through the queue. |
| AI prediction | AI server | Predicted torque, stored next to the real torque for the same device. |
| Data export | Web users or the AI server | Sensor and reference data downloaded as CSV — each party only sees devices it owns. |
We rewrote the platform as seven services. Every upload — from a device, a torque meter or the AI server — follows the same path; flows differ only in the last processing step.
Every request passes one gateway, with a revocable key per device. Keys are split by data type, so a key for one flow can't be used for another.
Files land in storage the moment they arrive — nothing is lost if a server fails, and any file can be reprocessed.
Receiving and processing are decoupled: devices never wait, and bursts of data are absorbed.
Each customer has its own data space and dashboards; no customer can see another's data.
New data types plug into the same pipeline without rebuilding the system.
Each file is scanned once to check it is valid, then split across parallel workers. Files of repeated data are still stored, but don't raise alerts — avoiding false alarms.
Take the valve's open and close calibration values for that moment.
Fetch it from storage; NDJSON or CSV is detected automatically.
One pass over the device clock spots burst duplicates, which skip alerting.
Records are split into chunks for a worker pool; each gets its valve opening ratio.
Alert rules run on the opening ratio, only for files that need checking.
Telemetry and alerts are written in batches, and the raw file is filed as normal or abnormal.
The model runs on a separate machine outside the cloud platform, and handles each valve closing in three steps.
Cut the segment where the valve goes from fully open to closed, drop closings with an unusual pressure curve, and resample each closing to exactly 100 points.
A BiLSTM network reads the whole 100-point sequence with 20 features — valve angle, pressure, voltage, current and values derived from them — and estimates torque.
A small XGBoost model for each valve type adjusts the estimate into the final torque.
Because the layers are separate, adding a new valve type — or correcting drifting accuracy — only means retraining the small calibration layer, not the main model. We also tested gradient-boosting models (XGBoost, LightGBM, CatBoost) on their own; their accuracy fell sharply on production lines missing from the training data.
The whole system runs on AWS in Tokyo, declared with Terraform and deployed automatically through GitOps.
Users and devices come in through Cloudflare and a web application firewall to the load balancer — the only public component.
Services run on Kubernetes (Amazon EKS) in a private network across two availability zones, scaling pods and nodes with load.
InfluxDB for time series, PostgreSQL for management data, Redis for caching, S3 for originals and SQS for queues.
Databases sit in the private network, secrets are managed centrally, and each service can only reach what it needs.
Prometheus, Grafana, Loki and Alertmanager track metrics and logs and send alerts.
Daily database backups with a copy in Singapore; InfluxDB volumes are snapshotted. GitHub Actions builds, ArgoCD deploys.
| Results | Legacy platform | With BlueOC |
|---|---|---|
| Storage | Files kept on a server's disk. | Raw files stored in S3 on arrival — nothing lost, everything reprocessable. |
| Access | Every device shared one hard-coded key. | A revocable key per device, split by data type. |
| Customer data | All customers' data in one place. | A separate data space and dashboards for each customer. |
| Processing | Uploads processed directly by the server. | Queued processing with automatic retries; devices never wait. |
| Torque | Only where an expensive torque meter is fitted. | Estimated by AI from field sensor data, shown beside real torque. |
Tell us what you measure and what you need to know. We'll tell you honestly whether AI can close the gap.