Egypt › Secondary › Secondary Two › Programming and AI › Chapter ٧: Machine Learning and AI

Lesson ٨: Neural Networks and Deep Learning (Item ٧-٢)

Secondary TwoProgramming and AISecond Termالدرس ٨٣٠ دقيقة

فيديو الشرح

الفيديو قيد الإنتاج، وسيظهر هنا فور اعتماده.

ماذا ستتعلم؟

اختبر استعدادك أولًا

١. In the question "What is an artificial neural network made of?" the options are: ١) Layers of artificial neurons connected by weights ٢) Copper wires ٣) Real human cells ٤) Text files. What is the number of the correct answer?
٢. In the question "What does an artificial neuron do?" the options are: ١) Stores images ٢) It sums its weighted inputs and passes the total through an activation function ٣) Prints results ٤) Sends messages. What is the number of the correct answer?
٣. In the question "What are the three layers of a neural network?" the options are: ١) Upper and lower only ٢) Right and left ٣) Input, hidden and output ٤) First and last only. What is the number of the correct answer?

الشرح خطوة بخطوة

Level ١: We explore together

Lesson topic: Neural Networks and Deep Learning (Item ٧-٢). A neural network is a model inspired by nerve cells: units that receive inputs and produce outputs.

The story: The artificial neuron sums its weighted inputs and passes the result through an activation function. The network has layers: an input layer receiving data, hidden layers extracting patterns, and an output layer giving the result. Deep learning uses many-layered networks that learn graded representations: from edges to shapes to faces. Training happens by backpropagation: computing each weight share of the error and adjusting it. Deep networks excel at vision and audio but need huge data and heavy computing power.

أخطاء شائعة وتصحيحها

أمثلة محلولة متدرجة

Easy · مثال ١

List the network layers and the job of each.

  1. نقرأ السؤال معًا بهدوء.
  2. Three.
الإجابة: Input receives data; hidden extracts patterns; output produces the decision
Easy · مثال ٢

What are weights and how do they change during learning?

  1. نقرأ السؤال معًا بهدوء.
  2. Adjustment.
الإجابة: Connection-strength coefficients; training adjusts them gradually to reduce error
Easy · مثال ٣

What is deep learning?

  1. نقرأ السؤال معًا بهدوء.
  2. Many layers.
الإجابة: Machine learning using deep neural networks with many hidden layers
Medium · مثال ٤

Explain why networks need non-linear activation functions.

  1. نقرأ السؤال معًا بهدوء.
  2. Without them?
الإجابة: Without them the whole output stays a linear combination however many layers exist, failing at complex patterns like image boundaries
Medium · مثال ٥

Describe how the network error shrinks over repeated training rounds.

  1. نقرأ السؤال معًا بهدوء.
  2. Backpropagation.
الإجابة: Each round compares output with the truth, computes the error and distributes its contributions onto the weights backward, nudging them toward lower error
Medium · مثال ٦

Why does a face-recognition network need more layers than a digit recognizer?

  1. نقرأ السؤال معًا بهدوء.
  2. Graded complexity.
الإجابة: Faces are complex patterns built from graded features (edges, then organs, then faces), needing depth to build these representations
Medium · مثال ٧

Compare training a classical ML model with a deep network in data needs and interpretability.

  1. نقرأ السؤال معًا بهدوء.
  2. Amount and transparency.
الإجابة: Deep nets need far more data and their decisions are hard to interpret (black box); classical models are lighter on data and usually easier to explain
Advanced · مثال ٨

Explain graded representations in a deep vision network across early, middle and late layers.

  1. نقرأ السؤال معًا بهدوء.
  2. Simple to complex.
الإجابة: Early layers capture edges and gradients; middle ones compose shapes like eyes; late ones recognize whole entities like a person face
Error analysis · مثال ٩

Fix the mistake: a student said adding many layers to any network always improves it.

  1. نقرأ السؤال معًا بهدوء.
  2. Cost of depth.
الإجابة: Excess depth without enough data causes overfitting and slow training, and may break learning; proper depth balances the problem and the data

الخريطة الذهنية

Neural Networks and Deep Learning (Item ٧-٢)Chapter ٧: Machine Learning and AI
▼
Layers of artificial neurons connected by weightsWhat is an artificial neural network made of?
It sums its weighted inputs and passes the total through an activation functionWhat does an artificial neuron do?
Input, hidden and outputFrom the lesson questions
Adding non-linearity so the network learns complex patterns beyond straight linesWhat is the role of the activation function?

إنفوجرافيك: Lesson map: words of the day

Lesson map: words of the day
اضغط على أي صف لترى الفكرة.
The key ideas of the lesson in order
We review the questions after one day, then after three days

