AIHazardDetectionforElderCare:HazardLens

AproofofconceptforaseniorcareSaaScompanythatwantedtocatchdangersbeforearesidentgetshurt.HazardLenslooksatcameraimagesfromcarefacilities,flagsriskslikewaterspills,andgotitright98%ofthetimeintesting.

Scroll
Business Domain
HealthcareSenior Care
Service
Data ScienceGenerative AIPrompt Engineering
Technologies
AWSAWS BedrockAWS LambdaAnthropic ClaudePython
01 · Overview

Who is the client and what did they need?

The client is a SaaS company that builds digital tools and automation software for elderly care facilities. Their products already help care homes run day to day. The next thing they wanted to try was AI that can watch for danger.

The idea was simple to say and hard to build. Take the camera feeds and photos a facility already has, and let software look for hazards in them. A water spill on a hallway floor is a good example. For a senior resident, that small puddle can mean a fall and a serious injury. If the system sees it first, staff can clean it up before anyone walks through.

Before putting real money into a full product, the client wanted proof that the idea works. They came to Xpiderz for our AI and prompt engineering experience and asked us to build a proof of concept. We called it HazardLens.

02 · Approach

Why did we pick an LLM for image classification?

There is more than one way to teach software to read an image. We went with large language models that can also see images, and the reason was practical. They are simple to set up, and they are easy to change later.

What mattered most here was telling image labels and classes apart. Is this floor clear, or is there a hazard on it? An LLM handles that kind of question well, and you steer it with a prompt, not with months of custom model building. For a proof of concept that had to give a clear answer fast, that was the right fit.

03 · Solution

How does HazardLens work?

HazardLens does its job in two steps. First it learns, then it judges. In the learning step, the system writes and improves its own prompt from a set of labeled images. In the judging step, it uses that saved prompt to classify new images as they come in.

We taught it with four classes of sample images, covering scenes that are clear and scenes where a hazard is present. Everything runs on AWS. Lambda handles the work each time an image arrives, and Bedrock hosts the models that do the looking. Bedrock returns a label for each image and hands the result back to Lambda.

Under the hood, HazardLens has four working parts:

  1. Automated Training

    You give the system a new set of images with labels. It then does its own prompt engineering, trying a prompt, checking the results, and improving it. After a few rounds, the best prompt is saved so it can be used in daily operation.

  2. Inference

    When a new image comes in, the system puts together the image, the classification task, the labels, and the saved prompt. Out comes the final answer: is there a hazard in this picture or not.

  3. Serverless on AWS

    AWS Lambda is the event-driven compute layer, so the system only runs when there is an image to check. Images sit in S3, and Bedrock gives access to the models. Python, boto3, and LangChain tie the pieces together.

  4. More Than One Model

    We did not bet on a single LLM. We tested the setup with a suite of models, including Anthropic Claude and Amazon Nova, to see how the results hold up when the model changes.

04 · Flexibility

Can it detect more than water spills?

Yes, and that turned out to be one of the most useful findings. Our validation showed the approach works well across different LLM setups, which confirmed the idea is technically sound and not tied to one model.

It also means the system is easy to retrain for a new job. Fire detection and warehouse analytics are two examples. All it takes is a new image feed and an updated script that changes the labels and prompts. The same pipeline then learns the new task, spots unusual patterns, warns staff, and helps stop incidents before they happen.

Measured Results

What do the numbers say?

What a small proof of concept showed about AI hazard detection in care facilities.

98% Detection Accuracy The model correctly pointed out possible safety threats in test images, even at proof of concept scale.
2 Step Pipeline Automated training builds the prompt. Inference uses it to classify every new image.
4 Image Classes Sample sets of clear and hazard scenes used to teach the system what to look for.
2 Person Team One project manager and one AI engineer took the idea from question to proven answer.
05 · Outcome

What did the client get out of it?

The client received a validated proof of concept that answers their main question. Yes, a real-time AI application for hazard detection can be built, and it can be accurate.

  • 98% accuracy on a small scale. Even with a limited set of images, the model was very precise at pointing out possible safety threats.
  • Less risk in the investment. The client now has real test data behind the decision to fund a full product, not just a good feeling about it.
  • A base to build on. The same pipeline can be pointed at new hazards and new settings without starting over.
06 · Next Steps

What happens next?

With the idea proven, we are working with the client to plan the next stage. The goal is to grow the HazardLens proof of concept into a full AI application that care facilities can use every day.

Team
Project ManagerAI Engineer
Tech Stack
PythonAWS S3AWS BedrockAWS LambdaLangChainAnthropic ClaudeAmazon Novaboto3

Have an AI idea you want to test first?

Tell us what you want to prove. We reply within 48 hours, and everything you share stays confidential.

Next Project
Voice AIReal EstateMulti-Tenant

K2X Auto

Multi-tenant AI voice-calling platform automating seller prospecting for Australian real-estate agencies.

Next Project
Marketing AnalyticsDecision IntelligenceAutomation

InsightsBot

AI-powered marketing analytics platform that reduced reporting time by 90% and doubled client capacity.

Next Project
Market IntelligenceCompetitive AIEnterprise

Harbinger AI

Full-spectrum market intelligence platform monitoring competitive signals across six data dimensions.

Next Project
RAG SolutionAI ResearchFull Stack

Sokrateque

AI-powered personal research assistant for Master's and PhD students.

Next Project
AI AssistantWhatsApp IntegrationAutomation

Eona

Conversational AI solution automating customer engagement through WhatsApp in the UAE market.

Next Project
AI Legal TechGenerative AIPlatform

INPRO AI Legal

AI-powered legal consultation platform democratizing access to affordable legal guidance.

Next Project
Legislation AIPolicy DraftingGenerative AI

LAWEP

The world's first AI platform for legislative drafting and policy research.

Hive AI
Next Project
Product MarketingDeck DesignAI Canvas

Hive AI

Product marketing deck for YaseenAI's Hive — the AI-powered canvas for work and ideas.

DealerDesk
Next Project
AI ChatbotDealer SupportRAG

DealerDesk

AI support assistant answering dealer install questions in seconds, trained on manuals and years of real tickets.

TalentLoop
Next Project
Recruitment CRMSaaSAutomation

TalentLoop

Cloud-native recruitment CRM unifying matching, scheduling, placements, payroll, and invoicing for a US staffing agency.

CareGraph
Next Project
HealthcareAI AgentsHIPAA

CareGraph

HIPAA-compliant multi-agent clinical assistant giving clinicians patient data and guideline suggestions inside the EHR workflow.

ThreadMind
Next Project
EdTechRAGAI Agents

ThreadMind

Agentic RAG chatbot turning years of scattered Slack logs into a secure, searchable corporate brain for an EdTech company.

FormSense
Next Project
HealthcareAutomationGenerative AI

FormSense

AI document engine reading patient enrollment forms from any manufacturer, cutting processing time by 90% for a US healthcare tech provider.

DeskMate
Next Project
AI ChatbotRAGEmployee Support

DeskMate

Secure AI support assistant answering employee questions inside Google Workspace, making ticket resolution 70% faster for a US technology enterprise.

OmniSeek
Next Project
HealthcareAI SearchLLM Development

OmniSeek

All-in-one AI search engine for a healthtech enterprise, searching SQL data, documents, and images in plain English with 90% better relevance.

ModelForge
Next Project
LLM DevelopmentMultimodal AIMLOps

ModelForge

Central AI experimentation platform for a US customer service tech company, making prototyping 40% faster and deployment to production 50% faster.