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

神经网络 (NN)

探索神经网络的强大功能——它是人工智能和机器学习创新的关键,例如计算机视觉、自然语言处理和深度学习的突破。

A Neural Network (NN) is a computational model at the core of Artificial Intelligence (AI) designed to recognize patterns, interpret sensory data, and cluster information. Inspired by the biological structure of the human brain, these networks consist of interconnected nodes, or "neurons," organized into layers. While a biological brain uses chemical signals to communicate across synapses, a digital neural network uses mathematical operations to transmit information. These systems are the foundational technology behind modern Machine Learning (ML), enabling computers to solve complex problems like recognizing faces, translating languages, and driving autonomous vehicles without being explicitly programmed for every specific rule.

神经网络与深度学习

While the terms are often used interchangeably, it is important to distinguish between a basic Neural Network and Deep Learning (DL). The primary difference lies in depth and complexity. A standard or "shallow" neural network may have only one or two hidden layers between the input and output. In contrast, Deep Learning involves "deep" neural networks with dozens or even hundreds of layers. This depth enables feature extraction to happen automatically, allowing the model to understand hierarchical patterns—simple edges become shapes, and shapes become recognizable objects. For a deeper technical dive, MIT News explains deep learning and its evolution from basic networks.

How Neural Networks Learn

The process of "learning" in a neural network involves adjusting the internal parameters to minimize errors. Data enters through an input layer, passes through one or more hidden layers where calculations occur, and exits through an output layer as a prediction.

  • Weights and Biases: Each connection between neurons has a "weight" that determines the signal's strength. During training, the network adjusts these weights based on training data.
  • Activation Functions: To decide whether a neuron should "fire" or activate, the network uses an Activation Function like ReLU or Sigmoid. This introduces non-linearity, allowing the network to learn complex boundaries.
  • Backpropagation: When the network makes a prediction, it compares the result to the actual correct answer. If there is an error, an algorithm called Backpropagation sends a signal backward through the network to fine-tune the weights, improving accuracy over time.
  • Optimization: Algorithms such as Stochastic Gradient Descent (SGD) help find the optimal set of weights to minimize the loss function. You can read more about optimization algorithms on AWS.

实际应用

神经网络是驱动许多定义现代时代的技术的引擎。

  1. 计算机视觉:计算机视觉(CV)领域,采用称为卷积神经网络(CNN)的专用网络来分析视觉数据。Ultralytics 先进模型运用深度神经网络架构实现实时目标检测。这些系统对农业人工智能至关重要——可监测作物健康状况,同时在安防系统中用于异常检测。
  2. 自然语言处理:在涉及文本的任务中,循环神经网络(RNNs) 和Transformer等架构彻底改变了机器理解人类语言的方式。这些网络为机器翻译工具和虚拟助手提供支持。在医疗健康领域的人工智能应用中,这些技术的影响力尤为显著——它们协助转录医疗记录并分析患者档案。
  3. Predictive Analytics: Businesses use neural networks for time-series analysis to forecast stock prices or inventory needs. IBM provides an excellent overview of neural networks in business analytics.

具体实施

Modern software libraries make it accessible to deploy neural networks without needing to write the mathematical operations from scratch. Tools like the Ultralytics 平台 allow users to train these networks on custom datasets easily. The following Python code demonstrates how to load a pre-trained neural network (specifically the state-of-the-art YOLO26 model) and run inference on an image using the ultralytics 包装

from ultralytics import YOLO

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

# Run inference on an image to detect objects
# The model processes the image through its layers to predict bounding boxes
results = model("https://ultralytics.com/images/bus.jpg")

# Display the results
results[0].show()

挑战与考量

While powerful, neural networks present specific challenges. They typically require large amounts of labeled data for Supervised Learning. Without sufficient data diversity, a network is prone to Overfitting, where it memorizes the training examples rather than learning to generalize. Additionally, deep neural networks are often referred to as "black boxes" because interpreting exactly how they arrived at a specific decision can be difficult, sparking research into Explainable AI (XAI). Organizations like the IEEE Standards Association are actively working on standards to ensure these powerful networks are used ethically and safely.

加入Ultralytics 社区

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

立即加入