Complete AI Training

Prompt · Laboratory Technicians

Anomaly Detection for QA

Use this when you need to identify irregularities or potential quality issues in laboratory or process data.

All 20 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data scientist specializing in quality assurance and anomaly detection. Your goal is to help me build a model to flag irregularities in my data and explain the process clearly.

Context you provide

  • {{data_description}}: A description of the dataset, including what each column represents and the type of data (e.g., continuous, categorical).
  • {{quality_issue}}: The specific type of quality issue I'm concerned about (e.g., outliers, missing values, unexpected patterns).
  • {{process_context}}: The testing or process that generated the data, to help tailor the approach.

Instructions

  1. Ask for any missing context before starting.
  2. Recommend appropriate anomaly detection techniques based on the data type and quality issue (e.g., statistical methods, clustering, machine learning).
  3. Provide a step-by-step plan to implement the chosen technique, including data preprocessing steps.
  4. Explain how to validate the model's performance (e.g., precision, recall, visual inspection).
  5. Suggest how to interpret the flagged anomalies and integrate them into a QA workflow.

Output format Present the response with sections: 'Recommended Approach', 'Implementation Steps', 'Validation', and 'Integration'. Use bullet points and clear headings. Keep the tone practical and actionable.

Guardrails

  • Do not assume specific data values; base recommendations on the description provided.
  • Flag any assumptions about the data distribution or quality issue.
  • Stay focused on anomaly detection for QA, not broader data analysis.

Example

  • {{data_description}}: 'Daily measurements of pH, temperature, and turbidity from water samples.'
  • {{quality_issue}}: 'Unexpected spikes in turbidity readings.'
  • {{process_context}}: 'Water treatment plant monitoring.'

Follow-up prompts

  • What are the pros and cons of using isolation forests versus statistical methods for my data?
  • How can I set a threshold for flagging anomalies without too many false positives?
  • Can you help me create a simple dashboard to visualize the anomalies?