تدريبات متنوعة مع الإجابات والتفسير

اكتب الإجابة أو اختر ثم اضغط. بعد كل سؤال يظهر الحل مع التفسير.

A) I choose the answer

١. The answer "Only a big screen" to the question "What are the two main requirements of successful deep learning?" is correct.
٢. Which question has the answer "Coefficients setting the strength of each neuron connection, adjusted by training"?
٣. Which question has the answer "Learning with neural networks having many hidden layers"?
٤. From the lesson explanation: Deep learning uses many-layered networks that learn graded representations: from edges to shapes to faces.
٥. The answer "Turning on a screen" to the question "Name two applications of deep learning." is correct.
٦. The answer "Its layers automatically extract graded features from simple to complex" to the question "Why has deep learning excelled at image recognition?" is correct.
٧. The answer "It is older" to the question "Why has deep learning excelled at image recognition?" is correct.
٨. Which question has the answer "Input, hidden and output"?

B) I practice and answer

١. The answer "Stores images" to the question "What does an artificial neuron do?" is correct.
٢. The answer "File names" to the question "What are weights in a neural network?" is correct.
٣. The answer "Prints results" to the question "What does an artificial neuron do?" is correct.
٤. The answer "First and last only" to the question "What are the three layers of a neural network?" is correct.
٥. The answer "Face recognition and machine translation" to the question "Name two applications of deep learning." is correct.
٦. The answer "Coloring results" to the question "What is the role of the activation function?" is correct.
٧. From the lesson explanation: What does an artificial neuron do?
٨. The answer "Upper and lower only" to the question "What are the three layers of a neural network?" is correct.

C) I review and play

١. The answer "Slow internet" to the question "What are the two main requirements of successful deep learning?" is correct.
٢. The answer "Only addition" to the question "Name two applications of deep learning." is correct.
٣. From the lesson explanation: Why has deep learning excelled at image recognition?
٤. From the lesson explanation: Name two applications of deep learning.
٥. The answer "It ignores error" to the question "How does a network learn by backpropagation?" is correct.
٦. The answer "It changes inputs manually" to the question "How does a network learn by backpropagation?" is correct.
٧. The answer "Faster printing" to the question "What is the role of the activation function?" is correct.
٨. The answer "Deleting data" to the question "What is the role of the activation function?" is correct.

ملخص صوتي وقارئ الدرس

قارئ تجريبي يعمل بصوت جهازك (مجاني). ليس تسجيلًا احترافيًا، وجودة الصوت العربي تختلف من جهاز لآخر. التسجيل الصوتي الاحترافي لم يُنتج بعد.

Lesson topic: Neural Networks and Deep Learning (Item ٧-٢). A neural network is a model inspired by nerve cells: units that receive inputs and produce outputs.

We review the key points of the lesson: What is an artificial neural network made of? -> Layers of artificial neurons connected by weights; What does an artificial neuron do? -> It sums its weighted inputs and passes the total through an activation function.

We apply what we learned by answering these questions: What is an artificial neural network made of? -> Layers of artificial neurons connected by weights; What does an artificial neuron do? -> It sums its weighted inputs and passes the total through an activation function; What are the three layers of a neural network? -> Input, hidden and output.

مسار المراجعة للامتحان

  1. Day one (١٠ minutes): We read levels ١ to ٣ together, then solve exercises (A).
  2. Day two (١٠ minutes): We play the level ٤ games and solve exercises (B).
  3. Day three (١٠ minutes): Exercises (C), then the Level One test.
  4. Before the school exam: We repeat the Level Three test and look at the common mistakes.

اختبارات بثلاثة مستويات

Level One Test: The Basics

٨ أسئلة. اجب ثم اضغط «أنهِ الاختبار» لترى درجتك.

١. Which question has the answer "Its layers automatically extract graded features from simple to complex"?
٢. The answer "It deletes layers" to the question "How does a network learn by backpropagation?" is correct.
٣. From the lesson explanation: A neural network is a model inspired by nerve cells: units that receive inputs and produce outputs.
٤. Which question has the answer "It computes the output error then distributes its responsibility backward onto the weights, adjusting them"?
٥. The answer "Coefficients setting the strength of each neuron connection, adjusted by training" to the question "What are weights in a neural network?" is correct.
٦. The answer "It sums its weighted inputs and passes the total through an activation function" to the question "What does an artificial neuron do?" is correct.
٧. The answer "The layer count" to the question "What are weights in a neural network?" is correct.
٨. From the lesson explanation: What is the role of the activation function?

المصادر والحقوق

رمز QR هذه الصفحة. يفتح درس «Lesson ٨: Neural Networks and Deep Learning (Item ٧-٢)» نفسه.