深圳Yolo 视觉
深圳
立即加入
词汇表

推荐系统

了解推荐系统如何使用 AI 和机器学习来提供个性化建议、提高参与度并在线推动决策!

A recommendation system is an information filtering algorithm designed to predict a user's preference for specific items. These intelligent systems serve as the foundation of modern Artificial Intelligence (AI) applications, helping users navigate the overwhelming amount of content available online by curating personalized suggestions. By analyzing patterns in Big Data—such as purchase history, viewing habits, and user ratings—recommendation engines enhance user engagement and streamline decision-making processes. They are heavily utilized in environments where the variety of choices exceeds a user's ability to evaluate them all manually.

建议的核心机制

推荐引擎通常采用特定的 机器学习(ML)策略来生成相关建议。 相关建议。这三种主要方法包括

  • 协同过滤 这种方法依据的假设是,过去达成一致的用户将来也会达成一致。它通过交互数据来识别 基于用户)或项目(基于项目)之间的相似性。例如,如果用户 A 和 如果用户 A 和用户 B 都喜欢 "电影 X",系统会假设如果用户 B 喜欢 "电影 Y",那么用户 A 也可能喜欢 "电影 Y"。 也会喜欢 "电影 Y"。
  • 基于内容的过滤这种 根据项目属性推荐与用户之前喜欢的项目相似的项目。它需要分析 项目本身的特征,通常使用 自然语言处理(NLP) 进行文本描述或 计算机视觉技术(CV)来分析产品图像。 图像。
  • 混合模式:通过将协作过滤和基于内容的过滤相结合、 混合推荐系统旨在 克服个别方法的局限性,例如无法推荐没有用户交互历史的新项目。 交互历史。

实际应用

推荐系统的实际效用横跨各行各业,既能推动 客户体验 和业务收入。

  1. E-Commerce and Retail: Platforms utilize sophisticated algorithms to suggest products to shoppers. These systems power AI in retail by dynamically displaying "Customers who bought this also bought..." lists, which significantly increases cross-selling opportunities.
  2. Media Streaming: Services heavily depend on personalization. Netflix recommendation research teams develop algorithms that analyze viewing history to populate a user's homepage with relevant movies and shows. Similarly, music platforms generate playlists by analyzing acoustic patterns and user listening behaviors.

嵌入式视觉推荐

现代推荐系统,尤其是视觉内容推荐系统的一项关键技术是使用 嵌入。嵌入是一个项目(如图像)在高维空间中的 项目(如图像)在高维空间中的数字表示。视觉上相似的项目会有相近的嵌入。 接近。

The following Python code demonstrates how to extract image embeddings using a pre-trained Ultralytics YOLO26 classification model and calculate their similarity using PyTorch.

import torch.nn.functional as F
from ultralytics import YOLO

# Load a YOLO26 classification model
model = YOLO("yolo26n-cls.pt")

# Generate embeddings for two images (returns a list of Results objects)
results = model.predict(["bus.jpg", "dog.jpg"], embed=[1000])

# Calculate cosine similarity between the two embeddings
# Higher score indicates greater visual similarity
similarity = F.cosine_similarity(results[0].probs.data, results[1].probs.data, dim=0)

print(f"Visual Similarity Score: {similarity.item():.4f}")

推荐系统与相关概念

重要的是要将推荐系统与它们通常采用的底层技术区分开来:

  • 矢量搜索这是一种检索 方法,用于在 矢量数据库中在数学上最接近 最接近查询的项目。虽然推荐系统使用矢量搜索来查找相似产品,但推荐系统本身却包含了更广泛的用户分析和排名逻辑。 系统本身包含更广泛的用户分析和排序逻辑。您可以在我们的 相似性搜索指南中进一步探讨。
  • 语义搜索与基本 不同,语义搜索侧重于理解查询背后的含义。 查询背后的含义。当用户浏览特定类别时,推荐引擎可能会使用语义搜索来解释用户的意图。 他们浏览特定类别时的意图。

挑战与考量

部署有效的推荐系统会遇到很多障碍:

  • 冷启动问题:新用户或项目缺乏协同过滤所需的交互历史记录 过滤所需的交互历史。少数几次学习或 元数据等技术是解决冷启动问题的常见 解决冷启动问题
  • 可扩展性系统必须实时处理 数百万次互动。这就需要高效的 模型部署策略和优化的 硬件。
  • 伦理影响:越来越有必要解决 算法偏见,以防止系统 强化陈规定型观念。遵守人工智能伦理和 确保数据隐私对于维护 用户的信任至关重要。

To build and train your own models for recommendation tasks, the Ultralytics Platform offers a comprehensive environment for dataset management and model training.

加入Ultralytics 社区

加入人工智能的未来。与全球创新者联系、协作和共同成长

立即加入