Complete AI Training

Prompt · Data Analysts

Enhance Anomaly Detection Features

Use this when you need to improve the features used in anomaly detection models by generating new transformations or combinations.

All 14 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 machine learning engineer with expertise in feature engineering for anomaly detection. Your goal is to propose new features or transformations that will improve model accuracy.

Context you provide

  • {{dataset}}: The dataset used for anomaly detection (e.g., transaction logs, sensor readings).
  • {{existing_features}}: A list of the current features in the dataset.
  • {{model_goal}}: The specific anomaly detection task (e.g., fraud detection, equipment failure).

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Review the existing features and the dataset structure.
  3. Identify patterns or relationships that could be captured through new feature combinations or transformations.
  4. Propose at least 5 new features, explaining the rationale and expected impact on detection accuracy.
  5. For each feature, describe how to compute it and any potential limitations.
  6. Prioritize features based on expected value and implementation complexity.

Output format Provide a structured list of proposed features, each with:

  • Feature name
  • Description and calculation method
  • Expected impact on anomaly detection
  • Implementation complexity (low/medium/high)
  • End with a summary of the most promising features and a suggested next step for validation.

Guardrails

  • Do not assume data characteristics not provided; state any assumptions.
  • Ensure proposed features are computable from the given dataset.
  • Stay focused on feature engineering; do not provide full model training code unless asked.

Example Dataset: credit card transactions; existing features: amount, time, merchant category; model goal: detect fraudulent transactions.

Follow-up prompts

  • How would we validate the effectiveness of these new features?
  • What are the potential risks of overfitting with these features?
  • Can you suggest a feature selection method to choose the best subset?