AIE505 Applied Deep Learning

6 ECTS - 3-0 Duration (T+A)- . Semester- 3 National Credit

Information

Unit INSTITUTE OF NATURAL AND APPLIED SCIENCES
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING (MASTER) (WITH THESIS) (ENGLISH)
Code AIE505
Name Applied Deep Learning
Term 2026-2027 Academic Year
Term Fall and Spring
Duration (T+A) 3-0 (T-A) (17 Week)
ECTS 6 ECTS
National Credit 3 National Credit
Teaching Language İngilizce
Level Lisansüstü Dersi
Type Normal
Mode of study Yüz Yüze Öğretim
Catalog Information Coordinator Doç. Dr. Kasım ZOR
Course Instructor
The current term course schedule has not been prepared yet.


Course Goal / Objective

The aim of this course is to provide students with the theoretical foundations of deep neural networks and practical model development skills in PyTorch. The course covers the core model families, from multilayer perceptrons to convolutional, recurrent and Transformer architectures, together with effective training practice, transfer learning and model deployment. Students are expected to be able to design, train, evaluate and reproducibly report deep learning solutions suited to their own research problems.

Course Content

Introduction to deep learning and PyTorch fundamentals (tensors, automatic differentiation, data loaders); multilayer perceptrons, loss functions and backpropagation; the training loop and optimisation algorithms (stochastic gradient descent, momentum, Adam/AdamW, learning-rate schedules); weight initialisation and normalisation (batch and layer normalisation); regularisation (weight decay, dropout, data augmentation, early stopping); convolutional neural networks and residual architectures; recurrent neural networks (RNN, LSTM, GRU) and sequence modelling; the attention mechanism and the Transformer architecture; transfer learning and fine-tuning; autoencoders and representation learning; efficient GPU training, mixed-precision training and an introduction to distributed training; experiment tracking, hyperparameter tuning and reproducibility; exporting models to the ONNX format and deploying them as a web service; term project presentations.

Course Precondition

None. Knowledge of Python programming, linear algebra, probability and basic machine learning is recommended (see AIE501, AIE507).

Resources

The course is delivered through weekly PyTorch-based practicals and a term project; students develop an end-to-end deep learning solution, preferably on a dataset related to their thesis topic, and report and present their experiments reproducibly. Software used: Python, PyTorch, torchvision, Jupyter, TensorBoard or Weights & Biases, Optuna, ONNX Runtime, FastAPI and Docker; for GPU-intensive work, cloud environments such as Google Colab and Kaggle or institutional computing resources may be used. Supplementary materials: the free online versions of Prince (2023) and Zhang et al. (2023), the open courses Stanford CS231n and fast.ai Practical Deep Learning for Coders, and the official PyTorch tutorials; key papers: Hochreiter and Schmidhuber (1997), Srivastava et al. (2014), Ioffe and Szegedy (2015), Kingma and Ba (2015), He et al. (2016), Vaswani et al. (2017). Optimisation theory is covered in depth in AIE522, computer vision applications in AIE503, natural language processing in AIE508, generative models and large language models in AIE513, and deployment on edge devices in AIE515.

Notes

1. Prince, S. J. D. (2023). Understanding Deep Learning. MIT Press. 2. Zhang, A., Lipton, Z. C., Li, M., Smola, A. J. (2023). Dive into Deep Learning. Cambridge University Press. 3. Goodfellow, I., Bengio, Y., Courville, A. (2016). Deep Learning. MIT Press. 4. Bishop, C. M., Bishop, H. (2024). Deep Learning: Foundations and Concepts. Springer. 5. Stevens, E., Antiga, L., Viehmann, T. (2020). Deep Learning with PyTorch. Manning Publications.


Course Learning Outcomes

