Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Data Sync & ETL

Data Sync & ETL

Set Up Medoids for Crop Anomaly Detection

When you run it manually, it calculates a cluster distance matrix over a vector collection and picks medoids for crop anomaly detection.

What it does

## Setting Up Medoids for Anomaly Detection ### Preparatory workflow to set cluster centres and cluster threshold scores, so anomalies can be detected based on these thresholds Here, we're using two approaches to set up these centres: the upper branch is the *"distance matrix approach"*, and the lower is the *"multimodal embedding model approach"*.

The steps

  1. When clicking ‘Test workflow’
  2. Total Points in Collection
  3. Cluster Distance Matrix
  4. Scipy Sparse Matrix
  5. Set medoid id
  6. Get Medoid Vector
  7. Prepare for Searching Threshold
  8. Searching Score
  9. Threshold Score
  10. Set medoid threshold score
  11. Split Out1
  12. Merge
  13. Textual (visual) crop descriptions
  14. Embed text

135 steps in total.

Similar automations