Indice
Data Mining (309AA) - 9 CFU A.Y. 2023/2024
Instructor:
- Anna Monreale
- KDDLab, Università di Pisa
Teaching Assistant:
- * Lorenzo Mannocci
- University of Pisa
News
- [05.09.2023] The lectures will start on 27th September 2023
Learning Goals
- Fundamental concepts of data knowledge and discovery.
- Data understanding
- Data preparation
- Clustering
- Classification
- Pattern Mining and Association Rules
- Outlier Detection
- Time Series Analysis
- Sequential Pattern Mining
- Ethical Issues
Hours and Rooms
Classes
Day of Week | Hour | Room |
---|---|---|
Wednesday | 09:00 - 11:00 | Room C1 |
Thursday | 09:00 - 11:00 | Room C1 |
Friday | 09:00 - 11:00 | Room C |
Office hours - Ricevimento: Anna Monreale: Tuesday: 11:00-13:00 by online using Teams or at the Department of Computer Science, room 374/E (Please ask an appointment by email). Lorenzo Mannocci: TDB
A Teams Channel will be used ONLY to post news, Q&A, and other stuff related to the course. The lectures will be only in presence and will NOT be live-streamed, but recordings of the lecture or of the previous years will be made available here for non-attending students.
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
- Chapters 4,6 and 8 are also available at the publisher's Web site.
- Laura Igual et al. Introduction to Data Science: A Python Approach to Concepts, Techniques and Applications. 1st ed. 2017 Edition.
- Jake VanderPlas. Python Data Science Handbook: Essential Tools for Working with Data. 1st Edition.
- For Python Notions: Very basic notions on Python
Slides
- The slides used in the course will be inserted in the calendar after each class. Most of them are part of the slides provided by the textbook's authors Slides per "Introduction to Data Mining".
Software
- Python - Anaconda (at least 3.7 version!!!): 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
Class Calendar (2023/2024)
First Semester
Day | Topic | Learning material | References | Video Lectures | |
---|---|---|---|---|---|
1. | 27.09 | Overview. Introduction to KDD | 1-overview-2023.pdf 1-intro-dm.pdf | Chap. 1 Kumar Book | Introduction DM - Video1 Introduction DM - Video2 |
2. | 28.09 | Data Understanding | 2-data_understanding.pdf | Chap.2 Kumar Book and additioanl resource of Kumar Book:Exploring Data If you have the first ed. of KUMAR this is the Chap 3 | |
3. | 29.09 | Data Understanding & Data Preparation | 3-data_preparation.pdf | Chap.2 Kumar Book and additioanl resource of Kumar Book:Exploring Data If you have the first ed. of KUMAR this is the Chap 3 | |
4. | 04.10 | Data Preparation & Data Similarities | 4-data_similarity.pdf | Data Similarity is in Chap. 2 | DP+Similarities The last minutes of the lecture were not recorded because of the connection |
5. | 05.10 | Python-LAB: Data Understanding | DU notebooks and data | Python Lab on DU | |
06.10 | Suppressed | ||||
6. | 11.10 | Introduction to Clustering. Centroid-based Clustering: K-means algorithm. | 5-basic_cluster_analysis-intro.pdf 6.1-basic_cluster_analysis-kmeans.pdf | Chap. 7 Kumar Book | Video 1: Introduction to Clustering + K-means - Part 1 - Video of previous years |
7. | 12.10 | Centroid-based Clustering: K-means variants. | 6.2-basic_cluster_analysis-kmeans-variants.pdf | Chap. 7 Kumar Book clusteringmixturemodels.pdf xmeans.pdf | Video 2: Introduction to Clustering + K-means - Part 2] Video 1: Center-based clustering - Bisecting K-means, Xmeans, EM ;Videos of previous years |
13.10 | Suspension of teaching | Recording in Teams Channel | |||
8. | 18.10 | Hierarchical and density based CLustering | 7.basic_cluster_analysis-hierarchical.pdf 8.basic_cluster_analysis-dbscan-validity.pdf | Chap. 7 Kumar Book | Recording in Teams Channel |
9. | 19.10 | Clustering Validity & Python Lab: Clusterig K-means | 8.basic_cluster_analysis-dbscan-validity.pdf | Chap. 7 Kumar Book | Recording in Teams Channel |
10. | 20.10 | Python Lab: Clusterig Density based and hierarchical + Introduction to Classification | Notebook on Clustering 9.chap3_basic_classification-2023.pdf | Chap.3 Kumar Book | Recording in Teams Channel |
11. | 25.10 | Decision Trees & Classifier Evaluation | Same slides as previous lecture | Chap.3 Kumar Book | Recording in Teams Channel |
12. | 26.10 | Classifier Evaluation | Same slides as previous lecture | Chap.3 Kumar Book | |
13. | 27.10 | Rule-based Classifiers | 10-rule-based-classifiers.pdf | Chap.4 Kumar Book | Recording in Teams Channel |
14. | 02.11 | Rule-based Classifiers + Instance based Classifiers | 10-knn.pdf | Chap.4 Kumar Book | Recording in Teams Channel |
15. | 03.11 | Naive Bayesian Classifier. SVM. Ensemble Classifiers | 11_2023-naive_bayes.pdf 14_svm_2023.pdf 13_ensemble_2023.pdf | Chap.4 Kumar Book | Recording in Teams Channel |
16. | 08.11 | Python Lab: Classification | classification.zip | Recording in Teams Channel | |
17. | 09.11 | NN Classifiers | 15_neural_networks_2023.pdf | Chap.4 Kumar Book | Recording in Teams Channel |
18. | 10.11 | Python Lab: NN & Imbalanced Classification | imbalanced_classification.zip | Recording in Teams Channel | |
19. | 15.11 | Association Rule Mining: Apriori | 17_association_analysis.pdf | Chap.5 Kumar Book | Recording in Teams Channel |
20. | 16.11 | Association Rule Mining: Evalaution and FP-Growth | 17_2023-fp-growth.pdf | Chap.5 Kumar Book | Recording in Teams Channel |
21. | 17.11 | Sequential Pattern Mining | 18_sequential_patterns_2023.pdf | Chap.6 Kumar Book | Recording in Teams Channel |
22. | 22.11 | Sequential Pattern Mining: timing constraint. Time Series Analysis: Similarities, Distances and Transformations | 22_time_series_similarity_2023.pdf | Overview on Time Series | Recording in Teams Channel |
23. | 23.11 | Time Series Analysis: Shapelet & Motif | 23_time_series_motif-shapelets2023.pdf | shaplet.pdf | Recording in Teams Channel |
24. | 24.11 | Time Series Analysis: Shapelet & Motif; introduction to ethics and privacy | same slides of the previous lecture and 19_ethics_privacy_2023_intro.pdf | matrixprofile.pdf Papers and resourse on motif | Recording in Teams Channel |
25. | 29.11 | Python Lab: ARM, SPM, Time series transformations | ar_spm.zip timeseries.zip | Recording in Teams Channel | |
26. | 30.11 | Python Lab: Time series analysis | notebooks in the zip file of the previous lecture | Recording in Teams Channel | |
27. | 01.12 | Privacy in AI and Big Data Analytics | 19_ethics_privacy2023.pdf This set of slides include alse the introduction of the lecture 24.11.2023 | chap-anonymity.pdf chap-anonymity.pdf prudence.pdf chapter-ppdm.pdf | Recording in Teams Channel |
28. | 06.12 | Explainable AI | 20_explainability_2023.pdf | lore-tabular.pdf xai-survey.pdf imagexai.pdf timeseriesxai.pdf | Recording in Teams Channel |
29. | 07.12 | Explainable AI | 21_anomaly_detection_2023.pdf anomaly_detection.zip | Recording in Teams Channel | |
30. | 13.12 | Anomaly Detection | 21_anomaly_detection_2023.pdf | Recording in Teams Channel | |
31-32. | 14.12 9-11 | Lab Python in AD + Lab Python in XAI | anomaly_detection.zip | Recording in Teams Channel | |
33. | 15.12 9-11 | Lab Python in XAI + Paper Presentation | |||
34. | 18.12 09-11 | Paper Presentation | |||
35. | 20.12 09-11 | Paper Presentation | |||
36. | 21.12 09-11 | Paper Presentation |
Exams
Project
A project consists in data analyses based on the use of data mining tools. The project has to be performed by a team of 3 students. It has to be performed by using Python. The guidelines require to address specific tasks. Results must be reported in a unique paper. The total length of this paper must be max 25 pages of text including figures. The students must deliver both: paper (single column) and well commented Python Notebooks.
- First part of the project consists in the assignments described here: Project Description
- Dataset: Dataset Files
- Deadline: the fist part has to be delivered within
November 19th, 2023November 26th, 2023. Send an email to: [email protected], [email protected]
- Second part of the project consists in the assignment described here: Updated Project Description
- Deadline: Jan 8, 2024
- Third part of the project consists in the assignment described here: Updated Project Description
- Deadline: Jan 8, 2024
Students who did not deliver the above project within Jan 8, 2024 need to ask by email a new project to the teachers. The project that will be assigned will require about 20 days of work and after the delivery it will be discussed during the oral exam.
Paper Presentation (OPTIONAL)
Students need to present a research paper (made available by the teacher) during the last week of the course. This presentation is OPTIONAL: Students that decide to do the paper presentation can avoid the oral exam with open questions on the entire program. They only need to present the project (see next point) and answer open question only on the topics which will not be covered by the project. The paper presentation can be done by the group or by a single person.
Oral Exam
- Project presentation (with slides) – 10-15 minutes: mandatory for all the students with question fo understanding the details of any part of the project.
- Open questions on the entire program : for students who will not opt for paper presentation
- Open questions on the topics which will not be covered by the project only for students opting for paper presentation.
- Group presentations of the project are preferred. If this is impossible please contact me for finding a solution.
How to book for the exam colloquium?
In https://esami.unipi.it/ you can find the dates for the exam: one for January and one for February. Each student must do the registration on one of the 2 dates. These are not the dates of the colloquium or project delivery but we will use the list of registered students for organizing the exam dates. After that deadline we will share with you a calendar for the oral exam.