Download CHEAT SHEET FOR UNIT 4 & 5 and more Cheat Sheet Artificial Intelligence in PDF only on Docsity!
ANN UNIT 4 AND 5
UNIT 4 – UNSUPERVISED NEURAL NETWORKS
{ learning in neural networks: Hebbian learning rule, Principle Component Learning, Learning Vector Quantizer-I- Self Organizing Maps: Functionality, Training, Topology Function, Decreasing Learning Rate, Variations of SOMs, Neural gas, Multi-SOM, Multi-neural gas, Growing neural gas- Adaptive Resonance Theory, Orienting subsystems, Learning Laws }
What does the topic say/What is the topic?
Unsupervised Neural Networks involve algorithms that learn from input data without explicit labels or supervision. The model’s goal is to recognize structures, groupings, and patterns in the data based on inherent characteristics, rather than matching to known outputs. Common architectures in this paradigm include Self-Organizing Maps (SOM), Neural Gas, Multi-SOM, Multi-Neural Gas, Growing Neural Gas, and methods inspired by Hebbian learning. The main theme is to allow the network to self-discover the organization and relationships in data, making these methods crucial for exploratory data analysis, clustering, and dimensionality reduction.[11][12]
1. Hebbian Learning Rule
What does the topic say/What is the topic?
Hebbian learning is a biologically-inspired learning rule often phrased as “cells that fire together, wire together.” When two connected neurons activate simultaneously, the connection between them is strengthened. This principle guides how weight updates occur in unsupervised networks.[12][11]
How does it work?
Whenever two neurons are active at the same time, the synaptic weight between them is increased. Mathematically: Δ𝑤𝑖𝑗 = 𝜂 ⋅ 𝑎𝑖 ⋅ 𝑎𝑗 Here, Δ𝑤𝑖𝑗 is the weight change, 𝜂 is the learning rate, and 𝑎𝑖, 𝑎𝑗 are the activations of connected neurons. Hebbian learning is fundamental for associative memory models and underpins many self-organizing processes in neural networks.[11][12]
How does the topic help?
It enables networks to learn to represent input features or correlations without explicit output supervision, helping in feature extraction and associative mapping.
Applications
- Feature learning from unstructured data (images, signals).
- Self-organizing maps and associative memory.
- Biological modeling of learning in the brain.
What does it help to find?
Patterns and regularities in the input data.
What and how does it help in real-world situations?
Used for noise reduction, clustering, pattern completion, and learning abstract representations.[12][11]
2. Principal Component Learning (PCA in Neural Networks)
What does the topic say/What is the topic?
Principal Component Learning in neural networks captures the “directions” where data varies most, reducing the number of input features while retaining as much information as possible. Autoencoders are frequently used as neural analogues of PCA.
How does it work?
- A neural network (like an autoencoder) is trained to compress inputs to lower-dimensional embeddings (latent space), then reconstruct them.
- Trained weights reflect the principal components of the original data.[11][12]
How does the topic help?
Reduces redundancy, enables visualization, and simplifies processing by focusing on the most informative aspects of the data.
Applications
- Data compression, feature extraction, facial recognition, image denoising, exploratory data analysis.
What does it help to find?
The most significant patterns or axes of variance in complex datasets.[12][11]
What and how does it help in real-world situations?
Helps in reducing computation, preventing overfitting, and visualizing high-dimensional data (e.g., summarizing patient records, simplifying images/sounds).
3. Learning Vector Quantizer (LVQ - I)
How does the topic help?
Enables clustering, visualization, and makes complex, high-dimensional data accessible.[12][11]
Applications
Market segmentation, gene expression analysis, document clustering, anomaly detection.
What does it help to find?
Natural groupings and relationships in data.
What and how does it help in real-world situations?
Makes data trends and groupings visible; useful for business analytics, research, and exploratory data analysis. Subtopics:
- Functionality : Topology-preserving mapping, clustering, visualization.
- Training : Iterative process adjusting weights of BMU and neighbors.
- Topology/Function : 2D grids, hexagonal/gridded layouts.
- Decreasing Learning Rate : Reduces the adjustment size as training progresses for stability.
5. Variations of SOMs
Common SOM variations include:
- Kernelized SOMs : Use kernel functions for more flexible mapping.
- Convolutional SOMs : Designed for images, incorporating convolution.
- Hierarchical SOMs : Multiple layers for abstraction.
- Growing SOMs : The map grows to accommodate new data.
- Time-dependent SOMs : For sequence/time-series data.
- Neuro-fuzzy SOMs : Combine fuzzy logic for uncertain data.
- Self-Organizing Feature Maps (SOFM) : Focuses on efficient feature extraction. Each variation adapts SOM for different application requirements and data types.[11][12]
6. Neural Gas, Multi-SOM, Multi-Neural Gas, Growing Neural Gas
What does the topic say/What is the topic?
These are extensions/generalizations of SOM with enhanced adaptability and more nuanced representation of input data.
- Neural Gas: Updates not just the closest neuron but every neuron, according to rank order distance. No fixed topology; neurons spread like a ‘gas’ over data space.
- Multi-SOM/Neural Gas: Multiple maps/layers for different data features.
- Growing Neural Gas (GNG): Dynamically inserts new neurons where needed and prunes inactive ones, enabling adaptation to complex and streaming data.
How does it work?
- Data is presented to the network.
- Neurons are adjusted according to their distance from input (the closest adjusted most).
- In GNG, new neurons are added when the network under-represents an input region.[12][11]
How does the topic help?
Allows for flexible, scalable, and adaptive modeling of real data.
Applications
Clustering, robotics, data compression, feature extraction, streaming data modeling.
What does it help to find?
Fine-grained patterns, clusters, and representation in large or complex data.
What and how does it help in real-world situations?
Adapts to changing data streams (useful in robotics, monitoring, adaptive control).
7. Adaptive Resonance Theory (ART)
What does the topic say/What is the topic?
ART is a category of neural networks that allows for stable learning of new patterns without forgetting old ones (solving the “stability-plasticity dilemma”).
How does it work?
- Inputs are matched to existing categories using a similarity measure (vigilance parameter).
- If input resonates (is similar enough), update the existing category; if not, create a new category. ART Subtopics:
- Recognition Network: Matches input to known categories.
- Learning Network: Updates or creates prototypes.
9. Learning Laws
Key unsupervised learning laws include:
- Hebbian Learning: Synaptic strengthening based on co-activation.
- Competitive Learning: Neurons compete to respond to inputs, winner’s weights are updated (SOM, Neural Gas).
- Error-Correction and Reinforcement: Adjust weights to minimize cost or maximize reward, even with partial or no supervision.[11][12]
Quick Teacher’s Explanation
- Unsupervised Neural Networks help discover hidden patterns in unlabeled data, using models like SOM, Neural Gas, ART, and LVQ.
- Hebbian Learning strengthens connections for co-active neurons, forming basis for feature extraction.
- PCA in Neural Nets uses autoencoders to reduce input size and focus on key data trends.
- LVQ sorts data into categories using ‘prototypes’ and competitive updates.
- SOM maps data into 2D for easy visualization and clustering; helps see related ideas/data clusters.
- Neural Gas/GNG automatically adapts to the complexity and density of data; useful for streaming/real-time.
- ART lets networks learn new categories without forgetting old ones; applies in dynamic learning situations.
- Orienting Subsystems guide what to learn and maintain learning stability, helping adapt to new but keep old knowledge.
- Learning Laws like Hebbian, competitive, and reinforcement learning drive how unsupervised models self-improve and adapt.
PYPS
{4 MARKER}
- Outline the training phases of a self organising map
- Explain the objective of the principal component learning in feature extraction
- Analyse the importance of decreasing learning rate
- Explain the fundamental principles of the habian learning rule and discuss how it differs from the traditional supervised learning methods
- Examine the concept of competitive learning in the context of LVQs how does this principle influence the learning dynamics of the algorithm
- Describe the training process of a self organising map including the rule of neighbourhood functions and learning rates how do these parameters influence the convergence and accuracy of the SOM
{8 MARKERS}
23.A Describe the architecture ,training process and neighbourhood adaptation of self organising maps. evaluate their ability to cluster and visualise high dimensional data 23.B Illustrate the Adaptive resonance theory ART framework .explain the functioning of its orienting subsystem and learning laws with suitable applications 17.A Describe the concept of principle component learning PCL and its importance in dimensionality reduction. how does PCL compare to traditional methods such as principle component analysis PCA .discuss the impact of utilising PCL within neural networks for tasks like feature extraction and data compression 17.B Examine future directions for research and development in neural gas algorithms .what emerging trends are innovations could influence the design and application of neural gas multi neural gas and growing neural gas in neural networks ?discuss potential areas for exploration and improvement. 24 a. Identity the need for principal component learning in real world applications and provide the limitations and advantages. Provide the step by step execution process with example in detail 24.B b. Analyze the functionality of Self organizing maps in real world application with example in detail. Provide the advantages and disadvantages, of the same with the challenges in real world implementation in detail ................................................................{If 2 or more questions are on the same topic, then write them together and give one answer to each question....Those same similar topic questions are combined and each one thing is asked in the same answer. In this combined answer, make sure that no part of any question is missed.} Here are detailed, exam-ready answers for your 4-mark and 8-mark questions, sequenced by topic and with similar questions combined. Each answer gives you enough to write a strong 4- or 8-mark response, followed by a quick summary for easy recall.
Self-Organizing Maps (SOM): Training, Architecture, Convergence, and Applications
16. Outline the training phases of a Self Organizing Map
13. Describe the training process of a self organising map including the rule of neighbourhood functions
and learning rates. How do these parameters influence the convergence and accuracy of the SOM?
23.A. Describe the architecture, training process and neighbourhood adaptation of self organising maps.
Evaluate their ability to cluster and visualise high dimensional data.
24.B. Analyze the functionality of Self organizing maps in real world application with example in detail.
Provide the advantages and disadvantages, of the same with the challenges in real world implementation
in detail.
What is Self Organizing Map (SOM)?
Real-World Applications
- Market segmentation: Identifies customer clusters.
- Image compression: Groups similar pixel regions, reducing data size.
- Fault detection: Highlights data outliers in manufacturing.
- Bioinformatics: Reveals patterns in gene expression data.
Advantages
- Reveals and visualizes hidden data structures.
- Reduces dimensionality without losing important data relations.
Disadvantages
- Sensitive to parameter choices (learning rate, neighborhood).
- May require many iterations.
- Can face difficulties with highly non-linear or non-convex data.
Implementation Challenges
- Selection of grid size and topological structure can affect results.
- High computational cost for very large datasets.
- May not handle categorical/heterogeneous data natively.
Quick Teacher’s Explanation
SOMs train by finding the “closest” neuron to each input and making it—and its neighbors—look more like the input. This process, repeated with a shrinking learning rate and updating smaller neighborhoods, helps group similar data together on a grid for clustering and visualization.[17][15][16]
Principal Component Learning (PCL) and Principal Component Analysis (PCA)
17. Explain the objective of principal component learning in feature extraction
17.A. Describe the concept of principal component learning (PCL) and its importance in dimensionality
reduction. How does PCL compare to traditional methods such as principal component analysis (PCA)?
Discuss the impact of utilising PCL within neural networks for tasks like feature extraction and data
compression
24.A. Identity the need for principal component learning in real world applications and provide the
limitations and advantages. Provide the step by step execution process with example in detail
What is Principal Component Learning (PCL)?
Principal Component Learning (PCL) is the use of neural networks—typically autoencoders—to extract and represent the most significant axes (principal components) of variation in the input data. It is closely related to Principal Component Analysis (PCA), a statistical technique for dimensionality reduction.[15][17]
- Objective: Capture key patterns in data for feature extraction, reduce redundancy, and facilitate interpretation by projecting data onto a lower-dimensional space.
PCL vs. PCA
- PCL (in neural networks): o PCL leverages neural architectures (e.g., linear autoencoders) to discover principal components in data. o Learns a “compressed” code that captures key variance, autoencoders can model non-linear relationships (unlike basic PCA) if non-linear activations are used.
- PCA (traditional): o A linear algebraic method that computes orthogonal axes of maximal variance (principal components). o Fast and interpretable, but strictly linear.
Step-by-Step Execution with Example
- Standardize Data: o Remove mean and scale to unit variance.
- Compute Covariance Matrix: o Measures how features vary together.
- Compute Eigenvectors/Values: o The eigenvectors (principal components) define the axes of maximum variance; eigenvalues show their importance.
- Select Top Components: o Choose k components with the largest eigenvalues.
- Project Data: o Original data is mapped onto this new space.
- In Neural Networks: o Use autoencoders: train an encoder to compress (like PCA), decoder to reconstruct, forcing the network to learn the most informative features.
- Principle: “Cells that fire together, wire together.”
- If two neurons activate simultaneously, strengthen the synapse (connection) between them.
- Weight update formula: Δ𝑤𝑖𝑗 = 𝜂 ⋅ 𝑎𝑖 ⋅ 𝑎𝑗Where 𝜂 is the learning rate, 𝑎𝑖, 𝑎𝑗 are neuron activations.
Difference from Supervised Learning
- Unsupervised (Hebbian): o Learning occurs from patterns in input data without target output labels. o Used for clustering, association, and self-organization.
- Supervised: o Network is trained with input-output label pairs. o Updates weights to minimize the difference between actual and desired outputs. o Uses methods like backpropagation, delta rule.
Quick Teacher’s Explanation
Hebbian learning connects neurons that are active together, learning from raw patterns without needing answers. Supervised learning, in contrast, always needs the “correct” answer for every example.[15][17]
Competitive Learning in LVQs
12. Examine the concept of competitive learning in the context of LVQs. How does this principle influence
the learning dynamics of the algorithm?
What is Competitive Learning in LVQs?
- How it works: o In LVQ (Learning Vector Quantization), neurons (prototypes) compete for each input; only the winning prototype is updated. o If an input is close (according to distance metric) and correctly classified by a prototype, that prototype is moved closer. If not, it’s moved away.
- Influence on dynamics: o Sharpens decision boundaries. o Ensures clear separation among class clusters. o Makes learning robust and stable, encouraging specialization in neurons.[17][15]
Quick Teacher’s Explanation
In LVQ, only the “winner” for each input learns, making clusters tight and clear. Prototypes specialize for their class and get better at classifying similar inputs.[15][17]
Decreasing Learning Rate
18. Analyse the importance of decreasing learning rate
Importance
- Prevents Overshooting: o High initial learning rate helps rapid progress but can overshoot or oscillate.
- Enables Fine-tuning: o Low rates in later stages help fine-tune weights and stabilize convergence.
- Avoids Instability: o Ensures weights don’t keep changing forever, allowing settling into optimal zones.
How to Decrease
- Step decay, exponential decay, inverse time decay, reduce on performance plateau.
Quick Teacher’s Explanation
Start fast, slow down gradually—just like practicing a skill: move big, then refine the details over time for best results.[17][15]
Adaptive Resonance Theory (ART), Orienting Subsystem, and Learning Laws
23.B. Illustrate the Adaptive resonance theory ART framework. Explain the functioning of its orienting
subsystem and learning laws with suitable applications.
What is ART?
- Purpose: Solves stability-plasticity dilemma—how to learn new categories without forgetting previous knowledge.
- Framework: o Recognition subsystem: Matches input to learned categories. o Learning subsystem: Updates category prototypes or creates new ones.
Quick Teacher’s Explanation
Neural gas models are evolving to work in real time, with larger and more complex data, and as building blocks in deep neural networks for smarter, more flexible learning.[16][17] Neural Gas What is it? Neural Gas is an unsupervised learning algorithm for clustering and vector quantization. Inspired by Self-Organizing Maps (SOM), it spreads its neurons through data space “like a gas,” adapting their positions to optimally represent input data distribution, but without a fixed grid or explicit topology.wikipedia+ How does it work?
- Start with a fixed set of neurons placed randomly.
- For each input, all neurons are sorted by distance to the input.
- Each neuron’s weight is updated, but the amount of update decays with rank (the closest moves most, the farthest least).
- With iterations, neurons spread to “cover” the most essential parts of data space. How does the topic help? Neural Gas adapts smoothly, avoids local minima, and is robust compared to k-means or SOM. It does not require knowing the number of clusters ahead of time. Applications
- Clustering, vector quantization, data compression, and visualization. What does it help to find? Compact representations and clusters, even in data lacking predefined structure. Multi-Neural Gas What is it? Multi-Neural Gas extends the neural gas method by using several independent neural gas modules or layers—each learning to represent a different aspect or subset of the input data or different feature spaces.Unit-4.pptx How does it work?
- Multiple neural gas models are run in parallel or in sequence.
- Each can be tuned to subgroups of data, or different features, or hierarchically (similar to deep or modular learning). How does it help? Improves overall clustering accuracy and applicability, models more complex structures, and can specialize on subsets of data/features.
Applications
- Complex pattern recognition, multi-modal data analysis, unsupervised feature extraction. Growing Neural Gas (GNG) What is it? Growing Neural Gas is an incremental, adaptive network that starts with very few neurons and progressively grows and prunes itself as required by the data.sciencedirect+ How does it work?
- Begins with two neurons.
- For each input, the two closest neurons are found; the winner and topological neighbors are shifted toward the input.
- Track the error (distance) for each neuron over time.
- Periodically:
- Add a new neuron where accumulated error is highest, linking it to neighbors.
- Remove old or unused edges and isolated neurons (prunes the network).
- This continues until stopping criteria (error threshold, max neurons, etc.) are met. How does the topic help? Handles non-stationary, streaming, or growing datasets. Automatically finds the right number of clusters and adapts its structure on the fly. Applications
- Clustering in evolving data streams, topology learning, real-time analysis. What does it help to find? Optimal topological representations that adapt to changes over time, very useful for tasks with unknown or changing complexity. Quick Teacher’s Explanation
- Neural Gas: Spreads “neurons” over data space, no grid, updates all based on rank, great for clustering.
- Multi-Neural Gas: Uses several neural gas groups, learns more complex, multi-view data.
- Growing Neural Gas: Adds/removes neurons as needed—adapts to the data over time for best fit, perfect for streaming or changing clusters.
- (d) Explains the maximum variance in the dataset
- Curse of dimensionality can be reduced by:
- (b) Dimensionality reduction through PCA
Learning Vector Quantizer (LVQ)
- LVQ is most suitable for:
- (a) Supervised classification
- In LVQ, prototypes are updated:
- (c) By moving towards correct input and away from incorrect input
- The distance measure commonly used in LVQ is:
- LVQ networks generally have:
- (c) Input and output layer
- What is the main idea behind LVQ?
- (a) Representing classes by prototype vectors
- When does a prototype move away from the input in LVQ?
- (b) If it is incorrectly classified
Self-Organizing Maps (SOM)
- SOMs are used mainly for:
- (c) Clustering and visualization
- During SOM training, what is the "best matching unit" (BMU)?
- (a) The neuron with the closest weight vector to the input
- What happens to the BMU and its neighbors in SOM training?
- (b) Their weights move closer to the input vector
- The learning rate in SOM training:
- Neighborhood function in SOM helps in:
- (c) Updating nearby neurons in the map
- Typical SOM topology is:
- As training progresses, the neighborhood:
- (a) Shrinks to fine-tune the map
- After training, similar inputs in SOM are:
- (c) Mapped close to each other
SOM Variations, Neural Gas, Growing Neural Gas
- Neural Gas does not rely on:
- What is unique about Growing Neural Gas?
- (a) It can dynamically add and remove neurons
- Multi-SOM usage is best described as:
- (d) Handling multiple data features or views
- In Neural Gas, adaptation of neurons is based on:
Adaptive Resonance Theory (ART)
- ART addresses which dilemma?
- (c) Stability-plasticity dilemma
- The vigilance parameter in ART controls:
- (b) Strictness of matching inputs to categories
- In ART, a new category is created when:
- (a) Input does not match any existing category within vigilance
- ART1 is suitable for:
Orienting Subsystems and Learning Laws
- Orienting subsystems in ART help by:
- (d) Directing attention and controlling vigilance
- Which law states "weight change is proportional to product of pre- and post-synaptic activations"?