Enterprise-ready security: ISO 27001 + SOC 2 Type I compliant.
Back to Ultralytics Glossary

Online Learning

Learn how online learning enables incremental model updates, adapts to concept drift, and supports safer computer vision workflows with Ultralytics YOLO26.

Online learning is a machine learning approach in which a model updates incrementally as new examples arrive, rather than training once on a fixed dataset. The term refers to streaming or sequential model updates—not internet-based education. An online learner can predict, receive feedback, and update after each sample or small batch, as described by the scikit-learn online learning definition. This makes it useful when data is continuous, too large for memory, or changes over time. (scikit-learn.org)

Link to this sectionHow Online Learning Works#

A typical cycle is:

  1. The model receives new input and makes a prediction.
  2. A label or feedback signal becomes available.
  3. The loss is calculated and the model parameters are updated.
  4. Performance is measured before processing the next example.

Libraries such as River for streaming machine learning implement this predict-then-learn workflow with methods such as predict_one() and learn_one(). Neural networks can use the same principle through repeated PyTorch optimizer steps, although deep models commonly update on small batches for computational efficiency. (docs.pytorch.org)

Online learning is especially valuable under concept drift, where the relationship between inputs and outputs changes. Examples include seasonal traffic patterns, changing customer behavior, new manufacturing defects, or cameras installed under different lighting. A 2024 survey of recurrent concept drift highlights that recurring conditions, such as weather and time of day, require systems to recognize and adapt to previously encountered distributions. (ijcai.org)

Link to this sectionOnline Learning in Computer Vision#

Ultralytics YOLO does not perform uncontrolled per-frame weight updates during inference. Instead, teams can approximate safe online learning through periodic micro-batch fine-tuning on recent labeled data mixed with older examples:

from ultralytics import YOLO

model = YOLO("yolo26n.pt")
model.train(data="coco8.yaml", epochs=3, imgsz=640, lr0=0.001)

This runnable example uses Ultralytics YOLO26 and the documented YOLO train mode to make a small, low-learning-rate update. In production, coco8.yaml would be replaced with a versioned dataset containing recent and replayed samples.

Concrete applications include:

Continual learning is broader: it aims to learn across tasks or domains while retaining earlier knowledge. Online learning describes when and how frequently updates occur. Active learning instead selects the most informative examples for human labeling, while transfer learning adapts pretrained knowledge to a target task.

A major shared challenge is catastrophic forgetting. Recent research includes 2024’s BECoTTA continual test-time adaptation, 2025’s Ranked Entropy Minimization, and 2026’s PLASTIC stability-plasticity method, which explore efficient adaptation without model collapse or loss of earlier capabilities. (proceedings.mlr.press)

Link to this sectionCurrent Best Practices#

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