Sitemap
Şule Akça

Şule Akça

Senior Software Engineer | MSc Computer Engineering

Deep Learning

5 min readApr 20, 2026

--

Hello! This article is a structured and simplified version of my personal notes taken while studying the IBM AI Engineering course on Coursera, written to reinforce my understanding of deep learning concepts.

Press enter or click to view image in full size
Image generated by the ChatGPT

Short Summary of Deep Learning

Deep learning is a subfield of machine learning based on artificial neural networks that can automatically learn complex patterns within large datasets.

In traditional machine learning approaches, features are typically designed manually by humans, whereas deep learning models learn these features from the data themselves.

This approach yields highly successful results, particularly with large-scale and complex data types (such as images, audio, and text). So where is it used?

  1. Image processing
  2. Speech recognition and processing
  3. Natural language processing (NLP)
  4. Time series forecasting
  5. Chatbots and generative AI systems

Let’s briefly discuss what the popular deep learning libraries are.

  1. Tensorflow: Developed by Google in 2015, it is a popular framework widely used in both research and production environments.
  2. PyTorch: It is a framework developed by Meta that supports GPUs and, thanks to its dynamic computation graph structure, is particularly popular in the field of research.
  3. Keras: It is a high-level API that simplifies the creation of deep learning models and is currently used as part of TensorFlow.
  4. Theano: It’s actually older than the others, but it’s no longer supported.

While TensorFlow is preferred for large-scale projects, PyTorch is preferred when more flexible model design is required.

Deep Learning Models

Convolutional Neural Networks (CNN)

CNNs are one of the most important architectures in AI and have revolutionized image processing in particular. So, what tasks do CNNs generally excel at?

  • Image classification
  • Object detection
  • Medical image analysis
  • Autonomous vehicles
  • Image segmentation
  • Video analysis

So why was CNN invented? Why wasn’t the Dense layer enough? If we feed an image into a Dense layer, for example, a 28×28 image becomes 784 inputs, while a 256×256 image becomes 65,536 inputs. This results in an excessively large number of weights and makes it difficult for the model to learn. Additionally, the Dense layer does not understand the image’s neighborhood relationships (spatial structure). This is exactly where CNN comes into play.

Get Şule Akça’s stories in your inbox

Join Medium for free to get updates from this writer.

CNN has three main sections.

  1. Convolution Layer: This layer passes a small filter (kernel) over the image. The goal is to identify features in the image. For example, a kernel can detect edges, corners, and textures. In this way, the model learns meaningful patterns in the image on its own.
  2. Pooling Layer: This layer downsamples the image and simplifies the data. The goal is to reduce computational costs, preserve important information, and reduce noise.
  3. Flatten + Dense Layers: Toward the end, the output of the “image-understanding” CNN layers is flattened. At this point, classification is performed based on the features generated by the CNN.

Recurrent Neural Networks (RNN)

An RNN is a type of neural network used for problems involving sequential data. In short, past information influences the future. For example, if the input is “What word is currently present?”, the memory asks, “What was the previous word? And the one before that?” It takes a new word, combines it with the previous memory, and creates a new memory. This allows it to learn context.

RNNs don’t just take new input but also take the output from the previous data point as input. RNNs are good at modeling patterns and sequences of data, such as texts, genomes, handwriting and stack markets.

Populer type of RNN is the long short-term memory model (LSTM). LSTM is a specialized type of RNN designed to address the “forgetting” problem in long sequential data. RNNs struggle to retain past information in long sequences or time series (vanishing gradient). LSTM, however, incorporates a memory management mechanism that makes decisions on its own regarding what to retain, what to forget, and what to update. As a result, LSTM remembers long sequences and long-term dependencies much more effectively.

LSTMSs are used for applications such as image generation, handwriting generation, automatic image captioning, and automatic video descriptions.

Transformers

Transformers are a neural network architecture designed to process sequential data (sentences, words, audio, image segments, etc.). Ideal for, machine translation, text summarization, question answering, text to image generation etc. Some types of transformers are, GPT, BERT and Image Transformers.

Transformers do not process data step by step in sequence, like RNNs or LSTMs. Instead, they process the entire input simultaneously. The mechanism that makes this possible is the attention mechanism. Transformers use the self-attention mechanism to process text data. The way it works is simply as follows.

Three vectors are calculated for each word;

  • Query: The word is the question “Who am I looking for?”
  • Key: It is the knowledge of “Who am I?”
  • Value: It is the information contained in the word.

Self-attention works by comparing a word’s query with the keys of other words. This determines the connection strength. This connection strength is then multiplied by the value. In this way, the word “generates context information” from the other words.

In addition to self-attention, Transformer architectures also utilize a cross-attention mechanism. While self-attention learns the relationships between words within the same sequence, cross-attention allows the model to incorporate information from a different source. In tasks such as machine translation, the decoder produces more accurate predictions by taking into account the output from the encoder.

Autoencoders

It is an unsupervised deep learning model. It is a data compression algorithm, and these algorithms are data-specific. In short, it is an artificial neural network that can compress (encode) input data and then reconstruct it (decode) in a way that closely resembles the original. The encoder transforms the data into a low-dimensional representation (latent space), while the decoder reconstructs the data from this representation. The goal is to minimize the difference between the input and output (typically using MSE). Applications include dimensionality reduction, image restoration, etc.

This is just a small step in my deep learning journey, and I’ll continue building on it as I learn and grow. Thanks for reading!

If you enjoyed this post, feel free to give it a clap 👏 (up to 50 times).

--

--

Şule Akça
Şule Akça

Written by Şule Akça

Senior Software Engineer | MSc Computer Engineering