Strumenti Utente

Strumenti Sito


Data Mining A.A. 2022/23

DM1 - Data Mining: Foundations (6 CFU)


Teaching Assistant

DM2 - Data Mining: Advanced Topics and Applications (6 CFU)


Teaching Assistant


  • [15.09.2022] Project Groups link
  • [15.09.2022] MS Teams link
  • [15.09.2022] Lectures will be in presence only. Registrations of the lectures of past years can be found at the bottom of this web page.
  • [23.11.2022] In order to recover from skipped and suspended lectures we signal the presence of two new dates in unusual slots for our lectures, i.e., Wed 7th Dec 14.00-16.00 Room A1 and Wed 14th Dec 14.00-16.00 Room A1.

Learning Goals

  • DM1
    • Fundamental concepts of data knowledge and discovery.
    • Data understanding
    • Data preparation
    • Clustering
    • Classification
    • Pattern Mining and Association Rules
    • Sequential Pattern Mining
  • DM2
    • Outlier Detection
    • Dimensionality Reduction
    • Regression
    • Advanced Classification and Regression
    • Time Series Analysis
    • Transactional Clustering
    • Explainability

Hours and Rooms



Day of Week Hour Room
Monday 11:00 - 13:00 Aula A1
Thursday 11:00 - 13:00 Aula A1

Office hours - Ricevimento:

  • Prof. Pedreschi
    • Monday 16:00 - 18:00
    • Online
  • Prof. Guidotti
    • Wednesday 15-17 or Appointment by email
    • Room 363 Dept. of Computer Science or MS Teams

DM 2


Day of Week Hour Room
??? 11:00 - 13:00 ???
??? 11:00 - 13:00 ???

Office Hours - Ricevimento:

  • Wednesday 15-17 or Appointment by email
  • Room 363 Dept. of Computer Science or MS Teams

Learning Material -- Materiale didattico

Textbook -- Libro di Testo

  • Pang-Ning Tan, Michael Steinbach, Vipin Kumar. Introduction to Data Mining. Addison Wesley, ISBN 0-321-32136-7, 2006
  • Berthold, M.R., Borgelt, C., Höppner, F., Klawonn, F. GUIDE TO INTELLIGENT DATA ANALYSIS. Springer Verlag, 1st Edition., 2010. ISBN 978-1-84882-259-7
  • Laura Igual et al. Introduction to Data Science: A Python Approach to Concepts, Techniques and Applications. 1st ed. 2017 Edition.



  • Python - Anaconda (>3.7): Anaconda is the leading open data science platform powered by Python. Download page (the following libraries are already included)
  • Scikit-learn: python library with tools for data mining and data analysis Documentation page
  • Pandas: pandas is an open source, BSD-licensed library providing high-performance, easy-to-use data structures and data analysis tools for the Python programming language. Documentation page

Other softwares for Data Mining

Class Calendar (2021/2022)

First Semester (DM1 - Data Mining: Foundations)

Day Time Room Topic Learning Material Lecturer
01. 15.09.2022 11-13 A1 Overview, Intro, KDD and CRIPS. Intro Pedreschi/Guidotti
19.09.2022 11-13 No Lecture
02. 22.09.2022 11-13 A1 Project Guideliens & Intro to Python Project Guidelines, Intro Python Spinnato
26.09.2022 11-13 No Lecture
03. 29.09.2022 11-13 A1 Data Understanding Data Understanding Pedreschi
04. 03.10.2022 11-13 A1 Data Understanding & Data Preparation Data Preparation Pedreschi
05. 06.10.2022 11-13 A1 Lab. Data Understanding Data Und Python Spinnato/Guidotti
10.10.2022 11-13 No Lecture
06. 13.10.2022 11-13 A1 Data Preparation, Similarity Data Similarity, Data Und Python Pedreschi
07. 17.10.2022 11-13 A1 Intro Clustering, K-Means Intro Clustering, K-Means Pedreschi
08. 20.10.2022 11-13 A1 K-Means K-Means Pedreschi
09. 24.10.2022 11-13 A1 Hierarchical & Density-based Hierarchical, Density Pedreschi
10. 27.10.2022 11-13 A1 Lab. Clustering Clustering Python Spinnato/Guidotti
30.10.2022 11-13 No Lecture
11. 03.11.2022 11-13 A1 Exercises Clustering Exercises Clustering Guidotti
12. 07.11.2022 11-13 A1 Intro Classification Intro Classification, kNN Guidotti
13. 10.11.2022 11-13 A1 Eval Measures, Exercises kNN Intro Classification, kNN Guidotti
14. 14.11.2022 11-13 A1 Decision Tree Decision Trees Guidotti
15. 17.11.2022 11-13 A1 Decision Tree, Exercises DT Decision Trees, Ex DT Guidotti
16. 22.11.2022 11-13 A1 Decision Tree Decision Trees Guidotti
17. 24.11.2022 11-13 A1 Naive Bayes Classifier NBC Guidotti
18. 28.11.2022 11-13 A1 Lab. Classification Classification Python Spinnato/Guidotti
19. 01.12.2022 11-13 A1 Intro Regression Intro Regression Guidotti
20. 05.12.2022 11-13 A1 Pattern Mining Pattern Mining Pedreschi
21. 07.12.2022 14-16 A1 Pattern Mining Pattern Mining Pedreschi
08.12.2022 11-13 No Lecture
22. 12.12.2022 11-13 A1 Exercises Apriori Exercises Apriori, Solutions Guidotti
23. 14.12.2022 14-16 A1 Pattern Mining (FP-Growth) Pattern Mining Guidotti
24. 15.12.2022 11-13 A1 Lab. Pattern Mining Pattern Mining Python Spinnato/Guidotti

