CSC266 Artificial Intelligence

Artificial IntelligenceTU Board 2079

Give an example of reinforcement learning. Explain the types of ANN.

Answer

Example of Reinforcement Learning (RL)

Reinforcement Learning (RL) is a type of machine learning where an agent learns to make sequential decisions by interacting with an environment to maximize cumulative reward. A classic example is the Cart-Pole Problem:

  • Scenario: A cart moves horizontally, and a pole is attached to it. The agent must apply forces (left/right) to keep the pole upright.
  • Agent: Learns through trial and error using Q-learning or Deep Q-Networks (DQN).
  • Environment: Provides states (cart position, pole angle, velocity) and rewards (positive for balancing, negative for failure).
  • Goal: Maximize the time the pole stays upright before falling.
stateDiagram-v2
    [*] --> Agent
    Agent --> Environment: Takes action (left/right)
    Environment --> Agent: Returns state + reward
    Agent --> Agent: Updates policy (Q-table or neural network)
    Environment --> [*]: Episode ends (pole falls)

Types of Artificial Neural Networks (ANNs)

ANNs are computational models inspired by biological neurons. They are classified based on architecture and learning approach:

1. Feedforward Neural Networks (FNNs)

  • Structure: Layers connected unidirectionally (input → hidden → output).
  • Use Case: Classification (e.g., MNIST digit recognition), regression.
  • Example: Multilayer Perceptron (MLP).

2. Recurrent Neural Networks (RNNs)

  • Structure: Loops allow processing sequential data (time steps).
  • Use Case: Time-series prediction, NLP (text generation).
  • Variants:
    • LSTM (Long Short-Term Memory): Solves vanishing gradient problem.
    • GRU (Gated Recurrent Unit): Simplified LSTM.

3. Convolutional Neural Networks (CNNs)

  • Structure: Uses convolutional layers to extract spatial features.
  • Use Case: Image recognition (e.g., AlexNet, ResNet).
  • Key Components: Kernels, pooling layers, fully connected layers.

4. Radial Basis Function Networks (RBFNs)

  • Structure: Uses radial basis functions for hidden layer activation.
  • Use Case: Function approximation, clustering.

5. Self-Organizing Maps (SOMs)

  • Structure: Unsupervised competitive learning (2D grid).
  • Use Case: Visualization, clustering (e.g., customer segmentation).

6. Boltzmann Machines (BMs)

  • Structure: Stochastic, undirected graphical model.
  • Variants:
    • Restricted BM (RBM): Simplified training.
    • Deep BM (DBM): Stacked RBMs for deep learning.

7. Spiking Neural Networks (SNNs)

  • Structure: Mimics biological neurons with spike timing.
  • Use Case: Neuromorphic computing, brain-inspired AI.

Comparison Table

Type Key Feature Example Application
Feedforward (FNN) No cycles, unidirectional flow Handwritten digit classification
Recurrent (RNN/LSTM) Memory for sequences Stock price prediction
Convolutional (CNN) Feature extraction via kernels Face detection
RBF Radial basis activation functions Function approximation
SOM Unsupervised clustering Market basket analysis
Boltzmann Machine Probabilistic, undirected graph Dimensionality reduction
Spiking Neural Network Spike-based timing Brain-machine interfaces

Key Differences

  • Supervised vs. Unsupervised: FNNs/CNNs are supervised; SOMs are unsupervised.
  • Sequential vs. Spatial: RNNs handle sequences; CNNs handle spatial data.
  • Biological Plausibility: SNNs and BMs mimic brain-like processing.

Discussion

Loading…

More Artificial Intelligence questions

All Artificial Intelligence old questions