Order Course Learning Outcomes
LO01 Explain the building blocks of deep neural networks, the backpropagation algorithm and automatic differentiation.
LO02 Design and implement deep learning models in PyTorch, including the data pipeline, model, loss function and training loop.
LO03 Select, with justification, an architecture (MLP, CNN, RNN/LSTM/GRU, Transformer) appropriate to a given problem and data type.
LO04 Diagnose and resolve problems in the training process by using initialisation, normalisation, regularisation, optimisation algorithms and learning-rate schedules.
LO05 Apply transfer learning and fine-tuning with pre-trained models, and perform representation learning with autoencoders.
LO06 Evaluate and report deep learning experiments reproducibly using appropriate performance metrics, ablation studies and experiment-tracking tools.
LO07 Export a trained model to a portable format such as ONNX and deploy it as a web service, taking latency and memory constraints into account.


Relation with Program Learning Outcome

Order Type Program Learning Outcomes Level
PLO01 Bilgi - Kuramsal, Olgusal Building on undergraduate-level qualifications, has advanced theoretical knowledge of linear algebra, multivariable calculus, probability, statistics, optimisation and information theory required for original work in artificial intelligence and machine learning. 3
PLO02 Bilgi - Kuramsal, Olgusal Has an in-depth understanding of current methods in the main sub-fields of artificial intelligence, notably machine learning, deep learning, reinforcement learning, computer vision, natural language processing and generative models, together with their assumptions and limitations. 5
PLO03 Beceriler - Bilişsel, Uygulamalı Formulates real-world problems as appropriate artificial intelligence/machine learning problems, and designs and implements solutions covering data preparation, model selection, training and evaluation. 5
PLO04 Beceriler - Bilişsel, Uygulamalı Develops efficient, scalable and reproducible software and models using Python and current libraries and frameworks, and makes effective use of big data and high-performance computing resources. 5
PLO05 Beceriler - Bilişsel, Uygulamalı Evaluates methods with appropriate performance metrics, statistical tests and comparative experiments, interprets results critically and designs reproducible experimental protocols. 4
PLO06 Yetkinlikler - Öğrenme Yetkinliği Reviews the national and international literature of the field systematically and critically, independently learns new and emerging methods, and adapts them to their own research problem. 3
PLO07 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Defines a research problem in the field, solves it independently by developing an original method or model, and conducts a thesis study that contributes to scientific knowledge.
PLO08 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Takes responsibility and leadership in interdisciplinary teams working on complex problems in application domains such as health, energy, agriculture, industry, finance and logistics, and develops solutions together with domain experts.
PLO09 Yetkinlikler - İletişim ve Sosyal Yetkinlik Communicates the processes and results of their work clearly and systematically in English, in written (paper, thesis, report) and oral form, in national and international settings. 3
PLO10 Yetkinlikler - Alana Özgü Yetkinlik Observes scientific and professional ethics, data privacy, fairness, transparency and safety principles and the relevant legal regulations in developing and using AI systems, and assesses their societal impact
PLO11 Yetkinlikler - Alana Özgü Yetkinlik Deploys trustworthy, explainable and sustainable AI solutions to real environments such as the cloud, edge devices and industrial systems, taking into account resource constraints such as energy, memory and latency. 3


Week Plan

