📚 The CoCalc Library - books, templates and other resources
cocalc-examples / martinthoma-latex-examples / presentations / Bachelor-Final-Presentation / LaTeX / evaluation.tex
132941 viewsLicense: OTHER
\subsection{Evaluation}1\begin{frame}{Baseline Systems}2\textbf{Preprocessing:} Scaling, shifting and linear interpolation\\3\textbf{Features:} Coordinates of 80 points (4 strokes with 20 points each)\\4\textbf{Learning:} MLP, 1000 epochs, LR $\eta=0.1$, Momentum $\alpha=0.1$5\begin{table}[h]6\centering7\begin{tabular}{clrrr}8\toprule9\multirow{2}{*}{System} & \multirow{2}{*}{Topology} & \multicolumn{3}{c}{Classification error}\\10& & TOP1 & TOP3 & MER \\\midrule11$B_1$ & 160:500:369 & $\SI{23.34}{\percent}$ & $\SI{6.80}{\percent}$ & $\SI{6.64}{\percent}$ \\12$B_2$ & 160:500:500:369 & \underline{$\SI{21.51}{\percent}$} & $\SI{5.75}{\percent}$ & $\SI{5.67}{\percent}$ \\13$B_3$ & 160:500:500:500:369 & $\SI{21.93}{\percent}$ & \underline{$\SI{5.74}{\percent}$} & \underline{$\SI{5.64}{\percent}$} \\14% $B_4$ & 160:500:500:500:500:369 & $\SI{23.88}{\percent}$ & $\SI{6.12}{\percent}$ & $\SI{6.04}{\percent}$ \\15\bottomrule16\end{tabular}17\caption{Baseline systems with three different classification error measures.18All errors were measured on the test set.}19\label{table:baseline-systems}20\end{table}21\end{frame}2223\subsection{Merged Symbols}24\begin{frame}[fragile]{Merged symbols (MER error)}25\begin{table}[ht]26\centering27\begin{tabular}{lc|lc}28\toprule29\multicolumn{2}{c}{Base symbol} & \multicolumn{2}{c}{equivalent symbols}\\30\LaTeX & Rendered & \LaTeX & Rendered \\\midrule31\verb+\sum+ & $\sum$ & \verb+$\Sigma$+ & $\Sigma$\\32\verb+\prod+ & $\prod$ & \verb+$\Pi$+ & $\Pi$\\33~ & ~ & \verb+$\sqcap$+ & $\sqcap$\\34\verb+\coprod+ & $\coprod$ & \verb+$\amalg$+ & $\amalg$\\35~ & ~ & \verb+$\sqcup$+ & $\sqcup$\\36\verb+\perp+ & $\perp$ & \verb+$\bot$+ & $\bot$\\37\verb+\models+ & $\models$ & \verb+$\vDash$+ & $\vDash$\\38\verb+|+ & | & \verb+\mid+ & $\mid$ \\39\verb+\Delta+ & $\Delta$ & \verb+$\triangle$+ & $\triangle$\\40~ & ~ & \verb+$\vartriangle$+ & $\vartriangle$\\41\bottomrule42\end{tabular}43\end{table}44\end{frame}4546\begin{frame}[fragile]{Merged symbols (MER error)}47\begin{table}[ht]48\centering49\begin{tabular}{lc|lc}50\toprule51\multicolumn{2}{c}{Base symbol} & \multicolumn{2}{c}{equivalent symbols}\\52\LaTeX & Rendered & \LaTeX & Rendered \\\midrule53\verb+\|+ & $\|$ & \verb+$\parallel$+ & $\parallel$\\54\verb+\ohm+ & $\Omega$ & \verb+$\Omega$+ & $\Omega$\\55\verb+\setminus+ & $\setminus$ & \verb+$\backslash$+ & $\backslash$\\56\verb+\checked+ & {\mbox {\wasyfamily \char 8}} & \verb+$\checkmark$+ & $\checkmark$\\57\verb+\&+ & $\&$ & \verb+$\with$+ & $\&$\\58\verb+\#+ & $\#$ & \verb+$\sharp$+ & $\sharp$\\59\verb+\S+ & $\S$ & \verb+$\mathsection$+ & $\mathsection$\\60\verb+\nabla+ & $\nabla$ & \verb+\triangledown+ & $\triangledown$\\61\verb+\lhd+ & $\lhd$ & \verb+$\triangleleft$+ & $\triangleleft$\\62~ & ~ & \verb+$\vartriangleleft$+ & $\vartriangleleft$\\63\verb+\oiint+ & $\oiint$ & \verb+$\varoiint$+ & $\varoiint$\\64\bottomrule65\end{tabular}66\end{table}67\end{frame}686970\begin{frame}[fragile]{Merged symbols (MER error)}71\begin{table}[ht]72\centering73\begin{tabular}{lc|lc}74\toprule75\multicolumn{2}{c}{Base symbol} & \multicolumn{2}{c}{equivalent symbols}\\76\LaTeX & Rendered & \LaTeX & Rendered \\\midrule77\verb+\mathbb{R}+ & $\mathbb{R}$ & \verb+$\mathds{R}$+ & $\mathds{R}$\\78\verb+\mathbb{Q}+ & $\mathbb{Q}$ & \verb+\mathds{Q}+ & $\mathds{Q}$\\79\verb+\mathbb{Z}+ & $\mathbb{Z}$ & \verb+\mathds{Z}+ & $\mathds{Z}$\\80\verb+\mathcal{A}+ & $\mathcal{A}$ & \verb+\mathscr{A}+ & $\mathscr{A}$\\81\verb+\mathcal{D}+ & $\mathcal{D}$ & \verb+\mathscr{D}+ & $\mathscr{D}$\\82\verb+\mathcal{N}+ & $\mathcal{N}$ & \verb+\mathscr{N}+ & $\mathscr{N}$\\83\verb+\mathcal{R}+ & $\mathcal{R}$ & \verb+\mathscr{R}+ & $\mathscr{R}$\\84\verb+\propto+ & $\propto$ & \verb+$\varpropto$+ & $\varpropto$\\85\bottomrule86\end{tabular}87\end{table}88\end{frame}8990\subsection{Evaluation}91\begin{frame}{Preprocessing: Connect strokes}92\begin{table}[h]93\centering94\begin{tabular}{lrrrrrr}95\toprule96\multirow{2}{*}{System} & \multicolumn{6}{c}{Classification error}\\97\cmidrule(l){2-7}98& TOP1 & change & TOP3 & change & MER & change \\\midrule99$B_{1,\theta = \SI{5}{\pixel}}$ & $\SI{23.27}{\percent}$ & $\SI{-0.07}{\percent}$ & $\SI{6.50}{\percent}$ & $\SI{-0.30}{\percent}$ & $\SI{6.37}{\percent}$ & $\SI{-0.27}{\percent}$ \\100$B_{2,\theta = \SI{5}{\pixel}}$ & $\SI{21.20}{\percent}$ & $\SI{-0.31}{\percent}$ & $\SI{5.59}{\percent}$ & $\SI{-0.16}{\percent}$ & $\SI{5.50}{\percent}$ & $\SI{-0.17}{\percent}$ \\101$B_{3,\theta = \SI{5}{\pixel}}$ & $\SI{21.80}{\percent}$ & $\SI{-0.13}{\percent}$ & $\SI{5.54}{\percent}$ & $\SI{-0.20}{\percent}$ & $\SI{5.47}{\percent}$ & $\SI{-0.17}{\percent}$ \\\midrule102$B_{1,\theta = \SI{10}{\pixel}}$& $\SI{23.17}{\percent}$ & $\SI{-0.17}{\percent}$ & $\SI{6.61}{\percent}$ & $\SI{-0.19}{\percent}$ & $\SI{6.47}{\percent}$ & $\SI{-0.17}{\percent}$ \\103$B_{2,\theta = \SI{10}{\pixel}}$& \underline{$\SI{20.97}{\percent}$} & $\SI{-0.54}{\percent}$ & $\SI{5.43}{\percent}$ & $\SI{-0.32}{\percent}$ & $\SI{5.34}{\percent}$ & $\SI{-0.33}{\percent}$ \\104$B_{3,\theta = \SI{10}{\pixel}}$& $\SI{21.34}{\percent}$ & $\SI{-0.59}{\percent}$ & \underline{$\SI{5.42}{\percent}$} & $\SI{-0.32}{\percent}$ & \underline{$\SI{5.33}{\percent}$} & $\SI{-0.31}{\percent}$ \\\midrule105$B_{1,\theta = \SI{20}{\pixel}}$& $\SI{22.81}{\percent}$ & $\SI{-0.53}{\percent}$ & $\SI{6.28}{\percent}$ & $\SI{-0.52}{\percent}$ & $\SI{6.19}{\percent}$ & $\SI{-0.45}{\percent}$ \\106$B_{2,\theta = \SI{20}{\pixel}}$& $\SI{21.61}{\percent}$ & $\SI{+0.10}{\percent}$ & $\SI{5.79}{\percent}$ & $\SI{+0.04}{\percent}$ & $\SI{5.69}{\percent}$ & $\SI{+0.02}{\percent}$ \\107$B_{3,\theta = \SI{20}{\pixel}}$& $\SI{21.71}{\percent}$ & $\SI{-0.22}{\percent}$ & $\SI{5.55}{\percent}$ & $\SI{-0.19}{\percent}$ & $\SI{5.45}{\percent}$ & $\SI{-0.19}{\percent}$ \\108\bottomrule109\end{tabular}110\caption{Models $B_1$--$B_4$ with additionally applied stroke111connect algorithm.}112\label{table:stroke-connect-evaluation}113\end{table}114\end{frame}115116\begin{frame}{Learning: Supervised layer-wise pretraining}117\begin{table}[tb]118\centering119\begin{tabular}{lrrrrrr}120\toprule121\multirow{2}{*}{System}& \multicolumn{6}{c}{Classification error}\\122\cmidrule(l){2-7}123& TOP1 & change & TOP3 & change & MER & change \\\midrule124$B_1$ & $\SI{23.34}{\percent}$ & & $\SI{6.80}{\percent}$ & & $\SI{6.64}{\percent}$ & \\%chktex 8125$B_{2,p}$ & $\SI{19.89}{\percent}$ & $\SI{-1.62}{\percent}$ & $\SI{4.76}{\percent}$ & $\SI{-0.99}{\percent}$ & $\SI{4.68}{\percent}$ & $\SI{-0.99}{\percent}$\\126$B_{3,p}$ & \underline{$\SI{19.43}{\percent}$} & $\SI{-2.50}{\percent}$ & \underline{$\SI{4.64}{\percent}$} & $\SI{-1.10}{\percent}$ & \underline{$\SI{4.54}{\percent}$} & $\SI{-1.10}{\percent}$\\127% $B_{4,p}$ (pretrained) & $\SI{19.63}{\percent}$ & $\SI{-4.25}{\percent}$ & $\SI{4.66}{\percent}$ & $\SI{-1.46}{\percent}$ & $\SI{4.55}{\percent}$ & $\SI{-1.49}{\percent}$\\128\bottomrule129\end{tabular}130\caption{Supervised layer-wise pretraining, 1000 epochs per layer}131\label{table:pretraining-copy-before}132\end{table}133\end{frame}134135\definecolor{light-gray}{gray}{0.70}136137\subsection{Optimized classifier}138\begin{frame}{Optimized classifier}139\textbf{Preprocessing:} Connect strokes{\color{light-gray}, scale, shift and linear interpolation}\\140\textbf{Features:} {\color{light-gray}Coordinates of 80 points (4 strokes with 20 points each),} re-curvature per stroke, ink, stroke count, aspect ratio\\141\textbf{Learning:} {\color{light-gray}MLP, 1000 epochs, LR $\eta=0.1$, Momentum $\alpha=0.1$,} supervised layer-wise pretraining142\begin{table}[htb]143\centering144\begin{tabular}{lrrrrrr}145\toprule146\multirow{2}{*}{System} & \multicolumn{6}{c}{Classification error}\\147\cmidrule(l){2-7}148& TOP1 & change & TOP3 & change & MER & change \\\midrule149$B_{1,c}$ & $\SI{20.96}{\percent}$ & $\SI{-2.38}{\percent}$ & $\SI{5.24}{\percent}$ & $\SI{-1.56}{\percent}$ & $\SI{5.13}{\percent}$ & $\SI{-1.51}{\percent}$ \\150$B_{2,c}$ & $\SI{18.26}{\percent}$ & $\SI{-3.25}{\percent}$ & $\SI{4.07}{\percent}$ & $\SI{-1.68}{\percent}$ & \underline{$\SI{3.98}{\percent}$} & $\SI{-1.69}{\percent}$ \\151$B_{3,c}$ & \underline{$\SI{18.19}{\percent}$} & $\SI{-3.74}{\percent}$ & \underline{$\SI{4.06}{\percent}$} & $\SI{-1.68}{\percent}$ & $\SI{3.99}{\percent}$ & $\SI{-1.65}{\percent}$ \\152% $B_{4,c}$ & $\SI{18.57}{\percent}$ & $\SI{-5.31}{\percent}$ & $\SI{4.25}{\percent}$ & $\SI{-1.87}{\percent}$ & $\SI{4.18}{\percent}$ & $\SI{-1.86}{\percent}$ \\153\bottomrule154\end{tabular}155\caption{Error rates of the complex recognizer systems.}156\label{table:complex-recognizer-systems-evaluation}157\end{table}158\end{frame}159160