Yolo Tầm nhìn Thâm Quyến
Thâm Quyến
Tham gia ngay
Bảng chú giải thuật ngữ

Recall

Tìm hiểu Recall là gì trong machine learning, tại sao nó lại quan trọng và cách nó đảm bảo các mô hình AI nắm bắt hiệu quả các trường hợp dương tính quan trọng.

Recall, also known as sensitivity or the true positive rate, is a fundamental performance metric in machine learning that measures the ability of a model to identify all relevant instances within a dataset. In the context of object detection or classification, it specifically answers the question: "Out of all the actual positive cases, how many did the model correctly find?" Achieving high recall is critical in scenarios where missing a positive instance—often referred to as a false negative—carries significant consequences. Unlike accuracy, which can be misleading when dealing with imbalanced data, recall provides a focused view on the model's effectiveness at "capturing" the target class.

Tầm quan trọng của Độ Phủ Cao

In many artificial intelligence applications, the cost of failing to detect an object is far higher than the cost of a false alarm. A model optimized for recall minimizes false negatives, ensuring that the system casts a wide enough net to catch potential threats, anomalies, or critical conditions. This often involves a trade-off, as increasing recall can sometimes lead to a lower precision score, meaning the model might flag more non-relevant items as positive. Understanding this balance is key to developing robust machine learning solutions.

Các Ứng dụng Thực tế

Khả năng nhớ lại là chỉ số quan trọng hàng đầu trong nhiều giải pháp AI an toàn. Dưới đây là hai ví dụ nổi bật cho thấy độ nhạy được ưu tiên:

  • Chẩn đoán y tế: Trong phân tích hình ảnh y tế , chẳng hạn như chụp X-quang sàng lọc các dấu hiệu sớm của bệnh, độ chính xác cao là điều không thể thiếu. Nếu trí tuệ nhân tạo được sử dụng trong hệ thống chăm sóc sức khỏe để detect Đối với các khối u, việc hệ thống phát hiện một vùng mờ đáng ngờ hóa ra là lành tính (dương tính giả) còn tốt hơn là bỏ sót hoàn toàn một khối u ác tính. Các bác sĩ dựa vào những công cụ này như một mạng lưới an toàn, đảm bảo không bỏ sót bất kỳ rủi ro sức khỏe tiềm ẩn nào.
  • An ninh và Giám sát: Đối với hệ thống báo động an ninh , mục tiêu chính là detect mọi nỗ lực xâm nhập. Một hệ thống được tối ưu hóa cho khả năng ghi nhớ cao đảm bảo rằng nếu một người đi vào khu vực hạn chế, báo động sẽ được kích hoạt. Mặc dù điều này có thể dẫn đến một số báo động giả do động vật hoang dã gây ra, nhưng điều này vẫn tốt hơn là hệ thống không hoạt động. detect Một kẻ xâm nhập thực sự. Các mô hình phát hiện đối tượng trong những tình huống này được tinh chỉnh để đảm bảo độ nhạy tối đa đối với các mối đe dọa tiềm tàng.

Recall vs. Precision

It is essential to distinguish recall from its counterpart, precision. While recall measures the quantity of relevant cases found (completeness), precision measures the quality of the positive predictions (exactness).

  • Recall: Focuses on avoiding missed detections. "Did we find all the apples?"
  • Precision: Focuses on minimizing false alarms. "Are all the things we called apples actually apples?"

These two metrics often share an inverse relationship, visualized through a Precision-Recall curve. To evaluate the overall balance between them, developers often look at the F1-score, which is the harmonic mean of both. In imbalanced datasets, looking at recall alongside the confusion matrix gives a much clearer picture of performance than accuracy alone.

Đo lường thu hồi với Ultralytics YOLO

When training models like the cutting-edge YOLO26, recall is automatically computed during the validation phase. The framework calculates recall for each class and the mean Average Precision (mAP), helping developers gauge how well the model finds objects.

Bạn có thể dễ dàng xác thực mô hình đã được huấn luyện và xem các chỉ số độ chính xác của nó bằng cách sử dụng Python Đoạn mã này minh họa cách tải một mô hình và kiểm tra hiệu năng của nó trên một tập dữ liệu chuẩn:

from ultralytics import YOLO

# Load a pretrained YOLO26 model
model = YOLO("yolo26n.pt")

# Validate the model on the COCO8 dataset
# The results object contains metrics like Precision, Recall, and mAP
metrics = model.val(data="coco8.yaml")

# Access and print the mean recall score for box detection
print(f"Mean Recall: {metrics.results_dict['metrics/recall(B)']:.4f}")

This code utilizes the Ultralytics API to run validation. If the recall is lower than required for your project, you might consider techniques like data augmentation to create more varied training examples or hyperparameter tuning to adjust the model's sensitivity. Using the Ultralytics Platform can also streamline the process of managing datasets and tracking these metrics over multiple training runs.

Improving Model Recall

To boost a model's recall, data scientists often adjust the confidence threshold used during inference. Lowering the threshold makes the model more "optimistic," accepting more predictions as positive, which increases recall but may decrease precision. Additionally, collecting more diverse training data helps the model learn to recognize hard negatives and obscure instances. For complex tasks, employing advanced architectures like Transformer blocks or exploring ensemble methods can also improve the system's ability to detect subtle features that simpler models might miss.

Tham gia Ultralytics cộng đồng

Tham gia vào tương lai của AI. Kết nối, hợp tác và phát triển cùng với những nhà đổi mới toàn cầu

Tham gia ngay