Week Topic Preparation Methods
1 Introduction to deep learning and PyTorch fundamentals: tensors, computation on GPUs, automatic differentiation (autograd), Dataset and DataLoader abstractions, a first training loop Read Prince (2023), Chapters 1–2 and the Preliminaries chapter of Zhang et al. (2023); set up the Python and PyTorch working environment Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
2 Multilayer perceptrons: shallow and deep networks, activation functions, universal approximation, loss functions (mean squared error, cross-entropy), computational graphs and backpropagation Read Prince (2023), Chapters 3–5 and 7, and Goodfellow et al. (2016), Chapter 6 Öğretim Yöntemleri:
Anlatım, Problem Çözme, Alıştırma ve Uygulama
3 The training loop and optimisation algorithms: mini-batch stochastic gradient descent, momentum, RMSProp, Adam and AdamW, learning-rate schedules and warm-up, gradient clipping Read Prince (2023), Chapter 6 and Goodfellow et al. (2016), Chapter 8 Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
4 Weight initialisation and normalisation: vanishing and exploding gradients, Xavier and He initialisation, batch normalisation, layer normalisation; diagnosing learning curves Read Prince (2023), Chapter 7 and the batch normalisation section of Chapter 11, and Ioffe and Szegedy (2015) Öğretim Yöntemleri:
Anlatım, Problem Çözme, Alıştırma ve Uygulama
5 Regularisation and generalisation: weight decay, dropout, data augmentation, early stopping, label smoothing; monitoring overfitting and validation strategies Read Prince (2023), Chapters 8–9 and Goodfellow et al. (2016), Chapter 7; study Srivastava et al. (2014) Öğretim Yöntemleri:
Anlatım, Tartışma, Alıştırma ve Uygulama
6 Convolutional neural networks: convolution and pooling layers, receptive field, classic architectures from LeNet to VGG, residual connections and ResNet; an image classification exercise Read Prince (2023), Chapters 10–11 and Goodfellow et al. (2016), Chapter 9 Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
7 Recurrent neural networks and sequence modelling: RNNs, backpropagation through time, LSTM and GRU, bidirectional and multi-layer recurrent networks; review before the mid-term exam Read Goodfellow et al. (2016), Chapter 10 and the recurrent neural network chapters of Zhang et al. (2023); revise the topics of Weeks 1–6 Öğretim Yöntemleri:
Alıştırma ve Uygulama, Anlatım, Soru-Cevap
8 Mid-Term Exam exam preparation Ölçme Yöntemleri:
Yazılı Sınav
9 The attention mechanism and the Transformer architecture: query-key-value attention, self-attention, multi-head attention, positional encoding, encoder and decoder blocks, a brief look at Transformers for images Read Prince (2023), Chapter 12 and Vaswani et al. (2017), 'Attention Is All You Need' Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
10 Transfer learning and fine-tuning: pre-trained models (torchvision, timm, Hugging Face Hub), feature extraction and layer freezing, gradual fine-tuning, domain shift Read the lecture notes and the fine-tuning sections of Zhang et al. (2023); prepare the term project proposal Öğretim Yöntemleri:
Anlatım, Alıştırma ve Uygulama, Proje Temelli Öğrenme
11 Autoencoders and representation learning: undercomplete, sparse and denoising autoencoders, latent spaces, use in dimensionality reduction and anomaly detection Read Goodfellow et al. (2016), Chapters 14–15 Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
12 Efficient and scalable training: GPU utilisation and profiling, mixed-precision training (AMP), gradient accumulation, introduction to data-parallel distributed training (DDP), torch.compile Study the AMP and DDP tutorials in the official PyTorch documentation and Micikevicius et al. (2018), 'Mixed Precision Training' Öğretim Yöntemleri:
Anlatım, Gösteri, Alıştırma ve Uygulama
13 Experiment management and reproducibility: random seeds, experiment tracking (TensorBoard, Weights & Biases), hyperparameter search (Optuna), ablation studies and statistical comparison of results Read Goodfellow et al. (2016), Chapter 11 (Practical Methodology); run the project experiments Öğretim Yöntemleri:
Anlatım, Alıştırma ve Uygulama, Proje Temelli Öğrenme
14 Model deployment: export to the ONNX format, inference with ONNX Runtime, a REST service with FastAPI, packaging with Docker, latency and memory measurement Read the chapter on deploying to production in Stevens et al. (2020); export the project model Öğretim Yöntemleri:
Anlatım, Gösteri
15 Term project presentations and course review: critical discussion of project results, current trends in deep learning Prepare the project report and presentation Öğretim Yöntemleri:
Proje Temelli Öğrenme , Tartışma
16 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım
17 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım


Student Workload - ECTS

Works Number Time (Hour) Workload (Hour)
Course Related Works
Class Time (Exam weeks are excluded) 14 3 42
Out of Class Study (Preliminary Work, Practice) 14 4 56
Assesment Related Works
Homeworks, Projects, Others 0 0 0
Mid-term Exams (Written, Oral, etc.) 1 18 18
Final Exam 1 24 24
Total Workload (Hour) 140
Total Workload / 25 (h) 5,60
ECTS 6 ECTS

Update Time: 25.11.2026 05:54