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

Biểu Đồ Tri Thức (Knowledge Graph)

Explore how knowledge graphs represent complex relationships to enhance AI. Learn to integrate these networks with [Ultralytics YOLO26](https://docs.ultralytics.com/models/yolo26/) for smarter, context-aware machine learning.

A knowledge graph is a structured representation of real-world entities and the relationships between them. Unlike a standard database that stores data in rigid rows and columns, a knowledge graph organizes information as a network of nodes (representing objects, people, or concepts) and edges (representing the connections or interactions between those nodes). This structure mimics how humans organize information, allowing artificial intelligence (AI) systems to understand context, infer new facts, and reason about data in a more semantic and interconnected way.

Understanding the Structure

At the core of a knowledge graph are three main components that form "triples" (Subject-Predicate-Object):

  • Nodes (Entities): These are the distinct data points, such as "London," "Python," or "Ultralytics YOLO26." In computer vision tasks, these might represent detected objects like a "Car" or a "Pedestrian."
  • Edges (Relationships): These distinct lines connect nodes and define how they relate. For instance, an edge might label the relationship between "London" and "UK" as "is_capital_of."
  • Attributes (Properties): Additional details describing a node, such as the population of a city or the confidence score of an object detection.

This web-like structure enables systems to perform semantic search, where the engine understands the user's intent rather than just matching keywords. For example, knowing that "Jaguar" is both an animal and a car brand allows the system to differentiate results based on context.

Integration with Machine Learning

Knowledge graphs are increasingly vital for enhancing machine learning (ML) models. While deep learning models excel at statistical pattern recognition, they often lack factual grounding. Integrating a knowledge graph allows models to access a verified "world view."

  • Retrieval-Augmented Generation (RAG):Generative models can sometimes produce plausible but incorrect information. By grounding Large Language Models (LLMs) with a knowledge graph, AI agents can query a verified source of truth before generating a response. This significantly reduces hallucinations in LLMs and improves factual accuracy for enterprise applications.
  • Recommendation Systems:In AI in retail, graphs map complex relationships between users and products. If a customer purchases a camera, the graph understands the functional link to "SD Cards" or "Tripods," enabling smarter suggestions than simple collaborative filtering.

Ví dụ về mã: Trích xuất các thực thể cho một đồ thị

Computer vision models act as excellent entry points for populating knowledge graphs by identifying physical entities in the real world. The following Python snippet demonstrates how to use the Ultralytics YOLO26 model to detect objects in an image. These detected classes can act as nodes, which can then be linked in a graph database (like Neo4j or Amazon Neptune).

from ultralytics import YOLO

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

# Run inference on an image to find entities
results = model("https://ultralytics.com/images/bus.jpg")

# Extract unique detected object names to serve as graph nodes
# e.g., {'bus', 'person'}
detected_entities = {results[0].names[int(c)] for c in results[0].boxes.cls}

print(f"Graph Nodes: {detected_entities}")

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

  1. Khám phá thuốc trong lĩnh vực chăm sóc sức khỏe: Các nhà nghiên cứu về trí tuệ nhân tạo trong chăm sóc sức khỏe sử dụng đồ thị tri thức để mô hình hóa các tương tác sinh học. Bằng cách liên kết các thực thể như gen, protein và hợp chất hóa học từ các cơ sở dữ liệu như UniProt , các thuật toán có thể dự đoán các mục tiêu thuốc tiềm năng và tác dụng phụ, đẩy nhanh quá trình phát triển các phương pháp điều trị mới.
  2. Mô hình song sinh kỹ thuật số chuỗi cung ứng: Các công ty logistics sử dụng đồ thị tri thức để tạo ra "mô hình song sinh kỹ thuật số" cho hoạt động của họ. Các nút đại diện cho nhà cung cấp, kho hàng và hàng tồn kho, trong khi các cạnh đại diện cho các tuyến vận chuyển và sự phụ thuộc lẫn nhau. Cấu trúc này tạo điều kiện thuận lợi cho phân tích dữ liệu lớn , cho phép các nhà quản lý dự đoán sự chậm trễ và tối ưu hóa các tuyến đường một cách linh hoạt.

Knowledge Graphs vs. Relational Databases

It is important to distinguish a knowledge graph from a traditional Relational Database (RDBMS). A relational database stores data in rigid tables linked by foreign keys, which is efficient for structured, transactional data (like bank ledgers). However, querying complex relationships (e.g., "Find friends of friends who like sci-fi") requires expensive "join" operations.

In contrast, a knowledge graph (often stored in a Graph Database) treats the relationship as a first-class citizen. Traversing connections is instantaneous, making graphs superior for tasks involving highly interconnected data, such as fraud detection rings or social network analysis. While RDBMS excels at storage and retrieval of specific records, knowledge graphs excel at discovering patterns and hidden insights within the connections themselves.

Future Outlook with Multi-Modal AI

The future of knowledge graphs lies in multi-modal learning. As models like Ultralytics YOLO26 continue to advance in object detection and pose estimation, they will automatically feed visual context into graphs. This creates systems that not only "read" text but "see" the world, linking visual concepts to linguistic definitions. Using the Ultralytics Platform, developers can train these specialized vision models to recognize custom entities, effectively building the sensory organs for the next generation of knowledge-aware AI systems.

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