ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Artificial Intelligence
    COMP2121
    Progress0 / 19 topics
    Topics
    1. An Introduction to Artificial Intelligence and its applications towards Knowledge Based Systems2. Introduction to Reasoning and Knowledge Representation3. Problem Solving by Searching: Informed searching4. Problem Solving by Searching: Uninformed searching5. Heuristics in Problem Solving6. Local searching algorithms7. Minimax algorithm8. Alpha-beta pruning9. Game-playing in AI10. Case Study: General Problem Solver11. Case Study: ELIZA12. Case Study: Student13. Case Study: Macsyma14. Learning from examples15. Artificial Neural Networks (ANN)16. Natural Language Processing17. Recent trends and applications of AI algorithms18. Python programming for AI19. Implementation of AI techniques in Python
    COMP2121›Artificial Neural Networks (ANN)
    Artificial IntelligenceTopic 15 of 19Regular Notes

    Artificial Neural Networks (ANN)

    3 minread
    449words
    Beginnerlevel

    Artificial Neural Networks (ANNs)

    ANN stands for Artificial Neural Network, which is a key concept in Artificial Intelligence (AI), especially in the field of machine learning and deep learning.


    🌐 What is an ANN?

    An Artificial Neural Network is a computational model inspired by the structure and function of the human brain. Just like our brain has neurons that are connected to each other, ANNs are made up of artificial neurons (also called nodes or units) connected in layers.


    🔧 Basic Structure of ANN

    1. Input Layer:

      • Takes in the initial data (features).
      • Each neuron in this layer represents a feature of the input data.
    2. Hidden Layers:

      • One or more layers between input and output.
      • Perform computations and transformations on the data.
      • Most of the learning and pattern recognition happens here.
      • Each neuron uses a weight and a bias to calculate an output, passed through an activation function (like ReLU, Sigmoid, or Tanh).
    3. Output Layer:

      • Produces the final result (like a prediction or classification).
      • The number of neurons depends on the problem (e.g., 1 for binary classification, many for multi-class classification).

    ⚙️ How ANN Works (Simplified)

    1. Forward Propagation:

      • Input data moves through the network (input → hidden layers → output).
      • Each neuron calculates a weighted sum of inputs, applies an activation function, and passes the result to the next layer.
    2. Loss Calculation:

      • The output is compared to the true label using a loss function (e.g., Mean Squared Error for regression).
    3. Backpropagation:

      • The network adjusts the weights and biases by calculating gradients (how much each weight contributes to the error).
      • Uses gradient descent (or variants like Adam) to minimize the loss.

    📌 Key Concepts

    • Weights: Determine the importance of inputs.
    • Bias: Allows shifting the activation function to better fit the data.
    • Activation Function: Adds non-linearity to the model (e.g., ReLU, Sigmoid).
    • Epoch: One full pass through the entire training dataset.
    • Learning Rate: Controls how much the weights are updated during training.

    🧠 Why Use ANNs?

    • Great for modeling complex patterns and non-linear relationships.

    • Used in:

      • Image recognition
      • Speech processing
      • Natural language processing (NLP)
      • Medical diagnosis
      • Game playing (e.g., AlphaGo)

    🧩 Variants of ANN

    • CNN (Convolutional Neural Networks) – used for image data.
    • RNN (Recurrent Neural Networks) – used for sequence data (e.g., time series, language).
    • DNN (Deep Neural Networks) – ANNs with many hidden layers.

    🧪 Simple Analogy

    Think of an ANN like a black box calculator:

    • You feed in numbers (input),
    • The box has gears and wires (hidden layers),
    • It gives you an answer (output),
    • And the box keeps adjusting its internal gears until it gets the answer right most of the time (learning).

    Previous topic 14
    Learning from examples
    Next topic 16
    Natural Language Processing

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time3 min
      Word count449
      Code examples0
      DifficultyBeginner