[2/2] KNN Classifier (Lands Dataset)

This workflow utilizes the KNN algorithm to achieve automatic classification of land types in satellite imagery. It converts images into vectors through the embedded API of Voyage AI, queries the Qdrant database to retrieve similar images, and employs a majority voting strategy to determine the classification. A mechanism for dynamically adjusting the number of neighbors has been designed to address tie situations in voting, ensuring the accuracy of the classification results, which achieve an overall accuracy rate of 93.24%. This approach is applicable in fields such as remote sensing analysis, urban planning, and agricultural monitoring, enhancing the automation and intelligence level of image classification.

Tags

KNN ClassificationSatellite Imagery

Workflow Name

[2/2] KNN Classifier (Lands Dataset)

Key Features and Highlights

This workflow implements satellite imagery land type classification based on the K-Nearest Neighbors (KNN) algorithm. It leverages Voyage AI’s multimodal embeddings API to convert input satellite image URLs into vector representations. Subsequently, it queries the Qdrant vector database to retrieve the most similar neighbor images and determines the final classification through majority voting based on the labeled categories of these neighbors. To address tie votes, the workflow incorporates a dynamic loop mechanism that incrementally increases the number of neighbors until a decisive majority is reached, ensuring classification accuracy and stability. The overall classification accuracy achieves 93.24% without requiring additional fine-tuning or metric learning.

Core Problem Addressed

This workflow tackles the challenge of automatic land type classification from satellite images. By utilizing efficient vector retrieval and majority voting strategies, it enables fast and accurate identification of complex land cover types such as farmland, forest, beach, and airport runways, while avoiding the dependency on large labeled datasets and complex model training typical of traditional classification methods.

Application Scenarios

  • Satellite remote sensing image analysis and classification
  • Land use and land cover monitoring
  • Urban planning and environmental protection
  • Agricultural region monitoring
  • Geographic Information System (GIS) data enhancement

Main Process Steps

  1. Trigger Execution: Receive input requests containing image URLs via the workflow trigger.
  2. Image Embedding: Call Voyage AI’s multimodal embeddings API to convert input images into vector embeddings.
  3. Set Query Parameters: Initialize parameters for querying the Qdrant vector database, including cloud URL, collection name, and neighbor count (limitKNN).
  4. Query Qdrant: Use the embedding vector to query Qdrant and retrieve the most similar neighbor images along with their labels.
  5. Majority Voting: Count the categories of neighbor images and select the top two categories with the highest frequencies.
  6. Tie Detection and Looping: If a tie occurs between the top two categories and the neighbor count has not exceeded 100, increase the neighbor count and re-query until the tie is resolved.
  7. Return Classification Result: Output the final land type classification result.

Involved Systems or Services

  • Voyage AI Multimodal Embeddings API: Provides image vectorization capabilities.
  • Qdrant Cloud Vector Database: Stores and retrieves pre-labeled satellite image vector collections.
  • n8n Automation Platform: Orchestrates and executes the entire workflow.

Target Users and Value

  • Remote sensing analysts and GIS specialists, facilitating automated land type recognition.
  • Environmental monitoring agencies and urban planning departments, enabling rapid land use information acquisition.
  • Agri-tech companies, supporting farmland management and yield prediction through image classification.
  • Data scientists and developers, serving as a reference template for vector retrieval and multimodal AI applications.

This workflow template features a clear structure and supports flexible replacement of datasets and vector database configurations. It is easy to migrate and customize for different image datasets, significantly enhancing the automation and intelligence level of image-based classification tasks.

Recommend Templates

Automated Generation and Distribution of Arabic Children's Stories

This workflow automatically generates Arabic stories suitable for children, combining education and entertainment with lively and engaging content. It utilizes AI technology to create stories and translate them, while also generating illustrations and audio readings. All content is published on a Telegram channel at scheduled intervals, ensuring updates every 12 hours to enhance user engagement efficiency. It is suitable for educational institutions, language learners, and content creators, providing a rich array of multimedia story resources to promote the development of children's language skills and imagination.

Children StoriesMultimedia Generation

AI Meeting Assistant – Automated Pre-Meeting Notification Generation and Delivery

This workflow is designed to provide intelligent meeting assistant services for busy professionals. It automatically detects upcoming meetings, extracts key information about participants and recent communication, and combines this with LinkedIn updates to generate concise meeting reminder notifications, which are promptly sent to WhatsApp. This process significantly enhances the efficiency of meeting preparation, ensuring that users quickly grasp the meeting context and improve communication effectiveness. It is suitable for corporate managers, sales personnel, and remote team members who frequently attend meetings.

AI AssistantMeeting Notice

Customer Lead AI Agent

This workflow automatically analyzes and classifies newly generated potential customer information through an AI intelligent agent, accurately identifying customer needs and intelligently matching relevant contacts. It automatically generates and sends professional email notifications. Its main functions include automatically screening valid potential customers, extracting key information, matching responsible personnel, and generating emails, significantly enhancing processing efficiency and the accuracy of information transmission. It optimizes the customer relationship management process, achieving full-process automation from potential customer generation to response.

Lead ManagementAI Automation

🤖 Calendar Agent

This workflow combines OpenAI's GPT-4o model with the Google Calendar API to provide an intelligent calendar management assistant. Users can easily create, query, update, and delete calendar events using natural language commands, simplifying the cumbersome process of schedule management. The integrated error retry mechanism enhances the stability and reliability of operations, making it suitable for both individual and team scheduling needs, significantly improving work efficiency and accuracy.

Smart CalendarNatural Language Management

Google Calendar Event Reminder

This workflow can automatically retrieve upcoming events from Google Calendar and generate friendly and personalized reminder content using an AI virtual assistant, which is then sent to users in real-time via Telegram. It ensures that each event receives only one reminder, supports flexible configuration of reminder times, and enhances the effectiveness of schedule management and user experience, making it particularly suitable for busy professionals and teams that need to manage their time efficiently.

Calendar ReminderAI Assistant

French Bilingual Speech Conversion and Transcription Workflow

This workflow achieves automatic speech conversion and precise transcription of French text, followed by the translation of the transcribed content into English and the generation of an English audio file, forming a complete cross-language processing loop. By combining high-quality speech synthesis with advanced speech-to-text technology, it efficiently meets the needs of multilingual content creation, language learning, speech localization, and customer service automation, significantly enhancing the efficiency and accuracy of cross-language communication.

Multilingual SpeechSpeech Transcription

CallForge – AI-Powered Gong Sales Call Intelligent Analysis Workflow

This workflow integrates advanced AI technology to automatically analyze the transcribed text of sales call recordings, extracting structured market and customer insights. It supports multidimensional analysis for sales, marketing, and product teams, generating precise customer needs, pain points, and competitor intelligence, significantly enhancing information processing efficiency. Through automated processes, the analysis results are synchronized across various systems, promoting cross-departmental collaboration and helping businesses optimize sales strategies and product iterations, enabling intelligent decision-making.

Sales Call AnalysisAI Insights

Intelligent Local File Auto-Classification and Organization Workflow

This workflow monitors a specified local folder in real-time, automatically identifying and categorizing newly added files. Through intelligent analysis, it recommends classifying files into appropriate subfolders and suggests creating new classification folders when necessary, automatically moving files to the corresponding directories. This solution effectively addresses the issue of disorganized files, enhancing sorting efficiency, and is particularly suitable for individual or team environments that require frequent updates and rapid categorization.

File SortingSmart Organizing