Table of Contents

Lie Detector AI Web Application – Documentation

Overview

The Lie Detector AI is a Flask-based web application that:

It integrates with Azure Monitor, Application Insights, and Log Analytics for telemetry, diagnostics, tracing, and alerting.

Summary: What the App Does

The application allows users to upload an audio file containing speech. It processes the audio by transcribing it to text using Azure Cognitive Services. The resulting transcript is analyzed for sentiment (positive, neutral, negative), and then evaluated by a GPT-4.1 model deployed in Azure OpenAI to determine whether the statement is likely a truth or a lie.

All stages of processing are monitored with Application Insights and emit telemetry signals for logging, errors, and latency.

Order of Events (Request Processing Flow)

1. User Submits Audio File

2. Speech-to-Text Transcription

3. Sentiment Analysis

4. Lie Detection via GPT-4.1

5. Rendering the Result

Telemetry and Logging

Throughout the process, custom telemetry is sent to Application Insights using:

Architecture

Component Service
App Backend Flask
Speech-to-Text Azure Speech Service
Sentiment Analysis Azure Language Service
Lie Detection (LLM) Azure OpenAI (GPT-4.1)
Secrets Management Azure Key Vault
Monitoring & Logging Azure Application Insights, Log Analytics
Alerts Azure Monitor
Dashboard Azure Portal (Custom Metrics/Logs Dashboard)

Features

Monitoring and Telemetry

Application Insights

Alerts

Dashboard

Security

Notes