Agricultural Crop Anomaly Detection Tool
detail.loadingPreview
Detects if an input image depicts an anomalous crop compared to a pre-defined dataset.
About This Workflow
This workflow acts as an anomaly detection tool for agricultural crops. It takes an image URL as input, generates an embedding using Voyage AI, and then queries a Qdrant vector database to determine if the image's content is similar to known crop types. If the image is dissimilar to all known crop types beyond a set threshold, it is flagged as an anomaly.
Key Features
- Image Input: Accepts any image URL.
- AI Embedding: Utilizes Voyage AI's multimodal embeddings for image analysis.
- Vector Database Integration: Leverages Qdrant for efficient similarity search against a pre-populated crop dataset.
- Anomaly Scoring: Compares image embeddings against cluster medoids and their defined thresholds.
- Clear Output: Provides a textual alert indicating whether a new undefined crop is detected or if the image is similar to a known crop.
How To Use
- Trigger: The workflow is initiated via the
Execute Workflow Triggernode, which expects animageURLin its query parameters. - Variable Setup: The
Image URL hardcodenode captures the input image URL. TheVariables for medoidsnode sets up necessary parameters for Qdrant interaction (Qdrant Cloud URL, collection name, and key identifiers for medoids and thresholds). - Data Preparation (Implicit): The
Total Points in CollectionandEach Crop Countsnodes, along withInfo About Crop Labeled Clusters, are used to determine the number of crop classes available in the Qdrant collection. This count is passed to the next step. - Image Embedding: The
Embed imagenode uses the Voyage AI API to generate an embedding vector for the input image. - Similarity Search: The
Get similarity of medoidsnode queries the Qdrant collection. It uses the generated image embedding to find the closest crop medoids, limited by thecropsNumberderived earlier. It also filters points based onclusterCenterTypeand retrieves payload information, includingclusterThresholdCenterType. - Anomaly Determination: The
Compare scoresnode analyzes the similarity scores returned by Qdrant. It checks if the image's score meets or exceeds the threshold defined for any crop type. If the image is below all thresholds, it's classified as an anomaly. Otherwise, it identifies the most similar crop.
Apps Used
Workflow JSON
{
"id": "3d2856be-105e-4daf-9226-85ca17e8d8b6",
"name": "Agricultural Crop Anomaly Detection Tool",
"nodes": 10,
"category": "AI/ML",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 3d2856be-105e...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Crop Anomaly Detection Tool
Detects if an input image depicts an anomalous crop not present in the trained dataset.
OpenAI Assistant for File Retrieval with Citation Formatting
Automates generating structured metadata from OpenAI assistant responses, ensuring citations and file sources are correctly identified and formatted.
RAG Document Update and Management with Qdrant and Google Drive
Automates RAG system updates using Qdrant vector store and Google Drive documents.