\documentclass[aspectratio=169,10pt]{beamer}
\usetheme[progressbar=head,numbering=fraction,sectionpage=none]{metropolis}

\usepackage{graphicx}
\usepackage{ulem}
\usepackage{xcolor}
\usepackage[scale=2]{ccicons}
\usepackage{pgfplots}
\usepackage{booktabs}
\usepgfplotslibrary{dateplot}
\usepackage{hyperref}
\usepackage{multirow}
\usepackage{array}
\usepackage{xspace}

\title{DSD Auto Training}
\subtitle{\textit{dsd\_trainer.py} is stealing my job.}
\date{}
\author{Arthur Grisel-Davy}
\institute{University of Waterloo, Canada}


\begin{document}

\maketitle

\begin{frame}{Goal}
    \begin{center}
        From a {\color{blue}raw trace} containing normal and recurent activities, extract the {\color{blue}DSD training data} and {\color{blue}occurences rules} for the activities in the trace.
    \end{center}
\end{frame}

\begin{frame}{Overview}
        \only<1>{\includegraphics[height=\textheight]{images/overview-1.pdf}}
        \only<2>{\includegraphics[height=\textheight]{images/overview-2.pdf}}
        \only<3>{\includegraphics[height=\textheight]{images/overview-3.pdf}}
        \only<4>{\includegraphics[height=\textheight]{images/overview-4.pdf}}
        \only<5>{\includegraphics[height=\textheight]{images/overview-5.pdf}}
        \only<6>{\includegraphics[height=\textheight]{images/overview-6.pdf}}
\end{frame}

\begin{frame}{Raw Trace}
    \begin{figure}
        \centering
        \includegraphics[width=\textwidth]{images/powertrace.pdf}
    \end{figure}
\end{frame}

\begin{frame}{Detect States List and Compute Protos}
    \begin{itemize}
        \item Extracts subsequences from trace (sliding windows).
        \item Apply density-based clustering (DBSCAN) with optimal threshold search (silhouette score).
        \item Get clusters and outliers.
        \item For every cluster, compute the centroid as proto for DSD.
    \end{itemize}
\end{frame}

\begin{frame}
    \begin{figure}
        \centering
        \includegraphics[width=\textwidth]{images/clustering.pdf}
    \end{figure}
\end{frame}

\begin{frame}{State Detection}
    \begin{figure}
        \centering
        \includegraphics[width=\textwidth]{images/dsd.pdf}
    \end{figure}
\end{frame}

\begin{frame}{Extract Rules Occurences}
    DIY-PoC-QaD solution: Occurences $\longrightarrow$ (Interval,Duration)
    \begin{figure}
        \centering
        \includegraphics[height=0.8\textheight]{images/projection.pdf}
    \end{figure}
\end{frame}

\begin{frame}{Hyper-Parameters}
    \begin{itemize}
    \item Windows size and stride: $w,s$.
    \item DSD coefficient $\alpha$.
    \item Rules Detection Parameters.
    \end{itemize}
\end{frame}

\end{document}
