Meet YOLO26: next-gen vision AI.
Ultralytics
Back to Ultralytics Glossary

Semi-Supervised Learning

Explore how semi-supervised learning combines labeled and unlabeled data to boost model accuracy. Learn to implement SSL workflows using Ultralytics YOLO26.

Semi-supervised learning (SSL) is a strategic paradigm in machine learning (ML) that acts as a bridge between two traditional training methods. While supervised learning relies entirely on fully annotated datasets and unsupervised learning attempts to find patterns in data without any tags, SSL operates by combining a small amount of labeled data with a significantly larger pool of unlabeled data. This approach is particularly valuable in real-world computer vision (CV) scenarios where collecting raw imagery—such as video footage from security cameras or satellites—is relatively inexpensive, but the process of data labeling by human experts is costly, slow, and labor-intensive. By effectively utilizing the structure hidden within the unlabeled examples, SSL can significantly improve model accuracy and generalization without requiring an exhaustive annotation budget.

Link to this sectionCore Mechanisms of Semi-Supervised Learning#

The primary goal of SSL is to propagate the information found in the small set of labeled examples to the larger unlabeled set. This allows the neural network to learn decision boundaries that pass through low-density regions of the data, resulting in more robust classification or detection.

Two popular techniques drive most semi-supervised workflows:

  • Pseudo-Labeling: In this method, a model is first trained on the limited labeled data. It is then used to run inference on the unlabeled data. Predictions that exceed a specific confidence threshold are treated as "pseudo-labels" or ground truth. These confident predictions are added to the training data, and the model is retrained, iteratively improving its performance.
  • Consistency Regularization: This technique relies on data augmentation. The idea is that a model should output similar predictions for an image and a slightly modified (augmented) version of that same image. By minimizing the difference in predictions between the original and the augmented version, the model learns to focus on the object's core features rather than noise, improving its ability to handle overfitting.

Link to this sectionPractical Implementation with YOLO#

The following Python example demonstrates a simple pseudo-labeling workflow using the ultralytics package. Here, we train a YOLO26 model on a small dataset and then use it to generate labels for a directory of unlabeled images.

from ultralytics import YOLO

# Load the latest YOLO26 model
model = YOLO("yolo26n.pt")

# Train initially on a small available labeled dataset
model.train(data="coco8.yaml", epochs=10)

# Run inference on unlabeled data to generate pseudo-labels
# Setting save_txt=True saves the detections as text files for future training
results = model.predict(source="./unlabeled_images", save_txt=True, conf=0.85)

Link to this sectionReal-World Applications#

Semi-supervised learning is transforming industries where data is abundant but expertise is scarce.

  • Medical Imaging: In healthcare AI, acquiring scans (X-rays, MRIs) is standard procedure, but having a board-certified radiologist annotate every pixel for tumor detection is prohibitively expensive. SSL allows researchers to train high-performance models using only a fraction of the expert-annotated cases, leveraging thousands of archived scans to refine the model's understanding of biological structures.
  • Autonomous Driving: Self-driving car companies collect petabytes of video data daily from fleet vehicles. Labeling every frame for object detection and semantic segmentation is impossible. Through SSL, the system can learn from the vast majority of unlabeled driving hours to better understand complex road environments, weather conditions, and rare edge cases.

To effectively deploy AI solutions, it is crucial to understand how SSL differs from similar strategies:

  • vs. Active Learning: While both deal with unlabeled data, their approach to labeling differs. SSL automatically assigns labels based on model predictions. In contrast, active learning identifies the most "confusing" or uncertain data points and explicitly requests a human-in-the-loop to label them, optimizing the human's time rather than removing them entirely.
  • vs. Transfer Learning: Transfer learning involves taking a model pre-trained on a massive external dataset (like ImageNet) and fine-tuning it on your specific task. SSL, however, focuses on leveraging the unlabeled portion of your specific dataset distribution during the training process itself.
  • vs. Self-Supervised Learning: Though the names are similar, self-supervised learning often refers to "pretext tasks" (like solving a jigsaw puzzle of image patches) where the data generates its own supervision signals without any external labels. SSL specifically implies the use of a smaller set of verified labels to guide the process.

Link to this sectionTools and Future Outlook#

As deep learning (DL) models grow in size, the efficiency of data usage becomes paramount. Modern frameworks like PyTorch and TensorFlow provide the computational backend for these advanced training loops. Furthermore, tools like the Ultralytics Platform are simplifying the lifecycle of dataset management. By utilizing features like auto-annotation, teams can implement semi-supervised workflows more easily, rapidly turning raw data into production-ready model weights. This evolution in MLOps ensures that the barrier to entry for creating high-accuracy vision systems continues to lower.

Explore solutions

Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more
Real-time AI that works with your team

AI in Robotics

Power smarter machines with Ultralytics YOLO models. Vision AI in robotics drives autonomous navigation, perception, object tracking, and real-time control.
Learn more
Real-time AI that works with your team

AI in Logistics

Streamline logistics with Ultralytics YOLO models. Vision AI enables package inspection, sorting, vehicle tracking, and real-time warehouse safety monitoring.
Learn more
Real-time AI that works with your team

AI in Retail

Reimagine retail with Ultralytics YOLO models. Vision AI powers inventory tracking, shelf monitoring, queue management, and smarter customer insights.
Learn more
Real-time AI that works with your team

AI in Healthcare

Build healthcare solutions with Ultralytics YOLO models. Vision AI in healthcare powers faster medical imaging, smarter diagnostics, and patient monitoring.
Learn more
Real-time AI that works with your team

AI in Manufacturing

Optimize manufacturing with Ultralytics YOLO models. Vision AI drives quality control, defect detection, PPE compliance, and assembly line automation.
Learn more
Real-time AI that works with your operation

AI in Automotive

Apply computer vision in automotive with Ultralytics YOLO models. Vision AI elevates road safety, driver assistance, and vehicle automation for smarter roads.
Learn more
Real-time AI tailored to your operation

AI in Agriculture

Bring vision AI to smart agriculture with Ultralytics YOLO models. Power crop monitoring, livestock tracking, and precision farming for higher, smarter yields.
Learn more

Let's build the future of AI together!

Begin your journey with the future of machine learning