Second Semester (DM2 - Data Mining: Advanced Topics and Applications)

Day Room Topic Learning Material Instructor
01. 14.02.2022 11:00–13:00 C Guidotti


How and Where: The exam will take place in oral mode only at the teacher's office or classroom previously designated. The exam will be held online on the 420AA Data Mining course channel only at the request of the student in accordance with current legislation.

When: The dates relating to the start of the three exams are/will be published on the online platform Within each session, we will identify dates and slots in order to distribute the various orals. The dates and slots to take the exam will be published on the course page by the end of May. Each student must also register on The examination can only be carried out after the delivery of the project. The project must be delivered one week before when you want to take the exam. Group oral discussions will be preferred in respect of the project groups in order to parallelize any discussion on the project. It is not mandatory to take the oral exam together with the other members of the group. In the event that the oral exam is not passed, it will not be possible to take it for 20 days. If the project is not considered sufficient, it must be carried out again on a new dataset or a very updated version of the current one.

What: The oral test will evaluate the practical understanding of the algorithms. The exam will evaluate three aspects.

  1. Understanding of the theoretical aspects of the topics addressed during the course. The student may be required to write on formulas or pseudocode. During the explanations, the student can use pen and paper (if online, the student can use the Miro graphic system during the explanations)
  2. Understanding of the algorithms illustrated during the course and their practical implementation. You will be asked to perform one or more simple exercises. The text will be shown on the teacher's screen and / or copied to Miro. The student will have to use pen and paper (if online by Miro to show how the exercise is solved.
  3. Discussion of the project with questions from the teacher regarding unclear aspects,

questionable steps or choices.

Final Mark: for 12-credit exam, the final mark will be obtained as the average mark of DM1 and DM2.

Exam Booking Periods

  • Exam portal link: here
  • 1st Appello: 11/12/2022 00:00 - 05/01/2023 23:59
  • 2nd Appello: 01/01/2023 00:00 - 26/01/2023 23:59

Exam Booking Agenda

  • Agenda Link: here
  • 1st Appello: starts 10/01/2023
  • 2nd Appello: starts 31/01/2023

Exam DM1

The exam is composed of two parts:

  • An oral exam, that includes: (1) discussing the project report; (2) discussing topics presented during the classes, including the theory and practical exercises.
  • A project, that consists in exercises requiring the use of data mining tools for analysis of data. Exercises include: data understanding, clustering analysis, pattern mining, and classification (guidelines will be provided for more details). The project has to be performed by min 2, max 3 people. It has to be performed by using Python or any other data mining software. The results of the different tasks must be reported in a unique paper. The total length of this paper must be max 20 pages of text including figures. The paper must be emailed to datamining [dot] unipi [at] gmail [dot] com. Please, use “[DM1 2022-2023] Project” in the subject.
  • Dataset
    1. Assigned: 15/09/2021
    2. MidTerm Submission: 28/11/2022 (extended) (half project required, i.e., Data Understanding & Preparation and Clustering)
    3. Final Submission: 31/12/2022 or one week before the oral exam (complete project required).
    4. Dataset: RAVDESS
    5. Link original pages: zenodo, kaggle1, kaggle2

DM1 Project Guidelines See Project Guidelines.

Exam DM2


Exam Dates

Exam Sessions

Session Date Room Notes Marks Please, use the system for registration: Please, use the system for registration:
3.??.??.2023 Please, use the system for registration:
4.??.??.2023 Please, use the system for registration:
5.??.??.2023 Please, use the system for registration:
6.??.??.2023 Please, use the system for registration:

Past Exams

  • Past exams texts can be found in old pages of the course. Please do not consider these exercises as a unique way of testing your knowledge. Exercises can be changed and updated every year and will be published together with the slides of the lectures.

Reading About the "Data Scientist" Job

… a new kind of professional has emerged, the data scientist, who combines the skills of software programmer, statistician and storyteller/artist to extract the nuggets of gold hidden under mountains of data. Hal Varian, Google’s chief economist, predicts that the job of statistician will become the “sexiest” around. Data, he explains, are widely available; what is scarce is the ability to extract wisdom from them.

Data, data everywhere. The Economist, Special Report on Big Data, Feb. 2010.

  • Data, data everywhere. The Economist, Feb. 2010 download
  • Data scientist: The hot new gig in tech, CNN & Fortune, Sept. 2011 link
  • Welcome to the yotta world. The Economist, Sept. 2011 download
  • Data Scientist: The Sexiest Job of the 21st Century. Harvard Business Review, Sept 2012 link
  • Il futuro è già scritto in Big Data. Il SOle 24 Ore, Sept 2012 link
  • Special issue of Crossroads - The ACM Magazine for Students - on Big Data Analytics download
  • Peter Sondergaard, Gartner, Says Big Data Creates Big Jobs. Oct 22, 2012: YouTube video
  • Towards Effective Decision-Making Through Data Visualization: Six World-Class Enterprises Show The Way. White paper at download

Previous years

dm/start.txt · Ultima modifica: 14/12/2022 alle 08:42 (6 settimane fa) da Riccardo Guidotti