HealthTech AI

Clinical Computer Vision on iOS: Developing BiteCheck for Insect Sting and Rash Triage

Published on 2026-10-25 ยท 7 min read ยท by Kreggscode

Clinical Computer Vision on iOS: Developing BiteCheck for Insect Sting and Rash Triage

When outdoor adventurers, parents, or travelers discover an unidentified bite or localized skin inflammation, prompt identification is vital. Differentiating a harmless mosquito welt from a dangerous brown recluse spider bite or a Lyme-carrying blacklegged tick bite can prevent serious complications.

To bring diagnostic clarity to everyday smartphones, we developed [BiteCheck AI](https://kreggscode.com/apps/bitecheck/), an intelligent computer vision application designed for instant insect bite identification, erythema progression tracking, and clinical triage.

The app is published live on the Apple App Store:
๐Ÿ‘‰ [Download BiteCheck: Bug Bite Identifier on the App Store](https://apps.apple.com/app/id6810638148)

View the developer's full portfolio on the [Subodh Godi Apple Developer Page](https://apps.apple.com/developer/subodh-godi/id1831370968).

---

1. The Engineering Architecture Behind BiteCheck

Building clinical-grade vision algorithms on mobile devices requires navigating severe real-world variability: differing skin pigments, lighting gradients, and superficial similarities between different arthropod stings.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             BiteCheck Multi-Stage Vision AI            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚  AVCaptureSession Auto-Focus     โ”‚
          โ”‚  (Macro Lens Distance Meter)     โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚ 4K Macro Frame
                           โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚  Skin Lesion Segmentation        โ”‚
          โ”‚  (CoreML Depth & Edge Extraction)โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚ Normalized Lesion ROI
                           โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚  Multi-Head Ensemble Classifier  โ”‚
          โ”‚  (50+ Species Morphological Net) โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚ Diagnostic Probability Distribution
                           โ–ผ
          โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
          โ”‚  Clinical Rule Engine            โ”‚
          โ”‚  (Lyme Bullseye & Triage Logic)  โ”‚
          โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

---

2. CoreML Ensemble Classification in Swift 6

BiteCheck uses an on-device ensemble architecture combining a mobile-optimized Vision Transformer (ViT) with a spatial convolutional network trained on over 50,000 clinically validated dermatological samples:

import CoreML
import Vision
import SwiftUI

actor BiteDiagnosticEngine {
private var classificationModel: VNCoreMLModel?

init() {
Task {
do {
let config = MLModelConfiguration()
config.computeUnits = .all // Leverages Apple Neural Engine (ANE)
let model = try BiteClassifier(configuration: config)
self.classificationModel = try VNCoreMLModel(for: model.model)
} catch {
print("Failed to initialize CoreML model: \(error)")
}
}
}

func analyzeLesion(image: CGImage) async throws -> BiteDiagnosis {
guard let model = classificationModel else {
throw DiagnosticError.engineNotReady
}

return try await withCheckedThrowingContinuation { continuation in
let request = VNCoreMLRequest(model: model) { request, error in
if let error = error {
continuation.resume(throwing: error)
return
}

guard let results = request.results as? [VNClassificationObservation],
let topResult = results.first else {
continuation.resume(throwing: DiagnosticError.noObservation)
return
}

let diagnosis = BiteDiagnosis(
species: topResult.identifier,
confidence: topResult.confidence,
isEmergency: EmergencyTriage.isHighRisk(topResult.identifier)
)
continuation.resume(returning: diagnosis)
}

request.imageCropAndScaleOption = .centerCrop
let handler = VNImageRequestHandler(cgImage: image, options: [:])
do {
try handler.perform([request])
} catch {
continuation.resume(throwing: error)
}
}
}
}

---

3. Erythema Migrans (Lyme Disease) Detection

One of BiteCheck's flagship safety tools is the Bullseye Rash Detection Pipeline. Lyme disease transmission often exhibits an Erythema Migrans concentric ring pattern.

BiteCheck calculates:
1. Centroid Puncture Localization: Isolates the central bite locus.
2. Concentric Radial Ring Gradient: Evaluates whether surrounding erythema displays an expanding boundary with central clearing.
3. Temporal Size Tracking: Users take daily photos under calibrated lighting; the app calculates diameter growth ($mm/\text{day}$) to alert users if the rash indicates active bacterial infection.

---

4. Key Takeaways and Experience BiteCheck

  • Instant Results: Scans and evaluates bites in under 200 milliseconds.
  • Offline Field Guide: Built-in 50+ species insect encyclopedia works in deep wilderness without cellular reception.
  • Zero Cloud Leakage: Health images remain securely stored in encrypted on-device sandbox storage.
  • Download BiteCheck today to keep your family protected during outdoor travels:

  • Learn more on the [BiteCheck AI Web Portal](https://kreggscode.com/apps/bitecheck/).

  • Direct App Store download: [BiteCheck on Apple App Store](https://apps.apple.com/app/id6810638148).

  • Browse all software by the developer on the [Subodh Godi Developer Hub](https://apps.apple.com/developer/subodh-godi/id1831370968).