diff --git a/research/knowledge_clusters/submission/acmart.cls b/research/knowledge_clusters/submission/acmart.cls new file mode 100644 index 0000000..1ba2ab9 --- /dev/null +++ b/research/knowledge_clusters/submission/acmart.cls @@ -0,0 +1,3655 @@ +%% +%% This is file `acmart.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% acmart.dtx (with options: `class') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from acmart.cls. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file acmart.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{acmart} +[2025/08/27 v2.16 Typesetting articles for the Association for Computing Machinery] +\def\@classname{acmart} +\InputIfFileExists{acmart-preload-hook.tex}{% + \ClassWarning{\@classname}{% + I am loading acmart-preload-hook.tex. You are fully responsible + for any problems from now on.}}{} +\RequirePackage{xkeyval} +\RequirePackage{xstring} +\RequirePackage{iftex} +\define@choicekey*+{\@classname.cls}{format}[\ACM@format\ACM@format@nr]{% + manuscript, acmsmall, acmlarge, acmtog, sigconf, siggraph, + sigplan, sigchi, sigchi-a, acmengage, acmcp}[manuscript]{}{% + \ClassError{\@classname}{The option format must be manuscript, + acmsmall, acmlarge, acmtog, sigconf, siggraph, + sigplan, sigchi or sigchi-a}} +\def\@DeclareACMFormat#1{\DeclareOptionX{#1}{\setkeys{\@classname.cls}{format=#1}}} +\@DeclareACMFormat{manuscript} +\@DeclareACMFormat{acmsmall} +\@DeclareACMFormat{acmlarge} +\@DeclareACMFormat{acmtog} +\@DeclareACMFormat{sigconf} +\@DeclareACMFormat{siggraph} +\@DeclareACMFormat{sigplan} +\@DeclareACMFormat{sigchi} +\@DeclareACMFormat{sigchi-a} +\@DeclareACMFormat{acmengage} +\@DeclareACMFormat{acmcp} +\ExecuteOptionsX{format} +\define@boolkey+{\@classname.cls}[@ACM@]{screen}[true]{% + \if@ACM@screen + \PackageInfo{\@classname}{Using screen mode}% + \else + \PackageInfo{\@classname}{Not using screen mode}% + \fi}{\PackageError{\@classname}{The option screen can be either true or + false}} +\ExecuteOptionsX{screen=false} +\define@boolkey+{\@classname.cls}[@ACM@]{urlbreakonhyphens}[true]{% + \if@ACM@urlbreakonhyphens + \PackageInfo{\@classname}{Using breaking urls on hyphens}% + \else + \PackageInfo{\@classname}{Not breaking urls on hyphens}% + \fi}{\PackageError{\@classname}{The option urlbreakonhyphens can be either true or + false}} +\ExecuteOptionsX{urlbreakonhyphens=true} +\define@boolkey+{\@classname.cls}[@ACM@]{acmthm}[true]{% + \if@ACM@acmthm + \PackageInfo{\@classname}{Requiring acmthm}% + \else + \PackageInfo{\@classname}{Suppressing acmthm}% + \fi}{\PackageError{\@classname}{The option acmthm can be either true or + false}} +\ExecuteOptionsX{acmthm=true} +\define@boolkey+{\@classname.cls}[@ACM@]{review}[true]{% + \if@ACM@review + \PackageInfo{\@classname}{Using review mode}% + \AtBeginDocument{\@ACM@printfoliostrue}% + \else + \PackageInfo{\@classname}{Not using review mode}% + \fi}{\PackageError{\@classname}{The option review can be either true or + false}} +\ExecuteOptionsX{review=false} +\define@boolkey+{\@classname.cls}[@ACM@]{authorversion}[true]{% + \if@ACM@authorversion + \PackageInfo{\@classname}{Using authorversion mode}% + \else + \PackageInfo{\@classname}{Not using authorversion mode}% + \fi}{\PackageError{\@classname}{The option authorversion can be either true or + false}} +\ExecuteOptionsX{authorversion=false} +\define@boolkey+{\@classname.cls}[@ACM@]{nonacm}[true]{% + \if@ACM@nonacm + \PackageInfo{\@classname}{Using nonacm mode}% + \AtBeginDocument{\@ACM@printacmreffalse}% + % in 'nonacm' mode we disable the "ACM Reference Format" + % printing by default, but this can be re-enabled by the + % user using \settopmatter{printacmref=true} + \else + \PackageInfo{\@classname}{Not using nonacm mode}% + \fi}{\PackageError{\@classname}{The option nonacm can be either true or + false}} +\ExecuteOptionsX{nonacm=false} +\define@boolkey+{\@classname.cls}[@ACM@]{balance}[true]{}{% + \PackageError{\@classname}{The option balance can be either true or + false}} +\ExecuteOptionsX{balance} +\define@boolkey+{\@classname.cls}[@ACM@]{pbalance}[true]{}{% + \PackageError{\@classname}{The option pbalance can be either true or + false}} +\ExecuteOptionsX{pbalance=false} +\define@boolkey+{\@classname.cls}[@ACM@]{natbib}[true]{% + \if@ACM@natbib + \PackageInfo{\@classname}{Explicitly selecting natbib mode}% + \else + \PackageInfo{\@classname}{Explicitly deselecting natbib mode}% + \fi}{\PackageError{\@classname}{The option natbib can be either true or + false}} +\ExecuteOptionsX{natbib=true} +\define@boolkey+{\@classname.cls}[@ACM@]{anonymous}[true]{% + \if@ACM@anonymous + \PackageInfo{\@classname}{Using anonymous mode}% + \else + \PackageInfo{\@classname}{Not using anonymous mode}% + \fi}{\PackageError{\@classname}{The option anonymous can be either true or + false}} +\ExecuteOptionsX{anonymous=false} +\define@boolkey+{\@classname.cls}[@ACM@]{timestamp}[true]{% + \if@ACM@timestamp + \PackageInfo{\@classname}{Using timestamp mode}% + \else + \PackageInfo{\@classname}{Not using timestamp mode}% + \fi}{\PackageError{\@classname}{The option timestamp can be either true or + false}} +\ExecuteOptionsX{timestamp=false} +\define@boolkey+{\@classname.cls}[@ACM@]{authordraft}[true]{% + \if@ACM@authordraft + \PackageInfo{\@classname}{Using authordraft mode}% + \@ACM@timestamptrue + \@ACM@reviewtrue + \else + \PackageInfo{\@classname}{Not using authordraft mode}% + \fi}{\PackageError{\@classname}{The option authordraft can be either true or + false}} +\ExecuteOptionsX{authordraft=false} +\def\ACM@fontsize{} +\DeclareOptionX{8pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{9pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{10pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{11pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{12pt}{\edef\ACM@fontsize{\CurrentOption}} +\def\ACM@languages{} +\DeclareOptionX{language}{% + \ifx\ACM@languages\@empty + \gdef\ACM@languages{english}\fi + \g@addto@macro\ACM@languages{, #1}} +\DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{amsart}} +\DeclareOptionX{*}{\PassOptionsToClass{\CurrentOption}{amsart}} +\ProcessOptionsX +\ClassInfo{\@classname}{Using format \ACM@format, number \ACM@format@nr} +\newif\if@ACM@manuscript +\newif\if@ACM@journal +\newif\if@ACM@journal@bibstrip +\newif\if@ACM@journal@bibstrip@or@tog +\newif\if@ACM@sigchiamode +\newif\if@ACM@engage +\@ACM@engagefalse +\newif\if@ACM@acmcp +\@ACM@acmcpfalse +\ifnum\ACM@format@nr=5\relax % siggraph +\ClassWarning{\@classname}{% + The format siggraph is now obsolete.\MessageBreak + I am switching to sigconf.} + \setkeys{\@classname.cls}{format=sigconf} +\fi +\ifnum\ACM@format@nr=7\relax % sigchi +\ClassWarning{\@classname}{% + The format sigchi is now obsolete.\MessageBreak + I am switching to sigconf.} + \setkeys{\@classname.cls}{format=sigconf} +\fi +\ifnum\ACM@format@nr=8\relax % sigchi +\ClassWarning{\@classname}{% + ACM SIGCHI has retired the SIGCHI-A template\MessageBreak + effective immediately. ACM is keeping this template\MessageBreak + option available to authors who are working on legacy\MessageBreak + documents only. ACM will not, under any circumstances,\MessageBreak + accept documents in this format for publication and\MessageBreak + will not offer technical support to the authors who use\MessageBreak + this template.\MessageBreak + ACM SIGCHI is directing Conference leaders and\MessageBreak + authors to publish their articles using the SIGCONF\MessageBreak + template call.} +\fi +\ifnum\ACM@format@nr=0\relax + \@ACM@manuscripttrue +\else + \@ACM@manuscriptfalse +\fi +\@ACM@sigchiamodefalse +\ifcase\ACM@format@nr +\relax % manuscript + \@ACM@journaltrue +\or % acmsmall + \@ACM@journaltrue +\or % acmlarge + \@ACM@journaltrue +\or % acmtog + \@ACM@journaltrue + \@ACM@journal@bibstrip@or@togtrue +\or % sigconf + \@ACM@journalfalse +\or % siggraph + \@ACM@journalfalse + \or % sigplan + \@ACM@journalfalse + \or % sigchi + \@ACM@journalfalse +\or % sigchi-a + \@ACM@journalfalse + \@ACM@sigchiamodetrue +\or % acmengage + \@ACM@journalfalse + \@ACM@engagetrue +\or % acmcp + \@ACM@journaltrue + \@ACM@acmcptrue + \AtBeginDocument{\@ACM@printacmreffalse}% +\fi +\if@ACM@journal + \@ACM@journal@bibstriptrue + \@ACM@journal@bibstrip@or@togtrue +\else + \@ACM@journal@bibstripfalse +\fi +\ifx\ACM@fontsize\@empty + \ifcase\ACM@format@nr + \relax % manuscript + \def\ACM@fontsize{9pt}% + \or % acmsmall + \def\ACM@fontsize{10pt}% + \or % acmlarge + \def\ACM@fontsize{10pt}% + \or % acmtog + \def\ACM@fontsize{9pt}% + \or % sigconf + \def\ACM@fontsize{9pt}% + \or % siggraph + \def\ACM@fontsize{9pt}% + \or % sigplan + \def\ACM@fontsize{10pt}% + \or % sigchi + \def\ACM@fontsize{9pt}% + \or % sigchi-a + \def\ACM@fontsize{10pt}% + \or % acmengage + \def\ACM@fontsize{10pt}% + \or % acmcp + \def\ACM@fontsize{9pt}% + \fi +\fi +\ClassInfo{\@classname}{Using fontsize \ACM@fontsize} +\LoadClass[\ACM@fontsize, reqno]{amsart} +\RequirePackage{microtype} +\RequirePackage{etoolbox} +\RequirePackage{booktabs} +\RequirePackage{refcount} +\RequirePackage{totpages} +\RequirePackage{environ} +\if@ACM@manuscript +\RequirePackage{setspace} +\onehalfspacing +\fi +\if@ACM@acmcp +\RequirePackage{framed} +\RequirePackage{zref-savepos, zref-user} +\fi +\newdimen\@ACM@acmcp@delta +\@ACM@acmcp@delta=0pt\relax +\if@ACM@natbib + \RequirePackage{natbib} + \renewcommand{\bibsection}{% + \section*{\refname}% + \phantomsection\addcontentsline{toc}{section}{\refname}% + } + \renewcommand{\bibfont}{\bibliofont} + \renewcommand\setcitestyle[1]{ + \@for\@tempa:=#1\do + {\def\@tempb{round}\ifx\@tempa\@tempb + \renewcommand\NAT@open{(}\renewcommand\NAT@close{)}\fi + \def\@tempb{square}\ifx\@tempa\@tempb + \renewcommand\NAT@open{[}\renewcommand\NAT@close{]}\fi + \def\@tempb{angle}\ifx\@tempa\@tempb + \renewcommand\NAT@open{$<$}\renewcommand\NAT@close{$>$}\fi + \def\@tempb{curly}\ifx\@tempa\@tempb + \renewcommand\NAT@open{\{}\renewcommand\NAT@close{\}}\fi + \def\@tempb{semicolon}\ifx\@tempa\@tempb + \renewcommand\NAT@sep{;}\fi + \def\@tempb{colon}\ifx\@tempa\@tempb + \renewcommand\NAT@sep{;}\fi + \def\@tempb{comma}\ifx\@tempa\@tempb + \renewcommand\NAT@sep{,}\fi + \def\@tempb{authoryear}\ifx\@tempa\@tempb + \NAT@numbersfalse\fi + \def\@tempb{numbers}\ifx\@tempa\@tempb + \NAT@numberstrue\NAT@superfalse\fi + \def\@tempb{super}\ifx\@tempa\@tempb + \NAT@numberstrue\NAT@supertrue\fi + \def\@tempb{nobibstyle}\ifx\@tempa\@tempb + \let\bibstyle=\@gobble\fi + \def\@tempb{bibstyle}\ifx\@tempa\@tempb + \let\bibstyle=\@citestyle\fi + \def\@tempb{sort}\ifx\@tempa\@tempb + \def\NAT@sort{\@ne}\fi + \def\@tempb{nosort}\ifx\@tempa\@tempb + \def\NAT@sort{\z@}\fi + \def\@tempb{compress}\ifx\@tempa\@tempb + \def\NAT@cmprs{\@ne}\fi + \def\@tempb{nocompress}\ifx\@tempa\@tempb + \def\NAT@cmprs{\z@}\fi + \def\@tempb{sort&compress}\ifx\@tempa\@tempb + \def\NAT@sort{\@ne}\def\NAT@cmprs{\@ne}\fi + \def\@tempb{mcite}\ifx\@tempa\@tempb + \let\NAT@merge\@ne\fi + \def\@tempb{merge}\ifx\@tempa\@tempb + \@ifnum{\NAT@merge<\tw@}{\let\NAT@merge\tw@}{}\fi + \def\@tempb{elide}\ifx\@tempa\@tempb + \@ifnum{\NAT@merge<\thr@@}{\let\NAT@merge\thr@@}{}\fi + \def\@tempb{longnamesfirst}\ifx\@tempa\@tempb + \NAT@longnamestrue\fi + \def\@tempb{nonamebreak}\ifx\@tempa\@tempb + \def\NAT@nmfmt#1{\mbox{\NAT@up#1}}\fi + \expandafter\NAT@find@eq\@tempa=\relax\@nil + \if\@tempc\relax\else + \expandafter\NAT@rem@eq\@tempc + \def\@tempb{open}\ifx\@tempa\@tempb + \xdef\NAT@open{\@tempc}\fi + \def\@tempb{close}\ifx\@tempa\@tempb + \xdef\NAT@close{\@tempc}\fi + \def\@tempb{aysep}\ifx\@tempa\@tempb + \xdef\NAT@aysep{\@tempc}\fi + \def\@tempb{yysep}\ifx\@tempa\@tempb + \xdef\NAT@yrsep{\@tempc}\fi + \def\@tempb{notesep}\ifx\@tempa\@tempb + \xdef\NAT@cmt{\@tempc}\fi + \def\@tempb{citesep}\ifx\@tempa\@tempb + \xdef\NAT@sep{\@tempc}\fi + \fi + }% + \NAT@@setcites + } + \renewcommand\citestyle[1]{% + \ifcsname bibstyle@#1\endcsname% + \csname bibstyle@#1\endcsname\let\bibstyle\@gobble% + \else% + \@latex@error{Undefined `#1' citestyle}% + \fi + }% +\fi +\newcommand{\bibstyle@acmauthoryear}{% + \setcitestyle{% + authoryear,% + open={[},close={]},citesep={;},% + aysep={},yysep={,},% + notesep={, }}} +\newcommand{\bibstyle@acmnumeric}{% + \setcitestyle{% + numbers,sort&compress,% + open={[},close={]},citesep={,},% + notesep={, }}} +\if@ACM@natbib +\citestyle{acmnumeric} +\fi +\if@ACM@journal + \renewcommand\keywordsname{Additional Key Words and Phrases}% +\else + \renewcommand\keywordsname{Keywords}% +\fi +\if@ACM@engage + \renewcommand\abstractname{Synopsis}% +\fi +\ifx\ACM@languages\@empty +\else + \RequirePackage[\ACM@languages]{babel}% + \addto\captionsenglish{% + \if@ACM@journal + \renewcommand\keywordsname{Additional Key Words and Phrases}% + \else + \renewcommand\keywordsname{Keywords}% + \fi + \renewcommand\acksname{Acknowledgements}% + \if@ACM@engage + \renewcommand\abstractname{Synopsis}% + \fi + }% + \addto\captionsfrench{% + \if@ACM@journal + \renewcommand\keywordsname{Mots Clés et Phrases Supplémentaires}% + \else + \renewcommand\keywordsname{Mots clés}% + \fi + \renewcommand\acksname{Remerciements}% + }% + \addto\captionsgerman{% + \if@ACM@journal + \renewcommand\keywordsname{Zusätzliche Schlagwörter und Phrasen}% + \else + \renewcommand\keywordsname{Schlagwörter}% + \fi + \renewcommand\acksname{Danksagungen}% + }% + \addto\captionsspanish{% + \if@ACM@journal + \renewcommand\keywordsname{Palabras y Frases Claves Adicionales}% + \else + \renewcommand\keywordsname{Palabras claves}% + \fi + \renewcommand\acksname{Expresiones de gratitud}% + }% +\fi +\newcommand\ACM@lang@check[1]{% + \ifx\ACM@languages\@empty\relax + \ClassError{\@classname}{% + Command \string#1 \MessageBreak is used in monlingual document}{% + You used a command (\string#1) \MessageBreak + that does not have a meaning \MessageBreak + unless are languages are defined. \MessageBreak + Please choose the languages in \string\documentclass + \MessageBreak + (e.g. \string\documentclass[languages={french, english}]{acmart}), + \MessageBreak + or delete the command.}% + \fi} +\def\@translatedtitle{} +\newcommand\translatedtitle[2]{\ACM@lang@check{\translatedtitle}% +\g@addto@macro\@translatedtitle{\par\foreignlanguage{#1}{#2}}} +\def\@translatedsubtitle{} +\newcommand\translatedsubtitle[2]{\ACM@lang@check{\translatedsubtitle}% +\g@addto@macro\@translatedsubtitle{\par\foreignlanguage{#1}{#2}}} +\def\@translatedkeywords{} +\newcommand\translatedkeywords[2]{\ACM@lang@check{\translatedkeywords}% +\g@addto@macro\@translatedkeywords{\@mktranslatedkeywords{#1}{#2}}} +\def\@translatedabstracts{} +\newenvironment{translatedabstract}[1]{\Collect@Body + \@savetranslatedabstract\@mktranslatedabstract{#1}}{} +\long\def\@savetranslatedabstract#1{\if@ACM@maketitle@typeset + \ClassError{\@classname}{Abstract must be defined before maketitle + command. Please move it!}\fi + \ACM@lang@check{translatedabstract}% + \g@addto@macro\@translatedabstracts{\bgroup#1\egroup}} +\def\@startsection#1#2#3#4#5#6{% + \if@noskipsec \leavevmode \fi + \par + \@tempskipa #4\relax + \@afterindenttrue + \ifdim \@tempskipa <\z@ + \@tempskipa -\@tempskipa \@afterindentfalse + \fi + \if@nobreak + \everypar{}% + \else + \addpenalty\@secpenalty\addvspace\@tempskipa + \fi + \@ifstar + {\@ssect{#3}{#4}{#5}{#6}}% + {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}} +\def\@sect#1#2#3#4#5#6[#7]#8{% + \edef\@toclevel{\ifnum#2=\@m 0\else\number#2\fi}% + \ifnum #2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{#1}% + \protected@edef\@svsec{\@seccntformat{#1}\relax}% + \fi + \@tempskipa #5\relax + \ifdim \@tempskipa>\z@ + \begingroup + #6{% + \@hangfrom{\hskip #3\relax\@svsec}% + \interlinepenalty \@M #8\@@par}% + \endgroup + \csname #1mark\endcsname{#7}% + \ifnum #2>\c@secnumdepth \else + \@tochangmeasure{\csname the#1\endcsname}% + \fi + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}% + \else + \def\@svsechd{% + #6{\hskip #3\relax + \@svsec #8}% + \csname #1mark\endcsname{#7}% + \ifnum #2>\c@secnumdepth \else + \@tochangmeasure{\csname the#1\endcsname\space}% + \fi + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}}% + \fi + \@xsect{#5}} +\def\@xsect#1{% + \@tempskipa #1\relax + \ifdim \@tempskipa>\z@ + \par \nobreak + \vskip \@tempskipa + \@afterheading + \else + \@nobreakfalse + \global\@noskipsectrue + \everypar{% + \if@noskipsec + \global\@noskipsecfalse + {\setbox\z@\lastbox}% + \clubpenalty\@M + \begingroup \@svsechd \endgroup + \unskip + \@tempskipa #1\relax + \hskip -\@tempskipa + \else + \clubpenalty \@clubpenalty + \everypar{}% + \fi}% + \fi + \ignorespaces} +\def\@ssect#1#2#3#4#5{% + \@tempskipa #3\relax + \ifdim \@tempskipa>\z@ + \begingroup + #4{% + \@hangfrom{\hskip #1}% + \interlinepenalty \@M #5\@@par}% + \endgroup + \else + \def\@svsechd{#4{\hskip #1\relax #5}}% + \fi + \@xsect{#3}} +\def\@seccntformat#1{\csname the#1\endcsname\quad} +\def\@starttoc#1#2{\begingroup\makeatletter + \setTrue{#1}% + \par\removelastskip\vskip\z@skip + \@startsection{section}\@M\z@{\linespacing\@plus\linespacing}% + {.5\linespacing}{\centering\contentsnamefont}{#2}% + \@input{\jobname.#1}% + \if@filesw + \@xp\newwrite\csname tf@#1\endcsname + \immediate\@xp\openout\csname tf@#1\endcsname \jobname.#1\relax + \fi + \global\@nobreakfalse \endgroup + \addvspace{32\p@\@plus14\p@}% +} +\def\l@section{\@tocline{1}{0pt}{1pc}{2pc}{}} +\def\l@subsection{\@tocline{2}{0pt}{1pc}{3pc}{}} +\def\l@subsubsection{\@tocline{3}{0pt}{1pc}{5pc}{}} +\def\@makefntext{\noindent\@makefnmark} +\if@ACM@sigchiamode +\long\def\@footnotetext#1{\marginpar{% + \reset@font\small + \interlinepenalty\interfootnotelinepenalty + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% + \color@endgroup}}% +\fi +\long\def\@mpfootnotetext#1{% + \global\setbox\@mpfootins\vbox{% + \unvbox\@mpfootins + \reset@font\footnotesize + \hsize\columnwidth + \@parboxrestore + \protected@edef\@currentlabel + {\csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup\centering + \@makefntext{% + \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% + \color@endgroup}} +\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}} +\let\@footnotemark@nolink\@footnotemark +\let\@footnotetext@nolink\@footnotetext +\RequirePackage[bookmarksnumbered,unicode]{hyperref} +\RequirePackage{hyperxmp} +\pdfstringdefDisableCommands{% + \def\addtocounter#1#2{}% + \def\unskip{}% + \def\textbullet{- }% + \def\textrightarrow{ -> }% + \def\footnotemark{}% +} +\urlstyle{rm} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \urlstyle{sf} +\or % sigchi +\or % sigchi-a + \urlstyle{sf} +\or % acmengage +\or % acmcp +\fi +\AtEndPreamble{% + \if@ACM@urlbreakonhyphens + \def\do@url@hyp{\do\-}% + \fi + \if@ACM@screen + \hypersetup{colorlinks, + linkcolor=ACMPurple, + citecolor=ACMPurple, + urlcolor=ACMDarkBlue, + filecolor=ACMDarkBlue} + \else + \hypersetup{hidelinks} + \fi + \hypersetup{pdflang={en}, + pdfdisplaydoctitle}} +\if@ACM@natbib + \let\citeN\cite + \let\cite\citep + \let\citeANP\citeauthor + \let\citeNN\citeyearpar + \let\citeyearNP\citeyear + \let\citeNP\citealt + \DeclareRobustCommand\citeA + {\begingroup\NAT@swafalse + \let\NAT@ctype\@ne\NAT@partrue\NAT@fullfalse\NAT@open\NAT@citetp}% + \providecommand\newblock{}% +\else + \AtBeginDocument{% + \let\shortcite\cite% + \providecommand\citename[1]{#1}} +\fi +\newcommand\shortcite[2][]{% + \ifNAT@numbers\cite[#1]{#2}\else\citeyearpar[#1]{#2}\fi} +\def\bibliographystyle#1{% + \ifx\@begindocumenthook\@undefined\else + \expandafter\AtBeginDocument + \fi + {\if@filesw + \immediate\write\@auxout{\string\bibstyle{#1}}% + \fi}} +\RequirePackage{graphicx} +\RequirePackage[prologue]{xcolor} +\definecolor[named]{ACMBlue}{cmyk}{1,0.1,0,0.1} +\definecolor[named]{ACMYellow}{cmyk}{0,0.16,1,0} +\definecolor[named]{ACMOrange}{cmyk}{0,0.42,1,0.01} +\definecolor[named]{ACMRed}{cmyk}{0,0.90,0.86,0} +\definecolor[named]{ACMLightBlue}{cmyk}{0.49,0.01,0,0} +\definecolor[named]{ACMGreen}{cmyk}{0.20,0,1,0.19} +\definecolor[named]{ACMPurple}{cmyk}{0.55,1,0,0.15} +\definecolor[named]{ACMDarkBlue}{cmyk}{1,0.58,0,0.21} +\if@ACM@authordraft + \RequirePackage{draftwatermark} + \SetWatermarkFontSize{0.5in} + \SetWatermarkColor[gray]{.9} + \SetWatermarkText{\parbox{12em}{\centering + Unpublished working draft.\\ + Not for distribution.}} +\else + \if@ACM@sigchiamode + \if@ACM@nonacm\else + \RequirePackage{draftwatermark} + \SetWatermarkFontSize{0.5in} + \SetWatermarkColor[gray]{.9} + \SetWatermarkText{\parbox{12em}{\centering + Legacy document. \\ + Not for publication in an ACM venue}} + \fi + \fi +\fi +\RequirePackage{geometry} +\ifcase\ACM@format@nr +\relax % manuscript + \geometry{letterpaper,head=13pt, + marginparwidth=6pc,heightrounded}% +\or % acmsmall + \geometry{twoside=true, + includeheadfoot, head=13pt, foot=2pc, + paperwidth=6.75in, paperheight=10in, + top=58pt, bottom=44pt, inner=46pt, outer=46pt, + marginparwidth=2pc,heightrounded + }% +\or % acmlarge + \geometry{twoside=true, head=13pt, foot=2pc, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, + top=78pt, bottom=114pt, inner=81pt, outer=81pt, + marginparwidth=4pc,heightrounded + }% +\or % acmtog + \geometry{twoside=true, head=13pt, foot=2pc, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=24pt, + top=52pt, bottom=75pt, inner=52pt, outer=52pt, + marginparwidth=2pc,heightrounded + }% +\or % sigconf + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=57pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % siggraph + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=57pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % sigplan + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot=false, columnsep=2pc, + top=1in, bottom=1in, inner=0.75in, outer=0.75in, + marginparwidth=2pc,heightrounded + }% +\or % sigchi + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=66pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % sigchi-a + \geometry{twoside=false, head=13pt, + paperwidth=11in, paperheight=8.5in, + includeheadfoot, marginparsep=72pt, + marginparwidth=170pt, columnsep=20pt, + top=72pt, bottom=72pt, left=314pt, right=72pt + }% + \@mparswitchfalse + \reversemarginpar +\or % acmengage + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=57pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % acmcp + \geometry{twoside=true, + includeheadfoot, head=13pt, foot=2pc, + paperwidth=6.75in, paperheight=10in, + top=58pt, bottom=44pt, inner=46pt, outer=46pt, + marginparwidth=2pc,heightrounded + }% +\fi +\setlength\parindent{10\p@} +\setlength\parskip{\z@} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog + \setlength\parindent{9\p@}% +\or % sigconf +\or % siggraph +\or % sigplan +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\setlength\normalparindent{\parindent} +\def\copyrightpermissionfootnoterule{\kern-3\p@ + \hrule \@width \columnwidth \kern 2.6\p@} +\RequirePackage{manyfoot} +\SelectFootnoteRule[2]{copyrightpermission} +\DeclareNewFootnote{authorsaddresses} +\SelectFootnoteRule[2]{copyrightpermission} +\DeclareNewFootnote{copyrightpermission} +\def\footnoterule{\kern-3\p@ + \hrule \@width 4pc \kern 2.6\p@} +\def\endminipage{% + \par + \unskip + \ifvoid\@mpfootins\else + \vskip\skip\@mpfootins + \normalcolor + \unvbox\@mpfootins + \fi + \@minipagefalse + \color@endgroup + \egroup + \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}} +\def\@textbottom{\vskip \z@ \@plus 1pt} +\let\@texttop\relax +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog + \flushbottom +\or % sigconf + \flushbottom +\or % siggraph + \flushbottom +\or % sigplan + \flushbottom +\or % sigchi + \flushbottom +\or % sigchi-a +\or % acmengage + \flushbottom +\or % acmcp + \flushbottom +\fi +\ifPDFTeX +\input{glyphtounicode} +\pdfglyphtounicode{f_f}{FB00} +\pdfglyphtounicode{f_f_i}{FB03} +\pdfglyphtounicode{f_f_l}{FB04} +\pdfglyphtounicode{f_i}{FB01} +\pdfglyphtounicode{t_t}{0074 0074} +\pdfglyphtounicode{f_t}{0066 0074} +\pdfglyphtounicode{T_h}{0054 0068} +\pdfgentounicode=1 +\RequirePackage{cmap} +\fi +\newif\if@ACM@newfonts +\@ACM@newfontstrue +\IfFileExists{libertine.sty}{}{\ClassWarning{\@classname}{You do not + have the libertine package installed. Please upgrade your + TeX}\@ACM@newfontsfalse} +\IfFileExists{zi4.sty}{}{\ClassWarning{\@classname}{You do not + have the inconsolata (zi4.sty) package installed. Please upgrade your + TeX}\@ACM@newfontsfalse} +\IfFileExists{newtxmath.sty}{}{\ClassWarning{\@classname}{You do not + have the newtxmath package installed. Please upgrade your + TeX}\@ACM@newfontsfalse} +\if@ACM@newfonts + \ifxetex + \RequirePackage{amssymb} + \RequirePackage{unicode-math} + \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf} + \setmathfont{latinmodern-math.otf}[range={cal}] + \RequirePackage[tt=false]{libertine} + \setmonofont[StylisticSet=3]{inconsolata} + \else + \ifluatex + \RequirePackage{amssymb} + \RequirePackage{unicode-math} + \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf} + \setmathfont{latinmodern-math.otf}[range={cal}] + \RequirePackage[tt=false]{libertine} + \setmonofont[StylisticSet=3]{inconsolata} + \else + \RequirePackage[T1]{fontenc} + \RequirePackage[tt=false, type1=true]{libertine} + \RequirePackage[varqu]{zi4} + \RequirePackage[libertine]{newtxmath} + \fi + \fi +\fi +\let\liningnums\@undefined +\AtEndPreamble{% + \DeclareTextFontCommand{\liningnums}{\libertineLF}} +\if@ACM@sigchiamode + \renewcommand{\familydefault}{\sfdefault} +\fi +\newif\if@Description@present +\@Description@presenttrue +\newif\if@undescribed@images +\@undescribed@imagesfalse +\newcommand\Description[2][]{\global\@Description@presenttrue\ignorespaces} +\AtEndDocument{\if@undescribed@images + \ClassWarningNoLine{\@classname}{Some images may lack + descriptions.\MessageBreak + ACM is committed to complying with the upcoming US ADA + https://accessiblyapp.com/accessibility-compliance/ada/ and European + Accessibility Act + (EAA) https://accessiblyapp.com/accessibility-compliance/eaa/ + regulations by actively working to ensure our publications and + application services are accessible to individuals with + disabilities, adhering to the WCAG guidelines to provide a seamless + experience for all users, and regularly reviewing our accessibility + practices to maintain compliance with evolving standards. \MessageBreak + To this end, we strongly encourage our authors to provide + alternative text and captions for images and multimedia content. It + is also important to optimize color contrast for the visually + impaired. Taking these important steps when creating your papers + will ensure that the widest possible audience can ingest your + work.}\fi} +\AtBeginEnvironment{figure}{\@Description@presentfalse + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{figure*}{\@Description@presentfalse + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtEndEnvironment{figure}{\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description}\fi} +\AtEndEnvironment{figure*}{\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description}\fi} +\AtBeginEnvironment{table}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{table*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{algorithm}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{algorithm*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstlisting}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstlisting*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{minted}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{minted*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{listing}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{listing*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstinputlisting}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstinputlisting*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} + +\RequirePackage{caption, float} +\captionsetup[table]{position=top} +\if@ACM@journal + \captionsetup{labelfont={sf, small}, + textfont={sf, small}, margin=\z@} + \captionsetup[figure]{name={Fig.}} +\else + \captionsetup{labelfont={bf}, + textfont={bf}, labelsep=colon, margin=\z@} + \ifcase\ACM@format@nr + \relax % manuscript + \or % acmsmall + \or % acmlarge + \or % acmtog + \or % sigconf + \or % siggraph + \captionsetup{textfont={it}} + \or % sigplan + \captionsetup{labelfont={bf}, + textfont={normalfont}, labelsep=period, margin=\z@} + \or % sigchi + \captionsetup[figure]{labelfont={bf, small}, + textfont={bf, small}} + \captionsetup[table]{labelfont={bf, small}, + textfont={bf, small}} + \or % sigchi-a + \captionsetup[figure]{labelfont={bf, small}, + textfont={bf, small}} + \captionsetup[table]{labelfont={bf, small}, + textfont={bf, small}} + \or % acmengage + \or % acmcp + \fi +\fi +\newfloat{sidebar}{}{sbar} +\floatname{sidebar}{Sidebar} +\renewenvironment{sidebar}{\Collect@Body\@sidebar}{} +\long\def\@sidebar#1{\bgroup\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig\captionsetup{type=sidebar}% + \marginpar{\small#1}\egroup} +\newenvironment{marginfigure}{\Collect@Body\@marginfigure}{} +\long\def\@marginfigure#1{\bgroup + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \captionsetup{type=figure}% + \marginpar{\@Description@presentfalse\centering + \small#1\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description} + \fi}% + \egroup} +\newenvironment{margintable}{\Collect@Body\@margintable}{} +\long\def\@margintable#1{\bgroup\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig\captionsetup{type=table}% + \marginpar{\centering\small#1}\egroup} +\newdimen\fulltextwidth +\fulltextwidth=\dimexpr(\textwidth+\marginparwidth+\marginparsep) +\if@ACM@sigchiamode +\def\@dblfloat{\bgroup\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig\columnwidth=\fulltextwidth + \let\@endfloatbox\@endwidefloatbox + \def\@fpsadddefault{\def\@fps{tp}}% + \@float} +\fi +\if@ACM@sigchiamode +\def\end@dblfloat{% + \end@float\egroup} +\fi +\def\@endwidefloatbox{% + \par\vskip\z@skip + \@minipagefalse + \outer@nobreak + \egroup + \color@endbox + \global\setbox\@currbox=\vbox{\moveleft + \dimexpr(\fulltextwidth-\textwidth)\box\@currbox}% + \wd\@currbox=\textwidth +} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan +\def\labelenumi{\theenumi.} +\def\labelenumii{\theenumii.} +\def\labelenumiii{\theenumiii.} +\def\labelenumiv{\theenumiv.} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\newdimen\@ACM@labelwidth +\AtBeginDocument{% + \setlength\labelsep{4pt} + \setlength{\@ACM@labelwidth}{6.5pt} + + %% First-level list: when beginning after the first line of an + %% indented paragraph or ending before an indented paragraph, labels + %% should not hang to the left of the preceding/following text. + \setlength\leftmargini{\z@} + \addtolength\leftmargini{\parindent} + \addtolength\leftmargini{2\labelsep} + \addtolength\leftmargini{\@ACM@labelwidth} + + %% Second-level and higher lists. + \setlength\leftmarginii{\z@} + \addtolength\leftmarginii{0.5\labelsep} + \addtolength\leftmarginii{\@ACM@labelwidth} + \setlength\leftmarginiii{\leftmarginii} + \setlength\leftmarginiv{\leftmarginiii} + \setlength\leftmarginv{\leftmarginiv} + \setlength\leftmarginvi{\leftmarginv} + \@listi} +\newskip\listisep +\listisep\smallskipamount +\def\@listI{\leftmargin\leftmargini + \labelwidth\leftmargini \advance\labelwidth-\labelsep + \listparindent\z@ + \topsep\listisep} +\let\@listi\@listI +\def\@listii{\leftmargin\leftmarginii + \labelwidth\leftmarginii \advance\labelwidth-\labelsep + \topsep\z@skip} +\def\@listiii{\leftmargin\leftmarginiii + \labelwidth\leftmarginiii \advance\labelwidth-\labelsep} +\def\@listiv{\leftmargin\leftmarginiv + \labelwidth\leftmarginiv \advance\labelwidth-\labelsep} +\def\@listv{\leftmargin\leftmarginv + \labelwidth\leftmarginv \advance\labelwidth-\labelsep} +\def\@listvi{\leftmargin\leftmarginvi + \labelwidth\leftmarginvi \advance\labelwidth-\labelsep} +\renewcommand{\descriptionlabel}[1]{\upshape\bfseries #1} +\renewenvironment{description}{\list{}{% + \labelwidth\@ACM@labelwidth + \let\makelabel\descriptionlabel}% +}{ + \endlist +} +\let\enddescription=\endlist % for efficiency +\newif\if@ACM@maketitle@typeset +\@ACM@maketitle@typesetfalse +\define@choicekey*+{ACM}{acmJournal}[\@journalCode\@journalCode@nr]{% + ACMJCSS,% + ACMJDS,% + AILET,% + CIE,% + CSUR,% + DGOV,% + DLT,% + DTRAP,% + FAC,% + GAMES,% + HEALTH,% + IMWUT,% + JACM,% + JATS,% + JDIQ,% + JDS,% + JEA,% + JERIC,% + JETC,% + JOCCH,% + JRC,% + PACMCGIT,% + PACMHCI,% + PACMMOD,% + PACMNET,% + PACMPL,% + PACMSE,% + POMACS,% + TAAS,% + TACCESS,% + TACO,% + TAIS,% + TAISAP,% + TALG,% + TALLIP,% + TAP,% + TCPS,% + TDS,% + TEAC,% + TECS,% + TELO,% + THRI,% + TIIS,% + TIOT,% + TISSEC,% + TIST,% + TKDD,% + TMIS,% + TOCE,% + TOCHI,% + TOCL,% + TOCS,% + TOCT,% + TODAES,% + TODS,% + TOG,% + TOIS,% + TOIT,% + TOMACS,% + TOMM,% + TOMPECS,% + TOMS,% + TOPC,% + TOPLAS,% + TOPML,% + TOPS,% + TORS,% + TOS,% + TOSEM,% + TOSN,% + TQC,% + TRETS,% + TSAS,% + TSC,% + TSLP,% + TWEB,% + FACMP% +}{% +\ifcase\@journalCode@nr +\relax % ACMJCSS + \def\@journalName{ACM Journal on Computing and Sustainable Societies}% + \def\@journalNameShort{ACM J. Comput. Sustain. Soc.}% + \def\@permissionCodeOne{2834-5533}% + \def\@permissionCodeTwo{2834-5533}% +\or % ACMJCDS + \def\@journalName{ACM Journal of Data Science}% + \def\@journalNameShort{ACM J. Data Sci.}% + \def\@permissionCodeOne{0000-0000}% + \def\@permissionCodeTwo{0000-0000}% +\or % AILET + \def\@journalName{ACM AI Letters}% + \def\@journalNameShort{ACM AI Lett.}% + \def\@permissionCodeOne{3068-8590}% + \def\@permissionCodeTwo{3068-8590}% +\or % CIE + \def\@journalName{ACM Computers in Entertainment}% + \def\@journalNameShort{ACM Comput. Entertain.}% + \def\@permissionCodeOne{1544-3574}% +\or % CSUR + \def\@journalName{ACM Computing Surveys}% + \def\@journalNameShort{ACM Comput. Surv.}% + \def\@permissionCodeOne{0360-0300}% + \def\@permissionCodeTwo{1557-7341}% +\or % DGOV + \def\@journalName{Digital Government: Research and Practice}% + \def\@journalNameShort{Digit. Gov. Res. Pract.}% + \def\@permissionCodeOne{2639-0175}% + \def\@permissionCodeTwo{2639-0175}% +\or % DLT + \def\@journalName{Distributed Ledger Technologies: Research and Practice}% + \def\@journalNameShort{Distrib. Ledger Technol.}% + \def\@permissionCodeOne{2769-6472}% + \def\@permissionCodeTwo{2769-6480}% +\or % DTRAP + \def\@journalName{Digital Threats: Research and Practice}% + \def\@journalNameShort{Digit. Threat. Res. Pract.}% + \def\@permissionCodeOne{2576-5337}% + \def\@permissionCodeTwo{2576-5337}% +\or % FAC + \def\@journalName{Formal Aspects of Computing}% + \def\@journalNameShort{Form. Asp. Comput.}% + \def\@permissionCodeOne{0934-5043}% + \def\@permissionCodeTwo{1433-299X}% +\or % GAMES + \def\@journalName{ACM Games: Research and Practice}% + \def\@journalNameShort{ACM Games}% + \def\@permissionCodeOne{2832-5516}% + \def\@permissionCodeTwo{2832-5516}% +\or % HEALTH + \def\@journalName{ACM Transactions on Computing for Healthcare}% + \def\@journalNameShort{ACM Trans. Comput. Healthcare}% + \def\@permissionCodeOne{2637-8051}% + \def\@permissionCodeTwo{2637-8051}% +\or % IMWUT + \def\@journalName{Proceedings of the ACM on Interactive, Mobile, + Wearable and Ubiquitous Technologies}% + \def\@journalNameShort{Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.}% + \def\@permissionCodeOne{2474-9567}% + \def\@permissionCodeTwo{2474-9567}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % JACM + \def\@journalName{Journal of the ACM}% + \def\@journalNameShort{J. ACM}% + \def\@permissionCodeOne{0004-5411}% + \def\@permissionCodeTwo{1557-735X}% +\or % JATS + \def\@journalName{Journal on Autonomous Transportation Systems}% + \def\@journalNameShort{ACM J. Auton. Transport. Syst.}% + \def\@permissionCodeOne{2833-0528}% + \def\@permissionCodeTwo{2833-0528}% +\or % JDIQ + \def\@journalName{ACM Journal of Data and Information Quality}% + \def\@journalNameShort{ACM J. Data Inform. Quality}% + \def\@permissionCodeOne{1936-1955}% + \def\@permissionCodeTwo{1936-1963}% +\or % JDS + \def\@journalName{ACM/IMS Journal of Data Science}% + \def\@journalNameShort{ACM/IMS J. Data Sci.}% + \def\@permissionCodeOne{2831-3194}% + \def\@permissionCodeTwo{2831-3194}% +\or % JEA + \def\@journalName{ACM Journal of Experimental Algorithmics}% + \def\@journalNameShort{ACM J. Exp. Algor.}% + \def\@permissionCodeOne{1084-6654}% + \def\@permissionCodeTwo{1084-6654}% +\or % JERIC + \def\@journalName{ACM Journal of Educational Resources in Computing}% + \def\@journalNameShort{ACM J. Edu. Resources in Comput.}% + \def\@permissionCodeOne{1073-0516}% +\or % JETC + \def\@journalName{ACM Journal on Emerging Technologies in Computing Systems}% + \def\@journalNameShort{ACM J. Emerg. Technol. Comput. Syst.}% + \def\@permissionCodeOne{1550-4832}% + \def\@permissionCodeTwo{1550-4840}% +\or % JOCCH + \def\@journalName{ACM Journal on Computing and Cultural Heritage}% + \def\@journalNameShort{ACM J. Comput. Cult. Herit.}% + \def\@permissionCodeOne{1556-4673}% + \def\@permissionCodeTwo{1556-4711}% +\or % JRC + \def\@journalName{ACM Journal on Responsible Computing}% + \def\@journalNameShort{ACM J. Responsib. Comput.}% + \def\@permissionCodeOne{2832-0565}% + \def\@permissionCodeTwo{2832-0565}% +\or % PACMCGIT + \def\@journalName{Proceedings of the ACM on Computer Graphics and Interactive Techniques}% + \def\@journalNameShort{Proc. ACM Comput. Graph. Interact. Tech.}% + \def\@permissionCodeOne{2577-6193}% + \def\@permissionCodeTwo{2577-6193}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % PACMHCI + \def\@journalName{Proceedings of the ACM on Human-Computer Interaction}% + \def\@journalNameShort{Proc. ACM Hum.-Comput. Interact.}% + \def\@permissionCodeOne{2573-0142}% + \def\@permissionCodeTwo{2573-0142}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % PACMMOD + \def\@journalName{Proceedings of the ACM on Management of Data}% + \def\@journalNameShort{Proc. ACM Manag. Data}% + \def\@permissionCodeOne{2836-6573}% + \def\@permissionCodeTwo{2836-6573}% +\or % PACMNET + \def\@journalName{Proceedings of the ACM on Networkng}% + \def\@journalNameShort{Proc. ACM Netw.}% + \def\@permissionCodeOne{2834-5509}% + \def\@permissionCodeTwo{2834-5509}% +\or % PACMPL + \def\@journalName{Proceedings of the ACM on Programming Languages}% + \def\@journalNameShort{Proc. ACM Program. Lang.}% + \def\@permissionCodeOne{2475-1421}% + \def\@permissionCodeTwo{2475-1421}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % PACMSE + \def\@journalName{Proceedings of the ACM on Software Engineering}% + \def\@journalNameShort{Proc. ACM Softw. Eng.}% + \def\@permissionCodeOne{2994-970X}% + \def\@permissionCodeTwo{2994-970X}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % POMACS + \def\@journalName{Proceedings of the ACM on Measurement and Analysis of Computing Systems}% + \def\@journalNameShort{Proc. ACM Meas. Anal. Comput. Syst.}% + \def\@permissionCodeOne{2476-1249}% + \def\@permissionCodeTwo{2476-1249}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % TAAS + \def\@journalName{ACM Transactions on Autonomous and Adaptive Systems}% + \def\@journalNameShort{ACM Trans. Autonom. Adapt. Syst.}% + \def\@permissionCodeOne{1556-4665}% + \def\@permissionCodeTwo{1556-4703}% +\or % TACCESS + \def\@journalName{ACM Transactions on Accessible Computing}% + \def\@journalNameShort{ACM Trans. Access. Comput.}% + \def\@permissionCodeOne{1936-7228}% + \def\@permissionCodeTwo{1936-7236}% +\or % TACO + \def\@journalName{ACM Transactions on Architecture and Code Optimization}% + \def\@journalNameShort{ACM Trans. Arch. Code Optim.}% + \def\@permissionCodeOne{1544-3566}% + \def\@permissionCodeTwo{1544-3973}% +\or % TAIS + \def\@journalName{ACM Transactions on AI for Science}% + \def\@journalNameShort{ACM Trans. AI Sci.}% + \def\@permissionCodeOne{3066-4438}% + \def\@permissionCodeTwo{3066-4438}% +\or % TAISAP + \def\@journalName{ACM Transactions on AI Security and Privacy}% + \def\@journalNameShort{ACM Trans. AI Secur. Priv.}% + \def\@permissionCodeOne{3068-3564}% + \def\@permissionCodeTwo{3068-3564}% +\or % TALG + \def\@journalName{ACM Transactions on Algorithms}% + \def\@journalNameShort{ACM Trans. Algor.}% + \def\@permissionCodeOne{1549-6325}% + \def\@permissionCodeTwo{1549-6333}% +\or % TALLIP + \def\@journalName{ACM Transactions on Asian and Low-Resource Language Information Processing}% + \def\@journalNameShort{ACM Trans. Asian Low-Resour. Lang. Inf. Process.}% + \def\@permissionCodeOne{2375-4699}% + \def\@permissionCodeTwo{2375-4702}% +\or % TAP + \def\@journalName{ACM Transactions on Applied Perception}% + \def\@journalNameShort{ACM Trans. Appl. Percept.}% + \def\@permissionCodeOne{1544-3558}% + \def\@permissionCodeTwo{1544-3965}% +\or % TCPS + \def\@journalName{ACM Transactions on Cyber-Physical Systems}% + \def\@journalNameShort{ACM Trans. Cyber-Phys. Syst.}% + \def\@permissionCodeOne{2378-962X}% + \def\@permissionCodeTwo{2378-9638}% +\or % TDS + \def\@journalName{ACM/IMS Transactions on Data Science}% + \def\@journalNameShort{ACM/IMS Trans. Data Sci.}% + \def\@permissionCodeOne{2577-3224}% +\or % TEAC + \def\@journalName{ACM Transactions on Economics and Computation}% + \def\@journalNameShort{ACM Trans. Econ. Comput.}% + \def\@permissionCodeOne{2167-8375}% + \def\@permissionCodeTwo{2167-8383}% +\or % TECS + \def\@journalName{ACM Transactions on Embedded Computing Systems}% + \def\@journalNameShort{ACM Trans. Embedd. Comput. Syst.}% + \def\@permissionCodeOne{1539-9087}% + \def\@permissionCodeTwo{1558-3465}% +\or % TELO + \def\@journalName{ACM Transactions on Evolutionary Learning and Optimization}% + \def\@journalNameShort{ACM Trans. Evol. Learn. Optim.}% + \def\@permissionCodeOne{2688-299X}% + \def\@permissionCodeTwo{2688-3007}% +\or % THRI + \def\@journalName{ACM Transactions on Human-Robot Interaction}% + \def\@journalNameShort{ACM Trans. Hum.-Robot Interact.}% + \def\@permissionCodeOne{2573-9522}% + \def\@permissionCodeTwo{2573-9522}% +\or % TIIS + \def\@journalName{ACM Transactions on Interactive Intelligent Systems}% + \def\@journalNameShort{ACM Trans. Interact. Intell. Syst.}% + \def\@permissionCodeOne{2160-6455}% + \def\@permissionCodeTwo{2160-6463}% +\or % TIOT + \def\@journalName{ACM Transactions on Internet of Things}% + \def\@journalNameShort{ACM Trans. Internet Things}% + \def\@permissionCodeOne{2577-6207}% + \def\@permissionCodeTwo{2577-6207}% +\or % TISSEC + \def\@journalName{ACM Transactions on Information and System Security}% + \def\@journalNameShort{ACM Trans. Info. Syst. Sec.}% + \def\@permissionCodeOne{1094-9224}% +\or % TIST + \def\@journalName{ACM Transactions on Intelligent Systems and Technology}% + \def\@journalNameShort{ACM Trans. Intell. Syst. Technol.}% + \def\@permissionCodeOne{2157-6904}% + \def\@permissionCodeTwo{2157-6912}% +\or % TKDD + \def\@journalName{ACM Transactions on Knowledge Discovery from Data}% + \def\@journalNameShort{ACM Trans. Knowl. Discov. Data.}% + \def\@permissionCodeOne{1556-4681}% + \def\@permissionCodeTwo{1556-472X}% +\or % TMIS + \def\@journalName{ACM Transactions on Management Information Systems}% + \def\@journalNameShort{ACM Trans. Manag. Inform. Syst.}% + \def\@permissionCodeOne{2158-656X}% + \def\@permissionCodeTwo{2158-6578}% +\or % TOCE + \def\@journalName{ACM Transactions on Computing Education}% + \def\@journalNameShort{ACM Trans. Comput. Educ.}% + \def\@permissionCodeOne{1946-6226}% + \def\@permissionCodeTwo{1946-6226}% +\or % TOCHI + \def\@journalName{ACM Transactions on Computer-Human Interaction}% + \def\@journalNameShort{ACM Trans. Comput.-Hum. Interact.}% + \def\@permissionCodeOne{1073-0516}% + \def\@permissionCodeTwo{1557-7325}% +\or % TOCL + \def\@journalName{ACM Transactions on Computational Logic}% + \def\@journalNameShort{ACM Trans. Comput. Logic}% + \def\@permissionCodeOne{1529-3785}% + \def\@permissionCodeTwo{1557-945X}% +\or % TOCS + \def\@journalName{ACM Transactions on Computer Systems}% + \def\@journalNameShort{ACM Trans. Comput. Syst.}% + \def\@permissionCodeOne{0734-2071}% + \def\@permissionCodeTwo{1557-7333}% +\or % TOCT + \def\@journalName{ACM Transactions on Computation Theory}% + \def\@journalNameShort{ACM Trans. Comput. Theory}% + \def\@permissionCodeOne{1942-3454}% + \def\@permissionCodeTwo{1942-3462}% +\or % TODAES + \def\@journalName{ACM Transactions on Design Automation of Electronic Systems}% + \def\@journalNameShort{ACM Trans. Des. Autom. Electron. Syst.}% + \def\@permissionCodeOne{1084-4309}% + \def\@permissionCodeTwo{1557-7309}% +\or % TODS + \def\@journalName{ACM Transactions on Database Systems}% + \def\@journalNameShort{ACM Trans. Datab. Syst.}% + \def\@permissionCodeOne{0362-5915}% + \def\@permissionCodeTwo{1557-4644}% +\or % TOG + \def\@journalName{ACM Transactions on Graphics}% + \def\@journalNameShort{ACM Trans. Graph.}% + \def\@permissionCodeOne{0730-0301}% + \def\@permissionCodeTwo{1557-7368}% +\or % TOIS + \def\@journalName{ACM Transactions on Information Systems}% + \def\@journalNameShort{ACM Trans. Inf. Syst.}% + \def\@permissionCodeOne{1046-8188}% + \def\@permissionCodeTwo{1558-2868}% +\or % TOIT + \def\@journalName{ACM Transactions on Internet Technology}% + \def\@journalNameShort{ACM Trans. Internet Technol.}% + \def\@permissionCodeOne{1533-5399}% + \def\@permissionCodeTwo{1557-6051}% +\or % TOMACS + \def\@journalName{ACM Transactions on Modeling and Computer Simulation}% + \def\@journalNameShort{ACM Trans. Model. Comput. Simul.}% + \def\@permissionCodeOne{1049-3301}% + \def\@permissionCodeTwo{1558-1195}% +\or % TOMM + \def\@journalName{ACM Transactions on Multimedia Computing, Communications and Applications}% + \def\@journalNameShort{ACM Trans. Multimedia Comput. Commun. Appl.}% + \def\@permissionCodeOne{1551-6857}% + \def\@permissionCodeTwo{1551-6865}% +\or % TOMPECS + \def\@journalName{ACM Transactions on Modeling and Performance Evaluation of Computing Systems}% + \def\@journalNameShort{ACM Trans. Model. Perform. Eval. Comput. Syst.}% + \def\@permissionCodeOne{2376-3639}% + \def\@permissionCodeTwo{2376-3647}% +\or % TOMS + \def\@journalName{ACM Transactions on Mathematical Software}% + \def\@journalNameShort{ACM Trans. Math. Softw.}% + \def\@permissionCodeOne{0098-3500}% + \def\@permissionCodeTwo{1557-7295}% +\or % TOPC + \def\@journalName{ACM Transactions on Parallel Computing}% + \def\@journalNameShort{ACM Trans. Parallel Comput.}% + \def\@permissionCodeOne{2329-4949}% + \def\@permissionCodeTwo{2329-4957}% +\or % TOPLAS + \def\@journalName{ACM Transactions on Programming Languages and Systems}% + \def\@journalNameShort{ACM Trans. Program. Lang. Syst.}% + \def\@permissionCodeOne{0164-0925}% + \def\@permissionCodeTwo{1558-4593}% +\or % TOPML + \def\@journalName{ACM Transactions on Probabilistic Machine Learning}% + \def\@journalNameShort{ACM Trans. Probab. Mach. Learn.}% + \def\@permissionCodeOne{2836-8924}% + \def\@permissionCodeTwo{2836-8924}% +\or % TOPS + \def\@journalName{ACM Transactions on Privacy and Security}% + \def\@journalNameShort{ACM Trans. Priv. Sec.}% + \def\@permissionCodeOne{2471-2566}% + \def\@permissionCodeTwo{2471-2574}% +\or % TORS + \def\@journalName{ACM Transactions on Recommender Systems}% + \def\@journalNameShort{ACM Trans. Recomm. Syst.}% + \def\@permissionCodeOne{2770-6699}% + \def\@permissionCodeTwo{2770-6699}% +\or % TOS + \def\@journalName{ACM Transactions on Storage}% + \def\@journalNameShort{ACM Trans. Storage}% + \def\@permissionCodeOne{1553-3077}% + \def\@permissionCodeTwo{1553-3093}% +\or % TOSEM + \def\@journalName{ACM Transactions on Software Engineering and Methodology}% + \def\@journalNameShort{ACM Trans. Softw. Eng. Methodol.}% + \def\@permissionCodeOne{1049-331X}% + \def\@permissionCodeTwo{1557-7392}% +\or % TOSN + \def\@journalName{ACM Transactions on Sensor Networks}% + \def\@journalNameShort{ACM Trans. Sensor Netw.}% + \def\@permissionCodeOne{1550-4859}% + \def\@permissionCodeTwo{1550-4867}% +\or % TQC + \def\@journalName{ACM Transactions on Quantum Computing}% + \def\@journalNameShort{ACM Trans. Quantum Comput.}% + \def\@permissionCodeOne{2643-6817}% + \def\@permissionCodeTwo{2643-6817}% +\or % TRETS + \def\@journalName{ACM Transactions on Reconfigurable Technology and Systems}% + \def\@journalNameShort{ACM Trans. Reconfig. Technol. Syst.}% + \def\@permissionCodeOne{1936-7406}% + \def\@permissionCodeTwo{1936-7414}% +\or % TSAS + \def\@journalName{ACM Transactions on Spatial Algorithms and Systems}% + \def\@journalNameShort{ACM Trans. Spatial Algorithms Syst.}% + \def\@permissionCodeOne{2374-0353}% + \def\@permissionCodeTwo{2374-0361}% +\or % TSC + \def\@journalName{ACM Transactions on Social Computing}% + \def\@journalNameShort{ACM Trans. Soc. Comput.}% + \def\@permissionCodeOne{2469-7818}% + \def\@permissionCodeTwo{2469-7826}% +\or % TSLP + \def\@journalName{ACM Transactions on Speech and Language Processing}% + \def\@journalNameShort{ACM Trans. Speech Lang. Process.}% + \def\@permissionCodeOne{1550-4875}% + \def\@permissionCodeTwo{2329-9304}% +\or % TWEB + \def\@journalName{ACM Transactions on the Web}% + \def\@journalNameShort{ACM Trans. Web}% + \def\@permissionCodeOne{1559-1131}% + \def\@permissionCodeTwo{1559-114X}% +\else % FACMP, a dummy journal + \def\@journalName{ACM Just Accepted}% + \def\@journalNameShort{ACM Accepted}% + \def\@permissionCodeOne{XXXX-XXXX}% +\fi +\ClassInfo{\@classname}{Using journal code \@journalCode}% +}{% + \ClassError{\@classname}{Incorrect journal #1}% +}% +\def\acmJournal#1{\setkeys{ACM}{acmJournal=#1}% + \global\@ACM@journal@bibstriptrue + \global\@ACM@journal@bibstrip@or@togtrue} +\def\@journalCode@nr{0} +\def\@journalName{}% +\def\@journalNameShort{\@journalName}% +\def\@permissionCodeOne{XXXX-XXXX}% +\def\@permissionCodeTwo{\@permissionCodeOne}% +\newcommand\acmConference[4][]{% + \gdef\acmConference@shortname{#1}% + \gdef\acmConference@name{#2}% + \gdef\acmConference@date{#3}% + \gdef\acmConference@venue{#4}% + \ifx\acmConference@shortname\@empty + \gdef\acmConference@shortname{#2}% + \fi + \global\@ACM@journal@bibstripfalse + \ifx\@acmBooktitle\@empty\relax + \acmBooktitle{Proceedings of \acmConference@name + \ifx\acmConference@name\acmConference@shortname\else + \ (\acmConference@shortname)\fi}% + \fi +} +\if@ACM@journal\else +\acmConference[Conference'17]{ACM Conference}{July 2017}{Washington, + DC, USA}% +\fi +\def\acmBooktitle#1{\gdef\@acmBooktitle{#1}} +\acmBooktitle{} +\def\@editorsAbbrev{(Ed.)} +\def\@acmEditors{} +\def\editor#1{\ifx\@acmEditors\@empty + \gdef\@acmEditors{#1}% + \else + \gdef\@editorsAbbrev{(Eds.)}% + \g@addto@macro\@acmEditors{\and#1}% +\fi} +\def\subtitle#1{\def\@subtitle{#1}} +\subtitle{} +\newcount\num@authorgroups +\num@authorgroups=0\relax +\newcount\num@authors +\num@authors=0\relax +\newif\if@insideauthorgroup +\@insideauthorgroupfalse +\renewcommand\author[2][]{% + \IfSubStr{\detokenize{#2}}{,}{\ClassWarning{\@classname}{Do not put several + authors in the same \string\author\space macro!}}{}% + \global\advance\num@authors by 1\relax + \if@insideauthorgroup\else + \global\advance\num@authorgroups by 1\relax + \global\@insideauthorgrouptrue + \fi + \ifx\addresses\@empty + \if@ACM@anonymous + \gdef\addresses{\@author{Anonymous Author(s)% + \ifx\@acmSubmissionID\@empty\else\\Submission Id: + \@acmSubmissionID\fi}}% + \gdef\authors{Anonymous Author(s)}% + \else + \expandafter\gdef\expandafter\addresses\expandafter{% + \expandafter\@author\expandafter{% + \csname typeset@author\the\num@authors\endcsname{#2}}}% + \gdef\authors{#2}% + \fi + \else + \if@ACM@anonymous\else + \expandafter\g@addto@macro\expandafter\addresses\expandafter{% + \expandafter\and\expandafter\@author\expandafter{% + \csname typeset@author\the\num@authors\endcsname{#2}}}% + \g@addto@macro\authors{\and#2}% + \fi + \fi + \if@ACM@anonymous + \ifx\shortauthors\@empty + \gdef\shortauthors{Anon. + \ifx\@acmSubmissionID\@empty\else Submission Id: + \@acmSubmissionID\fi}% + \fi + \else + \def\@tempa{#1}% + \ifx\@tempa\@empty + \ifx\shortauthors\@empty + \gdef\shortauthors{#2}% + \else + \g@addto@macro\shortauthors{\and#2}% + \fi + \else + \ifx\shortauthors\@empty + \gdef\shortauthors{#1}% + \else + \g@addto@macro\shortauthors{\and#1}% + \fi + \fi + \fi} +\newcommand{\affiliation}[2][]{% + \global\@insideauthorgroupfalse + \if@ACM@anonymous\else + \g@addto@macro\addresses{\affiliation{#1}{#2}}% + \fi} +\define@boolkey+{@ACM@affiliation@}[@ACM@affiliation@]{obeypunctuation}% +[true]{}{\ClassError{\@classname}{The option obeypunctuation can be either true or false}} +\def\additionalaffiliation#1{\authornote{\@additionalaffiliation{#1}}} +\def\@additionalaffiliation#1{\bgroup + \def\position##1{\ignorespaces}% + \def\institution##1{##1\ignorespaces}% + \def\department{\@ifnextchar[{\@department}{\@department[]}}% + \def\@department[##1]##2{##2, \ignorespaces}% + \let\city\position + \let\state\position + \let\country\position + Also with #1\unskip.\egroup} +\renewcommand{\email}[2][]{% + \IfSubStr{#2}{,}{\ClassWarning{\@classname}{Do not put several + addresses in the same \string\email\space macro!}}{}% + \if@ACM@anonymous\else + \g@addto@macro\addresses{\email{#1}{#2}}% + \fi} +\def\orcid#1{\unskip\ignorespaces% + \protected\def\orcidsite{https://orcid.org/}% + \IfBeginWith{#1}{http}{% + \expandafter\gdef\csname + typeset@author\the\num@authors\endcsname##1{% + \href{#1}{##1}}}{% + \expandafter\gdef\csname + typeset@author\the\num@authors\endcsname##1{% + \href{\orcidsite#1}{##1}}}} +\def\authorsaddresses#1{\def\@authorsaddresses{#1}} +\authorsaddresses{\@mkauthorsaddresses} +\newcommand\@mktranslatedkeywords[2]{\bgroup + \selectlanguage{#1}% + {\@specialsection{\keywordsname}% + \noindent#2\par}\egroup} +\def\@titlenotes{} +\def\titlenote#1{% + \g@addto@macro\@title{\footnotemark}% + \if@ACM@anonymous + \g@addto@macro\@titlenotes{% + \stepcounter{footnote}\footnotetext{Title note}}% + \else + \g@addto@macro\@titlenotes{\stepcounter{footnote}\footnotetext{#1}}% + \fi} +\def\@subtitlenotes{} +\def\subtitlenote#1{% + \g@addto@macro\@subtitle{\footnotemark}% + \if@ACM@anonymous + \g@addto@macro\@subtitlenotes{% + \stepcounter{footnote}\footnotetext{Subtitle note}}% + \else + \g@addto@macro\@subtitlenotes{% + \stepcounter{footnote}\footnotetext{#1}}% + \fi} +\def\@authornotes{} +\def\authornote#1{% + \if@ACM@anonymous\else + \g@addto@macro\addresses{\@authornotemark}% + \g@addto@macro\@authornotes{% + \stepcounter{footnote}\footnotetext{#1}}% + \fi} +\newcommand\authornotemark[1][\relax]{% + \if@ACM@anonymous\else + \ifx#1\relax\relax\relax + \g@addto@macro\addresses{\@authornotemark}% + \else + \g@addto@macro\addresses{\@@authornotemark{#1}}% + \fi + \fi} +\def\acmVolume#1{\def\@acmVolume{#1}} +\acmVolume{1} +\def\acmNumber#1{\def\@acmNumber{#1}} +\acmNumber{1} +\def\acmArticle#1{\def\@acmArticle{#1}} +\acmArticle{} +\def\acmArticleSeq#1{\def\@acmArticleSeq{#1}} +\acmArticleSeq{\@acmArticle} +\def\acmYear#1{\def\@acmYear{#1}} +\acmYear{\the\year} +\def\acmMonth#1{\def\@acmMonth{#1}} +\acmMonth{\the\month} +\def\@acmPubDate{\ifcase\@acmMonth\or + January\or February\or March\or April\or May\or June\or + July\or August\or September\or October\or November\or + December\fi~\@acmYear} +\def\acmPrice#1{\ClassWarning{\@classname}{The macro \string\acmPrice + is obsolete. ACM no longer prints the price in bibstrip.}} +\def\acmSubmissionID#1{\def\@acmSubmissionID{#1}} +\acmSubmissionID{} +\def\acmISBN#1{\def\@acmISBN{#1}} +\acmISBN{978-x-xxxx-xxxx-x/YYYY/MM} +\def\acmDOI#1{\def\@acmDOI{#1}} +\acmDOI{10.1145/nnnnnnn.nnnnnnn} +\newlength\@ACM@badge@width +\setlength\@ACM@badge@width{3pc} +\newlength\@ACM@title@width +\newlength\@ACM@badge@skip +\setlength\@ACM@badge@skip{1pt} +\def\@acmBadgeR{} +\def\@acmBadgeL{} +\newcommand\acmBadgeR[2][]{% + \ifx\@acmBadgeR\@empty + \gdef\@acmBadgeR{% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \else + \g@addto@macro{\@acmBadgeR}{% + \hspace{\@ACM@badge@skip}% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \fi} +\newcommand\acmBadgeL[2][]{% + \ifx\@acmBadgeL\@empty + \gdef\@acmBadgeL{% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \else + \g@addto@macro{\@acmBadgeL}{% + \hspace{\@ACM@badge@skip}% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \fi} +\let\acmBadge=\acmBadgeR +\def\startPage#1{\def\@startPage{#1}} +\startPage{} +\def\terms#1{\ClassWarning{\@classname}{The command \string\terms{} is + obsolete. I am going to ignore it}} +\def\keywords#1{\def\@keywords{#1}} +\let\@keywords\@empty +\AtEndDocument{\if@ACM@nonacm\else\ifx\@keywords\@empty + \ifnum\getrefnumber{TotPages}>2\relax + \ClassWarningNoLine{\@classname}{ACM keywords are mandatory + for papers over two pages}% + \fi\fi\fi} +\renewenvironment{abstract}{\Collect@Body\@saveabstract}{} +\long\def\@saveabstract#1{\if@ACM@maketitle@typeset + \ClassError{\@classname}{Abstract must be defined before maketitle + command. Please move it!}\fi + \long\gdef\@abstract{#1}} +\@saveabstract{} +\long\def\@lempty{} +\define@boolkey+{@ACM@topmatter@}[@ACM@]{printccs}[true]{% + \if@ACM@printccs + \ClassInfo{\@classname}{Printing CCS}% + \else + \ClassInfo{\@classname}{Suppressing CCS}% + \fi}{\ClassError{\@classname}{The option printccs can be either true or false}} +\define@boolkey+{@ACM@topmatter@}[@ACM@]{printacmref}[true]{% + \if@ACM@printacmref + \ClassInfo{\@classname}{Printing bibformat}% + \else + \ClassInfo{\@classname}{Suppressing bibformat}% + \fi}{\ClassError{\@classname}{The option printacmref can be either true or false}} +\AtEndDocument{\if@ACM@nonacm\else\if@ACM@printacmref\else + \ifnum\getrefnumber{TotPages}>1\relax + \ClassWarningNoLine{\@classname}{% + ACM reference format is mandatory \MessageBreak + for papers over one page. \MessageBreak + Please add printacmref=true to the \MessageBreak + \string\settopmatter\space command.}% + \fi\fi\fi} +\define@boolkey+{@ACM@topmatter@}[@ACM@]{printfolios}[true]{% + \if@ACM@printfolios + \ClassInfo{\@classname}{Printing folios}% + \else + \ClassInfo{\@classname}{Suppressing folios}% + \fi}{\ClassError{\@classname}{The option printfolios can be either true or false}} +\define@cmdkey{@ACM@topmatter@}[@ACM@]{authorsperrow}[0]{% + \IfInteger{#1}{\ClassInfo{\@classname}{Setting authorsperrow to + #1}}{\ClassWarning{\@classname}{The parameter authorsperrow must be + numerical. Ignoring the input #1}\gdef\@ACM@authorsperrow{0}}} +\def\settopmatter#1{\setkeys{@ACM@topmatter@}{#1}} +\settopmatter{printccs=true, printacmref=true} +\if@ACM@manuscript + \settopmatter{printfolios=true} +\else + \if@ACM@journal + \settopmatter{printfolios=true} + \else + \settopmatter{printfolios=false} + \fi +\fi +\settopmatter{authorsperrow=0} +\def\@received{} +\newcommand\received[2][]{\def\@tempa{#1}% + \ifx\@tempa\@empty + \ifx\@received\@empty + \gdef\@received{Received #2}% + \else + \g@addto@macro{\@received}{; revised #2}% + \fi + \else + \ifx\@received\@empty + \gdef\@received{#1 #2}% + \else + \g@addto@macro{\@received}{; #1 #2}% + \fi + \fi} +\AtEndDocument{% + \ifx\@received\@empty\else + \par\bigskip\noindent{\small\normalfont\@received\par}% + \fi} +\define@choicekey+{ACM}{articletype}[\ACM@ArticleType\ACM@ArticleType@nr]{% + Research,Review,Discussion,Invited,Position}[Review]{% + \ifcase\ACM@ArticleType@nr + \relax % Research + \colorlet{@ACM@Article@color}{ACMBlue}% + \or % Review + \colorlet{@ACM@Article@color}{ACMOrange}% + \or % Discussion + \colorlet{@ACM@Article@color}{ACMGreen}% + \or % Invited + \colorlet{@ACM@Article@color}{ACMPurple}% + \or % Position + \colorlet{@ACM@Article@color}{ACMRed}% + \fi +}{% + \ClassError{\@classname}{Article Type must be Research, Review,\MessageBreak + Discussion, Invited, or Position}} +\def\acmArticleType#1{\setkeys{ACM}{articletype=#1}} +\if@ACM@acmcp +\acmArticleType{Research}% +\fi + % \end{macrocode} +\newenvironment{@ACM@color@frame}{% + \def\FrameCommand{\hspace*{-6.5pc}% + \colorbox{@ACM@Article@color!10!white}}% + \MakeFramed {\advance\hsize + -6.5pc\relax\FrameRestore}}{\zsaveposy{@ACM@acmcpframe@y}% + \endMakeFramed} +\def\acmCodeLink#1{% + \ifx\@acmCodeDataLink\@empty + \gdef\@acmCodeDataLink{\url{#1}}% + \else + \g@addto@macro{\@acmCodeDataLink}{\\ \url{#1}}% + \fi} +\def\@acmCodeDataLink{} +\def\acmContributions#1{\gdef\@acmContributions{#1}} +\acmContributions{} +\let\acmDataLink\acmCodeLink +\RequirePackage{comment} +\excludecomment{CCSXML} +\let\@concepts\@empty +\newcounter{@concepts} +\newcommand\ccsdesc[2][100]{% + \ccsdesc@parse#1~#2~~\ccsdesc@parse@end} +\def\textrightarrow{$\rightarrow$} +\def\ccsdesc@parse#1~#2~#3~{% + \stepcounter{@concepts}% + \expandafter\ifx\csname CCS@General@#2\endcsname\relax + \expandafter\gdef\csname CCS@General@#2\endcsname{\textbullet\ + \textbf{#2}}% + \expandafter\gdef\csname CCS@Punctuation@#2\endcsname{; }% + \expandafter\gdef\csname CCS@Specific@#2\endcsname{}% + \g@addto@macro{\@concepts}{\csname CCS@General@#2\endcsname + \csname CCS@Punctuation@#2\endcsname + \csname CCS@Specific@#2\endcsname}% + \fi + \ifx#3\relax\relax\else + \expandafter\gdef\csname CCS@Punctuation@#2\endcsname{ + \textrightarrow\ }% + \expandafter\g@addto@macro\expandafter{\csname CCS@Specific@#2\endcsname}{% + \addtocounter{@concepts}{-1}% + \ifnum#1>499\textbf{#3}\else + \ifnum#1>299\textit{#3}\else + #3\fi\fi\ifnum\value{@concepts}=0.\else; \fi}% + \fi +\ccsdesc@parse@finish} +\AtEndDocument{\if@ACM@nonacm\else\ifx\@concepts\@empty\relax + \ifnum\getrefnumber{TotPages}>2\relax + \ClassWarningNoLine{\@classname}{CCS concepts are mandatory + for papers over two pages}% + \fi\fi\fi} +\def\ccsdesc@parse@finish#1\ccsdesc@parse@end{} +\newif\if@printcopyright +\@printcopyrighttrue +\newif\if@printpermission +\@printpermissiontrue +\newif\if@acmowned +\@acmownedtrue +\define@choicekey*{ACM@}{acmcopyrightmode}[% + \acm@copyrightinput\acm@copyrightmode]{none,% + acmcopyright,acmlicensed,rightsretained,% + usgov,usgovmixed,cagov,cagovmixed,licensedusgovmixed,% + licensedcagov,licensedcagovmixed,othergov,licensedothergov,% + iw3c2w3,iw3c2w3g,cc}{% + \@printpermissiontrue + \@printcopyrighttrue + \@acmownedtrue + \ifnum\acm@copyrightmode=0\relax % none + \@printpermissionfalse + \@printcopyrightfalse + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=2\relax % acmlicensed + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=3\relax % rightsretained + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=4\relax % usgov + \@printpermissiontrue + \@printcopyrightfalse + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=6\relax % cagov + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=8\relax % licensedusgovmixed + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=9\relax % licensedcagov + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=10\relax % licensedcagovmixed + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=11\relax % othergov + \@acmownedtrue + \fi + \ifnum\acm@copyrightmode=12\relax % licensedothergov + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=13\relax % iw3c2w3 + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=14\relax % iw3c2w3g + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=15\relax % cc + \@acmownedfalse + \fi} +\def\setcopyright#1{\setkeys{ACM@}{acmcopyrightmode=#1}} +\setcopyright{acmlicensed} +\newcommand\setcctype[2][4.0]{% + \def\ACM@cc@version{#1}% + \def\ACM@cc@type{#2}} +\setcctype{by} +\def\@copyrightowner{% + \ifcase\acm@copyrightmode\relax % none + \or % acmcopyright + ACM\@. + \or % acmlicensed + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % rightsretained + Copyright held by the owner/author(s). + \or % usgov + \or % usgovmixed + Copyright held by the owner/author(s). + \or % cagov + Copyright Crown in Right of Canada. + \or %cagovmixed + Copyright held by the owner/author(s). + \or %licensedusgovmixed + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % licensedcagov + Copyright held by the owner/author(s). + \or %licensedcagovmixed + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % othergov + Copyright held by the owner/author(s). + \or % licensedothergov + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % ic2w3www + IW3C2 (International World Wide Web Conference Committee), published + under Creative Commons CC-BY~4.0 License. + \or % ic2w3wwwgoogle + IW3C2 (International World Wide Web Conference Committee), published + under Creative Commons CC-BY-NC-ND~4.0 License. + \or % cc + Copyright held by the owner/author(s). + \fi} +\def\@formatdoi#1{\url{https://doi.org/#1}} +\def\@copyrightpermission{% + \ifcase\acm@copyrightmode\relax % none + \or % acmcopyright + Permission to make digital or hard copies of all or part of this + work for personal or classroom use is granted without fee provided + that copies are not made or distributed for profit or commercial + advantage and that copies bear this notice and the full citation on + the first page. Copyrights for components of this work owned by + others than ACM must be honored. Abstracting with credit is + permitted. To copy otherwise, or republish, to post on servers or + to redistribute to lists, requires prior specific permission + and\hspace*{.5pt}/or + a fee. Request permissions from permissions@acm.org. + \or % acmlicensed + Permission to make digital or hard copies of all or part of this + work for personal or classroom use is granted without fee provided + that copies are not made or distributed for profit or commercial + advantage and that copies bear this notice and the full citation on + the first page. Copyrights for components of this work owned by + others than the author(s) must be honored. Abstracting with credit + is permitted. To copy otherwise, or republish, to post on servers + or to redistribute to lists, requires prior specific permission + and\hspace*{.5pt}/or a fee. Request permissions from + permissions@acm.org. + \or % rightsretained + Permission to make digital or hard copies of all or part of this + work for personal or classroom use is granted without fee provided + that copies are not made or distributed for profit or commercial + advantage and that copies bear this notice and the full citation on + the first page. Copyrights for third-party components of this work + must be honored. For all other uses, contact the + owner\hspace*{.5pt}/author(s). + \or % usgov + This paper is authored by an employee(s) of the United States + Government and is in the public domain. Non-exclusive copying or + redistribution is allowed, provided that the article citation is + given and the authors and agency are clearly identified as its + source. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % usgovmixed + ACM acknowledges that this contribution was authored or co-authored + by an employee, contractor, or affiliate of the United States + government. As such, the United States government retains a + nonexclusive, royalty-free right to publish or reproduce this + article, or to allow others to do so, for government purposes + only. Request permissions from owner\hspace*{.5pt}/author(s). + \or % cagov + This article was authored by employees of the Government of + Canada. As such, the Canadian government retains all interest in + the copyright to this work and grants to ACM a nonexclusive, + royalty-free right to publish or reproduce this article, or to + allow others to do so, provided that clear attribution is given + both to the authors and the Canadian government agency employing + them. Permission to make digital or hard copies for personal or + classroom use is granted. Copies must bear this notice and the full + citation on the first page. Copyrights for components of this work + owned by others than the Canadian Government must be honored. To + copy otherwise, distribute, republish, or post, requires prior + specific permission and/or a fee. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % cagovmixed + ACM acknowledges that this contribution was co-authored by an + affiliate of the national government of Canada. As such, the Crown + in Right of Canada retains an equal interest in the + copyright. Reprints must include clear attribution to ACM and the + author’s government agency affiliation. Permission to make digital + or hard copies for personal or classroom use is granted. Copies + must bear this notice and the full citation on the first + page. Copyrights for components of this work owned by others than + ACM must be honored. To copy otherwise, distribute, republish, or + post, requires prior specific permission and/or a fee. Request + permissions from owner\hspace*{.5pt}/author(s). + \or % licensedusgovmixed + Publication rights licensed to ACM\@. ACM acknowledges that this + contribution was authored or co-authored by an employee, contractor + or affiliate of the United States government. As such, the + Government retains a nonexclusive, royalty-free right to publish or + reproduce this article, or to allow others to do so, for Government + purposes only. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % licensedcagov + This article was authored by employees of the Government of + Canada. As such, the Canadian government retains all interest in + the copyright to this work and grants to ACM a nonexclusive, + royalty-free right to publish or reproduce this article, or to + allow others to do so, provided that clear attribution is given + both to the authors and the Canadian government agency employing + them. Permission to make digital or hard copies for personal or + classroom use is granted. Copies must bear this notice and the full + citation on the first page. Copyrights for components of this work + owned by others than the Canadian Government must be honored. To + copy otherwise, distribute, republish, or post, requires prior + specific permission and/or a fee. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % licensedcagovmixed + Publication rights licensed to ACM. ACM acknowledges that this + contribution was authored or co-authored by an employee, contractor + or affiliate of the national government of Canada. As such, the + Government retains a nonexclusive, royalty-free right to publish or + reproduce this article, or to allow others to do so, for Government + purposes only. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % othergov + ACM acknowledges that this contribution was authored or co-authored + by an employee, contractor or affiliate of a national + government. As such, the Government retains a nonexclusive, + royalty-free right to publish or reproduce this article, or to + allow others to do so, for Government purposes only. Request + permissions from owner\hspace*{.5pt}/author(s). + \or % licensedothergov + Publication rights licensed to ACM\@. ACM acknowledges that this + contribution was authored or co-authored by an employee, contractor + or affiliate of a national government. As such, the Government + retains a nonexclusive, royalty-free right to publish or reproduce + this article, or to allow others to do so, for Government purposes + only. Request permissions from owner\hspace*{.5pt}/author(s). + \or % iw3c2w3 + This paper is published under the Creative Commons Attribution~4.0 + International (CC-BY~4.0) license. Authors reserve their rights to + disseminate the work on their personal and corporate Web sites with + the appropriate attribution. + \or % iw3c2w3g + This paper is published under the Creative Commons + Attribution-NonCommercial-NoDerivs~4.0 International + (CC-BY-NC-ND~4.0) license. Authors reserve their rights to + disseminate the work on their personal and corporate Web sites with + the appropriate attribution. + \or % CC + \IfEq{\ACM@cc@type}{zero}{% + \def\ACM@CC@Url{https://creativecommons.org/publicdomain/zero/1.0}}{% + \edef\ACM@CC@Url{https://creativecommons.org/licenses/\ACM@cc@type/\ACM@cc@version}}% + \href{\ACM@CC@Url}{\includegraphics[height=5ex]{doclicense-CC-\ACM@cc@type-88x31}}\\ + \href{\ACM@CC@Url}{% + This work is licensed under a Creative Commons + \IfEq{\ACM@cc@type}{zero}{CC0 1.0 Universal}{% + \IfEq{\ACM@cc@type}{by}{Attribution}{}% + \IfEq{\ACM@cc@type}{by-sa}{Attribution-ShareAlike}{}% + \IfEq{\ACM@cc@type}{by-nd}{Attribution-NoDerivatives}{}% + \IfEq{\ACM@cc@type}{by-nc}{Attribution-NonCommercial}{}% + \IfEq{\ACM@cc@type}{by-nc-sa}{Attribution-NonCommercial-ShareAlike}{}% + \IfEq{\ACM@cc@type}{by-nc-nd}{Attribution-NonCommercial-NoDerivatives}{}% + ~\IfEq{\ACM@cc@version}{4.0}{4.0 International}{3.0 Unported}% + } + License.}% + \fi} +%% +\def\copyrightyear#1{\def\@copyrightyear{#1}} +\copyrightyear{\@acmYear} +\def\@teaserfigures{} +\newenvironment{teaserfigure}{\Collect@Body\@saveteaser}{} +\long\def\@saveteaser#1{\g@addto@macro\@teaserfigures{\@teaser{#1}}} +\renewcommand{\thanks}[1]{% + \@ifnotempty{#1}{% + \if@ACM@anonymous + \g@addto@macro\thankses{\thanks{A note}}% + \else + \g@addto@macro\thankses{\thanks{#1}}% + \fi}} +\newcommand{\anon}[2][ANONYMIZED]{% + \if@ACM@anonymous% + {\color{ACMOrange}#1}% + \else% + #2% + \fi} +\ifx\@beginmaketitlehook\@undefined + \let\@beginmaketitlehook\@empty +\fi +\def\AtBeginMaketitle{\g@addto@macro\@beginmaketitlehook} +\def\@acmengagemetadata{} +\def\setengagemetadata#1#2{% + \g@addto@macro{\@acmengagemetadata}{% + \@setengagemetadata{#1}{#2}}} +\newbox\mktitle@bx +\def\maketitle{\@beginmaketitlehook + \@ACM@maketitle@typesettrue + \if@ACM@anonymous + % Anonymize omission of \author-s + \ifnum\num@authorgroups=0\author{}\fi + \fi + \begingroup + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \let\@footnotemark\@footnotemark@nolink + \let\@footnotetext\@footnotetext@nolink + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \hsize=\textwidth + \def\@makefnmark{\hbox{\@textsuperscript{\@thefnmark}}}% + \@mktitle\if@ACM@sigchiamode\else\@mkauthors\fi\@mkteasers + \@printtopmatter + \if@ACM@sigchiamode\@mkauthors\fi + \setcounter{footnote}{0}% + \def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}% + \@titlenotes + \@subtitlenotes + \@authornotes + \let\@makefnmark\relax + \let\@thefnmark\relax + \let\@makefntext\noindent + \ifx\@empty\thankses\else + \footnotetextauthorsaddresses{% + \def\par{\let\par\@par}\parindent\z@\@setthanks}% + \fi + \if@ACM@acmcp\else + \ifx\@empty\@authorsaddresses\else + \if@ACM@anonymous\else + \if@ACM@journal@bibstrip@or@tog + \footnotetextauthorsaddresses{% + \def\par{\let\par\@par}\parindent\z@\@setauthorsaddresses}% + \fi + \fi + \fi + \fi + \if@ACM@nonacm + \ifnum\acm@copyrightmode=15\relax % cc + \footnotetextcopyrightpermission{\@copyrightpermission}% + \fi + \else + \if@ACM@acmcp\else + \footnotetextcopyrightpermission{% + \if@ACM@authordraft + \raisebox{-2ex}[\z@][\z@]{\makebox[0pt][l]{\large\bfseries + Unpublished working draft. Not for distribution.}}% + \color[gray]{0.9}% + \fi + \parindent\z@\parskip0.1\baselineskip + \if@ACM@authorversion\else + \if@printpermission\@copyrightpermission\par\fi + \fi + \if@ACM@manuscript\else + \if@ACM@journal@bibstrip\else % Print the conference information + \if@ACM@engage + {\itshape \@acmBooktitle, \@acmYear.}\par + \else + {\itshape \acmConference@shortname, \acmConference@venue}\par + \fi + \fi + \fi + \if@printcopyright + \copyright\ \@copyrightyear\ \@copyrightowner\\ + \else + \ifx\@copyrightyear\@empty\else + \@copyrightyear.\ + \fi + \fi + \if@ACM@manuscript + Manuscript submitted to ACM\\ + \else + \if@ACM@authorversion + This is the author's version of the work. It is posted here for + your personal use. Not for redistribution. The definitive Version + of Record was published in + \if@ACM@journal@bibstrip + \emph{\@journalName}% + \else + \emph{\@acmBooktitle}% + \fi + \ifx\@acmDOI\@empty + . + \else + , \@formatdoi{\@acmDOI}. + \fi\\ + \else + \if@ACM@nonacm\else + \if@ACM@journal@bibstrip + ACM~\@permissionCodeTwo/\@acmYear/\@acmMonth-ART\@acmArticle\\ + \@formatdoi{\@acmDOI}% + \else % Conference + \ifx\@acmISBN\@empty\else ACM~ISBN~\@acmISBN\\\fi + \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi% + \fi + \fi + \fi + \fi}% + \fi + \fi + \endgroup + \if@ACM@engage\@typesetengagemetadata\fi + \setcounter{footnote}{0}% + \@mkabstract + \ifx\@translatedabstracts\@empty\else + \@translatedabstracts\fi + \if@ACM@printccs + \ifx\@concepts\@empty\else\bgroup + {\@specialsection{CCS Concepts}% + \noindent\@concepts\par}\egroup + \fi + \fi + \if@ACM@acmcp\else + \ifx\@keywords\@empty\else\bgroup + {\@specialsection{\keywordsname}% + \noindent\@keywords\par}\egroup + \fi + \ifx\@translatedkeywords\@empty\else + \@translatedkeywords + \fi + \fi + \let\metadata@authors=\authors + \nxandlist{, }{, }{, }\metadata@authors + \def\@ACM@checkaffil{}% + \hypersetup{% + pdfauthor={\metadata@authors}, + pdftitle={\@title}, + pdfsubject={\@concepts}, + pdfkeywords={\@keywords}, + pdfcreator={LaTeX with acmart + \csname ver@\@classname.cls\endcsname\space + and hyperref + \csname ver@hyperref.sty\endcsname}}% + \andify\authors + \andify\shortauthors + \global\let\authors=\authors + \global\let\shortauthors=\shortauthors + \if@ACM@printacmref + \@mkbibcitation + \fi + \global\@topnum\z@ % this prevents floats from falling + % at the top of page 1 + \global\@botnum\z@ % we do not want them to be on the bottom either + \@printendtopmatter + \@afterindentfalse + \@afterheading + \if@ACM@acmcp + \set@ACM@acmcpbox + \AtEndDocument{\end@ACM@color@frame}% + \@ACM@color@frame + \fi +} +\newbox\@ACM@acmcpbox +\def\set@ACM@acmcpbox{% + \bgroup + \hsize=5pc + \global\setbox\@ACM@acmcpbox=\vbox{% + \setlength{\parindent}{\z@}% + {\includegraphics[width=\hsize]{acm-jdslogo}\par}% + \scriptsize + \ifnum\getrefnumber{TotPages}>1\else + \zrefused{@ACM@acmcpbox@y}% + \zrefused{@ACM@acmcpframe@y}% + \@tempdima=\dimexpr\zposy{@ACM@acmcpbox@y}sp - + \zposy{@ACM@acmcpframe@y}sp+0.3\FrameSep+ + \@ACM@acmcp@delta\relax + \ifdim\@tempdima>0pt\relax + \vspace*{\@tempdima}% + \protected@write\@auxout{}% + {\string\global\@ACM@acmcp@delta=\the\@tempdima\relax}% + \fi + \fi + \ifx\@acmCodeDataLink\@empty\else\bigskip + Code and data links:\\ \@acmCodeDataLink\par\bigskip + \fi + \ifx\@keywords\@empty\else\bigskip + Keywords: \@keywords\par + \fi + \ifx\@acmContributions\@empty\else\bigskip + \@acmContributions\par + \fi + \ifx\@empty\@authorsaddresses\else\bigskip\@setauthorsaddresses\fi + \zsaveposy{@ACM@acmcpbox@y}% + \par + } +\egroup} +\def\@specialsection#1{% + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \ifcase\ACM@format@nr + \relax % manuscript + \par\medskip\small\noindent#1: % + \or % acmsmall + \par\medskip\small\noindent#1: % + \or % acmlarge + \par\medskip\small\noindent#1: % + \or % acmtog + \par\medskip\small\noindent#1: % + \or % sigconf + \section*{#1}% + \or % siggraph + \section*{#1}% + \or % sigplan + \noindentparagraph*{#1:~}% + \or % sigchi + \section*{#1}% + \or % sigchi-a + \section*{#1}% + \or % acmengage + \section*{#1}% + \or % acmcp + \section*{#1}% + \fi + \let\@vspace\@vspace@acm + \let\@vspacer\@vspacer@acm +} +\def\@printtopmatter{% + \ifx\@startPage\@empty + \gdef\@startPage{1}% + \else + \setcounter{page}{\@startPage}% + \fi + \@tempdima=\ht\mktitle@bx + \advance\@tempdima by \dp\mktitle@bx + \ifdim\@tempdima>0.9\textheight + \loop + \setbox\@tempboxa=\vsplit \mktitle@bx to 0.9\textheight + \thispagestyle{firstpagestyle}% + \noindent\unvbox\@tempboxa + \clearpage + \@tempdima=\ht\mktitle@bx + \advance\@tempdima by \dp\mktitle@bx + \ifdim\@tempdima>0.9\textheight\repeat + \fi + \thispagestyle{firstpagestyle}% + \noindent + \ifcase\ACM@format@nr + \relax % manuscript + \box\mktitle@bx\par + \or % acmsmall + \box\mktitle@bx\par + \or % acmlarge + \box\mktitle@bx\par + \or % acmtog + \twocolumn[\box\mktitle@bx]% + \or % sigconf + \twocolumn[\box\mktitle@bx]% + \or % siggraph + \twocolumn[\box\mktitle@bx]% + \or % sigplan + \twocolumn[\box\mktitle@bx]% + \or % sigchi + \twocolumn[\box\mktitle@bx]% + \or % sigchi-a + \par\box\mktitle@bx\par\bigskip + \or % acmengage + \twocolumn[\box\mktitle@bx]% + \or % acmcp + \box\mktitle@bx\par + \fi +} +\def\@mktitle{% + \ifcase\ACM@format@nr + \relax % manuscript + \@mktitle@i + \or % acmsmall + \@mktitle@i + \or % acmlarge + \@mktitle@i + \or % acmtog + \@mktitle@i + \or % sigconf + \@mktitle@iii + \or % siggraph + \@mktitle@iii + \or % sigplan + \@mktitle@iii + \or % sigchi + \@mktitle@iii + \or % sigchi-a + \@mktitle@iv + \or % acmengage + \@mktitle@iii + \or % acmcp + \@mktitle@i + \fi +} +\def\@titlefont{% + \ifcase\ACM@format@nr + \relax % manuscript + \LARGE\sffamily\bfseries + \or % acmsmall + \LARGE\sffamily\bfseries + \or % acmlarge + \LARGE\sffamily\bfseries + \or % acmtog + \Huge\sffamily + \or % sigconf + \Huge\sffamily\bfseries + \or % siggraph + \Huge\sffamily\bfseries + \or % sigplan + \Huge\bfseries + \or % sigchi + \Huge\sffamily\bfseries + \or % sigchi-a + \Huge\bfseries + \or % acmengage + \Huge\sffamily\bfseries + \or % acmcp + \LARGE\sffamily\bfseries + \fi} +\def\@subtitlefont{\normalsize + \ifcase\ACM@format@nr + \relax % manuscript + \mdseries + \or % acmsmall + \mdseries + \or % acmlarge + \mdseries + \or % acmtog + \LARGE + \or % sigconf + \LARGE\mdseries + \or % siggraph + \LARGE\mdseries + \or % sigplan + \LARGE\mdseries + \or % sigchi + \LARGE\mdseries + \or % sigchi-a + \mdseries + \or % acmengage + \LARGE\mdseries + \or % acmcp + \mdseries + \fi} +\def\@mktitle@i{\hsize=\textwidth + \if@ACM@acmcp + \advance\hsize by -6pc% + \fi + \@ACM@title@width=\hsize + \setbox\mktitle@bx=\vbox{\noindent\@titlefont + \parbox[t]{\@ACM@title@width}{\raggedright + \@titlefont\noindent + \@title\@translatedtitle% + \ifx\@subtitle\@empty\else + \par\noindent{\@subtitlefont\@subtitle\@translatedsubtitle}% + \fi}% + \par\bigskip}}% +\def\@mktitle@iii{\hsize=\textwidth + \setbox\mktitle@bx=\vbox{\@titlefont\centering + \@ACM@title@width=\hsize + \parbox[t]{\@ACM@title@width}{\centering\@titlefont + \@title\@translatedtitle% + \ifx\@subtitle\@empty\else + \par\noindent{\@subtitlefont\@subtitle\@translatedsubtitle} + \fi + }% + \par\bigskip}}% +\def\@mktitle@iv{\hsize=\textwidth + \setbox\mktitle@bx=\vbox{\raggedright\leftskip5pc\@titlefont + \noindent\leavevmode\leaders\hrule height 2pt\hfill\kern0pt\par + \noindent\@title\@translatedtitle% + \ifx\@subtitle\@empty\else + \par\noindent\@subtitlefont\@subtitle\@translatedsubtitle% + \fi + \par\bigskip}}% +\newbox\@ACM@commabox +\def\@ACM@addtoaddress#1{% + \ifvmode\else + \if@ACM@affiliation@obeypunctuation\else + \setbox\@ACM@commabox=\hbox{, }% + \unskip\cleaders\copy\@ACM@commabox\hskip\wd\@ACM@commabox + \fi\fi + #1} +\def\streetaddress#1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your street + address}\unskip\ignorespaces} +\def\postcode#1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your postal + code}\unskip\ignorespaces} +\if@ACM@journal + \def\position#1{\unskip\ignorespaces} + \def\institution#1{\global\@ACM@instpresenttrue + \unskip~#1\ignorespaces} + \def\city#1{\global\@ACM@citypresenttrue\unskip\ignorespaces} + \def\state#1{\unskip\ignorespaces} + \newcommand\department[2][0]{\unskip\ignorespaces} + \def\country#1{\StrDel{#1}{ }[\@tempa]% + \ifx\@tempa\@empty\else + \global\@ACM@countrypresenttrue\fi + \if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} +\else + \def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% + \def\institution#1{\global\@ACM@instpresenttrue + \if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% + \newcommand\department[2][0]{\if@ACM@affiliation@obeypunctuation + #2\else#2\par\fi}% + \def\city#1{\global\@ACM@citypresenttrue\@ACM@addtoaddress{#1}}% + \let\state\@ACM@addtoaddress + \def\country#1{\global\@ACM@countrypresenttrue\@ACM@addtoaddress{#1}}% +\fi +\def\@mkauthors{\begingroup + \hsize=\textwidth + \ifcase\ACM@format@nr + \relax % manuscript + \@mkauthors@i + \or % acmsmall + \@mkauthors@i + \or % acmlarge + \@mkauthors@i + \or % acmtog + \@mkauthors@i + \or % sigconf + \@mkauthors@iii + \or % siggraph + \@mkauthors@iii + \or % sigplan + \@mkauthors@iii + \or % sigchi + \@mkauthors@iii + \or % sigchi-a + \@mkauthors@iv + \or % acmengage + \@mkauthors@iii + \or % acmcp + \@mkauthors@i + \fi + \endgroup +} +\def\@authorfont{\Large\sffamily} +\def\@affiliationfont{\normalsize\normalfont} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall + \def\@authorfont{\large\sffamily} + \def\@affiliationfont{\small\normalfont} +\or % acmlarge +\or % acmtog + \def\@authorfont{\LARGE\sffamily} + \def\@affiliationfont{\large} +\or % sigconf + \def\@authorfont{\LARGE} + \def\@affiliationfont{\large} +\or % siggraph + \def\@authorfont{\normalsize\normalfont} + \def\@affiliationfont{\normalsize\normalfont} +\or % sigplan + \def\@authorfont{\Large\normalfont} + \def\@affiliationfont{\normalsize\normalfont} +\or % sigchi + \def\@authorfont{\bfseries} + \def\@affiliationfont{\mdseries} +\or % sigchi-a + \def\@authorfont{\bfseries} + \def\@affiliationfont{\mdseries} +\or % acmengage + \def\@authorfont{\LARGE} + \def\@affiliationfont{\large} +\or % acmcp + \def\@authorfont{\large\sffamily} + \def\@affiliationfont{\small\normalfont} +\fi +\def\@typeset@author@line{% + \andify\@currentauthors\par\noindent + \@currentauthors\def\@currentauthors{}% + \ifx\@currentaffiliations\@empty\else + \andify\@currentaffiliations + \unskip, {\@currentaffiliations}\par + \fi + \def\@currentaffiliations{}} +\newif\if@ACM@instpresent +\@ACM@instpresenttrue +\newif\if@ACM@citypresent +\@ACM@citypresenttrue +\newif\if@ACM@countrypresent +\@ACM@countrypresenttrue +\def\@ACM@resetaffil{% + \global\@ACM@instpresentfalse + \global\@ACM@citypresentfalse + \global\@ACM@countrypresentfalse +} +\def\@ACM@checkaffil{% + \if@ACM@instpresent\else + \ClassWarningNoLine{\@classname}{No institution present for an affiliation}% + \fi + \if@ACM@citypresent\else + \ClassWarningNoLine{\@classname}{No city present for an affiliation}% + \fi + \if@ACM@countrypresent\else + \ClassError{\@classname}{No country present for an affiliation}{ACM + requires each author to indicate their country using country macro.}% + \fi +} +\def\@mkauthors@i{% + \def\@currentauthors{}% + \def\@currentaffiliations{}% + \global\let\and\@typeset@author@line + \def\@author##1{% + \ifx\@currentauthors\@empty + \gdef\@currentauthors{\@authorfont\MakeUppercase{##1}}% + \else + \g@addto@macro{\@currentauthors}{\and\MakeUppercase{##1}}% + \fi + \gdef\and{}}% + \def\email##1##2{}% + \def\affiliation##1##2{% + \def\@tempa{##2}\ifx\@tempa\@empty\else + \ifx\@currentaffiliations\@empty + \gdef\@currentaffiliations{% + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}% + \@ACM@resetaffil + \@affiliationfont##2\@ACM@checkaffil}% + \else + \g@addto@macro{\@currentaffiliations}{\and + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \fi + \fi + \global\let\and\@typeset@author@line}% + \if@ACM@acmcp + \advance\hsize by -6pc% + \fi + \global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par\medskip + \noindent\addresses\@typeset@author@line + \par\medskip}% +} +\newbox\author@bx +\newdimen\author@bx@wd +\newskip\author@bx@sep +\author@bx@sep=1pc\relax +\def\@typeset@author@bx{\bgroup\hsize=\author@bx@wd + \def\and{\par}\normalbaselines + \global\setbox\author@bx=\vtop{\if@ACM@sigchiamode\else\centering\fi + \@authorfont\@currentauthors\par\@affiliationfont + \@currentaffiliation}\egroup + \box\author@bx\hspace{\author@bx@sep}% + \gdef\@currentauthors{}% + \gdef\@currentaffiliation{}} +\def\@mkauthors@iii{% + \author@bx@wd=\textwidth\relax + \advance\author@bx@wd by -\author@bx@sep\relax + \ifnum\@ACM@authorsperrow>0\relax + \divide\author@bx@wd by \@ACM@authorsperrow\relax + \else + \ifcase\num@authorgroups + \relax % 0? + \or % 1=one author per row + \or % 2=two authors per row + \divide\author@bx@wd by \num@authorgroups\relax + \or % 3=three authors per row + \divide\author@bx@wd by \num@authorgroups\relax + \or % 4=two authors per row (!) + \divide\author@bx@wd by 2\relax + \else % three authors per row + \divide\author@bx@wd by 3\relax + \fi + \fi + \advance\author@bx@wd by -\author@bx@sep\relax + \gdef\@currentauthors{}% + \gdef\@currentaffiliation{}% + \def\@author##1{\ifx\@currentauthors\@empty + \gdef\@currentauthors{\par##1}% + \else + \g@addto@macro\@currentauthors{\par##1}% + \fi + \gdef\and{}}% + \def\email##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{\bgroup + \mathchardef\UrlBreakPenalty=10000\nolinkurl{##2}\egroup}% + \else + \g@addto@macro\@currentaffiliation{\par\bgroup + \mathchardef\UrlBreakPenalty=10000\nolinkurl{##2}\egroup}% + \fi}% + \def\affiliation##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{% + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \else + \g@addto@macro\@currentaffiliation{\par + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \fi + \global\let\and\@typeset@author@bx +}% + \hsize=\textwidth + \global\setbox\mktitle@bx=\vbox{\noindent + \unvbox\mktitle@bx\par\medskip\leavevmode + \lineskip=1pc\relax\centering\hspace*{-1em}% + \addresses\let\and\@typeset@author@bx\and\par\bigskip}} +\def\@mkauthors@iv{% + \author@bx@wd=\columnwidth\relax + \advance\author@bx@wd by -\author@bx@sep\relax + \ifnum\@ACM@authorsperrow>0\relax + \divide\author@bx@wd by \@ACM@authorsperrow\relax + \else + \ifcase\num@authorgroups + \relax % 0? + \or % 1=one author per row + \else % 2=two authors per row + \divide\author@bx@wd by 2\relax + \fi + \fi + \advance\author@bx@wd by -\author@bx@sep\relax + \gdef\@currentauthors{}% + \gdef\@currentaffiliation{}% + \def\@author##1{\ifx\@currentauthors\@empty + \gdef\@currentauthors{\par##1}% + \else + \g@addto@macro\@currentauthors{\par##1}% + \fi + \gdef\and{}}% + \def\email##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{\nolinkurl{##2}}% + \else + \g@addto@macro\@currentaffiliation{\par\nolinkurl{##2}}% + \fi}% + \def\affiliation##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{% + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \else + \g@addto@macro\@currentaffiliation{\par + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \fi + \global\let\and\@typeset@author@bx}% + \bgroup\hsize=\columnwidth + \par\raggedright\leftskip=\z@ + \lineskip=1pc\noindent + \addresses\let\and\@typeset@author@bx\and\par\bigskip\egroup} +\def\@mkauthorsaddresses{% + \ifnum\num@authors>1\relax + Authors' \else Author's \fi + Contact Information: + \bgroup + \def\streetaddress##1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your street + address}\unskip\ignorespaces}% + \def\postcode##1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your postal + code}\unskip\ignorespaces}% + \def\position##1{\unskip\ignorespaces}% + \gdef\@ACM@institution@separator{, }% + \def\institution##1{\unskip\@ACM@institution@separator ##1\gdef\@ACM@institution@separator{ and }}% + \def\city##1{\unskip, ##1}% + \def\state##1{\unskip, ##1}% + \renewcommand\department[2][0]{\unskip\@addpunct, ##2}% + \def\country##1{\unskip, ##1}% + \def\and{\unskip; \gdef\@ACM@institution@separator{, }}% + \def\@author##1{##1}% + \def\email##1##2{\unskip, \nolinkurl{##2}}% + \addresses + \egroup} +\AtEndDocument{\if@ACM@nonacm\else\if@ACM@journal + \ifx\@authorsaddresses\@empty + \ClassWarningNoLine{\@classname}{Authors' + addresses are mandatory for ACM journals}% + \fi\fi\fi} +\def\@setaddresses{} +\def\@authornotemark{\g@addto@macro\@currentauthors{% + \advance\hfuzz by 5pt\relax\footnotemark\relax}} +\def\@@authornotemark#1{\g@addto@macro\@currentauthors{% + \advance\hfuzz by 5pt\relax\footnotemark[#1]}} +\def\@mkteasers{% + \ifx\@teaserfigures\@empty\else + \def\@teaser##1{\par\bigskip\bgroup + \captionsetup{type=figure}##1\egroup\par} + \global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par + \noindent\@Description@presentfalse + \@teaserfigures\par\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without + description}\fi + \medskip}% + \fi} +\def\@mkabstract{\bgroup + \ifx\@abstract\@lempty\else + {\phantomsection\addcontentsline{toc}{section}{\abstractname}% + \if@ACM@journal + \everypar{\setbox\z@\lastbox\everypar{}}\small + \else + \section*{\abstractname}% + \fi + \ignorespaces\@abstract\par}% + \fi\egroup} +\def\@mktranslatedabstract#1{\selectlanguage{#1}% + \if@ACM@journal + \everypar{\setbox\z@\lastbox\everypar{}}\small + \else + \section*{\abstractname}% + \fi + \ignorespaces} +\def\@mkbibcitation{\bgroup + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \def\@pages@word{\ifnum\getrefnumber{TotPages}=1\relax page\else pages\fi}% + \def\footnotemark{}% + \def\\{\unskip{} \ignorespaces}% + \def\footnote{\ClassError{\@classname}{Please do not use footnotes + inside a \string\title{} or \string\author{} command! Use + \string\titlenote{} or \string\authornote{} instead!}}% + \def\@article@string{\ifx\@acmArticle\@empty{\ }\else, + Article~\@acmArticle\ \fi}% + \par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak + \noindent\bgroup + \def\\{\unskip{}, \ignorespaces}\authors\egroup. \@acmYear. \@title + \ifx\@subtitle\@empty. \else: \@subtitle. \fi + \if@ACM@nonacm\else + % The 'nonacm' option disables 'printacmref' by default, + % and the present \@mkbibcitation definition is never used + % in this case. The conditional remains useful if the user + % explicitly sets \settopmatter{printacmref=true}. + \if@ACM@journal@bibstrip + \textit{\@journalNameShort} + \@acmVolume, \@acmNumber \@article@string (\@acmPubDate), + \ref{TotPages}~\@pages@word. + \else + In \textit{\@acmBooktitle}% + \ifx\@acmEditors\@empty\textit{.}\else + \andify\@acmEditors\textit{, }\@acmEditors~\@editorsAbbrev.% + \fi\ + ACM, Rome, Italy% + \@article@string\unskip, \ref{TotPages}~\@pages@word. + \fi + \fi + \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi +\par\egroup} +\def\@printendtopmatter{% + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \par\bigskip + \let\@vspace\@vspace@acm + \let\@vspacer\@vspacer@acm + } +\def\@setthanks{\long\def\thanks##1{\par##1\@addpunct.}\thankses} +\def\@setauthorsaddresses{\@authorsaddresses\unskip\@addpunct.} +\def\@typesetengagemetadata{% + \def\@setengagemetadata##1##2{\par\noindent\textbf{##1} ##2\par}% + \@acmengagemetadata} +\RequirePackage{fancyhdr} +\let\ACM@ps@plain\ps@plain +\let\ACM@ps@myheadings\ps@myheadings +\let\ACM@ps@headings\ps@headings +\def\ACM@restore@pagestyle{% + \let\ps@plain\ACM@ps@plain + \let\ps@myheadings\ACM@ps@myheadings + \let\ps@headings\ACM@ps@headings} +\AtBeginDocument{\ACM@restore@pagestyle} +\if@ACM@review + \newsavebox{\ACM@linecount@bx} + \newlength\ACM@linecount@bxht + \newcount\ACM@linecount + \ACM@linecount\@ne\relax + \def\ACM@mk@linecount{% + \savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{\normalfont + \normalsize + \setlength{\ACM@linecount@bxht}{0pt}% + \loop{\color{red}\scriptsize\the\ACM@linecount}\\ + \global\advance\ACM@linecount by \@ne + \addtolength{\ACM@linecount@bxht}{\baselineskip}% + \ifdim\ACM@linecount@bxht<\textheight\repeat + {\color{red}\scriptsize\the\ACM@linecount}\hfill + \global\advance\ACM@linecount by \@ne}}} +\fi +\def\ACM@linecountL{% + \if@ACM@review + \ACM@mk@linecount + \begin{picture}(0,0)% + \put(-26,-22){\usebox{\ACM@linecount@bx}}% + \end{picture}% + \fi} +\def\ACM@linecountR{% + \if@ACM@review + \ifcase\ACM@format@nr + \relax % manuscript + \relax + \or % acmsmall + \relax + \or % acmlarge + \relax + \or % acmtog + \ACM@mk@linecount + \or % sigconf + \ACM@mk@linecount + \or % siggraph + \ACM@mk@linecount + \or % sigplan + \ACM@mk@linecount + \or % sigchi + \ACM@mk@linecount + \or % sigchi-a + \ACM@mk@linecount + \or % acmengage + \ACM@mk@linecount + \or % acmcp + \relax + \fi + \begin{picture}(0,0)% + \put(20,-22){\usebox{\ACM@linecount@bx}}% + \end{picture}% + \fi} +\if@ACM@timestamp + % Subtracting 30 from \time gives us the effect of rounding down despite + % \numexpr rounding to nearest + \newcounter{ACM@time@hours} + \setcounter{ACM@time@hours}{\numexpr (\time - 30) / 60 \relax} + \newcounter{ACM@time@minutes} + \setcounter{ACM@time@minutes}{\numexpr \time - \theACM@time@hours * 60 \relax} + \newcommand\ACM@timestamp{% + \footnotesize% + \ifx\@acmSubmissionID\@empty\relax\else + Submission ID: \@acmSubmissionID.{ }% + \fi + \the\year-\two@digits{\the\month}-\two@digits{\the\day}{ }% + \two@digits{\theACM@time@hours}:\two@digits{\theACM@time@minutes}{. }% + Page \thepage\ of \@startPage--\pageref*{TotPages}.% + } +\fi +\def\@shortauthors{% + \if@ACM@anonymous + Anon. + \ifx\@acmSubmissionID\@empty\else Submission Id: \@acmSubmissionID\fi + \else\shortauthors\fi} +\def\@headfootfont{\sffamily\footnotesize} +\AtBeginDocument{% +\fancypagestyle{standardpagestyle}{% + \fancyhf{}% + \renewcommand{\headrulewidth}{\z@}% + \renewcommand{\footrulewidth}{\z@}% + \def\@acmArticlePage{% + \ifx\@acmArticle\empty% + \if@ACM@printfolios\thepage\fi% + \else% + \@acmArticle\if@ACM@printfolios:\thepage\fi% + \fi% + }% + \if@ACM@journal@bibstrip@or@tog + \ifcase\ACM@format@nr + \relax % manuscript + \fancyhead[LE]{\ACM@linecountL\if@ACM@printfolios\thepage\fi}% + \fancyhead[RO]{\if@ACM@printfolios\thepage\fi}% + \fancyhead[RE]{\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL\shorttitle}% + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize Manuscript submitted to ACM} + \fi% + \or % acmsmall + \fancyhead[LE]{\ACM@linecountL\@headfootfont\@acmArticlePage}% + \fancyhead[RO]{\@headfootfont\@acmArticlePage}% + \fancyhead[RE]{\@headfootfont\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: \@acmPubDate.}% + \fi + \or % acmlarge + \fancyhead[LE]{\ACM@linecountL\@headfootfont + \@acmArticlePage\quad\textbullet\quad\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL}% + \fancyhead[RO]{\@headfootfont + \shorttitle\quad\textbullet\quad\@acmArticlePage}% + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: \@acmPubDate.}% + \fi + \or % acmtog + \fancyhead[LE]{\ACM@linecountL\@headfootfont + \@acmArticlePage\quad\textbullet\quad\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL}% + \fancyhead[RE]{\ACM@linecountR}% + \fancyhead[RO]{\@headfootfont + \shorttitle\quad\textbullet\quad\@acmArticlePage\ACM@linecountR}% + \if@ACM@nonacm\else + \if@ACM@journal@bibstrip + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, + Vol. \@acmVolume, No.~\@acmNumber, Article \@acmArticle. + Publication date: \@acmPubDate.}% + \else + \fancyfoot[RO,LE]{\footnotesize \acmConference@shortname, + \acmConference@date, \acmConference@venue.}% + \fi + \fi + \else % Proceedings + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% + \fancyhead[RE]{\@headfootfont\@shortauthors\ACM@linecountR}% + \if@ACM@nonacm + \fancyhead[LE]{\ACM@linecountL}% + \fancyhead[RO]{\ACM@linecountR}% + \else% + \if@ACM@engage + \fancyhead[LE]{\ACM@linecountL\@headfootfont\footnotesize + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi}% + \fancyhead[RO]{\@headfootfont + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi + \ACM@linecountR}% + \else + \fancyhead[LE]{\ACM@linecountL\@headfootfont\footnotesize + \acmConference@shortname, + \acmConference@date, \acmConference@venue}% + \fancyhead[RO]{\@headfootfont + \acmConference@shortname, + \acmConference@date, \acmConference@venue\ACM@linecountR}% + \fi + \fi + \fi + \else % Proceedings + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% + \fancyhead[RE]{\@headfootfont\@shortauthors\ACM@linecountR}% + \if@ACM@nonacm + \fancyhead[LE]{\ACM@linecountL}% + \fancyhead[RO]{\ACM@linecountR}% + \else% + \if@ACM@engage + \fancyhead[LE]{\ACM@linecountL\@headfootfont + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi}% + \fancyhead[RO]{\@headfootfont + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi + \ACM@linecountR}% + \else + \fancyhead[LE]{\ACM@linecountL\@headfootfont + \acmConference@shortname, + \acmConference@date, \acmConference@venue}% + \fancyhead[RO]{\@headfootfont + \acmConference@shortname, + \acmConference@date, \acmConference@venue\ACM@linecountR}% + \fi + \fi + \fi + \if@ACM@sigchiamode + \fancyheadoffset[L]{\dimexpr(\marginparsep+\marginparwidth)}% + \fi + \if@ACM@timestamp + \fancyfoot[LO,RE]{\ACM@timestamp} + \fi + \if@ACM@acmcp + \renewcommand{\footrulewidth}{0.1\p@}% + \fancyheadoffset[L]{46pt}% + \fancyhead[L]{\makebox[\z@][l]{% + \raisebox{-\dimexpr(0.2\textheight*(\ACM@ArticleType@nr-2))}{% + \rotatebox{90}{\colorbox{@ACM@Article@color}{\color{white}% + \strut\ACM@ArticleType~Article}}}}% + \ACM@linecountL}% + \fancyhead[R]{\makebox[\z@][r]{\box\@ACM@acmcpbox}}% + \fancyfoot[L,C]{}% + \fancyfoot[R]{\footnotesize + \@journalName, Volume~\@acmVolume, Issue~\@acmNumber, + \ifx\@acmArticle\@empty\else Article~\@acmArticle\fi\space + (\@acmPubDate)\ifx\@acmDOI\@empty\else\\\@formatdoi{\@acmDOI}\fi} + \fi +}% +\pagestyle{standardpagestyle} +} +\AtBeginDocument{% +\fancypagestyle{firstpagestyle}{% + \fancyhf{}% + \renewcommand{\headrulewidth}{\z@}% + \renewcommand{\footrulewidth}{\z@}% + \if@ACM@journal@bibstrip@or@tog + \ifcase\ACM@format@nr + \relax % manuscript + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR}% + \fancyfoot[RO,LE]{\if@ACM@printfolios\small\thepage\fi}% + \if@ACM@nonacm\else% + \fancyfoot[RE,LO]{\footnotesize Manuscript submitted to ACM}% + \fi% + \or % acmsmall + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: + \@acmPubDate.}% + \fi% + \fancyhead[LE]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[LO]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[RO]{\@acmBadgeR}% + \fancyhead[RE]{\@acmBadgeR}% + \or % acmlarge + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: + \@acmPubDate.}% + \fi% + \fancyhead[RO]{\@acmBadgeR}% + \fancyhead[RE]{\@acmBadgeR}% + \fancyhead[LE]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[LO]{\ACM@linecountL\@acmBadgeL}% + \or % acmtog + \if@ACM@nonacm\else% + \if@ACM@journal@bibstrip + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, + Vol. \@acmVolume, No.~\@acmNumber, Article \@acmArticle. + Publication date: \@acmPubDate.}% + \else + \fancyfoot[RO,LE]{\footnotesize \acmConference@shortname, + \acmConference@date, \acmConference@venue.}% + \fi + \fi% + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\ACM@linecountR}% + \else % Conference proceedings + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\ACM@linecountR}% + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fi + \else + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\ACM@linecountR}% + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fi + \if@ACM@timestamp + \ifnum\ACM@format@nr=0\relax % Manuscript + \fancyfoot[LO,RE]{\ACM@timestamp\quad + \if@ACM@nonacm\else + \footnotesize Manuscript submitted to ACM + \fi} + \else + \fancyfoot[LO,RE]{\ACM@timestamp} + \fi + \fi + \if@ACM@acmcp + \renewcommand{\footrulewidth}{0.1\p@}% + \fancyheadoffset[L]{46pt}% + \fancyhead[L]{\makebox[\z@][l]{% + \raisebox{-\dimexpr(0.2\textheight*(\ACM@ArticleType@nr-2))}{% + \rotatebox{90}{\colorbox{@ACM@Article@color}{\color{white}% + \strut\ACM@ArticleType~Article}}}}% + \ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\makebox[\z@][r]{\box\@ACM@acmcpbox}}% + \fancyfoot[L,C]{}% + \fancyfoot[R]{\footnotesize + \@journalName, Volume~\@acmVolume, Issue~\@acmNumber, + \ifx\@acmArticle\@empty\else Article~\@acmArticle\fi\space + (\@acmPubDate)\ifx\@acmDOI\@empty\else\\\@formatdoi{\@acmDOI}\fi} + \fi +}} +\def\ACM@NRadjust#1{% + \begingroup + \expandafter\ifx\csname Sectionformat\endcsname\relax + % do nothing when \Sectionformat is unknown + \def\next{\endgroup #1}% + \else + \def\next{\endgroup + \let\realSectionformat\Sectionformat + \def\ACM@sect@format@{#1}% + \let\Sectionformat\ACM@NR@adjustedSectionformat + %% next lines added 2018-06-17 to ensure section number is styled + \let\real@adddotafter\@adddotafter + \let\@adddotafter\ACM@adddotafter + #1{}% imposes the styles, but nullifies \MakeUppercase + \let\@adddotafter\real@adddotafter + }% + \fi \next +} +\def\ACM@NR@adjustedSectionformat#1#2{% + \realSectionformat{\ACM@sect@format{#1}}{#2}% + \let\Sectionformat\realSectionformat} +\DeclareRobustCommand{\ACM@sect@format}{\ACM@sect@format@} +\def\ACM@sect@format@null#1{#1} +\let\ACM@sect@format@\ACM@sect@format@null +\AtBeginDocument{% + \expandafter\ifx\csname LTX@adddotafter\endcsname\relax + \let\LTX@adddotafter\@adddotafter + \fi +} +\def\ACM@adddotafter#1{\ifx\relax#1\relax\else\LTX@adddotafter{#1}\fi} +\renewcommand\section{\def\@toclevel{1}% + \@startsection{section}{1}{\z@}% + {-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {.25\baselineskip}% + {\ACM@NRadjust\@secfont}} +\renewcommand\subsection{\def\@toclevel{2}% + \@startsection{subsection}{2}{\z@}% + {-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {.25\baselineskip}% + {\ACM@NRadjust\@subsecfont}} +\renewcommand\subsubsection{\def\@toclevel{3}% + \@startsection{subsubsection}{3}{\z@}% + {-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {-3.5\p@}% + {\ACM@NRadjust{\@subsubsecfont\@adddotafter}}} +\renewcommand\paragraph{\def\@toclevel{4}% + \@startsection{paragraph}{4}{\parindent}% + {-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {-3.5\p@}% + {\ACM@NRadjust{\@parfont\@adddotafter}}} +\newcommand\noindentparagraph{\def\@toclevel{4}% + \@startsection{paragraph}{4}{\z@}% + {-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {-3.5\p@}% + {\ACM@NRadjust{\@parfont}}} +\renewcommand\part{\def\@toclevel{9}% + \@startsection{part}{9}{\z@}% + {-10\p@ \@plus -4\p@ \@minus -2\p@}% + {4\p@}% + {\ACM@NRadjust\@parfont}} +\def\section@raggedright{\@rightskip\@flushglue + \rightskip\@rightskip + \leftskip\z@skip + \parindent\z@} +\def\@secfont{\sffamily\bfseries\section@raggedright} +\def\@subsecfont{\sffamily\bfseries\section@raggedright} +\def\@subsubsecfont{\sffamily\itshape} +\def\@parfont{\itshape} +\setcounter{secnumdepth}{3} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge + \def\@secfont{\sffamily\large\section@raggedright} + \def\@subsecfont{\sffamily\large\section@raggedright} +\or % acmtog + \def\@secfont{\sffamily\large\section@raggedright} + \def\@subsecfont{\sffamily\large\section@raggedright} +\or % sigconf + \def\@secfont{\bfseries\Large\section@raggedright} + \def\@subsecfont{\bfseries\Large\section@raggedright} +\or % siggraph + \def\@secfont{\sffamily\bfseries\Large\section@raggedright} + \def\@subsecfont{\sffamily\bfseries\Large\section@raggedright} +\or % sigplan + \def\@secfont{\bfseries\Large\section@raggedright} + \def\@subsecfont{\bfseries\section@raggedright} + \def\@subsubsecfont{\bfseries\section@raggedright} + \def\@parfont{\bfseries\itshape} + \def\@subparfont{\itshape} +\or % sigchi + \setcounter{secnumdepth}{1} + \def\@secfont{\sffamily\bfseries\section@raggedright} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} +\or % sigchi-a + \setcounter{secnumdepth}{0} + \def\@secfont{\sffamily\bfseries\section@raggedright} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} +\or % acmengage + \def\@secfont{\bfseries\Large\section@raggedright} + \def\@subsecfont{\bfseries\Large\section@raggedright} +\or %acmcp +\fi +\AtBeginDocument{% + \@for\@tempa:=-1,0,1,2,3,4,5\do{% + \@ifundefined{r@tocindent\@tempa}{% + \@xp\gdef\csname r@tocindent\@tempa\endcsname{0pt}}{}% + }% +} +\def\@writetocindents{% + \begingroup + \@for\@tempa:=-1,0,1,2,3,4,5\do{% + \immediate\write\@auxout{% + \string\newlabel{tocindent\@tempa}{% + \csname r@tocindent\@tempa\endcsname}}% + }% + \endgroup} +\def\@adddotafter#1{#1\@addpunct{.}} +\def\@addspaceafter#1{#1\@addpunct{\enspace}} +\if@ACM@acmcp + \setcounter{secnumdepth}{-1}% +\fi +\providecommand*\@dotsep{4.5} +\def\@acmplainbodyfont{\itshape} +\def\@acmplainindent{\parindent} +\def\@acmplainheadfont{\scshape} +\def\@acmplainnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmplainbodyfont{\itshape} + \def\@acmplainindent{\z@} + \def\@acmplainheadfont{\bfseries} + \def\@acmplainnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\newtheoremstyle{acmplain}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmplainbodyfont}% body font + {\@acmplainindent}% indent amount + {\@acmplainheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec +\def\@acmdefinitionbodyfont{\normalfont} +\def\@acmdefinitionindent{\parindent} +\def\@acmdefinitionheadfont{\itshape} +\def\@acmdefinitionnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmdefinitionbodyfont{\normalfont} + \def\@acmdefinitionindent{\z@} + \def\@acmdefinitionheadfont{\bfseries} + \def\@acmdefinitionnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\newtheoremstyle{acmdefinition}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmdefinitionbodyfont}% body font + {\@acmdefinitionindent}% indent amount + {\@acmdefinitionheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec +\theoremstyle{acmplain} +\AtEndPreamble{% + \if@ACM@acmthm + \theoremstyle{acmplain} + \@ifundefined{theorem}{% + \newtheorem{theorem}{Theorem}[section] + }{} + \@ifundefined{conjecture}{% + \newtheorem{conjecture}[theorem]{Conjecture} + }{} + \@ifundefined{proposition}{% + \newtheorem{proposition}[theorem]{Proposition} + }{} + \@ifundefined{lemma}{% + \newtheorem{lemma}[theorem]{Lemma} + }{} + \@ifundefined{corollary}{% + \newtheorem{corollary}[theorem]{Corollary} + }{} + \theoremstyle{acmdefinition} + \@ifundefined{example}{% + \newtheorem{example}[theorem]{Example} + }{} + \@ifundefined{definition}{% + \newtheorem{definition}[theorem]{Definition} + }{} + \fi + \theoremstyle{acmplain} +} +\def\@proofnamefont{\scshape} +\def\@proofindent{\indent} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@proofnamefont{\itshape} + \def\@proofindent{\noindent} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\renewenvironment{proof}[1][\proofname]{\par + \pushQED{\qed}% + \normalfont \topsep6\p@\@plus6\p@\relax + \trivlist + \item[\@proofindent\hskip\labelsep + {\@proofnamefont #1\@addpunct{.}}]\ignorespaces +}{% + \popQED\endtrivlist\@endpefalse +} +\AtEndPreamble{% + \if@ACM@pbalance + \global\@ACM@balancefalse + \ifcase\ACM@format@nr + \relax % manuscript + \or % acmsmall + \or % acmlarge + \or % acmtog + \RequirePackage{pbalance}% + \or % sigconf + \RequirePackage{pbalance}% + \or % siggraph + \RequirePackage{pbalance}% + \or % sigplan + \RequirePackage{pbalance}% + \or % sigchi + \RequirePackage{pbalance}% + \or % sigchi-a + \or % acmengage + \RequirePackage{pbalance}% + \or % acmcp + \fi + \fi + \if@ACM@balance + \ifcase\ACM@format@nr + \relax % manuscript + \global\@ACM@balancefalse + \or % acmsmall + \global\@ACM@balancefalse + \or % acmlarge + \global\@ACM@balancefalse + \or % acmtog + \RequirePackage{balance}% + \or % sigconf + \RequirePackage{balance}% + \or % siggraph + \RequirePackage{balance}% + \or % sigplan + \RequirePackage{balance}% + \or % sigchi + \RequirePackage{balance}% + \or % sigchi-a + \global\@ACM@balancefalse + \or % acmengage + \RequirePackage{balance}% + \or % acmcp + \global\@ACM@balancefalse + \fi + \fi +} +\AtEndDocument{% + \if@ACM@balance + \if@twocolumn + \balance + \fi\fi} +\newcommand\acksname{Acknowledgments} +\specialcomment{acks}{% + \begingroup + \section*{\acksname} + \phantomsection\addcontentsline{toc}{section}{\acksname} +}{% + \endgroup +} +\def\grantsponsor#1#2#3{#2} +\newcommand\grantnum[3][]{#3% + \def\@tempa{#1}\ifx\@tempa\@empty\else\space(\url{#1})\fi} +\AtEndPreamble{% +\if@ACM@screen + \includecomment{screenonly} + \excludecomment{printonly} +\else + \excludecomment{screenonly} + \includecomment{printonly} +\fi +\if@ACM@anonymous + \excludecomment{anonsuppress} + \excludecomment{acks} +\else + \includecomment{anonsuppress} +\fi} +\newcommand\showeprint[2][arxiv]{% + \def\@tempa{#1}% + \ifx\@tempa\@empty\def\@tempa{arxiv}\fi + \def\@tempb{arxiv}% + \ifx\@tempa\@tempb\relax + arXiv:\href{https://arxiv.org/abs/#2}{#2}% + \else + \def\@tempb{arXiv}% + \ifx\@tempa\@tempb\relax + arXiv:\href{https://arxiv.org/abs/#2}{#2}% + \else + #1:#2% + \fi + \fi} +\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi + \columnseprule\z@ \columnsep 35\p@ + \@indextitlestyle + \let\item\@idxitem + \parindent\z@ \parskip\z@\@plus.3\p@\relax + \raggedright + \hyphenpenalty\@M + \footnotesize} +\let\@vspace@orig=\@vspace +\let\@vspacer@orig=\@vspacer +\apptocmd{\@vspace}{\ClassWarning{\@classname}{\string\vspace\space should + only be used to provide space above/below surrounding + objects}}{}{} +\apptocmd{\@vspacer}{\ClassWarning{\@classname}{\string\vspace\space should + only be used to provide space above/below surrounding + objects}}{}{} +\let\@vspace@acm=\@vspace +\let\@vspacer@acm=\@vspacer +\let\ACM@origbaselinestretch\baselinestretch +\AtEndDocument{\ifx\baselinestretch\ACM@origbaselinestretch\else + \ClassError{\@classname}{An attempt to redefine + \string\baselinestretch\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origsection\section +\AtEndDocument{\ifx\section\ACM@origsection\else + \ClassError{\@classname}{An attempt to redefine + \string\section\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origsubsection\subsection +\AtEndDocument{\ifx\subsection\ACM@origsubsection\else + \ClassError{\@classname}{An attempt to redefine + \string\subsection\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origsubsubsection\subsubsection +\AtEndDocument{\ifx\subsubsection\ACM@origsubsubsection\else + \ClassError{\@classname}{An attempt to redefine + \string\subsubsection\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origparagraph\paragraph +\AtEndDocument{\ifx\paragraph\ACM@origparagraph\else + \ClassError{\@classname}{An attempt to redefine + \string\paragraph\space detected. Please do not do this for + ACM submissions!}\fi} +\normalsize\normalfont\frenchspacing +\endinput +%% +%% End of file `acmart.cls'. diff --git a/research/knowledge_clusters/submission/figures/pipeline.png b/research/knowledge_clusters/submission/figures/pipeline.png new file mode 100644 index 0000000..d0f23d7 Binary files /dev/null and b/research/knowledge_clusters/submission/figures/pipeline.png differ diff --git a/research/knowledge_clusters/submission/figures/pipeline_v1.png b/research/knowledge_clusters/submission/figures/pipeline_v1.png new file mode 100644 index 0000000..9ed45d5 Binary files /dev/null and b/research/knowledge_clusters/submission/figures/pipeline_v1.png differ diff --git a/research/knowledge_clusters/submission/sample-base.bib b/research/knowledge_clusters/submission/sample-base.bib new file mode 100644 index 0000000..a73a235 --- /dev/null +++ b/research/knowledge_clusters/submission/sample-base.bib @@ -0,0 +1,430 @@ + +% Journals + +% First the Full Name is given, then the abbreviation used in the AMS Math +% Reviews, with an indication if it could not be found there. +% Note the 2nd overwrites the 1st, so swap them if you want the full name. + + %{AMS} + @String{AMSTrans = "American Mathematical Society Translations" } + @String{AMSTrans = "Amer. Math. Soc. Transl." } + @String{BullAMS = "Bulletin of the American Mathematical Society" } + @String{BullAMS = "Bull. Amer. Math. Soc." } + @String{ProcAMS = "Proceedings of the American Mathematical Society" } + @String{ProcAMS = "Proc. Amer. Math. Soc." } + @String{TransAMS = "Transactions of the American Mathematical Society" } + @String{TransAMS = "Trans. Amer. Math. Soc." } + + %ACM + @String{CACM = "Communications of the {ACM}" } + @String{CACM = "Commun. {ACM}" } + @String{CompServ = "Comput. Surveys" } + @String{JACM = "J. ACM" } + @String{ACMMathSoft = "{ACM} Transactions on Mathematical Software" } + @String{ACMMathSoft = "{ACM} Trans. Math. Software" } + @String{SIGNUM = "{ACM} {SIGNUM} Newsletter" } + @String{SIGNUM = "{ACM} {SIGNUM} Newslett." } + + @String{AmerSocio = "American Journal of Sociology" } + @String{AmerStatAssoc = "Journal of the American Statistical Association" } + @String{AmerStatAssoc = "J. Amer. Statist. Assoc." } + @String{ApplMathComp = "Applied Mathematics and Computation" } + @String{ApplMathComp = "Appl. Math. Comput." } + @String{AmerMathMonthly = "American Mathematical Monthly" } + @String{AmerMathMonthly = "Amer. Math. Monthly" } + @String{BIT = "{BIT}" } + @String{BritStatPsych = "British Journal of Mathematical and Statistical + Psychology" } + @String{BritStatPsych = "Brit. J. Math. Statist. Psych." } + @String{CanMathBull = "Canadian Mathematical Bulletin" } + @String{CanMathBull = "Canad. Math. Bull." } + @String{CompApplMath = "Journal of Computational and Applied Mathematics" } + @String{CompApplMath = "J. Comput. Appl. Math." } + @String{CompPhys = "Journal of Computational Physics" } + @String{CompPhys = "J. Comput. Phys." } + @String{CompStruct = "Computers and Structures" } + @String{CompStruct = "Comput. \& Structures" } + @String{CompJour = "The Computer Journal" } + @String{CompJour = "Comput. J." } + @String{CompSysSci = "Journal of Computer and System Sciences" } + @String{CompSysSci = "J. Comput. System Sci." } + @String{Computing = "Computing" } + @String{ContempMath = "Contemporary Mathematics" } + @String{ContempMath = "Contemp. Math." } + @String{Crelle = "Crelle's Journal" } + @String{GiornaleMath = "Giornale di Mathematiche" } + @String{GiornaleMath = "Giorn. Mat." } % didn't find in AMS MR., ibid. + + %IEEE + @String{Computer = "{IEEE} Computer" } + @String{IEEETransComp = "{IEEE} Transactions on Computers" } + @String{IEEETransComp = "{IEEE} Trans. Comput." } + @String{IEEETransAC = "{IEEE} Transactions on Automatic Control" } + @String{IEEETransAC = "{IEEE} Trans. Automat. Control" } + @String{IEEESpec = "{IEEE} Spectrum" } % didn't find in AMS MR + @String{ProcIEEE = "Proceedings of the {IEEE}" } + @String{ProcIEEE = "Proc. {IEEE}" } % didn't find in AMS MR + @String{IEEETransAeroElec = "{IEEE} Transactions on Aerospace and Electronic + Systems" } + @String{IEEETransAeroElec = "{IEEE} Trans. Aerospace Electron. Systems" } + + @String{IMANumerAna = "{IMA} Journal of Numerical Analysis" } + @String{IMANumerAna = "{IMA} J. Numer. Anal." } + @String{InfProcLet = "Information Processing Letters" } + @String{InfProcLet = "Inform. Process. Lett." } + @String{InstMathApp = "Journal of the Institute of Mathematics and + its Applications" } + @String{InstMathApp = "J. Inst. Math. Appl." } + @String{IntControl = "International Journal of Control" } + @String{IntControl = "Internat. J. Control" } + @String{IntNumerEng = "International Journal for Numerical Methods in + Engineering" } + @String{IntNumerEng = "Internat. J. Numer. Methods Engrg." } + @String{IntSuper = "International Journal of Supercomputing Applications" } + @String{IntSuper = "Internat. J. Supercomputing Applic." } % didn't find +%% in AMS MR + @String{Kibernetika = "Kibernetika" } + @String{JResNatBurStand = "Journal of Research of the National Bureau + of Standards" } + @String{JResNatBurStand = "J. Res. Nat. Bur. Standards" } + @String{LinAlgApp = "Linear Algebra and its Applications" } + @String{LinAlgApp = "Linear Algebra Appl." } + @String{MathAnaAppl = "Journal of Mathematical Analysis and Applications" } + @String{MathAnaAppl = "J. Math. Anal. Appl." } + @String{MathAnnalen = "Mathematische Annalen" } + @String{MathAnnalen = "Math. Ann." } + @String{MathPhys = "Journal of Mathematical Physics" } + @String{MathPhys = "J. Math. Phys." } + @String{MathComp = "Mathematics of Computation" } + @String{MathComp = "Math. Comp." } + @String{MathScand = "Mathematica Scandinavica" } + @String{MathScand = "Math. Scand." } + @String{TablesAidsComp = "Mathematical Tables and Other Aids to Computation" } + @String{TablesAidsComp = "Math. Tables Aids Comput." } + @String{NumerMath = "Numerische Mathematik" } + @String{NumerMath = "Numer. Math." } + @String{PacificMath = "Pacific Journal of Mathematics" } + @String{PacificMath = "Pacific J. Math." } + @String{ParDistComp = "Journal of Parallel and Distributed Computing" } + @String{ParDistComp = "J. Parallel and Distrib. Comput." } % didn't find +%% in AMS MR + @String{ParComputing = "Parallel Computing" } + @String{ParComputing = "Parallel Comput." } + @String{PhilMag = "Philosophical Magazine" } + @String{PhilMag = "Philos. Mag." } + @String{ProcNAS = "Proceedings of the National Academy of Sciences + of the USA" } + @String{ProcNAS = "Proc. Nat. Acad. Sci. U. S. A." } + @String{Psychometrika = "Psychometrika" } + @String{QuartMath = "Quarterly Journal of Mathematics, Oxford, Series (2)" } + @String{QuartMath = "Quart. J. Math. Oxford Ser. (2)" } + @String{QuartApplMath = "Quarterly of Applied Mathematics" } + @String{QuartApplMath = "Quart. Appl. Math." } + @String{RevueInstStat = "Review of the International Statisical Institute" } + @String{RevueInstStat = "Rev. Inst. Internat. Statist." } + + %SIAM + @String{JSIAM = "Journal of the Society for Industrial and Applied + Mathematics" } + @String{JSIAM = "J. Soc. Indust. Appl. Math." } + @String{JSIAMB = "Journal of the Society for Industrial and Applied + Mathematics, Series B, Numerical Analysis" } + @String{JSIAMB = "J. Soc. Indust. Appl. Math. Ser. B Numer. Anal." } + @String{SIAMAlgMeth = "{SIAM} Journal on Algebraic and Discrete Methods" } + @String{SIAMAlgMeth = "{SIAM} J. Algebraic Discrete Methods" } + @String{SIAMAppMath = "{SIAM} Journal on Applied Mathematics" } + @String{SIAMAppMath = "{SIAM} J. Appl. Math." } + @String{SIAMComp = "{SIAM} Journal on Computing" } + @String{SIAMComp = "{SIAM} J. Comput." } + @String{SIAMMatrix = "{SIAM} Journal on Matrix Analysis and Applications" } + @String{SIAMMatrix = "{SIAM} J. Matrix Anal. Appl." } + @String{SIAMNumAnal = "{SIAM} Journal on Numerical Analysis" } + @String{SIAMNumAnal = "{SIAM} J. Numer. Anal." } + @String{SIAMReview = "{SIAM} Review" } + @String{SIAMReview = "{SIAM} Rev." } + @String{SIAMSciStat = "{SIAM} Journal on Scientific and Statistical + Computing" } + @String{SIAMSciStat = "{SIAM} J. Sci. Statist. Comput." } + + @String{SoftPracExp = "Software Practice and Experience" } + @String{SoftPracExp = "Software Prac. Experience" } % didn't find in AMS MR + @String{StatScience = "Statistical Science" } + @String{StatScience = "Statist. Sci." } + @String{Techno = "Technometrics" } + @String{USSRCompMathPhys = "{USSR} Computational Mathematics and Mathematical + Physics" } + @String{USSRCompMathPhys = "{U. S. S. R.} Comput. Math. and Math. Phys." } + @String{VLSICompSys = "Journal of {VLSI} and Computer Systems" } + @String{VLSICompSys = "J. {VLSI} Comput. Syst." } + @String{ZAngewMathMech = "Zeitschrift fur Angewandte Mathematik und + Mechanik" } + @String{ZAngewMathMech = "Z. Angew. Math. Mech." } + @String{ZAngewMathPhys = "Zeitschrift fur Angewandte Mathematik und Physik" } + @String{ZAngewMathPhys = "Z. Angew. Math. Phys." } + +% Publishers % ================================================= | + + @String{Academic = "Academic Press" } + @String{ACMPress = "{ACM} Press" } + @String{AdamHilger = "Adam Hilger" } + @String{AddisonWesley = "Addison-Wesley" } + @String{AllynBacon = "Allyn and Bacon" } + @String{AMS = "American Mathematical Society" } + @String{Birkhauser = "Birkh{\"a}user" } + @String{CambridgePress = "Cambridge University Press" } + @String{Chelsea = "Chelsea" } + @String{ClaredonPress = "Claredon Press" } + @String{DoverPub = "Dover Publications" } + @String{Eyolles = "Eyolles" } + @String{HoltRinehartWinston = "Holt, Rinehart and Winston" } + @String{Interscience = "Interscience" } + @String{JohnsHopkinsPress = "The Johns Hopkins University Press" } + @String{JohnWileySons = "John Wiley and Sons" } + @String{Macmillan = "Macmillan" } + @String{MathWorks = "The Math Works Inc." } + @String{McGrawHill = "McGraw-Hill" } + @String{NatBurStd = "National Bureau of Standards" } + @String{NorthHolland = "North-Holland" } + @String{OxfordPress = "Oxford University Press" } %address Oxford or London? + @String{PergamonPress = "Pergamon Press" } + @String{PlenumPress = "Plenum Press" } + @String{PrenticeHall = "Prentice-Hall" } + @String{SIAMPub = "{SIAM} Publications" } + @String{Springer = "Springer-Verlag" } + @String{TexasPress = "University of Texas Press" } + @String{VanNostrand = "Van Nostrand" } + @String{WHFreeman = "W. H. Freeman and Co." } + +%Entries + +@article{knisely2023research, + title={Research proposal content extraction using natural language processing and semi-supervised clustering: A demonstration and comparative analysis}, + author={Knisely, Benjamin M and Pavliscsak, Holly H}, + journal={Scientometrics}, + volume={128}, + number={5}, + pages={3197--3224}, + year={2023}, + publisher={Springer} +} +@article{han2024automated, + title={Automated Matchmaking of Researcher Biosketches and Funder Requests for Proposals Using Deep Neural Networks}, + author={Han, Sifei and Richie, Russell and Shi, Lingyun and Tsui, Fuchiang}, + journal={IEEE access}, + volume={12}, + pages={98096--98106}, + year={2024}, + publisher={IEEE} +} + +@article{chikwarti2023automated, + title={Automated Topic Mapping and Alignment in Research Proposals Using NLP-Driven Ontologies}, + author={Chikwarti, Dileep Kumar and Thomas, James}, + year={2023} +} +@article{freyman2016machine, + title={Machine-learning-based classification of research grant award records}, + author={Freyman, Christina A and Byrnes, John J and Alexander, Jeffrey}, + journal={Research Evaluation}, + volume={25}, + number={4}, + pages={442--450}, + year={2016}, + publisher={Oxford University Press} +} +@article{huang2024bringing, + title={Bringing Artificial Intelligence to Research Analytics: Research Highlighter-MatchMaker}, + author={Huang, Tianning and Li, Yuemin}, + journal={Journal of Knowledge Management Practice}, + volume={24}, + number={3}, + year={2024} +} +@inproceedings{asim2018content, + title={Content based call for papers recommendation to researchers}, + author={Asim, Muhammad and Khusro, Shah}, + booktitle={2018 12th International Conference on Open Source Systems and Technologies (ICOSST)}, + pages={42--47}, + year={2018}, + organization={IEEE} +} +@inproceedings{kamada2015recommendation, + title={Recommendation system of grants-in-aid for researchers by using jsps keyword}, + author={Kamada, Shin and Ichimura, Takumi and Watanabe, Takanobu}, + booktitle={2015 IEEE 8th International Workshop on Computational Intelligence and Applications (IWCIA)}, + pages={143--148}, + year={2015}, + organization={IEEE} +} +@article{zhu2023novel, + title={A novel NIH research grant recommender using BERT}, + author={Zhu, Jie and Patra, Braja Gopal and Wu, Hulin and Yaseen, Ashraf}, + journal={PloS one}, + volume={18}, + number={1}, + pages={e0278636}, + year={2023}, + publisher={Public Library of Science San Francisco, CA USA} +} +@article{ZHANG2024100095, +title = {Scholarly recommendation system for NIH funded grants based on biomedical word embedding models}, +journal = {Natural Language Processing Journal}, +volume = {8}, +pages = {100095}, +year = {2024}, +issn = {2949-7191}, +author = {Zitong Zhang and Ashraf Yaseen and Hulin Wu}, +keywords = {NIH, Funded grant, Word embedding, Recommendation system}, +} +@inproceedings{kumar2006hierarchical, + title={Hierarchical topic segmentation of websites}, + author={Kumar, Ravi and Punera, Kunal and Tomkins, Andrew}, + booktitle={Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining}, + pages={257--266}, + year={2006} +} +@inproceedings{li2000defining, + title={Defining logical domains in a web site}, + author={Li, Wen-Syan and Kolak, Okan and Vu, Quoc and Takano, Hajime}, + booktitle={Proceedings of the eleventh ACM on Hypertext and hypermedia}, + pages={123--132}, + year={2000} +} +@article{abdelakfi2021mining, + title={Mining organizational structures from email logs: an NLP based approach}, + author={Abdelakfi, Mahdi and Mbarek, Nader and Bouzguenda, Lotfi}, + journal={Procedia Computer Science}, + volume={192}, + pages={348--356}, + year={2021}, + publisher={Elsevier} +} +@article{nurek2020combining, + title={Combining machine learning and social network analysis to reveal the organizational structures}, + author={Nurek, Mateusz and Michalski, Rados{\l}aw}, + journal={Applied Sciences}, + volume={10}, + number={5}, + pages={1699}, + year={2020}, + publisher={MDPI} +} +@article{aich2019convolutional, + title={Convolutional neural network-based model for web-based text classification.}, + author={Aich, Satyabrata and Chakraborty, Sabyasachi and Kim, Hee-Cheol}, + journal={International Journal of Electrical \& Computer Engineering (2088-8708)}, + volume={9}, + number={6}, + year={2019} +} +@phdthesis{rehm2005hypertextsorten, + title={Hypertextsorten: Definition--Struktur--Klassifikation. Books on Demand, Norderstedt, 2007}, + author={Rehm, Georg}, + year={2005}, + school={PhD thesis in Applied and Computational Linguistics, Justus-Liebig~…} +} + +@article{arzhybrid, + title={BLINDED TITLE}, + author={BLINDED}, + year={2025} +} + +@INPROCEEDINGS{10350067, + author={Vörös, Tamás and Bergeron, Sean Paul and Berlin, Konstantin}, + booktitle={2023 IEEE/WIC International Conference on Web Intelligence and Intelligent Agent Technology (WI-IAT)}, + title={Web Content Filtering Through Knowledge Distillation of Large Language Models}, + year={2023}, + volume={}, + number={}, + pages={357-361}, + keywords={Training;Knowledge engineering;Uniform resource locators;Adaptation models;Training data;Tail;Organizations;web content filtering;machine learning;large language models}, +} + + +@article{campos2020yake, + title={YAKE! Keyword extraction from single documents using multiple local features}, + author={Campos, Ricardo and Mangaravite, V{\'\i}tor and Pasquali, Arian and Jorge, Al{\'\i}pio and Nunes, C{\'e}lia and Jatowt, Adam}, + journal={Information Sciences}, + volume={509}, + pages={257--289}, + year={2020}, + publisher={Elsevier} +} + +@inproceedings{barbaresi-2021-trafilatura, + title = {{Trafilatura: A Web Scraping Library and Command-Line Tool for Text Discovery and Extraction}}, + author = "Barbaresi, Adrien", + booktitle = "Joint Conference of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing: System Demonstrations", + pages = "122--131", + publisher = "Association for Computational Linguistics", + year = 2021, +} + +@article{ghawi2019efficient, + title={Efficient hyperparameter tuning with grid search for text categorization using kNN approach with BM25 similarity}, + author={Ghawi, Raji and Pfeffer, J{\"u}rgen}, + journal={Open Computer Science}, + volume={9}, + number={1}, + pages={160--180}, + year={2019} +} + +@article{grootendorst2022bertopic, + title={BERTopic: Neural topic modeling with a class-based TF-IDF procedure}, + author={Grootendorst, Maarten}, + journal={arXiv preprint arXiv:2203.05794}, + year={2022} +} + +@inproceedings{reimers-2020-multilingual-sentence-bert, + title = "Making Monolingual Sentence Embeddings Multilingual using Knowledge Distillation", + author = "Reimers, Nils and Gurevych, Iryna", + booktitle = "2020 Conference on Empirical Methods in Natural Language Processing", + month = "11", + year = "2020", + publisher = "Association for Computational Linguistics", +} + +@inproceedings{tamm2021quality, + title={Quality metrics in recommender systems: Do we calculate metrics consistently?}, + author={Tamm, Yan-Martin and Damdinov, Rinchin and Vasilev, Alexey}, + booktitle={15th ACM conference on recommender systems}, + pages={708--713}, + year={2021} +} +@inproceedings{amami2016lda, + title={An LDA-based approach to scientific paper recommendation}, + author={Amami, Maha and Pasi, Gabriella and Stella, Fabio and Faiz, Rim}, + booktitle={International conference on applications of natural language to information systems}, + pages={200--210}, + year={2016}, + organization={Springer} +} +@inproceedings{wang2011collaborative, + title={Collaborative topic modeling for recommending scientific articles}, + author={Wang, Chong and Blei, David M}, + booktitle={17th ACM SIGKDD international conference on Knowledge discovery and data mining}, + pages={448--456}, + year={2011} +} +@inproceedings{zhang2014content+, + title={Content+ attributes: A latent factor model for recommending scientific papers in heterogeneous academic networks}, + author={Zhang, Chenyi and Zhao, Xueyi and Wang, Ke and Sun, Jianling}, + booktitle={European Conference on Information Retrieval}, + pages={39--50}, + year={2014}, + organization={Springer} +} + +@article{stewart2022implementation, + title={An implementation of the HDBSCAN* clustering algorithm}, + author={Stewart, Geoffrey and Al-Khassaweneh, Mahmood}, + journal={Applied Sciences}, + volume={12}, + number={5}, + pages={2405}, + year={2022}, + publisher={MDPI} +} \ No newline at end of file diff --git a/research/knowledge_clusters/submission/sample-sigconf.tex b/research/knowledge_clusters/submission/sample-sigconf.tex new file mode 100644 index 0000000..4751e6c --- /dev/null +++ b/research/knowledge_clusters/submission/sample-sigconf.tex @@ -0,0 +1,945 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2027} +\acmYear{2027} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[KDD '27]{The 33rd ACM SIGKDD Conference on Knowledge + Discovery and Data Mining}{August 2027}{} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +% \acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +\usepackage[table, dvipsnames]{xcolor} +\usepackage[misc]{ifsym} +\usepackage{adjustbox} +\usepackage{float} +\usepackage{subcaption} + +%% --- Two-column layout helpers: wrap long verbatim/URLs, reduce overfull boxes --- +\usepackage{fvextra} % enables line breaking inside verbatim blocks +\usepackage{seqsplit} % lets long URLs wrap inside narrow table cells +\setlength{\emergencystretch}{2em} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{MatchMaker: Automating Funding Call Distribution in Academic Institutions} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Identifying and distributing relevant funding opportunities is a critical yet resource-intensive task in academic institutions, where Research Support Offices (RSOs) manually screen large volumes of funding calls and route them to the appropriate organizational units. We present \emph{MatchMaker}, a system that automates this task by matching funding calls to the most relevant organizational units (faculties, institutes, and chairs). MatchMaker combines institutional data mining with semantic text analysis: it extends our previous work on mining organizational units from university webpages with LLM-assisted classifiers to automatically enrich bibliographic records with fine-grained affiliation labels across the organizational hierarchy, and it applies topic modeling to rank organizational units for each incoming call. The system has been in operation at the RSO of our university since September 2025. We report a systematic evaluation across supervised and unsupervised models and multiple input representations, together with a real-world evaluation on 100 Horizon Europe calls processed during deployment. Our results show that matching benefits significantly from aggregation across the organizational hierarchy, consistently achieving a Hit Rate@5 (the proportion of instances for which a relevant unit is ranked in the top five) above 83\% at the chair and institute levels on both historical and upcoming calls. Beyond these results, we share practical lessons from operating the system and argue that it can serve as a blueprint for similar deployments at other institutions. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 10002951.10003227.10003241.10003244 + Information systems~Data analytics + 500 + + +\end{CCSXML} + +\ccsdesc[500]{Information systems~Data analytics} + +% \ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Organization Recommendation \and Organizational Mining \and Topic Modeling \and Funding Call Matching \and Research Support} + + +% \received{20 February 2007} +% \received[revised]{12 March 2009} +% \received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +%This work addresses the problem of efficiently matching research funding opportunities to suitable researchers in an academic context. +Access to external funding is a key prerequisite for conducting research and development, yet identifying relevant funding calls is a time-consuming process. At many universities, dedicated Research Support Offices (RSOs) manually screen a large number of funding announcements, interpret their thematic scope and eligibility criteria, and forward promising calls to appropriate organizational entities such as chairs, institutes, or faculties. This manual process relies heavily on the experience and tacit knowledge of staff members and does not scale well. In addition, it is prone to inconsistencies, depends on personal networks, and risks overlooking suitable researchers, especially in large or rapidly evolving organizations. + +To address these challenges at our university, we have developed \emph{MatchMaker}, a system that automates and supports the funding call matching task at a university-wide scale. Since September 2025, the system has been successful in assisting our RSO by reducing manual effort and increasing the precision and coverage of call distribution. +%The tool also enables individual researchers to receive personalized and filtered funding information aligned with their research profiles. +The central idea is to represent both funding calls and the competences of researchers, or their organizational entities, in a comparable way using automatically extracted semantic descriptors. By computing similarity scores based on publication titles (as a proxy for expertise) and textual content of funding calls, the system measures the relevance of the calls for researchers and organizational units and, conversely, ranks them for a given call. + +To ensure that the system has access to an up-to-date representation of the university, we rely on automated organizational mining which extracts researchers and their organizational affiliations from university webpages and uses this information to enrich the university’s publication database with reliable metadata at chair, institute, and faculty level. To evaluate the system, we benchmark multiple input representations of funding calls and publication titles. Thereby, we compare keyword-based approaches (YAKE and LLM-based extraction) as well as different models that are trained with supervised and unsupervised methods. + +We have integrated MatchMaker into the operational workflow of our university's RSO, where it has been in use for almost a year. During this period, the system has continuously produced ranked recommendations over our organizational units for incoming calls. To evaluate the performance of the system, our RSO experts have systematically reviewed its predictions on 100 open and forthcoming Horizon Europe calls. In this paper, we report this real-world evaluation alongside controlled experiments on publication data and historical calls, and we share our excperience from operating the system in production. + +%To ensure such a framework leverages existing institutional data and remains flexible enough to be transferable to other universities, we rely on automated organizational mining. We employ a web mining pipeline to identify and extract researchers and their organizational affiliations directly from university webpages, subsequently enriching the university's publication library with reliable organizational metadata at the chair, institute, and faculty levels. Based on this automated data pipeline, our work compares different input representations for project calls and publication titles, utilizing YAKE and large language model (LLM) based methods as well as supervised and unsupervised learning methods for training. Finally, we present the results of the framework, where we conduct matching experiments using enriched data and keyword extraction strategies, demonstrating the potential of the proposed framework to support and automate project call distribution in academic institutions. +%Such a system leverages existing institutional data, in particular publication records, and be flexible enough to adapt to different organizational structures and to be transferable to other universities. +%Our work compares different keyword extraction approaches for representing project calls and publication titles, focusing in particular on the unsupervised method YAKE and on large language model (LLM) based methods. The comparison examines how these techniques influence the quality of the matching between project calls and researchers. +%Also, to enable a university-wide evaluation and to design a solution that can generalize to other institutions, +%the work extends a previously published organization mining pipeline, here referred to as OrgMiner. This extension adds functionality +%we identify and extract researchers and their organizational affiliations from university web pages and to enrich the institutional bibliography with reliable organizational metadata at chair, institute, and faculty level. Finally, the paper presents and analyzes the results of the matching experiments based on these enriched data and keyword extraction strategies, demonstrating the potential of the proposed approach to support and partially automate project call distribution in academic institutions. + +The contributions of this paper are: +%\begin{itemize} +% \item \textbf{LLM-enhanced organizational mining} that reconstructs university hierarchies and links publication data to administrative entities for scalable call matching. +% \item \textbf{Hierarchical matching effectiveness}, showing that Chair/Institute-level aggregation clearly outperforms researcher-level assignment (e.g., 97.4\% HitRate@5 at Chair level). +% \item \textbf{Cross-domain validation} on 100 Horizon Europe calls, achieving 83\% HitRate@5 at Chair level and up to 96\% HitRate@5 at Faculty level. +% \item \textbf{Semantic input modeling impact}, demonstrating that LLM-based normalization improves fine-grained (Chair/Institute) recommendations, reaching up to 86\% HitRate@5 at Institute level. +%\end{itemize} +%\begin{itemize}\item \textbf{Framework}: An automated organizational mining pipeline with LLM-assisted web crawling that reconstructs university hierarchies from webpages and enriches publication metadata with chair-, institute-, and faculty-level affiliations for scalable call routing. +%\item \textbf{Matching}: An implementation and benchmark of multiple call--publication matching variants, covering different input text representations (raw text vs. keyword/normalized representations) and both statistical (e.g., YAKE) and LLM-based enrichment, evaluated with supervised and unsupervised learning setups. +%\item \textbf{Evaluation}: A systematic evaluation (publication-based, cross-domain on 100 Horizon Europe calls, and expert validation) showing that aggregation at administratively actionable levels (chair/institute/faculty) consistently outperforms researcher-level assignment (up to 97.4\% HitRate@5 at chair level); it also demonstrates transfer to real calls (83\% HitRate@5 at chair level, up to 96\% at faculty level) and quantifies the benefit of semantic normalization for fine-grained routing (up to 86\% HitRate@5 at institute level). +%\end{itemize} +\begin{itemize} + \item We present MatchMaker, a system in operation at our university's Research Support Office since September 2025, that automatically routes incoming funding calls to the most relevant organizational units (faculties, institutes, and chairs). + \item We develop an organizational mining and an LLM-assisted enrichment pipeline that reconstructs the university hierarchy from public webpages and links publications to chair, institute, and faculty-level affiliations, providing the data foundation for matching without manually maintained metadata. + \item We benchmark multiple models and input representations (raw text, YAKE, and LLM-generated keywords) and evaluate matching on publication data, historical funding calls, and 100 Horizon Europe calls processed during deployment, achieving a HitRate@5 (the proportion of instances for which a relevant unit is ranked in the top five) consistently above 83\% at the chair and institute levels where calls are handled in practice. + \item We distill lessons learned from operating the system in production, offering guidance for similar deployments at other institutions. +\end{itemize} + + + + +\section{Related Work} + +%1)compare the evaluation between related work +%2)quantify that it works better or worse than the previous metrics and then argue that %in higher hierachy levels better. +%3) Less orgminer, more call matching +%4) Emphasize differences with numbers + +Effective matching of funding calls and organizational entities requires understanding the semantic themes of research texts beyond simple keyword matching. This has motivated work on topic modeling and semantic extraction for analyzing publications and project/funding calls. For example, the authors of~\cite{knisely2023research} use semi-supervised clustering to assign research documents to predefined thematic areas, demonstrating how structured topic representations can support institutional analysis. The work of~\cite{chikwarti2023automated} adopts an ontology-driven approach, combining NLP methods with curated domain vocabularies to extract multi-level topics and compute semantic similarity between proposals and funding calls. Earlier systems relying on keyword or content-based features, such as those by the authors of~\cite{asim2018content} and~\cite{kamada2015recommendation}, depend heavily on manually defined terms or controlled vocabularies, which limits scalability and adaptability across domains. +%orgminer +% A separate line of research investigates institutional profiling to uncover structural or thematic units within web-based environments. Early efforts in this area relied heavily on URL structures: for example, Kumar et al.~\cite{kumar2006hierarchical} segments website URL trees into topic-coherent regions, while Li et al.~\cite{li2000defining} introduce the concept of logical domains, a rule-based approach that uses link structures, URL paths, page metadata, and external citations to identify both entry points and boundaries of semantically meaningful sections of a website. Other approaches leverage natural language processing and machine-learning techniques to infer organizational structures from diverse data sources. Abdelakfi et al.~\cite{abdelakfi2021mining} mines hierarchical and functional relationships from email communication logs, and Nurek and Michalski~\cite{nurek2020combining} combine machine learning with social network analysis to reconstruct organizational structures from interaction patterns. In the context of web content classification, Aich et al.~\cite{aich2019convolutional} proposed a convolutional neural network model for web text classification which outperformed recurrent architectures like RNNs and LSTMs in both simplicity and accuracy. +% Focusing specifically on academic institutions, Rehm~\cite{rehm2005hypertextsorten} explores organizational mining through empirical analysis of the topology and characteristics of different types of university webpages, showing how structural features of academic websites can reveal underlying institutional organization. +%project calls matching + +% Some work has focused on recommending scientific papers based on researchers’ interests. Traditional approaches, such as collaborative filtering (CF), model user–item interactions to predict preferences but suffer from sparsity and cold-start problems, where new researchers or items receive fewer recommendations due to limited interaction data. +Another major area focuses on recommending scientific papers to individual researchers. To overcome the cold-start problem in collaborative filtering (CF), the work of~\cite{wang2011collaborative} extends CF with latent topic representations, improving recommendation coverage and enabling better predictions for previously unseen items. Similarly, the model of~\cite{zhang2014content+} combines topic content with metadata such as authorship, citations, and publication venues, achieving higher coverage and improving Recall@k (The proportion of all relevant items that are successfully retrieved within the top k positions) by roughly 10\%. The results of~\cite{amami2016lda} further show that focusing only on past publications with minimal metadata can outperform more complex collaborative filtering models that incorporate content and descriptive attributes, achieving up to 60.4\% improvement in Recall@k. + +%CTR: collaborative topic regression +%CAD: content + attribute model - incorporates content and descriptive attributes of items + +Beyond paper recommendation, several systems address matching researchers to funding opportunities. Our work is partially aligned with the work of~\cite{ZHANG2024100095}, which formulates grant recommendation as a ranking problem based on semantic similarity between publications and funding calls. However, their approach is limited to the biomedical domain and is evaluated indirectly via citation-based relevance between funded NIH grants and PubMed publications, reporting an average relevance rating of 3.53/5. Similarly, the authors of~\cite{zhu2023novel} propose a BERT-based classification model for NIH grant recommendation, incorporating Dirichlet Process Mixture Model (DPMM) clustering and recency weighting to capture temporal dynamics. While this yields strong performance (F1 = 83.89\%), the method is likewise domain-specific to biomedicine and formulated as a binary classification task between publications and grants. +Furthermore, the work of~\cite{han2024automated} focuses on automated matchmaking between researcher biosketches and requests for proposals (RFPs) using deep neural embedding models. Their best-performing model achieves an F1-score of 71.15\%. In comparison to publication-based approaches, their work relies on structured biosketch data and similarly targets individual-level researcher matching. + + +While prior work focuses on biomedical domain, our system is domain-agnostic, leveraging BERTopic to extract thematic structures directly from research publications which are mapped into their organizational entities (academic departments and institutes). The latter reverses the matching direction by ranking institutional entities for each funding call, which reflects how funding decisions are made at the organizational levels. +Additionally, we provide an extensive benchmark across multiple text representations, including LLM-generated and statistically extracted (Yake) keywords. We evaluate our system using recommendation metrics HitRate@k and Mean Rank@k (MR@k) (measures the average numerical position of the first relevant result across all queries in top k predictions) rather than classification metrics (e.g., F1-score). +%appropriate for ranking tasks, whereas much prior work relies on classification metrics (e.g., F1-score). +In doing so, we perform effective call-to-department matching, where, we achieve HitRate@5 performance for coarse-grained organizational units such as chairs and institutes: 89.4\% and 87.2\% when using historical calls, 97.4\% and 90.7\% when using publication text alone, and 83\% and 86\% on open and upcoming calls. + +%call totarget higher-level organizational units (academic departments and institutes), as well as individual researchers. The latter reverses the matching direction by ranking institutional entities for each project call, which reflects funding decisions at the organizational levels. +%while integrating a constructed domain vocabulary without relying on fixed hierarchies. + +%By integrating semantic topic representations with departmental metadata, our system enables effective call-to-department matching. We achieve strong HitRate@15 performance for coarse-grained organizational units such as chairs and institutes: 95.7\% and 97.29\% when using pre-matched calls, 98.4\% and 92.9\% when using publication text alone, and -\% and -\% on previously unseen projects. + +%This shift not only enhances the practical utility of automated funding workflows but also establishes a scalable and transferable framework for aligning research expertise with institutional structures across universities. +% In contrast to prior work, our approach differs in several important aspects. While existing studies mainly evaluate classification or ranking performance, we frame project-call distribution as a recommendation problem and evaluate it using recommendation-oriented metrics (e.g., HitRate@k, MR). Furthermore, unlike ontology-driven approaches, we do not rely on predefined ontologies; instead, we construct a data-driven domain vocabulary directly from publication corpora using topic modeling and keyword extraction. + +% Based on this well-aligned body of work, our approach further distinguishes itself by focusing on higher-level organizational entities, such as departments, chairs, and institutes, rather than individual researchers, reflecting the fact that funding decisions are typically made at these levels. In addition, we provide a systematic benchmark across multiple models and text representations, including raw text, statistical keywords, and LLM-generated keywords. Empirically, our approach outperforms baselines based on pre-matched calls, publication-only matching, and previously unseen project calls, demonstrating robust performance across realistic funding scenarios. + +% Automating the distribution of funding opportunities within a university requires solving two connected problems: understanding the research profile of the institution, and accurately matching external calls to its internal units. + +% A core task in the profiling of institutional expertise is mapping the research themes of departments and research groups. Prior work has used topic modeling and semantic analysis to understand research texts. Some approaches use predefined thematic areas or ontologies to categorize documents [~\cite{knisely2023research},~\cite{chikwarti2023automated}]. Others rely on manually curated keyword lists [~\cite{asim2018content}, ~\cite{kamada2015recommendation}]. While effective, these methods can be difficult to scale and adapt across different fields, as they require expert input to create and update their structured vocabularies. + +% Another major area focuses on recommending content to individual researchers. To overcome the cold-start problem in collaborative filtering, the work of~\cite{wang2011collaborative} integrated latent topic models, improving recommendation coverage to 0.8613. The authors~\cite{zhang2014content+} further boosted coverage to 0.9051 by adding author and venue metadata. For direct grant matching, recent works show strong performance:~\cite{ZHANG2024100095} reported an average relevance score of 3.53/5 using text similarity rankings, while ~\cite{zhu2023novel} achieved a Recall@1 of ~0.81 using a BERT model on NIH grants.~\cite{han2024automated} tested various neural models, with their best BERT-based cross-encoder reaching an F1-score of 71.15\%. These results confirm that advanced semantic matching works well for individual-level recommendations. + +% The systems above are designed to serve individual researchers, which creates a scalability problem for a university's research office-a single call would be sent to hundreds of individuals. Our work addresses the different problem of institutional call routing. We shift the matching unit from the researcher to the department or institute. To build institutional profiles, we use data-driven topic modeling (BERTopic) that requires no manual vocabularies. We also test and show results for different text representations (LLM-based vs. statistical keywords). By matching to aggregated organizational expertise, our system achieves a HitRate@5 of 89.4\% for real-world funding calls, providing a practical solution for central research support. + +\section{Approach} +Chairs and institutes are typically the entities that coordinate and submit funding proposals, and their expertise can be understood as the aggregated knowledge of their affiliated researchers. A funding call matching approach should therefore model both individual researchers and organizational entities to reflect how funding applications are actually prepared and managed in academic practice. + +Achieving such a representation depends on accurate mappings between researchers, their publications, and their positions within the organizational hierarchy. However, institutional bibliographies do not always provide reliable and standardized affiliation metadata, making organizational assignments difficult to infer directly from publication records. + +To address this limitation, we employ web mining to identify and extract researchers and their organizational affiliations directly from university webpages. We refer to latter as \textit{organization miner}. +%our approach operates as an end-to-end pipeline that continuously crawls university web pages, extracts researcher profiles using large language models, and links them back to the organizational hierarchy. +We then match the researchers with the publication records of the university to generate an enriched publication dataset with chair, institute, and faculty labels. Ultimately, we use the enriched publications for topic modelling, which produces a ranked recipient list of organizational units prioritized by their relevance to any given funding call. Figure \ref{fig:pipeline} summarizes the overall process. The system takes three primary inputs, marked in grey: \textit{the university starting URL} for discovering the organizational structure, the university \textit{publication records} containing titles and authors but lacking consistent affiliations, and the \textit{funding calls} (title and description) to be distributed. The output of the system include the final ranked inferences. The inferences represent a \textit{sorted list of matched departments} from organization miner (institutes/chairs/ faculties) relevant to the input funding call. + + +\begin{figure*}[!btp] + \centering + \includegraphics[width=0.75\textwidth]{figures/pipeline_v1.png} + %\vspace{-0.4cm} + \caption{Overview of the Approach (Inputs in grey, outputs in yellow and system components are marked in blue.).} + % \par\smallskip + % {\footnotesize \textit{Note}: Inputs in grey, outputs in yellow and system components in blue.} + \label{fig:pipeline} +\end{figure*} + +\subsection{Organization Miner} + +The goal of the organization miner is to automatically reconstruct a university’s organizational hierarchy from its public webpages, to identify faculties, institutes, and chairs and to provide the corresponding entry points needed for downstream extraction of staff and research information. To handle the heterogeneity of university web presences (different CMSs, layouts, languages, and naming conventions), it combines a rule-based crawler with LLM-based content classification. The miner takes the starting URL of a target university as input and automatically identifies the relevant faculty, institute, and chair webpages needed to instantiate the hierarchy. +A detailed description as well as a systematic evaluation of the organization miner can be found in \cite{arzhybrid}. + +%In prior published work, we evaluated the approach on four universities \cite{arzhybrid}; faculty landing pages were identified with an F1 score of 100\%, and institute/chair landing pages reached an F1 score of approximately 78\% with the best-performing model. + +%To start of, the organization miner \cite{arzanihybrid} first discovers aggregator (overview) pages by crawling from the university start URL and matching user-defined concept vocabularies (e.g., “faculty”, “institute”, “chair” and their equivalents in other languages) against prominent header tags (title, h1-h6, etc.). Then by following a rule-based algorithm, it traverses the site graph depth-first using navigation patterns to generate faculty, institute and chair aggregators. +%It confirms an aggregator when plural concept matches occur on the page (or its outgoing links) and at least one outgoing link’s header text contains the corresponding singular concept, then traverses the site graph depth-first using navigation patterns to cover nested or redirected overviews. +%From the resulting faculty aggregators, it identifies actual faculty pages by running a zero-shot Llama 3.3 prompt over each outgoing page; for institute/chair aggregators, it classifies outgoing web pages with a fine-tuned Flan-T5 (seq2seq) model to filter true institute/chair landing pages from other link targets. The result of this step is the clustered web links and content of each organizational entity by their domain presence which enables us to analyze each subset of webpages separately. + + +%what the goal is, that a combination of rule-based and llm based processing that points to the valuation published in the previous paper. What the org miner does and what it produces. Maybe add an evaluation metric that shows it works: for faculty, institute/chair webpages + +\subsection{LLM-based Preprocessing} +The LLM-based preprocessing stage builds on the organizational entity webpages identified in the previous step. First, it classifies the URLs associated with each entity and then extracts researcher profiles for the university’s faculties, institutes, and chairs using the web content. In the following, we provide a detailed description of each step. +%This step builds upon the organizational structure identified by \textit{OrgMiner}, which provides the landing pages of all major university entities, including faculties, institutes, and chairs. These landing pages serve as entry points for a targeted crawling strategy: for each entity, the crawler retrieves the connected sub-graph of web pages, allowing the subsequent steps to focus on pages that are organizationally relevant. +%Among this web pages lie the staff, researcher or team websites that acts as a layout of the researchers, professor(s) and administration who work there. To extract the researchers, we first classify and mark the staff URLs of each page in the sub-graph. Subsequently, by extracting the text content of the staff pages we apply a NER approach to extract researchers from these pages. In the following, we provide a detailed description of each step. + +\subsubsection{URL Classification} +Here, we focus on identifying and labeling the staff or team pages associated with each faculty, chair, and institute. The web presence of each organizational entity within university websites consist of a collection of webpages in different categories. Therefore, an essential first step is to classify their URLs into functional categories such as \textit{staff pages}, \textit{project pages}, or \textit{news pages}. Typical examples of URLs encountered in the university domain include: + +\begin{table}[ht] +\scriptsize +\centering +\caption{Examples of URLs and their classified categories.} +\label{tab:url_examples} +\renewcommand{\arraystretch}{1.3} +\begin{tabular}{@{}>{\raggedright\arraybackslash}p{0.83\linewidth} >{\raggedright\arraybackslash}p{0.11\linewidth}@{}} +\toprule +\textbf{URL} & \textbf{Category} \\ +\midrule +\texttt{\seqsplit{https://cs.uni-example.edu/ai-chair/team/}} & staff \\ +\texttt{\seqsplit{https://cs.uni-example.edu/software-systems/projects/secure-cloud/}} & project \\ +\texttt{\seqsplit{https://cs.uni-example.edu/news/2024/new-professor-hired/}} & news \\ +\texttt{\seqsplit{https://engineering.uni-example.edu/robotics-group/people/}} & staff \\ +\texttt{\seqsplit{https://math.uni-example.edu/institute/research/optimization/}} & research \\ +\bottomrule +\end{tabular} +\end{table} +%\vspace{-1cm} + +%This classification is feasible because university webpages often encode meaningful semantic information directly in their URLs. Elements such as directory names (e.g., \texttt{/team/}, \texttt{/people/}), research terms (e.g., \texttt{/projects/}, \texttt{/research/}), or communication-related prefixes (e.g., \texttt{/news/}) act as strong indicators of a page’s purpose. Modern large language models are particularly well suited for this task, as they possess extensive pretrained knowledge about common URL patterns, web conventions, and organizational website structures \cite{10350067}. Consequently, they can reliably infer the intended category of a URL even without accessing the page content. Therefore, instead of relying on a supervised classifier, we apply a zero-shot prompting method, as described below, using large language models (LLMs), which allows URL classification based solely on the URL string. A test on webpages from a Faculty of Computer Science achieved an accuracy of 97\% for URL classification on our university. + +This classification is feasible because university websites often encode semantic cues directly in URL paths. Directory names (e.g., \texttt{/team/}, \texttt{/people/}), research-related segments (e.g., \texttt{/projects/}, \texttt{/research/}), and communication prefixes (e.g., \texttt{/news/}) can serve as strong indicators of a page’s function. Large language models are well suited to this setting because they capture common URL conventions and website patterns from pretraining \cite{10350067}. We therefore formulate URL categorization as a zero-shot prompting task, enabling classification based solely on the URL string (i.e., without fetching page content). +When applying this to 10,522 webpages of the computer science faculty of our university, the method achieves an F1 score of 97\%. + +%In a pilot evaluation on Faculty of Computer Science of our university, the method achieved 97\% accuracy on URLs. + +\label{zeroshot} +\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\scriptsize] +You are an expert in categorizing university website URLs. +Given the URL below, classify it into one of the following +categories: +- "staff page": lists people, team members, researchers, or administrative staff +- "project page": describes research projects, research areas, or project groups +- "news page": contains news articles, announcements, or event postings +### Respond only with the category name. +URL: {{URL}} +\end{Verbatim} + + +\subsubsection{Researcher Extraction} + +%After the staff webpages have been identified, the next step is to extract researcher profiles. To achieve this, we first retrieve the main body text and ignore layout elements such as navigation menus, footers, sidebars, icons, and other boilerplate components \cite{barbaresi-2021-trafilatura}. In order to extract researcher profiles, the resulting text should show typical patterns that appears on across university staff pages: researcher names (often including academic titles), roles or affiliations are listed within the content, via contact information such as email addresses and phone numbers. These attributes include: \textit{name}, \textit{academic title}, \textit{email address}, and \textit{phone number} and sometimes scientific interests. Given this structure, we use a few-shot prompting strategy by guiding the model with a small number of concrete examples based on the defined attributes, that allows it to identify researcher profiles. The prompt-based NER approach achieves an F1 score of over 90\% on the researchers of Computer Science faculty dataset of our university. + +After identifying staff webpages, we extract researcher profiles from their content. We first isolate the main body text and remove layout and boilerplate elements such as navigation menus, footers, sidebars, and icons \cite{barbaresi-2021-trafilatura}. The remaining text typically contains recurring patterns found on university staff pages, including researcher names (often with academic titles), roles or affiliations, and contact details such as email addresses and phone numbers. We target the following fields: \textit{name}, \textit{academic title}, \textit{email address}, and \textit{phone number}. +%, and, when available, research interests. + +Given this structure, we use a few-shot prompting strategy: the model is provided with a small set of examples that specify the desired fields, enabling prompt-based named entity recognition (NER) for profile extraction. The following exhibits a few-shot prompt that generates structured JSON for each found researcher profile based on the aforementioned attributes. + +\label{few_shot} +\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\scriptsize] +Extract all researchers mentioned in the text. +For each researcher, return the following fields if present: - name - title - email - phone +###Use the following format for each researcher: +{Name: ..., Title: ..., Email: ..., Phone: ...} +### Examples +Prof. Dr. Jane Doe, Email: jane.doe@uni-example.edu, Phone: 024180-98765 +David Goliath, Email: d.Goliath@k-domain-uni.de, Phone: 09920180235 +... +### Now process the following input and generate a JSON output: +{{EXTRACTED_TEXT}} +\end{Verbatim} + +Finally, we resolve name variants and deduplicate researcher entries given the JSON outputs in post-processing, since the same person may appear with or without titles (e.g., “Prof. Dr. Anna Keller” vs. “Anna Keller”) or with minor formatting differences. We prompt the LLM to consider each JSON record and to emit a stable identifier, preferably the email address, otherwise a normalized name key (lowercased, diacritics removed, titles stripped). We then apply a second LLM pass only to likely duplicate candidates (same identifiers) to decide “same person” vs. “different person” using name and email address as main attributes. In an internal evaluation covering staff pages from all chairs in our university’s Faculty of Computer Science, this approach achieved an F1 score above 90\% for researcher extraction; the remaining $\sim 10\%$ of missed/ambiguous cases has limited impact on downstream results because our call-matching evaluation targets higher organizational levels (chair/institute/faculty) rather than researcher-level matching. + + +This concludes the LLM-based preprocessing which delivers a list of researchers with the corresponding organizational affiliation. We store the discovered researchers and their metadata in an index for retrieval queries. + +%The goal of this step is to automatically recover the set of researchers affiliated with each organizational unit, along with key attributes that characterize them. This information is directly linked to the organizational hierarchy derived from OrgMiner. + +%Through LLM-based normalization and disambiguation, these variants are merged into unified researcher entities. This ensures that each researcher is represented consistently, regardless of how their information is presented across different staff pages of an organizational entity. + +\subsection{Enriching the Publications with Organizational Data} +%The goal is to produce a publication dataset in which each author record is augmented with reliable organizational metadata (chair, institute, faculty), enabling aggregation and search at multiple hierarchical levels and providing the organizational context required for accurate project-recipient matching. +To support topic modeling on the publication corpus while preserving organizational context, we ingest the university’s publication records and link each publication’s author-name field to the corresponding researcher entity produced by the LLM-based preprocessing step. This association allows each publication to inherit the researcher’s chair, institute, and faculty metadata. + +We implement author-researcher linking using a full‑text retrieval setup over the stored researcher index. For each publication, we issue a full‑text query built from the author string (typically given name and surname) against this index. The index scores candidates using TF‑IDF/BM25 \cite{ghawi2019efficient} term weighting, so exact and rare name tokens contribute more strongly than frequent ones, and we take the top‑ranked hit(s) as potential matches. In ambiguity cases such as missing given names, initials-only authors (“M. Müller”), and common surnames that map to multiple researchers and organizational entities, we leave the author occurrence unlinked rather than attaching a potentially incorrect chair/institute/faculty label. + +This step generates a multi-level enriched publication dataset where each publication record is linked to their corresponding faculty, institute/chair based on their linked authors. + +\subsection{Call Crawler} +While the organization miner provides the university side of the matching, the call crawler acquires the funding calls to be distributed, which constitutes the other required input. The crawler periodically retrieves open and forthcoming calls, together with their title and description, from public funding portals. In our setting, calls are collected from the EU Funding \& Tenders Portal through the CORDIS REST API, focusing on the Horizon 2020 and Horizon Europe programmes. Each retrieved call is normalized into a title-description pair that is subsequently passed to the topic modelling and inference stage, where it is matched against the organizational units. The crawler is source-agnostic, so further portals or institutional call databases can be integrated without changes to the downstream matching. + +\subsection{Topic Modelling and Inference} + +Once we have gathered the enriched publication dataset and the funding calls, the final step is to identify which faculties, institutes, chairs, or individual researchers are most relevant for each call. We do this by applying semantic topic modeling to publication titles to obtain topic distributions for individual researchers and for aggregated organizational units (e.g., by pooling publications within a chair, institute, or faculty). We represent each funding call in the same topic space, where we feed the call title and description into the topic model. Additionally, we use an LLM to extract a small set of focused keywords that reduce the impact of broad, policy-oriented phrasing and better surface the underlying research themes. + +Relevance is then computed by comparing the call’s topic distribution to those of all researchers and organizational units, using a similarity measure in the shared topic space. The output of this inference stage is, for each funding call, a ranked list of the most relevant researchers and/or organizational units that should be considered as potential recipients. In deployment, this ranked list is automatically compiled and sent by email to the RSO experts, who review the recommendations before distributing the call. + + +\begin{table*}[!htbp] +\centering +\caption{Matching performance on publication data across models and organizational levels.} +\label{tab:pub_performance} +\begin{subtable}[t]{0.49\textwidth} +\centering +\caption{Text representations (Hit Rate@5, MR@5).} +\label{tab:top5_entities_comparison} +\footnotesize +\renewcommand{\arraystretch}{0.8} +\setlength{\tabcolsep}{2pt} +\begin{adjustbox}{max width=\linewidth} +\begin{tabular}{@{}ll ccc ccc ccc@{}} +\toprule +\multirow{2}{*}{\textbf{Entity}} & \multirow{2}{*}{\textbf{Metric}} + & \multicolumn{3}{c}{\textbf{HDBSCAN}} + & \multicolumn{3}{c}{\textbf{K-Means}} + & \multicolumn{3}{c}{\textbf{RF}} \\ +\cmidrule(lr){3-5}\cmidrule(lr){6-8}\cmidrule(lr){9-11} + & & RAW & LLM & YAKE & RAW & LLM & YAKE & RAW & LLM & YAKE \\ +\midrule +\multirow{2}{*}{Faculties} + & HitRate & \textbf{95.9} & 95.6 & 94.8 & \textbf{96.3} & 96.2 & 95.7 & 97.9 & \textbf{99.3} & 96.3 \\ + & MR & \textbf{1.59} & 1.66 & 1.79 & \textbf{1.55} & 1.61 & 1.66 & 1.26 & \textbf{1.15} & 1.43 \\ +\addlinespace +\multirow{2}{*}{Chairs} + & HitRate & \textbf{57.8} & 53.3 & 53.2 & \textbf{59.2} & 55.0 & 55.0 & 95.9 & \textbf{97.4} & 86.9 \\ + & MR & \textbf{3.57} & 3.86 & 3.81 & \textbf{3.52} & 3.77 & 3.74 & 1.28 & \textbf{1.18} & 1.80 \\ +\addlinespace +\multirow{2}{*}{Institutes} + & HitRate & \textbf{72.2} & 70.2 & 68.7 & \textbf{73.2} & 71.5 & 70.1 & 82.7 & \textbf{90.7} & 73.5 \\ + & MR & \textbf{2.77} & 2.94 & 2.97 & \textbf{2.73} & 2.88 & 2.90 & 2.0 & \textbf{1.55} & 2.50 \\ +\addlinespace +\multirow{2}{*}{Researchers} + & HitRate & \textbf{34.1} & 28.6 & 29.6 & \textbf{35.1} & 29.6 & 30.5 & 24.5 & \textbf{25.7} & 17.4 \\ + & MR & \textbf{4.65} & 4.90 & 4.83 & \textbf{4.60} & 4.85 & 4.79 & 4.94 & \textbf{4.91} & 5.25 \\ +\bottomrule +\end{tabular} +\end{adjustbox} +\end{subtable}\hfill +\begin{subtable}[t]{0.49\textwidth} +\centering +\caption{Ranking depths (@5/@10/@15), best representation per model.} +\label{tab:all_entities_comparison} +\footnotesize +\renewcommand{\arraystretch}{0.8} +\setlength{\tabcolsep}{2pt} +\begin{adjustbox}{max width=\linewidth} +\begin{tabular}{@{}ll ccc ccc ccc@{}} +\toprule +\multirow{2}{*}{\textbf{Entity}} & \multirow{2}{*}{\textbf{Metric}} + & \multicolumn{3}{c}{\textbf{HDBSCAN} (RAW)} + & \multicolumn{3}{c}{\textbf{K-Means} (RAW)} + & \multicolumn{3}{c}{\textbf{RF} (LLM)} \\ +\cmidrule(lr){3-5}\cmidrule(lr){6-8}\cmidrule(lr){9-11} + & & @5 & @10 & @15 & @5 & @10 & @15 & @5 & @10 & @15 \\ +\midrule +\multirow{2}{*}{Faculties} + & HitRate & 95.9 & 98.2 & 98.2 & 96.3 & 98.6 & 98.7 & \textbf{99.3} & \textbf{99.8} & \textbf{99.9} \\ + & MR & 1.59 & 1.70 & 1.79 & 1.55 & 1.64 & 1.70 & \textbf{1.15} & \textbf{1.17} & \textbf{1.17} \\ +\addlinespace +\multirow{2}{*}{Chairs} + & HitRate & 57.8 & 65.5 & 69.1 & 59.2 & 66.9 & 71.1 & \textbf{97.4} & \textbf{98.1} & \textbf{98.4} \\ + & MR & 3.57 & 5.43 & 7.03 & 3.52 & 5.30 & 6.83 & \textbf{1.18} & \textbf{1.29} & \textbf{1.38} \\ +\addlinespace +\multirow{2}{*}{Institutes} + & HitRate & 72.2 & 78.2 & 81.0 & 73.2 & 79.5 & 82.6 & \textbf{90.7} & \textbf{92.1} & \textbf{92.9} \\ + & MR & 2.77 & 3.95 & 4.95 & 2.73 & 3.87 & 4.79 & \textbf{1.55} & \textbf{1.97} & \textbf{2.33} \\ +\addlinespace +\multirow{2}{*}{Researchers} + & HitRate & 34.1 & 42.3 & 46.6 & \textbf{35.1} & \textbf{44.1} & \textbf{48.6} & 25.7 & 30.7 & 34.2 \\ + & MR & 4.65 & 7.67 & 10.42 & \textbf{4.60} & \textbf{7.55} & \textbf{10.20} & 4.91 & 8.47 & 11.83 \\ +\bottomrule +\end{tabular} +\end{adjustbox} +\par\smallskip +{\footnotesize \textit{Note}: @5/@10/@15 = Top 5/10/15; MR = Mean Rank.} +\end{subtable} +\end{table*} + + +\section{Evaluation} +\label{sec:evaluation} +This section evaluates our automatic matching system through three complementary experiments. After describing the experimental settings, we report results from three evaluation stages: (1) a quantitative assessment using publication data to identify effective models and text representations across four organizational levels (faculty, institute, chair, researcher); (2) cross-domain validation, where models trained on publications are evaluated on historical funding calls to assess generalizability; and (3) expert evaluation, in which domain specialists assess model predictions on open and forthcoming calls to validate practical applicability. + +\subsection{Experimental Settings} +\subsubsection{Base Publication Dataset} +The constructed and enriched publications dataset for training contains 99,514 records from our university, which comprises more than 4,100 researchers across 352 institutes and chairs within 12 faculties. Each record includes the publication title, author list, and departmental affiliations annotated at multiple organizational levels (faculty, chair, and institute). Because abstracts for our university are available for only 16\% of the publications, we use titles as the primary input for training in all experiments. + +\subsubsection{Text Representations} +We evaluate three text representations to analyze their impact on matching performance. The \textit{RAW} representation uses unmodified publication titles, preserving full lexical information. The \textit{LLM} representation applies Llama 3 70B (the model used throughout our pipeline, Section~\ref{sec:experiences}) to generate semantically enriched keyword lists from each title using the following prompt: \textit{You are a keyword extractor/generator. Extract or generate exactly 10 mostly meaningful keywords from the given text. Output only a string with keywords separated by ', '. If no text is given, return an empty string. Add no comments.} The \textit{YAKE} representation uses unsupervised statistical keyword extraction via the YAKE algorithm, configured with sequence-matching deduplication (threshold = 0.9), a maximum of 10 keywords per title, and automatic language detection to support both German and English publications \cite{campos2020yake}. + +\subsubsection{Models and Training} +%We use BERTopic as the underlying topic-modeling framework and compare three downstream learning strategies~\cite{grootendorst2022bertopic}: two unsupervised clustering methods (HDBSCAN and k-means) and one supervised classifier (RF). For each strategy, we train and evaluate models independently across all three text representations using 90/10 train-test splits with cross-validation. In the unsupervised setting, topics are induced on the training set, and test publications are assigned by similarity to learned cluster representatives (e.g., centroids). In the supervised setting, we train an RF classifier on publication-department instances, using the text representation as input features and departmental affiliations as multi-label targets. + +We use BERTopic as the topic-modeling framework and compare three downstream learning strategies: two unsupervised clustering methods (HDBSCAN and k-means) and one supervised classifier RF (Random Forest) \cite{grootendorst2022bertopic}. For feature extraction, we embed each text representation with the sentence-transformers model \textit{paraphrase-multilingual-mpnet-base-v2}, which maps texts into a 768-dimensional dense vector space~\cite{reimers-2020-multilingual-sentence-bert}. For each strategy, we train and evaluate models separately for each of our three text representations using a 90/10 train–test split with cross-validation. In the unsupervised setting, we fit the topic model on the training set only and assign test publications by similarity to the learned cluster representatives (centroids for k-means, label assignment via HDBSCAN prediction). In the supervised setting, we train an RF classifier on publication–department instances, using the corresponding text representation as input features and departmental affiliations as targets. + +For dimensionality reduction before clustering, we apply Uniform Manifold Approximation and Projection for Dimension Reduction (UMAP) with number of \textit{neighbors=5} (focus on local structure), \textit{n\_components=10} (compact embedding for clustering), and cosine distance (for text embeddings). For k-means, we set \textit{k=2500} to induce a fine-grained set of clusters. For HDBSCAN, we use \textit{min\_cluster\_size=10} and \textit{min\_samples=5} to suppress small/noisy clusters, with Euclidean distance in the UMAP space and the default \textit{eom} selection method. For RF, we train 100 trees with \textit{max\_depth=50}, \textit{class\_weight='balanced'} for label imbalance, and \textit{max\_features='sqrt'} to improve generalization, using parallel training to reduce runtime. + +%The generated and enriched publication dataset comprises 99,514 records from our university, which hosts over 4,100 researchers across 352 institutes and chairs within 12 faculties. Each publication includes a title, list of authors, and their departmental affiliations at multiple organizational levels (faculty, chair, and institute). As abstracts are available for only 16\% of publications, we use publication titles as the primary text representation in all experiments. +%We employ BERTopic as the core topic modeling framework and evaluate three downstream learning approaches: two unsupervised clustering algorithms (HDBSCAN and K-Means) and one supervised classifier (RF). Each approach is trained independently on all three text representations using a cross validated 90/10 train-test split of the publication dataset. For unsupervised methods, topics are learned from the training data, and test publications are assigned to topics based on similarity to cluster centroids. For the supervised setting, RF is trained on publication--department pairs, using text representations as input features and departmental affiliations as multi-label targets. + +\subsubsection{Evaluation Metrics} +We use ranking-based metrics for multi-label recommendation tasks. Hit Rate@k measures the proportion of test instances for which at least one correct department appears among the top-$k$ predictions. Mean Rank@k (MR@k) reports the average position of the first correct department within the top-$k$ predictions. In instances for which no correct department appears in the top-$k$ are assigned a penalty rank of $k{+}1$. Consequently, MR@k ranges from $1$ (optimal, the correct department is always ranked first) to $k{+}1$ (no correct department is ever retrieved), and increasing $k$ can raise MR@k because additional instances become hits but are counted at deeper ranks. Unless stated otherwise, we report results for $k=5$, balancing precision and recall \cite{tamm2021quality}. +%TODO: Ask Genja how the Mean rank is handed on the not found matches + + +% The dataset's departmental information is summarized below: + +% \begin{itemize} +% \item It contains \textbf{11 unique faculties}, \textbf{582 chairs}, \textbf{408 institutes}, and \textbf{177,151 researchers}. +% \item The coverage of this data across the 99,514 publications is high: +% \begin{itemize} +% \item \textbf{90.7\%} have a faculty assigned. +% \item \textbf{89.3\%} have an institute assigned. +% \item \textbf{83.0\%} have a chair assigned. +% \item \textbf{100.0\%} have a researcher assigned. +% \end{itemize} +% \item Overall, \textbf{79.7\%} of publications have complete data for all department fields. +% \end{itemize} +%Experimental settings + +% We evaluate our pipeline using ranking-oriented metrics - Hit Rate and Mean Rank (MR) - which are particularly suitable for our task. Because publications and funding calls may correspond to multiple departments, these metrics directly measure ranking quality rather than binary accuracy. The Hit Rate at k (Hit Rate@k) measures the fraction of test instances where at least one correct department appears in the top-$k$ predictions: +% % \[ +% % \text{Hit Rate@k} = \frac{1}{N} \times \left|\left\{i \mid \text{rank of first correct label in } i \leq k\right\}\right| +% % \] +% \[ +% \text{Hit Rate@k} = \frac{\text{Number of instances with at least one correct prediction in top-}k}{N} +% \] +% where a high value indicates the system consistently surfaces relevant departments early in the ranking. Complementing this, Mean Rank (MR) calculates the average position of the first correct department across all instances: +% \[ +% \text{MR} = \frac{1}{N} \sum_{i=1}^N \left(\text{position of first correct label for instance } i\right) +% \] +% where a lower value indicates better performance, with the theoretical optimum being 1. Together, these metrics provide a comprehensive view of our system's ability to prioritize relevant departments effectively. + + +\subsection{Quantitative Assessment using Publication Data} +In the first experiment, we train and validate the matching models on publication data to identify effective model configurations and text representations before moving to actual funding calls. Concretely, we model matching as a ranking task at four organizational levels (faculty, institute, chair, researcher): given a publication title as the query, the model ranks candidate organizational entities, and we evaluate the ranking against the publication’s ground-truth affiliation label at the corresponding level. This experiment isolates the impact of text representation by comparing RAW titles, LLM-generated keywords, and YAKE-extracted keywords across all models using Hit Rate@5 and MR@5. Table~\ref{tab:top5_entities_comparison} summarizes performance across the four organizational levels. + + + +\subsubsection*{Effect of text representation} +Unsupervised methods consistently benefit from lexical completeness. Both HDBSCAN and K-Means achieve their best results with RAW titles across all hierarchical levels. At the faculty level, RAW titles yield Hit Rates of 95.9\% (HDBSCAN) and 96.3\% (K-Means), with Mean Ranks close to the optimal value of 1.5. Keyword-based representations consistently reduce performance, with the gap increasing at finer granularities. For example, at the researcher level, RAW titles achieve Hit Rates of 34.1-35.1\%, compared to 28.6-30.5\% for LLM and YAKE representations. This trend indicates that clustering-based methods rely on lexical diversity and term co-occurrence, which keyword extraction compresses and partially removes. + + + + +In contrast, supervised learning benefits from semantic compression. Random Forest (RF) performs best when trained on LLM-generated keywords, particularly at coarse and intermediate organizational levels. At the chair level, LLM keywords achieve a Hit Rate of 97.4\% (MR=1.18), outperforming RAW titles (95.9\%, MR=1.28). The effect is strongest for institutes, where LLM improves Hit Rate@5 from 82.7\% (RAW) to 90.7\%, an 8 percentage point absolute gain. At the researcher level, however, all representations perform poorly, with RAW slightly trailing LLM. This suggests that while semantic enrichment aids feature learning for classification at intermediate scales, it does not compensate for data sparsity at the individual level. + +Based on these results, we select RAW titles for HDBSCAN and K-Means, and LLM-generated keywords for RF in subsequent experiments. + + +\subsubsection*{Effect of ranking depth} +We next evaluate model performance across ranking thresholds (@5, @10, @15) using the optimal representation for each model. Results are shown in Table \ref{tab:all_entities_comparison}. + +Faculty-level matching achieves best performance. All models exceed 95.9\% Hit Rate@5, with RF achieving the lowest Mean Rank across all cutoffs (1.15--1.17). The small absolute differences indicate that faculty-level assignment is effectively solved by all approaches. + + + + +At the chair and institute level, RF clearly outperforms the unsupervised baselines at all ranking depths. For chairs, it reaches 97.4\% Hit Rate@5 (MR@5=1.18) and 98.4\% at @15, whereas HDBSCAN and K-Means remain around up to 69.1-71.1\% (@15). A similar trend holds for institutes, with RF achieving 90.7\% Hit Rate@5 versus 72.2-73.2\% for clustering, suggesting that supervised semantic feature learning is particularly effective at these intermediate organizational scales. At the researcher level, performance drops substantially for all methods (25.7-35.1\% Hit Rate@5), and the ordering reverses: K-Means performs best (35.1\% at @5 and 48.6\% at @15), while RF performs worst. Increasing the ranking depth improves Hit Rates, especially for clustering methods, but Mean Rank degrades accordingly. + +%A likely explanation is that researcher-level prediction induces a very large label space (many individual researchers) with sparse training data per label, which makes it hard for RF to learn stable decision boundaries. + +%At chair and institute levels, RF substantially outperforms unsupervised methods across all ranking depths. For chairs, RF achieves 97.4\% Hit Rate@5 (MR=1.18), compared to 57.8-59.2\% for clustering methods. This gap persists at Top-15, where RF maintains 98.4\% Hit Rate, while HDBSCAN and K-Means reach only up to 69.1-71.1\%. A similar pattern holds for institutes, with RF achieving 90.7\% Hit Rate@5 versus 72.2-73.2\% for clustering. These results indicate that supervised semantic feature learning enables precise discrimination at intermediate organizational scales. + +%At the researcher level, the performance hierarchy reverses. All models show low Hit Rates (25.7--35.1\% at Top-5), reflecting the difficulty of individual-level matching. K-Means achieves the best overall performance, reaching 35.1\% Hit Rate@5 (MR=4.60) and 48.6\% at Top-15. RF performs worst at this granularity, suggesting insufficient training samples per researcher. Increasing the ranking depth improves Hit Rates across all models, particularly for clustering methods, but at the cost of sharply degraded Mean Rank. +%In contrast, RF exhibits more stable Mean Ranks across cutoffs, indicating better-calibrated confidence despite lower recall. + +Researcher-level matching is inherently challenging in our setting because it involves a very large label space with few observations per researcher and substantial topical overlap between individuals. In contrast, chairs and institutes aggregate multiple researchers and publications, which yields better results. The publication-based evaluation reflects this difference in granularity. It shows that performance is highest at chair and institute level, i.e., exactly the levels where project-call handling is typically organized in academic practice, since project calls are usually received, evaluated, and coordinated at the chair or institute level, with leadership subsequently delegating tasks to individual staff. Therefore, the results at these organizational levels directly support the system’s intended use. + +%Therefore, we conclude that the approach is practically effective for routing calls to the appropriate decision-making units, while researcher-level rankings should be interpreted as an auxiliary, exploratory signal rather than the primary basis for automated assignment. + +%While researcher-level matching remains difficult due to extreme label sparsity and topical overlap, this does not limit the system’s practical relevance. Project calls are not intended to be assigned directly to individual researchers, but are instead managed at the chair or institute level, where leadership evaluates opportunities and coordinates internal allocation. + +%Overall, the publication-based evaluation demonstrates that the outputs performs most effectively at the organizational levels where project call decisions are made in practice. Chairs and institutes, rather than individual researchers, are the primary units responsible for receiving, evaluating, and coordinating project calls, with leadership subsequently assigning tasks to underlying research staff. At these target levels, our approach achieves consistently high performance, with supervised learning and semantically enriched representations providing substantial gains over unsupervised methods. + + +%Accordingly, accurate matching at these organizational levels represents a successful outcome, ensuring that relevant calls reach the appropriate decision-makers while preserving human oversight for downstream assignments. + + +%Overall, the results confirm that our system aligns closely with real-world academic workflows, delivering reliable and actionable recommendations at the levels where they create the greatest operational value. + + +\subsection{Cross-domain Validation} +%In practice, staff at the university’s Science Support Center (SSC) screen incoming funding calls and manually identify relevant chairs, institutes, or researchers by comparing the call text (title/description) against the university’s research output and expertise (e.g., publications). In this experiment, we replicate this real-world workflow to test whether the models trained on publication data transfer to actual funding calls under domain shift. To this end, the SSC of our university provided 47 successfully funded project calls together with the researcher contacts involved. Using these contacts, we reconstruct the corresponding faculty, chair, and institute affiliations as ground truth. For each call, we use the call title/description as input and generate rank-based organizational recommendations. Table \ref{tab:manuall_entities_comparison} reports results using the best-performing text representation for each model. + +%In practice, the university’s Science Support Center (SSC) reviews funding calls and manually matches them to relevant chairs, institutes, or researchers based on the call text and the university’s research output (e.g., publications). In this experiment, we replicate that workflow to test whether publication-trained models generalize to real calls under domain shift. Our SSC provided 47 successfully funded calls with the associated researcher contacts; we use these contacts to reconstruct faculty/chair/institute ground truth and evaluate ranked recommendations generated by using only the call title as input, as shown in Table \ref{tab:manuall_entities_comparison}. + +In practice, the university’s Research Support Office (RSO) reviews funding calls and manually matches them to relevant organizational units (chairs/institutes) or individual contacts based on the call text and the university’s research output (e.g., publications). In this experiment, we mirror this workflow to test whether models trained on publication data generalize to real calls under domain shift. + +Our RSO provided 47 historically successful funding calls together with the responsible researcher contacts. This yields the ground-truth matches at researcher level where each researcher maps to exactly one faculty, one chair, and/or one institute (or, if no institute exists, the corresponding working group/chair proxy). Across the 47 calls, the candidate space comprises 10 faculties, 28 chairs, and 29 institutes. Using only the call title as input, we generate ranked recommendations over the candidate entities and evaluate them against the reconstructed ground truth at faculty/chair/institute level in Table~\ref{tab:manuall_entities_comparison}. + + +%This experiment evaluates model generalizability under domain shift by applying publication-trained models to real funding calls. The Science Support Center provided 47 successfully funded project calls along with associated researcher contacts. Using this information, we reconstruct the corresponding faculty, chair, and institute affiliations. For each call, we use the call title as input and generated Top-5, Top-10, and Top-15 departmental recommendations. Performance is assessed using Hit Rate and Mean Rank. Table \ref{tab:manuall_entities_comparison} summarizes the results using the optimal text representation for each model. + + +%for each call we get the topics which foward us to a subset of documents(publications). We then use cosine similarity to rank the results. + +\begin{table*}[t] +\centering +\caption{Matching performance on real funding calls (Cross-Domain, trained on publication data).} +\label{tab:realcall_performance} +\begin{subtable}[t]{0.49\textwidth} +\centering +\caption{47 historical funding calls.} +\label{tab:manuall_entities_comparison} +\footnotesize +\renewcommand{\arraystretch}{0.8} +\setlength{\tabcolsep}{2pt} +\begin{adjustbox}{max width=\linewidth} +\begin{tabular}{@{}ll ccc ccc ccc@{}} +\toprule +\multirow{2}{*}{\textbf{Entity}} & \multirow{2}{*}{\textbf{Metric}} + & \multicolumn{3}{c}{\textbf{HDBSCAN} (RAW)} + & \multicolumn{3}{c}{\textbf{K-Means} (RAW)} + & \multicolumn{3}{c}{\textbf{RF} (LLM)} \\ +\cmidrule(lr){3-5}\cmidrule(lr){6-8}\cmidrule(lr){9-11} + & & @5 & @10 & @15 & @5 & @10 & @15 & @5 & @10 & @15 \\ +\midrule +\multirow{2}{*}{Faculties} + & HitRate & 87.2 & 95.7 & 95.7 & \textbf{91.5} & \textbf{100} & \textbf{100} & 78.7 & 93.6 & 95.7 \\ + & MR & 2.34 & 2.66 & 2.87 & \textbf{2.11} & \textbf{2.17} & \textbf{2.17} & 2.79 & 3.38 & 3.60 \\ +\addlinespace +\multirow{2}{*}{Chairs} + & HitRate & 80.9 & 89.3 & 91.5 & \textbf{89.4} & \textbf{93.7} & \textbf{95.7} & 68.1 & 83.0 & 87.2 \\ + & MR & \textbf{2.21} & 2.81 & 3.23 & 2.32 & \textbf{2.74} & \textbf{3.09} & 3.49 & 4.68 & 5.47 \\ +\addlinespace +\multirow{2}{*}{Institutes} + & HitRate & 83.0 & 91.5 & 95.7 & \textbf{87.2} & \textbf{95.8} & \textbf{97.9} & 68.1 & 85.1 & 87.2 \\ + & MR & \textbf{2.26} & 2.72 & \textbf{3.02} & 2.39 & \textbf{2.68} & 2.79 & 3.13 & 4.23 & 4.94 \\ +\addlinespace +\multirow{2}{*}{Researchers} + & HitRate & \textbf{38.3} & \textbf{59.6} & \textbf{59.6} & 34.0 & 53.2 & 55.3 & 21.3 & 21.3 & 23.4 \\ + & MR & \textbf{4.64} & \textbf{6.98} & \textbf{9.00} & 4.83 & 7.49 & 9.77 & 5.30 & 9.23 & 13.15 \\ +\bottomrule +\end{tabular} +\end{adjustbox} +\par\smallskip +{\footnotesize \textit{Note}: @5/@10/@15 = Top 5/10/15; MR = Mean Rank; RF: Random Forest.} +\end{subtable}\hfill +\begin{subtable}[t]{0.49\textwidth} +\centering +\caption{RSO-validated Horizon Europe calls across input representations.} +\label{tab:expert_summary_forthcoming} +\footnotesize +\renewcommand{\arraystretch}{0.8} +\setlength{\tabcolsep}{2pt} +\begin{adjustbox}{max width=\linewidth} +\begin{tabular}{@{}ll ccc ccc ccc@{}} +\toprule +\multirow{2}{*}{\textbf{Input}} & \multirow{2}{*}{\textbf{Metric}} + & \multicolumn{3}{c}{\textbf{Faculties}} + & \multicolumn{3}{c}{\textbf{Chairs}} + & \multicolumn{3}{c}{\textbf{Institutes}} \\ +\cmidrule(lr){3-5}\cmidrule(lr){6-8}\cmidrule(lr){9-11} + & & @5 & @10 & @15 & @5 & @10 & @15 & @5 & @10 & @15 \\ +\midrule +\multirow{2}{*}{Titles (RAW)} + & HitRate & 95.0 & 97.0 & 97.0 & \textbf{83.0} & \textbf{95.0} & \textbf{96.0} & 81.0 & \textbf{93.0} & 96.0 \\ + & MR & 1.92 & 2.12 & 2.22 & \textbf{2.55} & \textbf{3.04} & \textbf{3.26} & 2.72 & 3.16 & 3.39 \\ +\addlinespace +\multirow{2}{*}{Titles (LLM)} + & HitRate & 94.0 & 99.0 & 99.0 & 75.0 & 86.0 & 90.0 & 77.0 & 86.0 & 92.0 \\ + & MR & 1.86 & 1.93 & 1.93 & 2.88 & 3.69 & 4.29 & 2.94 & 3.77 & 4.26 \\ +\addlinespace +\multirow{2}{*}{Descriptions (RAW)} + & HitRate & 94.0 & \textbf{100} & \textbf{100} & 66.0 & 80.0 & 83.0 & 66.0 & 86.0 & 94.0 \\ + & MR & 2.38 & 2.43 & 2.43 & 3.55 & 4.86 & 5.79 & 3.43 & 4.52 & 4.94 \\ +\addlinespace +\multirow{2}{*}{Descriptions (LLM)} + & HitRate & \textbf{96.0} & \textbf{100} & \textbf{100} & 78.0 & 91.0 & \textbf{96.0} & \textbf{86.0} & 92.0 & \textbf{98.0} \\ + & MR & \textbf{1.78} & \textbf{1.84} & \textbf{1.84} & 2.81 & 3.45 & 3.78 & \textbf{2.59} & \textbf{3.1} & \textbf{3.29} \\ +\bottomrule +\end{tabular} +\end{adjustbox} +\par\smallskip +{\footnotesize \textit{Note}: Selected K-Means model as best performing baseline.} +\end{subtable} +\end{table*} + + +%In contrast to the publication-based evaluation, unsupervised clustering methods consistently outperform the supervised classifier across all organizational levels. Faculty-level matching remains highly accurate, with K-Means achieving a perfect Hit Rate of 100\% at Top-10 and Top-15, and the lowest Mean Rank across cutoffs (2.11--2.17). HDBSCAN shows slightly lower Hit Rates but comparable ranking quality. RF performs noticeably worse, with lower Hit Rates (78.7\% at Top-5) and higher Mean Ranks, indicating reduced robustness when applied to funding call text. + +%A similar pattern holds at chair and institute levels. Both clustering methods achieve Hit Rates above 80\% at Top-5, with K-Means again leading (89.4\% for chairs and 87.2\% for institutes). Performance improves steadily at deeper cutoffs, reaching over 95\% Hit Rate at Top-15. Mean Rank increases with ranking depth, reflecting reduced precision beyond the top recommendations. In contrast, RF exhibits substantially lower Hit Rates (68.1\% at Top-5 for both chairs and institutes) and markedly higher Mean Ranks, which deteriorate further at deeper cutoffs. + +%At the researcher level, all models face increased difficulty; however, unsupervised methods remain more robust. HDBSCAN achieves the best performance, with Hit Rates ranging from 38.3\% to 59.6\% and the lowest Mean Ranks across cutoffs. K-Means follows closely, while RF performs poorly, yielding Hit Rates below 24\% and rapidly degrading Mean Ranks. + +Compared to the publication-based evaluation, the funding-call experiment shows a clear reversal: the unsupervised clustering baselines consistently outperform the supervised Random Forest (RF) at every organizational level. At faculty level, K-Means performs best, achieving 100\% Hit Rate @10/@15 and the lowest Mean Rank (@5/@10/@15 2.11-2.17), while HDBSCAN is slightly behind in Hit Rate but similar in ranking quality, RF lags with lower Hit Rates (e.g., 78.7\% at @5) and higher Mean Ranks. The same pattern holds for chairs and institutes, where both clustering methods exceed 80\% Hit Rate@5, with K-Means leading (89.4\% for chairs, 87.2\% for institutes) and exceeding 95\% Hit Rate at @15, whereas RF remains substantially lower (68.1\% Hit Rate@5 for both) and degrades further with deeper cutoff ranks. At researcher level, all methods perform worse, but clustering remains more robust, with HDBSCAN performing best (38.3-59.6\% Hit Rate with the lowest Mean Ranks), K-Means follows closely, and RF performs poorly (Hit Rates below 24\% with degrading Mean Rank). + +%One plausible explanation is that the supervised model learns publication-specific decision boundaries that rely on lexical cues present in publication data but not in funding calls. Funding calls are often more strategic or policy-oriented, and less lexicaly aligned with scientific publication titles. Therefore the learned feature-label associations do not transfer here. By contrast, unsupervised clustering is not tied to the training label distribution and therefore degrades more gracefully under mismatched text. +%As results suggest, the supervised models may overfit to title-style cures and fail to exploit broader semantics expressed in calls. +%Taken together, the cross-domain evaluation suggests that, for operational call distribution under domain shift and limited labeled data, clustering based ranking is a more robust approach, whereas supervised models likely require domain call training data or field alignment via scientific abstracts or keywords for publications to be more competitive. + + +A plausible explanation is that the supervised model learns publication-specific decision boundaries that rely on lexical cues and feature distributions present in publication data but not in funding calls. Funding calls are often more strategic or policy-oriented and less lexically aligned with scientific publication titles, so the learned feature–label associations do not transfer reliably. By contrast, the clustering baselines are not optimized against a fixed training label distribution and therefore degrade more gracefully under domain mismatch. Within the unsupervised methods, k-means and HDBSCAN also reflect different inductive biases. K-means tends to form compact, roughly spherical clusters around centroids, whereas HDBSCAN is density-based and can recover irregular cluster shapes while treating low-density points as noise, which is an advantage when call texts vary in specificity and some items do not fit cleanly into a single dense region \cite{stewart2022implementation}. Taken together, these results suggest that, for operational call distribution under domain shift and limited labeled data, clustering-based ranking is the more robust default, while supervised models likely require in-domain call training and/or better field alignment (e.g., abstracts or keywords on the publication side) to be competitive. + +%This suggests that supervised feature learning does not transfer well to fine-grained matching when trained on publication data and evaluated on funding calls. + +%Overall, the cross-domain evaluation highlights a clear shift in relative model performance when publication-trained models are applied to funding call titles. These calls are typically shorter, more strategic in wording, and less lexically aligned with publication language, creating a domain mismatch that limits the effectiveness of supervised feature learning. Under this shift, unsupervised clustering methods based on lexical similarity generalize more reliably, maintaining strong performance across organizational levels. This robustness makes clustering-based approaches particularly suitable for real-world project call distribution, where incoming calls differ linguistically from historical publication data and labeled training examples are scarce. + + + +\subsection{Expert Validation} +The experiment assesses the practical relevance of our system through expert judgment on real funding calls. Based on previous step, we use the best-performing cross-domain configuration (k-means) for call matching. + +%The results are validated, the SSC's operational workflow, to match calls to organizational entities that make the decisions, i.e., chairs, institutes and additionally report results at faculty level. + +In doing so, we focus on direct EU calls for proposals from the Horizon Europe programme, specifically calls under the programme pillar \textit{Global Challenges and European Industrial Competitiveness}. We evaluate 100 forthcoming and open calls crawled from the EU Tenders Portal, for which successful proposals are known. For each call, we extract the title and description and compare two input representations (RAW text vs. LLM-derived keywords) to assess whether semantic normalization and input choice improve matching. Finally, using the publication-trained model configuration, RSO domain experts at our university review the ranked recommendations in faculty, institute and chair level by analyzing the generated recommendations for relevance. +The results of the evaluation are shown in Table \ref{tab:expert_summary_forthcoming}, where high performance numbers are marked in bold. + +%This evaluation assesses the practical relevance and plausibility of our approach through expert judgment on real-world funding calls. Building on the previous experiments, we employ the best-performing unsupervised model (KMeans) identified in the cross-domain validation stage. KMeans is applied for inference to funding calls from the EU Tenders Portal, using both forthcoming and closed calls to reflect realistic deployment conditions. As explained in publication experiment and since project calls are typically managed at the chair or institute level, with subsequent allocation to individual researchers handled internally, this evaluation focuses exclusively on organizational units rather than individual researchers. + +%We consider two datasets: 56 forthcoming calls available at crawl time and 100 closed calls with known successful proposals. Here titles and descriptions are extracted for each call. Also, an additional objective is to assess whether inferred semantic representations improve performance compared to raw text. We also evaluate two input configurations: RAW text and LLM-generated keyword representations. For funding calls, both titles and descriptions are tested under each representation and KMeans generates ranked departmental recommendations, which domain experts evaluate for relevance at Top-5, Top-10, and Top-15 cutoffs. Like previous experiments, performance is measured using Hit Rate and Mean Rank for each organizational level. + + +%\subsubsection*{Forthcoming calls} +%We report the results for forthcoming calls in Table \ref{tab:expert_summary_forthcoming}. Faculty-level matching is consistently strong across input variants; for example, RAW titles achieve 89.3\% Hit Rate@5 with MR=1.91. At finer granularity, semantic enrichment through LLM becomes more beneficial, where it increases chair-level Hit Rate@5 from 58.9\% (RAW) to 76.8\% (MR=2.95). At institute level, the effects are smaller and depend on the cutoff: LLM-based inputs are generally more competitive at broader rankings (e.g., Hit Rate@15), whereas RAW titles already perform well at narrow cutoffs. Using descriptions yields only limited additional gains for forthcoming calls, suggesting that their titles often contain sufficient signal, while semantic normalization mainly helps disambiguation at chair level. + + +%For forthcoming calls, faculty-level performance is high across all inputs, with RAW titles achieving 89.3\% Hit Rate@5 (MR=1.91). At finer granularities, semantic enrichment becomes increasingly beneficial: LLM-based titles improve chair-level Hit Rate@5 from 58.9\% (RAW) to 76.8\% (MR=2.95), and institute-level Hit Rate@15 from 64.3\% (RAW) to 66.0\%. Descriptions provide limited additional gains, indicating that forthcoming calls are sufficiently characterized by concise titles, with semantic abstraction primarily aiding disambiguation at chair level. At the institute level, improvements from LLM enrichment are more selective: RAW titles perform well at narrow cutoffs, while LLM-enriched inputs become more competitive at broader rankings, particularly when applied to descriptions. This reflects the increasing importance of contextual information as organizational specificity increases. + + + + + +The expert-based evaluation demonstrates that the publication-trained configuration transfers effectively to the task of routing real funding calls to organizational decision units. Across all configurations, faculty-level results are consistently strong, with HitRates between 94\% and 100\% at @5-@15 and very low Mean Ranks (up to 2.4). This indicates that the learned embedding space captures sufficiently stable thematic structures to generalize from publication data to funding call texts within Horizon Europe’s pillar Global Challenges and European Industrial Competitiveness. At this aggregation level, the task resembles a coarse-grained thematic classification problem with relatively broad disciplinary clusters, which explains the near-saturation performance at @10 and @15. + +As expected, performance decreases at lower level departments. Routing to chairs and institutes suggests a substantially harder ranking problem due to higher semantic overlap between units and a larger candidate set. Nevertheless, the system achieves robust results with chair-level HitRates reach up to 96\% (@15), and institute-level results reach up to 98\% (@15). Mean Ranks remain comparatively low across configurations (generally below 4), inferring that relevant entities are not only retrieved but typically placed near the top of the ranking. From an operational perspective, this is positive, since decision-makers are unlikely to inspect long recommendation lists. + +Furthermore, the analysis shows a systematic difference between titles and full descriptions. Using RAW titles already yields strong results, particularly at chair level (e.g., 83\% at @5 and 96\% at @15). Call titles appear to provide concise and thematically focused signals that align well with the publication-trained representation. In contrast, RAW call descriptions introduce additional contextual and administrative information that may derail domain-specific cues. This effect is most visible at chair level, where Descriptions (RAW) achieve only 66\% at @5, despite reaching 100\% at @10/@15 at faculty level. The results suggest that the richer textual input improves recall at broader aggregation levels but introduces semantic noise that negatively affects precision. + +The introduction of LLM-derived keyword representations change the previous HitRate scores. For titles, semantic normalization via keyword extraction does not improve performance and in fact slightly degrades chair- and institute-level results (e.g., 75\% vs. 83\% at @5 for chairs). This suggests that titles are already highly compressed semantic representations and further abstraction may remove lexical signals that are important for distinguishing closely related chairs. In contrast, for full descriptions the LLM-based normalization yields consistent improvements across almost all levels. Descriptions (LLM) achieve the best Mean Ranks at faculty and institute level, and substantially improve chair-level performance (e.g., 78\% vs. 66\% at @5; 96\% vs. 83\% at @15). This indicates that semantic condensation effectively filters generic policy language and procedural content, emphasizing domain-relevant concepts that better match the structure of the publication-derived embedding space. In other words, the LLM-based preprocessing appears to reduce noise and increase semantic alignment when the original input is verbose and heterogeneous. + + +Overall, the evaluation shows that the publication-trained cross-domain configuration transfers well to funding call matching, especially at the organizational levels where calls are handled in practice (i.e. chairs and institutes). The results also highlight that the most effective input representation depends on the text field, where concise texts (titles) benefit from preserving lexical specificity and longer texts (descriptions) benefit from semantic normalization. Finally, although finer-grained recommendations is inherently harder, the consistently strong top-k retrieval and low Mean Ranks of our system indicate stable rankings and provide relevant recommendations for RSOs. + + + +%\subsubsection*{Closed calls} +%Table\ref{tab:expert_summary_closed} presents results for closed calls. In contrast to forthcoming calls, LLM enrichment consistently improves performance across all organizational levels. At the faculty level, Hit Rate@5 increases from 49.0\% (RAW titles) to 76.0\% with LLM-based titles, alongside a Mean Rank improvement from 4.11 to 3.43. The largest gain appear at the institute level, where LLM-enriched descriptions achieve 57.0\% Hit Rate@5 and 65.0\% at Top-15, outperforming all other inputs. The numbers suggest that, LLM-enhanced titles and descriptions substantially increase Hit Rates and improve ranking quality. These gains are most pronounced at the institute level, where LLM-based descriptions achieve the best overall performance across all cutoffs. + + +%The expert evaluation reveals systematic differences between forthcoming and closed calls. Forthcoming calls are typically short, forward-looking, and strategically phrased, making RAW titles sufficient for coarse-grained matching and limiting the added value of detailed semantic enrichment. In contrast, closed calls reflect finalized projects and align more closely with publication language, enabling LLM-based representations to better capture underlying research themes. As a result, semantic enrichment provides modest gains for forthcoming calls but becomes essential for accurate matching of closed calls, particularly at chair and institute levels. + +%Together, these results demonstrate that our system delivers robust and practically meaningful recommendations under realistic deployment conditions. + +%The expert evaluation indicates clear differences between forthcoming and closed calls, both in absolute performance and in how much LLM-based enrichment helps. For forthcoming calls, titles are often short and strategically phrased; this makes them “high-signal” for coarse routing, so RAW titles already perform strongly at faculty level (e.g., 89.3\% Hit Rate@5, MR=1.91), while semantic enrichment primarily improves disambiguation at finer granularity, most notably at chair level (LLM-enriched titles increase Hit Rate@5 up to 76.8\%, MR=2.95). For closed calls, LLM enrichment provides larger and more consistent gains across levels (e.g., faculty Hit Rate@5 improves from 49.0\% with RAW titles to 76.0\% with LLM-enriched titles, with Mean Rank improving from 4.11 to 3.43), and the best overall institute-level performance is achieved with LLM-enriched descriptions (57.0\% Hit Rate@5 and 65.0\% at Top-15). + +%A plausible explanation is that “more text” in closed-call descriptions is a double-edged sword. While closed calls often contain richer, research-facing detail that can increase alignment with publication representations, they also include boilerplate and multi-disciplinary content; this extended context can blur the topical signal, especially if multiple chairs/institutes would be reasonable recipients. Overall, the expert validation still shows that the approach is operationally useful at the organizational levels where call distribution is typically decided. In particular, the high faculty-level scores and the chair/institute results under semantic enrichment indicate that the approach is able to route incoming calls reliably to the appropriate higher-level units, enabling automated pre-screening and prioritization to human experts. + +%In other words, the description can legitimately support several organizational units, which can both (i) confuse similarity-based ranking and (ii) depress Hit Rate when evaluation implicitly assumes a single correct recipient, even if the model’s top recommendations are still plausible. + +\section{Experiences} +\label{sec:experiences} + +Based on the best experiment settings from \ref{sec:evaluation}, we implemented MatchMaker as a modular, Python-based pipeline that realizes the five components of our approach: organization mining, LLM-based preprocessing, publication enrichment, call crawler and topic modeling and inference. We have operated the system in production at our university's Research Support Office (RSO) since September 2025. Below, we describe the implementation and its deployment, and then summarize the lessons learned. + +\subsection{Implementation and Deployment} +Web crawling of organizations is implemented with Scrapy and follows the webpage classification of our prior work~\cite{arzhybrid}. Crawling is constrained to the university's domain (including subdomains) and to a maximum depth of six link hops, which reliably reaches nested staff and team pages while preventing uncontrolled expansion into unrelated content. The LLM-based preprocessing stage runs Llama~3 70B, hosted in a Docker container via Hugging Face Text Generation Inference (TGI). The extracted researcher entities and their organizational assignments are stored in an Elasticsearch index. Publication enrichment links each publication's author string to these entities through full-text retrieval and attaches the corresponding chair, institute, and faculty labels. Topic modeling and inference use BERTopic~\cite{grootendorst2022bertopic} over multilingual sentence-transformer embeddings (\textit{paraphrase-multilingual-mpnet-base-v2})~\cite{reimers-2020-multilingual-sentence-bert}: for each incoming call, we compute its representation in the shared topic space and rank organizational units by cosine similarity. + +In operation, university webpages are crawled biweekly and the researcher index is updated accordingly. The enriched publication dataset is refreshed monthly, and the topic model is retrained quarterly to incorporate new publications. Incoming calls are also crawled and ingested from the EU Funding \& Tenders Portal through the CORDIS REST API, focusing on the Horizon Europe programme which are also stored in an Elasticsearch index. Funding calls are then processed as they arrive, and the system generates ranked recipient lists. For every call, the system produces a \emph{complete} ranking over all organizational units (faculties, institutes, chairs and researchers). In doing so, the top 5/10/15 recommendations per call are automatically compiled into Excel spreadsheets and emailed to the RSO experts. +%Since deployment, we have selected 100 Horizon Europe calls and systematically evaluated the resulting recommendations across our ranking metrics. +To date, RSO experts report that the recommendations are qualitatively effective for pre-screening and routing incoming calls which in turn saves them valuable time. + +\subsection{Lessons Learned} +Operating the system in practice surfaced several lessons that might be helpful for other institutions planning similar deployments. + +\textbf{Publications provide the up-to-date thematic profile that organizational units lack.} Faculties, institutes, and chairs rarely maintain accurate, current descriptions of what they actually work on, so their self-descriptions are a weak and often stale basis for matching. We instead derive each unit's thematic profile from its publications (concrete and current research output) which yields a reliable and continuously refreshed representation for routing calls. + +\textbf{LLM-based keyword extraction bridges the vocabulary gap between calls and publications.} Policy-oriented call language is lexically misaligned with scientific publication titles. Condensing verbose call descriptions into LLM-extracted keywords filters generic administrative wording and reveals the underlying research themes. In our expert evaluation, this raised the Hit Rate@5 obtained from call descriptions from 66\% to 86\% at the institute level (a 20 percentage-point gain) and from 66\% to 78\% at the chair level. This enables our system to match funding calls down to the chair level, which the finest level at which calls are routed in practice. + +\textbf{The absence of historical logs prevents training a learned matching model.} Organizations rarely keep records of which calls were historically sent to, or matched with, which units, and even the data we can collect during deployment is far too limited to train a machine-learning model for this task. We therefore rely on manual expert validation, which is accurate but laborious and resource-intensive. Our central recommendation is that organizations begin systematically logging incoming calls and their routing decisions now, so that, over time, enough data accumulates to train such a model later. + +Overall, our experience indicates that the approach is operationally effective. Given that MatchMaker only requires institutional web pages, publication records and funding call descriptions as an input, we think that it should be easy to adapt the approach to other institutions. +%because its data-acquisition front end already transfers across institutions~\cite{arzhybrid}, +We hope that both our system description as well as the lessons can serve as a blueprint for similar research-support deployments. + +\section{Conclusion} + +%This work introduces an automated framework for efficiently distributing research funding calls, by addressing the scalability issues of manual matching in academic institutions. By combining an LLM-enhanced organizational mining pipeline with semantic topic modeling, we successfully bridge the gap between sparse institutional bibliographies and complex funding descriptions. + +%Our analysis suggests a operational superiority of matching at the intermediate organizational levels, specifically Chairs and Institutes, over individual researcher level. While individual matching via publications suffers from data sparsity, aggregating expertise to the Chair level yields a robust Hit Rate of 97.4\%, aligning with administrative workflows where decision-making is often centralized. Furthermore, our cross-domain validation confirms that the system can effectively generalize from academic publication data to real-world funding calls, maintaining high accuracy (89.4\%) despite the vocabulary shift between scientific titles and policy-oriented call descriptions. Moving beyond theoretical validation, we are currently integrating this system into the operational workflow of our university’s Science Support Center. This deployment will assist call experts by pre-filtering announcements, thereby reducing information overload and ensuring equitable access to funding opportunities across the institution. Future work will focus on incorporating feedback from this live deployment to further refine the ranking mechanisms and user interface. + + +This work presents \emph{MatchMaker}, our system for distributing research funding calls at scale that combines organizational mining, LLM-enhanced preprocessing pipeline with semantic topic modeling, thereby linking sparse publication data to organizational entities and call descriptions. MatchMaker has been in operation at our university's Research Support Office (RSO) since September 2025, where it produces ranked recommendations over all organizational units for incoming calls. Our experiments show that matching is most reliable at the organizational levels that reflect real administrative practice, where aggregating publications to chairs and institutes yields substantially higher performance than attempting researcher-level assignment (e.g., 97.4\% Hit Rate@5 at chair level in the publication-based evaluation), and historical call validation indicates strong transfer to historically successful funding calls (e.g., 89.4\% Hit Rate@5 at chair level). + +In the expert validation on 100 Horizon Europe calls, the best-performing configuration achieves robust scores at higher levels, reaching 96\% Hit Rate@5 at faculty level, and above 83\% Hit Rate@5 at chair and institute level. These scores suggest that semantic enrichment via LLM-derived keywords particularly improves chair/institute level recommendations. Overall, MatchMaker reliably pre-screens and prioritizes calls for the appropriate faculties, institutes, and chairs, and in operational use and supports RSO experts in routing incoming calls. To date, the deployment has proven qualitatively effective, and we expect both the system and our experience to serve as a blueprint for similar research-support deployments. Future work will incorporate continued feedback from the deployment, in particular by systematically logging expert decisions to enable online and continual training of the matching models. + +% \section{Acknowledgments} + +% This work has been funded by BLINDED, which aims to improve the ability of the science support center of the University BLINDED in the identification, qualification, and incubation of innovation potentials in the context of research funding calls. We thank the Research Support Office of the University BLINDED for providing the funding call data and for their expert evaluation of the results. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +% \begin{acks} +% To Robert, for the bagels and explaining CMYK and color spaces. +% \end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} diff --git a/research/knowledge_clusters/thesis/NES_template.tex b/research/knowledge_clusters/thesis/NES_template.tex new file mode 100644 index 0000000..6146785 --- /dev/null +++ b/research/knowledge_clusters/thesis/NES_template.tex @@ -0,0 +1,137 @@ +\documentclass[pdftex, chapterprefix, headsepline, footsepline, 11pt, + a4paper, parskip=half, final, appendixprefix, bibliography=totoc]{scrbook}\hfuzz=100pt + +% TODO: Define your desired language - will effect your style and texts +%\usepackage[english]{babel} +% \usepackage[ngerman]{babel} +% you can also combine both languages, but you shouldn't do this. This is only needed for the template. +\usepackage[ngerman, english]{babel} +%\usepackage{enumitem} +\usepackage{enumerate} +\usepackage[shortlabels]{enumitem} +% Here are the needed packages & commands defined +\input{content/utility} + +% The following part mostly defines the title page + +% TODO: Set the titlepage style, true=fance, false=plain +% You may want to change the image in fancy style +% Either change your mainimage.jpg or go into the titlePage.tex +% Optimized for resolution about 5616 x 3744 +\setboolean{fancy}{false} + +% TODO: Set the type of document, true=thesis, false=report (more names, no matnr, different person responsibility) +\setboolean{thesis}{true} + +% TODO: Set true of you want both german and english NDA or Affirmation on oath in german and english +\setboolean{bothlanguages}{false} + +% TODO: Fill out +% What type of work is this? +% Bachelor thesis, Master thesis, Bachelor project group report, Master project group report +% Bachelorarbeit, Masterarbeit, Bachelorprojekt Gruppenbericht, Masterprojekt Gruppenbericht +\newcommand{\typeofwork}{Bachelor Thesis} +\newcommand{\workingtitle}{Publication-Driven Matching of Research Funding Calls to Academic +Departments} + +% TODO: Write down your name(s) and matriculation number if a thesis +\newcommand{\name}{Jevgeni Syssenko} +\newcommand{\matriculationnumber}{3129803} + +% TODO: Fill in the name of your second examiner (if thesis) and supervisor during the work +\newcommand{\secondexaminer}{Prof. Dr. Stefan Schneegass} +\newcommand{\supervisor}{Arman Arzani, Marcus Handte} + +% TODO: +% for a thesis the actual time like "1.Januar 2021 - 1.Juni 2021" +% for a report the term like "Winter term 2020 / 2021" +\newcommand{\timeframe}{July 2025 - September 2025} + +% TODO: use this if you want to change the titles of Table of Contents, etc. +% Leave it out if defaults are fine +\addto\captionsenglish{\renewcommand{\contentsname}{My Table of Contents}} +\addto\captionsenglish{\renewcommand{\bibname}{My References}} +\addto\captionsenglish{\renewcommand{\listfigurename}{My List Of Figures}} +\addto\captionsenglish{\renewcommand{\listtablename}{My List Of Tables}} + +% \addto\captionsngerman{\renewcommand{\contentsname}{Mein Inhalt}} +% \addto\captionsngerman{\renewcommand{\bibname}{Meine Literatur}} +\addto\captionsngerman{\renewcommand{\listfigurename}{Meine Abbildungen}} +\addto\captionsngerman{\renewcommand{\listtablename}{Meine Tabellen}} + +% Start of the actual document +\begin{document} +% the next two lines influence the detailedness of the table of contents +% and to what structure depth numbers are written before sections/subsections/paragraphs +% You should not touch this +\setcounter{tocdepth}{2} +\setcounter{secnumdepth}{3} +\frontmatter + +% here the titlepage is included. Look into the file "titlePage.tex" and make adjustments as needed +\input{content/chapters/titlePage} + +%\include{todowarning} + +% include the following in case of a work with a company to avoid disclosure +%\include{content/chapters/non_disclosure_agreement} + +\tableofcontents + +\listoffigures % TODO: remove this if you don't have any figures + +\listoftables % TODO: remove this if you don't have any tables + +\mainmatter + +% TODO: +% To assemble the whole document +% Please be aware that each file will begin on a new page +% therefore chapters should be put into such a file. +% There cannot be an include statement inside of an "included" file. +% So if you want to further divide your document - use \input inside of +% the included files. \input will not begin on a new page. +\include{content/chapters/abstract_en} +\include{content/chapters/abstract_ger} +\include{content/chapters/chapter1} % Introduction +\include{content/chapters/chapter2} % Materials and Methods +\include{content/chapters/chapter3} % Analysis +\include{content/chapters/chapter4} % Approach +\include{content/chapters/chapter5} % Implementation +\include{content/chapters/chapter6} % Evaluation +\include{content/chapters/chapter7} % Discussion +\include{content/chapters/clause} % Acknowledgment +% \include{content/chapters/non_disclosure_agreement} % Acknowledgment + + +% Appendix chapters to be put here. They will be enumerated with capital letters +% if you did not change the \documentclass options. +% \appendix +% \include{content/appendix/appendix_chapterA} +% end of appendix + +% TODO: +% Bibliography +% We strongly recommend to use bibtex to manage your bibliography. It helps you +% structure your references and helps avoiding missing important data for a correct +% quotation. If you have no other idea jabref (http://jabref.sourceforge.net/) +% might be a good idea (Jave runtime environment needed). +% This style is good to use in german master thesis'. You need to have activated +% \usepackage{bigerm} above. +% For english documents just use apalike. +%\bibliographystyle{geralpha} +% Use this if you like Numbers [X} instead of Letters +\bibliographystyle{abbrv} + + +% to finally announce where your bibliography is stored use +\bibliography{content/references/references} +% it is also possible to have several files separated by comma. +% Bibliographie Angaben mit \bibliography{} + +\backmatter + +% TODO: not needed in a report +%\include{content/chapters/clause} + +\end{document} \ No newline at end of file diff --git a/research/knowledge_clusters/thesis/content/appendix/appendix_chapterA.tex b/research/knowledge_clusters/thesis/content/appendix/appendix_chapterA.tex new file mode 100644 index 0000000..6cea2cb --- /dev/null +++ b/research/knowledge_clusters/thesis/content/appendix/appendix_chapterA.tex @@ -0,0 +1,254 @@ +\chapter{The Appendix - Some \LaTeX\ Advice} +\todo[inline]{Don't forget to remove this advice from the document} +This is the appendix with some helpful advice. If you don't need an appendix, remove this chapter from the main tex file. Otherwise, replace it with your own content. + +Always write something in between headings, like here. + +\section{Correct Section and Subsection Headings} \todo{write some text here, this looks bad} +% this is bad, no text here + +\subsection{Subsection} +This is a subsection. + +\subsubsection{Subsubsection} +This is a subsubsection. It is created with \verb|\subsubsection{Subsubsection}| and therefore numbered. You should only use numbered sections and subsections. If you need additional headings, better use \verb|\subsubsection*{Subsubsection}| or other * variants (e.g.\ \verb|\paragraph*{The Paragraph}| or \verb|\subparagraph*{The Subparagraph}|). +However, most of the time too many headings are an indicator of poorly structured text, so you may as well change the overall structure of your document. + +\subsubsection*{Subsubsection} +This subsubsection has no number. + +\section{Lists} +There are different types of lists, mostly \verb|itemize|, \verb|enumerate| \verb|description|, which are shown below. They take up large parts of the document, so use them wisely. + +This is an \verb|itemize| environment: +\begin{itemize} + \item First item + \item Second item +\end{itemize} + +This is an \verb|enumerate| environment: +\begin{enumerate} + \item First item + \item Second item +\end{enumerate} + +This is a \verb|description| environment: +\begin{description} + \item[What is this] This is the description + \item[Another point] Some more description +\end{description} + +You can also configure \verb|description| to look like this: +\begin{description} + \item[What is this]\hfill\\ + This is a really long description to show linebreaks at the end of each line. Some more text in this description. + \item[Another point]\hfill\\ + Some more description. +\end{description} + +\section{(Non-)Floating Environments} +Have a look at different types of environments. + +\subsection{Floating Environments} + +Some environments ``float'', i.e.\ \LaTeX{} places them somewhere in your document, not necessarily where they are in the source code. Have a look at Figure~\ref{figure1}. + +\begin{figure} + \centering + \includegraphics[width=0.2\textwidth]{content/images/NES_Logo_text} + \caption{The NES logo} + \label{figure1} +\end{figure} + +As you can see, this Figure is placed somewhere else. You can also use subfigures to display multiple figures side-by-side, as shown in Figure~\ref{figure2}, containing Figure~\ref{logo} and Figure~\ref{other}. + +\begin{figure} + \centering + \begin{subfigure}[b]{0.25 \textwidth} + \includegraphics[width=\linewidth]{content/images/NES_Logo_text} + \caption{The NES logo} + \label{logo} + \end{subfigure} + \hfill + \begin{subfigure}[b]{0.5 \textwidth} + \missingfigure{A Subfigure} + \caption{Another subfigure} + \label{other} + \end{subfigure} + \caption{The NES logo with another figure} + \label{figure2} +\end{figure} + +Tables are very similar, have a look at Table~\ref{my_table} and Table~\ref{my_other_table}. + +\begin{table} + \centering + \caption{The Caption. Don't use so many lines.} + \label{my_table} + \begin{tabular}{|l|l|l|} + \hline + a & b & c \\ \hline + d & e & f \\ \hline + \end{tabular} +\end{table} + +\begin{table} + \centering + \caption{A larger table with better structure} + \label{my_other_table} + \begin{tabular}{lllccc} + \toprule + Left-aligned cells & left & left & Center-aligned cells & center & center \\ + \midrule + some text here & a & b & Some really long text & c & d \\ + e & f & g & h & i & j \\ + \bottomrule + \end{tabular} +\end{table} + +Use \verb|\toprule|, \verb|\midrule| and \verb|\bottomrule| for better horizontal lines in tables. Be careful with too many vertical lines. +Always use \verb|\caption{the caption}|, \verb|\label{the_label}| and \verb|\ref{the_label}| in combination with figures and tables. + +\subsection{Non-Floating Environments} +Many other environments appear exactly where they are placed in the source code. Some of them are explained here. + +If you want to write code, use an \verb|lstlising|, like in Code~\ref{example_1} or Code~\ref{example_2}. Depending on the language and context, you may want to configure syntax highlighting and other options. + +\begin{lstlisting}[language=Java, label=example_1, caption={Example Code in Java}] + public void main(String[] args) { + System.out.println("This is an example") + } +\end{lstlisting} + +\begin{lstlisting}[language=Python, label=example_2, caption={Example Code in Python}] + if __name__ == "__main__": + print("This is an example in python") +\end{lstlisting} + +Instead of writing real code, you can also use pseudo-code, which looks like shown in Algorithm~\ref{pseudo_example}. + + +\begin{algorithm} + \caption{An Example for Pseudo-Code}\label{pseudo_example} + \begin{algorithmic}[1] + \Procedure{doStuff}{$A$} + \Statex $\textbf{Input:} \qquad A \gets \text{list of input elements}$ + \Statex $\textbf{Output:} \quad B \gets \text{list of output elements}$ + \State Initialize state $C = \emptyset$ + \ForAll{$a \in A$} + \If{some condition related to $a$} + \State $ C = C \cup \left\lbrace a \right\rbrace $ + \EndIf + \EndFor + \State Initialize some other set $C' = $ \Comment{You can also add comments and split lines} + \item[] \hskip\algorithmicindent \hskip\algorithmicindent some elements from $C$ + \State $B = C'$ + \State \Return $B$ + \EndProcedure + \end{algorithmic} +\end{algorithm} + +\section{Punctuation and Spaces} +This section explains spaces, linebreaks and quotation marks. + +\subsection{Space} +There are different kinds of space, use them correctly. First, the ``normal'' space (interword space) is used by pressing the space bar on your keyboard. You probably use it all the time. However, a space at the beginning of a sentence can be larger. \LaTeX detects sentences by the presence of periods, which is sometimes wrong. Have a look at the following examples: + +\begin{minipage}{\textwidth} + This is a normal sentence. This is the next sentence. \\ + The physicist Prof. A. Einstein defined $E = mc^2$. \\ + The physicist Prof.\ A.\ Einstein defined $E = mc^2$. \\ + Einstein et al. defined even more equations. \\ + Einstein et al.\ defined even more equations. \\ + The equation $E = mc^2$ was defined by Mister E. This is great. \\ + The equation $E = mc^2$ was defined by Mister E\@. This is great. \\ +\end{minipage} + +If you have abbreviations with small letters, use ``\textbackslash\ '' (backslash+space) or ``$\sim$'' (tilde, non-breaking space) to use a normal space. If a sentence ends with a single capital letter, end the sentence with ``\textbackslash@.'' (backslash+at+period) to use a sentence-beginning space afterwards. + +\subsection{Linebreaks} +\LaTeX sometimes decides to break lines at unwanted places. Always use $\sim$ in references, citations etc.\ to prevent \LaTeX from breaking this space, e.g.\ this is a citation~\cite{Ikeda1997}, and this is a reference to Figure~\ref{figure1}. +Additionally, \LaTeX likes to break compound words at a hyphen. If you want to prevent this, you can wrap the word in an mbox, e.g.\ \verb|\mbox{the-word}|. +If \LaTeX doesn't know how to break a word, you get a warning. You can add \verb|\-| (backslash+hyphen) to tell \LaTeX how to break this word. +If you want to manually add linebreaks, you can use \verb|\linebreak|, \verb|\newline| or \verb|\\|. +Never use a new line to start a new paragraph, always use a blank line in the source code. + +This is a new paragraph, no command is needed. + + +\subsection{Quotation Marks} +There are many different quotation marks available. Using \verb|"| is always wrong. Depending on the language, \verb|"| is a closing quotation mark or marks characters as umlauts. + +\begin{minipage}{\textwidth} + \centering + This is a sentence where an "a" is quoted.\\ + \begin{otherlanguage}{ngerman} + Dies ist ein Satz, in welchem ein "a" zitiert wird. + \end{otherlanguage} +\end{minipage} + +Instead, you should use \verb|``quote''| (double \verb|`| + double \verb|'|) or other language appropriate quotation marks, e.g.\ \verb|\glqq|, \verb|\grqq|, \verb|\flqq|, \verb|\frqq|. + + +\section{Math} +There are two types of math available, inline and display. +Inline equations can be shown in the text by using \verb|$equation$|. This is an example containing $E=mc^2$ and also $a^2+b^2=c^2$. +Display equations can be created with the \verb|equation| environment. Have a look at Equation~\ref{eq1}: + +\begin{equation} + \label{eq1} + \pi = \sqrt{12} \sum_{k=0}^{\infty} \frac{\left( -3 \right)^{-k}}{2k+1} + = \sqrt{12} \left( 1 - \frac{1}{3*3} + \frac{1}{5*3^2} - \frac{1}{7*3^3} + \ldots \right) +\end{equation} + +Always use numbered equations (created with \verb|equation|, not \verb|equation*|). +If you want to define variables in your equations, either use symbols or define them with \verb|mathrm|, never write text in math mode. See Equation~\ref{eq2} for examples: + +\begin{equation} + \label{eq2} + area = \left\lbrace + \begin{array}{l} + a^2 if square\\ + a*b if rectangle + \end{array} + \right. + \qquad + \mathrm{area} = \left\lbrace + \begin{array}{ll} + a^2 & \text{if square}\\ + a*b & \text{if rectangle} + \end{array} + \right. +\end{equation} + +\section{Bibliography} + +When using references, always watch out for warnings and errors from \textrm{Bib}\TeX. Sometimes, entries can be imported, but are formatted wrong. Always check the output. +Here are some examples of typical errors when handling \textrm{Bib}\TeX\ citations: + +\begin{minipage}{\textwidth} + \centering + \begin{tabular}{lcc} + \toprule + Error & Example & Correct \\ + \midrule + Missing fields & \cite{field_missing1,field_missing2} & \cite{field_missing_correct1,field_missing_correct2} \\ + Institution Author & \cite{institution_author1} & \cite{institution_author_correct} \\ + Multiple Authors & \cite{multiple_authors1} & \cite{multiple_authors_correct} \\ + \bottomrule + \end{tabular} +\end{minipage} + +\section{The todo command} +The commands \verb|\todo| and \verb|\missingfigure| can be useful to add annotations to the text without changing the text itself. The command \verb|\todo| can be seen here. \todo{do something} +It is also possible to add an inline todo comment: +\todo[inline]{An inline todo comment} + +The command \verb|\missingfigure| can be used to add a placeholder to figures, see e.g.\ Figure~\ref{placeholder}. + +\begin{figure} + \centering + \missingfigure{A missing figure} + \caption{An example for a missing figure} + \label{placeholder} +\end{figure} diff --git a/research/knowledge_clusters/thesis/content/chapters/abstract_en.tex b/research/knowledge_clusters/thesis/content/chapters/abstract_en.tex new file mode 100644 index 0000000..550c5a2 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/abstract_en.tex @@ -0,0 +1,17 @@ +\pagestyle{plain} +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{chapter}{Abstract} +\section*{Abstract} + +This thesis addresses the challenge of automatically matching external research funding calls to the most relevant university departments. Traditionally, this task has been carried out manually, making it time-consuming, subjective, and difficult to scale. The purpose of this work is to develop a publication-driven system that leverages Natural Language Processing (NLP) techniques to provide objective, reproducible, and efficient recommendations. + +The system integrates web crawlers for acquiring funding calls and publication metadata, a data storage and indexing pipeline, and topic modelling. Two complementary approaches were explored: unsupervised clustering methods that group semantically similar publications into topics, and a supervised classifier that predicts relevant departments directly from publication embeddings. Different input variants were compared, including raw publication titles, automatically extracted keywords, and keywords generated by a large language model. + +Evaluation combined three setups: large-scale publication validation, manual validation of historical calls, and expert validation of forthcoming and closed calls. Results show that the supervised classifier achieved near-perfect accuracy in controlled publication validation, while clustering methods proved more robust in handling heterogeneous real-world calls. Across all evaluations, enriching inputs with LLM-generated keywords consistently improved performance. Expert validation further indicated that working with full call descriptions, rather than titles alone, yields more meaningful results, particularly for closed calls. Moreover, if the system were trained on publication abstracts rather than titles, richer semantic features could be extracted, potentially leading to even stronger alignment with descriptive funding data. + +In conclusion, this thesis demonstrates that a publication-driven approach can substantially improve the allocation of funding calls, particularly at faculty and institute levels. While supervised methods excel in controlled experiments, clustering approaches are more reliable for real-world data. The results highlight the feasibility of automated, data-driven matching and point towards future improvements in researcher-level recommendations, abstract-based training, and integration into university systems. + +\cleardoublepage +\pagestyle{headings} diff --git a/research/knowledge_clusters/thesis/content/chapters/abstract_ger.tex b/research/knowledge_clusters/thesis/content/chapters/abstract_ger.tex new file mode 100644 index 0000000..2da34b1 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/abstract_ger.tex @@ -0,0 +1,15 @@ +\pagestyle{plain} +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{chapter}{Kurzfassung} +\section*{Kurzfassung} +Diese Arbeit beschäftigt sich mit der Herausforderung, externe Forschungsförderaufrufe automatisch den jeweils relevantesten universitären Fachbereichen zuzuordnen. Traditionell wurde diese Aufgabe manuell durchgeführt, was zeitaufwendig, subjektiv und schwer skalierbar ist. Ziel dieser Arbeit ist es, ein publikationsbasiertes System zu entwickeln, das Techniken der natürlichen Sprachverarbeitung (Natural Language Processing, NLP) nutzt, um objektive, reproduzierbare und effiziente Empfehlungen bereitzustellen. + +Das System integriert Webcrawler zur Erfassung von Förderaufrufen und Publikationsmetadaten, eine Datenablage- und Indexierungspipeline sowie Topic Modeling. Es wurden zwei komplementäre Ansätze untersucht: unüberwachte Clustering-Methoden, die semantisch ähnliche Publikationen zu Themen gruppieren, und ein überwachter Klassifikator, der relevante Fachbereiche direkt anhand von Publikations-Embeddings vorhersagt. Verschiedene Eingabevarianten wurden verglichen, darunter Roh-Titel von Publikationen, automatisch extrahierte Schlüsselwörter und von einem großen Sprachmodell generierte Schlüsselwörter. + +Die Evaluation umfasste drei Szenarien: groß angelegte Validierung anhand von Publikationen, manuelle Validierung historischer Förderaufrufe und Expertenvalidierung\\ zukünftiger sowie abgeschlossener Förderaufrufe. Die Ergebnisse zeigen,\\ dass der überwachte Klassifikator in der kontrollierten Publikationsvalidierung nahezu perfekte Genauigkeit erzielte, während Clustering-Methoden sich als robuster bei der Handhabung heterogener, realer Förderaufrufe erwiesen. In allen Evaluationsszenarien führte die Anreicherung der Eingaben mit LLM-generierten Schlüsselwörtern zu einer konsistenten Leistungssteigerung. Die Expertenvalidierung zeigte zudem, dass die Arbeit mit vollständigen Förderaufrufbeschreibungen anstelle von Titeln allein zu aussagekräftigeren Ergebnissen führt, insbesondere bei abgeschlossenen Aufrufen. Darüber hinaus könnte die Nutzung von Publikationsabstracts anstelle von Titeln zur Modellierung reichhaltigere semantische Merkmale ermöglichen und eine noch bessere Übereinstimmung mit den beschreibenden Förderdaten erzielen. + +Abschließend zeigt diese Arbeit, dass ein publikationsbasierter Ansatz die Zuordnung von Förderaufrufen deutlich verbessern kann, insbesondere auf Fakultäts- und Institutsniveau. Während überwachte Methoden in kontrollierten Experimenten hervorragende Ergebnisse erzielen, erweisen sich Clustering-Ansätze bei realen Daten als zuverlässiger. Die Ergebnisse unterstreichen die Machbarkeit einer automatisierten, datengetriebenen Zuordnung und weisen auf zukünftige Verbesserungen bei Empfehlungen\\ auf Forschungsebene, modellbasiertem Training mit Abstracts und der Integration in universitäre Systeme hin. +\cleardoublepage +\pagestyle{headings} \ No newline at end of file diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter1.tex b/research/knowledge_clusters/thesis/content/chapters/chapter1.tex new file mode 100644 index 0000000..ea69c71 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter1.tex @@ -0,0 +1,80 @@ +% \chapter{Introduction} + +% [You should answer the question: What is the problem?] + +% This paragraph should establish the context of the reported work. To do that, authors discuss over related literature (with citations~\cite{Ikeda1997}) and summarize the knowledge of the author in the investigated problem. + +% An introduction should answer (most of) the following questions: +% \begin{itemize} +% \item What is the problem that I want to solve? +% \item Why is it a relevant question? +% \item What is known before the study? +% \item How can the study improve the current solutions? +% \end{itemize} + +% To write it, use if possible active voice: +% \begin{itemize} +% \item We are going to watch a film tonight (Active voice). +% \item A film is going to be watched by us tonight (Passive voice). +% \end{itemize} +% The use of the first person is accepted. + + + +% \section{Motivation} +% A good introduction usually starts presenting a general view of the topic and continues focusing on the problem studied. Begin it clarifying the subject area of interest and establishing the context (remember to support it with related bibliography). + + + +% \section{Problem Definition} +% Additionally, the problem definition focuses on the relevant points of your investigation and problems that you want to solve, relating them with the first part. + + + +% \section{Contribution} +% Give an overview of the main contributions of your work. What is different than existing approaches? + + + +% \section{Thesis/Bachelor/Master Structure} +% Present your work to the reader giving a brief overview of what is going to cover every chapter. Write only general concepts, no more than one or two sentences per chapter should be necessary. +\chapter{Introduction} + +\section{Motivation} +In today’s research-driven academic landscape, aligning external project calls with the right university departments is a critical process, especially since these grants serve as a key source of funding to pursue academic research, support staff and doctoral students, acquire equipment, and sustain long-term research agendas. Universities, particularly in Europe, rely heavily on external funding mechanisms such as those provided by the European Union through programs like Horizon Europe. To secure such funding, academic departments (e.g., affiliations) must identify and respond to relevant project calls in a timely and accurate manner. + +Currently, this matching process is predominantly manual. Academic staff must manually search through various funding portals, or rely on science support centers to review incoming calls and forward them to potentially relevant departments. This manual procedure involves browsing numerous project descriptions and comparing them against the thematic focus of departments, requiring significant effort. Effective matching also depends on a deep understanding of each department’s or researcher’s publication history to accurately identify expertise aligned with the call. These human-centered limitations make the process not only labor-intensive and time-consuming but also highly subjective and dependent on institutional knowledge, introducing risks such as overlooked opportunities, mismatches in research focus and high degree of repetitiveness. These problems can lead to risks such as proposal resubmissions, which increase the time required to prepare proposals and ultimately result in greater time wastage \cite{herbert2013time}. + +To address these issues, this thesis proposes a data-driven approach leveraging Natural Language Processing (NLP) techniques, particularly topic modelling. Topic modelling can uncover latent thematic structures in large text corpora, such as academic publications and funding calls. By aligning the extracted research themes from departmental publications with those described in project calls, it becomes possible to automate and objectify the matching process. This approach not only saves time but also ensures a more consistent and scalable way of assigning calls to the most relevant academic units. + +\section{Problem Definition} +Matching external research funding calls to appropriate university departments poses several technical and organizational challenges. Funding calls are heterogeneous in structure: while some contain detailed descriptions of objectives and priorities, others offer only minimal or abstract information. Their language and formatting may vary across different funding agencies or programs, further complicating parsing and interpretation. + +On the other hand, academic publications offer a consistent and reliable representation of a department’s or researcher's core expertise. Aggregating publication data enables the construction of thematic profiles for various organizational entities - be it faculties, institutes, chairs, or individual researchers. These profiles can serve as a reference framework for evaluating the relevance of external project calls. + +However, existing approaches largely rely on manual review processes that suffer from a lack of objectivity and repeatability. Manual matching is also difficult to scale across large institutions and introduces delays in responding to funding opportunities. There is a clear need for an automated, transparent, and reproducible system that can perform this task efficiently and effectively. + +\section{Contribution} + +This thesis presents a publication-driven system for matching research funding calls to university departments. The main contributions of this work are as follows: + +We implement a web crawler capable of automatically retrieving current and upcoming project calls from publicly available funding portals. +We collect and process publication data from the university’s internal bibliography to model departmental expertise. +We train a topic modelling algorithm solely on the publication data to uncover thematic structures that represent the research focus of different departments. +We develop an automated matching mechanism that infers topic distributions for project calls and compares them to department profiles to assign relevant calls. +We evaluate the system using historical project calls and a selection of university publications to assess its effectiveness in terms of accuracy and practical applicability. + + +Through these contributions, this thesis provides a scalable and objective method for research call allocation that reduces manual workload and enhances the alignment between external funding and institutional research priorities. + + +\section{Thesis Structure} + +This thesis is structured as follows: + +\textbf{Chapter~\ref{related_works} - Related Works} reviews existing research on project call matching, expert finding, and topic modelling techniques. +\textbf{Chapter~\ref{analysis} - Analysis} Aaalyzes the problem domain, data sources, and requirements for automating the matching of funding calls. +\textbf{Chapter~\ref{approach} - Approach} describes the conceptual and technical design of the proposed solution, including the topic modelling strategy. +\textbf{Chapter~\ref{implementation} - Implementation} Details the practical development of the system, including tools, libraries, and workflow integration. +\textbf{Chapter~\ref{evaluation} - Evaluation} presents both quantitative and qualitative assessments of the system’s performance using historical funding calls. +\textbf{Chapter~\ref{discussion} - Discussion} discusses the implications, limitations, and potential improvements of the proposed approach. diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter2.tex b/research/knowledge_clusters/thesis/content/chapters/chapter2.tex new file mode 100644 index 0000000..66735a8 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter2.tex @@ -0,0 +1,50 @@ +\chapter{Related Work}\label{related_works} + +In this chapter, we review the existing tools, methodologies, and research efforts that relate to the automatic matching of research funding calls to academic departments. Our approach builds upon multiple research areas, including expert finding, publication-based profiling, research funding recommendation systems and topic modelling using natural language processing (NLP). + +\section{Expert Finding and Researcher Profiling} + +Expert finding systems aim to identify individuals with relevant expertise in a given domain, often for tasks such as collaboration, peer review, or recruitment. A foundational example is the work by Balog et al.~\cite{balog2009language}, who proposed a language modelling approach for expert search using document - author associations. Similarly, Serdyukov et al.~\cite{serdyukov2008modeling} modelled the probability of expertise from publication content, highlighting the value of probabilistic language models in expert retrieval. + +Academic search engines such as Microsoft Academic Graph~\cite{sinha2015overview}, Semantic Scholar~\cite{ammar2018construction}, and Google Scholar~\cite{googlescholar} have scaled this idea by automatically generating researcher profiles based on publication and citation data. These infrastructures provide the backbone for tasks such as collaboration recommendation, reviewer identification~\cite{charlin2013toronto}, and research landscape mapping. + +Among others, Tang et al.~\cite{tang2008arnetminer} introduced ArnetMiner, which combines expertise modeling with social network analysis. + +While these systems demonstrate the effectiveness of publication-based expertise modelling, they are primarily tailored to individual researchers. In contrast, our work builds on the same principle but aggregates publication data at the \textbf{university-department level}(faculties, institutes, chairs and individual researchers), producing collective expertise profiles. Such aggregation aligns more closely with the way research funding is organized and pursued within universities. + +\section{Funding Call Matching and Recommendation Systems} + +Several platforms have been developed to assist researchers in discovering relevant funding opportunities. Widely used commercial services include \textit{GrantForward}~\cite{GrantForward}, \textit{Pivot RP}~\cite{pivotrp}, and the European Commission’s \textit{Funding \& Tenders Portal}~\cite{funding_tenders}, which are largely keyword-based and require researchers to actively query the system. While useful for broad discovery, these tools depend heavily on manually entered keywords and user curation, limiting automation and personalization. + +Academic research has sought to advance beyond keyword search by introducing automated recommendation mechanisms. Early approaches focused on content similarity: for example, Asim and Khusro~\cite{asim2018content} developed a call-for-papers recommender system that matches research publications to announcements using content-based filtering. Similarly, Kamada et al.~\cite{kamada2015recommendation} built a system for recommending Japanese Grants-in-Aid by leveraging structured keyword taxonomies from the Japan Society for the Promotion of Science (JSPS). These works demonstrate the potential of aligning researcher profiles with funding calls through text analysis rather than manual search. + +More recent studies adopt machine learning and embedding-based models. Zhang et al.~\cite{ZHANG2024100095} proposed a scholarly recommendation system for NIH grants that employs biomedical word embedding models (BioWordVec, BioSentVec), showing significant improvements over traditional information retrieval baselines in terms of relevance. Building on advances in deep contextual models, Zhu et al.~\cite{zhu2023novel} introduced a BERT-based recommender that frames the NIH grant matching task as a classification problem, learning non-linear semantic relations between researcher publications and grant texts. These embedding-driven methods highlight the growing role of deep NLP in grant matching. + +GotFunding~\cite{zeng2020gotfunding} is a notable publication-driven system that recommends funding opportunities to individual researchers by analyzing the thematic content of their scientific articles. + +Despite this progress, existing systems predominantly operate at the \textbf{individual researcher level} and frequently require user-maintained profiles or keyword input. Automated \textbf{university department-level matching}, which aggregates expertise across research groups to align entire organizational units with funding calls, remains largely unexplored in the literature. This gap motivates our work, which develops a scalable, publication-driven pipeline for matching funding opportunities to university departments without manual input. + +\section{Natural Language Processing and Topic Modelling} + +Natural Language Processing (NLP) techniques underpin both expert profiling and call matching. Traditional approaches relied on keyword extraction (TF-IDF, bag-of-words) or topic models such as Latent Dirichlet Allocation (LDA)~\cite{blei2003latent}. LDA and its extensions have been widely applied in bibliometrics, e.g., to track research trends~\cite{wang2006topics}, cluster research papers~\cite{kim2019research}, or classify grant proposals~\cite{korkontzelos2016ensemble}. + +However, bag-of-words topic models suffer from limited semantic coherence and sparse representations, particularly for short or heterogeneous texts such as funding calls. To address these issues, embedding-based methods emerged: Doc2Vec~\cite{le2014distributed}, Sentence-BERT~\cite{reimers-2019-sentence-bert}, and transformer-based encoders such as SciBERT~\cite{beltagy2019scibert}. These models provide dense, semantically informed embeddings that outperform LDA in clustering and retrieval tasks. + +BERTopic~\cite{grootendorst2022bertopic}, which combines transformer embeddings with class-based TF-IDF, represents one of the latest advances in interpretable topic modelling. Other clustering-based topic models include Top2Vec~\cite{angelov2020top2vec} and Combined Topic Model (CTM)~\cite{bianchi2020pre}. + +Our work leverages BERTopic to generate robust topic representations of university publication output. Funding calls are then inferred into this topic space, enabling higher accuracy and interpretability in the matching process compared to classical LDA-style models. + +\section{Context and Novelty of this Work} + +Most existing systems for expert finding and grant recommendation, such as GotFunding or BERT-based NIH matchers, focus on \textbf{individual researchers}. They often require manually curated profiles or keyword input, which limits scalability. In contrast, funding decisions in universities are typically made at the \textbf{departmental and faculty level}, where automated, publication-driven matching solutions are still missing. + +The novelty of this work lies in three aspects: + +\begin{enumerate} + \item \textbf{Institutional Expertise Modelling} -- Publications are aggregated at faculty, institute, and chair level to construct collective expertise profiles that reflect how funding is managed in practice. + \item \textbf{Systematic Comparison of Methods} -- Both unsupervised clustering approaches (HDBSCAN, K-Means) and a supervised classifier (Random Forest) for topic modelling are benchmarked on the same task, highlighting their respective strengths and weaknesses for departmental funding call matching. + \item \textbf{Evaluation in Realistic Scenarios} -- Beyond controlled publication-level experiments, the system is validated on historical funding calls and forthcoming calls assessed by domain experts, addressing the challenges of noisy and heterogeneous real-world data. +\end{enumerate} + +Together, these contributions go beyond researcher-level recommenders by delivering a \textbf{scalable, institution-oriented pipeline} and a clear analysis of which approaches are most effective for funding call alignment. + diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter3.tex b/research/knowledge_clusters/thesis/content/chapters/chapter3.tex new file mode 100644 index 0000000..cbc9b50 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter3.tex @@ -0,0 +1,40 @@ +\chapter{Analysis}\label{analysis} +This chapter outlines the requirements and constraints for the implementation of a publication-driven matching system that assigns research funding calls to academic departments. The system aims to automate a traditionally manual and subjective process by using Natural Language Processing and topic modelling techniques to align funding calls with departmental research interests. + +\section{Requirements} +The core functional and non-functional requirements of the system are as follows: + +\begin{itemize} + \item \textbf{Web Crawler for Funding Calls:} There must be implemented a web crawler to automatically extract open and forthcoming project calls from the EU Funding \& Tenders Portal. This includes parsing project titles, submission deadlines, topic areas, URLs, and descriptions. + + \item \textbf{Publications Data Collection:} The publication data from the university’s internal bibliography must be collected and processed for further training. Author names must be mapped to their corresponding departments, which may include faculties, institutes, or chairs. + + \item \textbf{Topic modelling on Publications:} An NLP pipeline must be implemented to perform topic modelling on the publication corpus. The model should identify key thematic structures that represent the research expertise of each department. + + \item \textbf{Call Matching via Topic Similarity:} The system should infer the topic distribution of incoming project calls and match them to departmental topic profiles using a similarity metric (e.g., cosine similarity). + + \item \textbf{Hierarchical Matching Capability:} The system should support matching at multiple organizational levels-from faculty down to individual researchers - based on the available publication data. + + \item \textbf{Evaluation Framework:} The system must include a mechanism to evaluate its performance, using historical project calls with known departmental participation as ground truth where available. + + \item \textbf{Interpretability:} The system should output interpretable results, including top-matching departments per call and, optionally, associated topic relevance scores. + +\end{itemize} + +\section{Constraints} +The development of the system is subject to several constraints, which affect both the design and implementation choices: + +\begin{itemize} + \item \textbf{Data Inconsistency:} Funding calls published on the EU Funding Portal may vary significantly in structure and content. Some calls may lack detailed descriptions, making semantic analysis more difficult. + + \item \textbf{Incomplete Metadata:} University publications may not include abstracts, which reduces the quality of topic modelling. + + \item \textbf{Unlabeled Data:} There is no existing dataset of labeled matches between project calls and departments. As a result, the system must rely on unsupervised learning techniques, limiting the ability to directly optimize for accuracy. + + \item \textbf{Indirect Affiliation Mapping Bias:} + The process of completing missing departmental affiliations in the publication dataset relies on crawling the LSF profiles of authors using their unique IDs. However, this information is not directly linked to individual publications, but rather to the author's most recent or current affiliations. As a result, the inferred department for a publication may not accurately reflect the author’s affiliation at the time of that publication, introducing a potential bias in the department assignment process. + + + \item \textbf{Computational Resources:} Topic modelling on large corpora of publication texts can be computationally expensive, especially when applied at scale across an entire university. + +\end{itemize} diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter4.tex b/research/knowledge_clusters/thesis/content/chapters/chapter4.tex new file mode 100644 index 0000000..6f30628 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter4.tex @@ -0,0 +1,111 @@ +\chapter{Approach}\label{approach} +This chapter describes the design of a publication-driven matching system that processes academic publication data and matches research funding calls to recommend relevant departments. The system employs two distinct approaches, which are compared in terms of their ability to capture departmental research focus. +The first is \textbf{Unsupervised topic modeling}, which identifies thematic clusters within publications without prior labeling, uncovering latent research topics that can be associated with departments. +The second is \textbf{Supervised topic modeling}, which uses department labels to guide the model, training it to associate publications with the correct department. This allows the system to predict or retrieve the department most relevant to a given publication or funding call. + +The overall workflow comprises acquiring funding calls data (\ref{sec:funding_calls}), collecting and refining publication records (\ref{sec:pub_data}), extracting topics or class-based features with topic modelling(\ref{sec:topic_modelling}), and computing similarity-based (unsupervised) or probability-based (supervised) recommendations to rank departments for each funding call.(\ref{sec:matching_calls}). +\section{Funding Calls} +\label{sec:funding_calls} + +A \textbg{funding call} is an official invitation issued by a funding agency - such as the European Commission - for researchers, institutions, or organizations to submit project proposals for financial support. These calls are typically aligned with strategic research and innovation priorities and are designed to stimulate progress in specific scientific or societal domains. Funding calls are crucial for guiding research directions, fostering collaboration, and enabling the implementation of impactful projects across Europe and beyond. They are especially important for universities, as they provide essential financial resources to support academic research, attract top talent, build institutional capacity, and enhance the university’s visibility and impact within the global research community. + + +Funding calls published on the EU Funding \& Tenders Portal~\cite{eufundingtenders2025} typically include key metadata such as the call title, topic identifier, status (e.g., open, closed, forthcoming), opening and closing dates, a brief description of the call’s scope, and a link to a dedicated webpage with further information. + +The EU Funding \& Tenders Portal hosts a wide range of funding calls, including open, closed, and forthcoming opportunities. For this case study, data as of 22 July 2025 is considered, focusing sexclusively on the Horizon Europe and Horizon 2020 Framework Programmes. At that time, a total of \textbf{6,822 EU calls} had been listed. Of these, \textbf{6,765 calls} were closed, \textbf{57 calls} were forthcoming, and \textbf{no calls} were open. + + + +Figure~\ref{fig:call_example} shows an example of a call as displayed on the portal. While the structure is mostly consistent, it may vary slightly depending on the funding program. + +\begin{figure}[h] + \centering + \includegraphics[scale=0.35]{content/images/call.png} + \caption{Example of a funding call from the EU Funding \& Tenders Portal} + \label{fig:call_example} +\end{figure} + +\section{Publications Data} +\label{sec:pub_data} + +For this study, publication data from the \textbf{University of Duisburg-Essen} was selected to provide a comprehensive overview of the university's scholarly output. The university comprises \textbf{12 faculties} and approximately \textbf{500 chairs, institutes, and working groups}. Its internal bibliography records a total of \textbf{155,146 publications} \cite{uniduisburgessenbibliography} authored by a diverse community of researchers, including \textbf{512 professors} and \textbf{4,172 scientific employees} \cite{uniduisburgessenfacts2025}. + +\subsection{University Publications} +\label{subsec:uni_pubs} +Publication data are originated from the University of Duisburg-Essen's internal bibliography, which is a curated database that systematically collects and manages records of the university's scholarly output. This bibliography covers the years 2000 to 2024, including works published in both German and English. Each entry (Figure~\ref{fig:pub_example}) contains metadata such as the publication title, research area, authors, departmental affiliations (e.g., faculties, institutes, chairs), and abstracts. However, affiliation information and abstracts were often \textit{incomplete}. + +\begin{figure}[h] + \centering + \includegraphics[scale=0.35]{content/images/pub.png} + \caption{Example of a publication item from the university's internal bibliography} + \label{fig:pub_example} +\end{figure} + +\subsection{Departments Completion} +To address missing affiliation data—briefly mentioned in Subsection~\ref{subsec:uni_pubs} - author-specific identifiers (LSF ID) were extracted from publications lacking department mappings (Figure~\ref{fig:pub_empty}). These identifiers were then used to retrieve updated departmental information from individual staff profiles, obtained by querying the University’s personnel database. + +A typical staff record (Figure~\ref{fig:lsf_person}) includes a university ID (LSF ID), personal and contact information, functions, and department affiliations - all of which are crucial for completing the affiliation data. The enriched department information was subsequently integrated back into the publication dataset. All records were stored in a searchable index to enable efficient querying, filtering, and retrieval. + +\begin{figure}[h] + \centering + \includegraphics[scale=0.32]{content/images/pub_empt2.png} + \caption{Example of a publication with missing abstract and department data} + \label{fig:pub_empty} +\end{figure} + +\begin{figure}[h] + \centering + \includegraphics[scale=0.35]{content/images/lsf_person.png} + \caption{Example of a person from the LSF Database} + \label{fig:lsf_person} +\end{figure} + + +\textit{Note: Due to variations and limited standardization in the university's web page structures, the affiliation chairs in the dataset may refer not only to actual chair positions but also to broader units such as working groups or, in some cases, entire institutes.} + + +\section{Topic Modelling of Publications} +\label{sec:topic_modelling} +To uncover thematic patterns in the publication corpus, two separate pipelines were applied, both trained on publications: \textbf{unsupervised topic modelling} and \textbf{supervised topic modelling}. +Dense \textbf{word and sentence embeddings} were used to represent each publication in a high-dimensional semantic space. The raw text was kept largely unchanged before embedding. + +For the \textbf{unsupervised topic modelling}, dimensionality reduction and clustering were applied to group publication embeddings into clusters of semantically related content. Each cluster was interpreted as a topic, with representative keywords providing insight into the thematic structure of the corpus. + +For the \textbf{supervised topic modelling}, the model was trained to predict predefined categories (e.g., departments or individual researchers) from publication embeddings. A classifier replaces the clustering step, allowing the model to learn topics aligned with known labels. This approach ensures that each publication is assigned to a relevant category based on its semantic representation. + + +\section{Departments Retrieval for Funding Calls} +\label{sec:matching_calls} + +The system supports two matching modes: +In the first +\textbf{unsupervised mode} topics for the funding call are inferred using a topic model trained on publications. The assigned topics are ranked based on their probability, from highest to lowest. Relevance scores are then derived by taking the embedding of the funding call and computing its semantic similarity with the embeddings of publications within the predicted topic for the funding call, measuring how closely the funding call matches the thematic focus of the publications. + + + + +In the second +\textbf{supervised mode}, the system uses a Random Forest classifier to predict department probabilities directly from call embeddings. Departments are ranked by their predicted probabilities, from highest to lowest. The relevance score is derived directly from these class probabilities, and departments are ranked based on their predicted relevance to the funding call. +A higher score indicates a closer thematic match between the funding call and the corresponding publications or departments. + +In \textbf{both modes}, the system outputs ranked department recommendations for each funding call, supporting various organizational levels and configurable \textit{top-$k$} results. + +\section{Visual Pipeline} +Figure~\ref{fig:pipeline_overview} illustrates the end-to-end workflow of the publication-driven matching system. The pipeline is divided into three main phases: Collecting publications \& Training, Collecting funding calls \& Inference, and Department Retrieval separated in supervised and unsupervised approaches. + +\begin{figure}[!h] + \centering + \includegraphics[scale=0.48]{content/images/pipe_approachpng.png} + \caption{Comprehensive overview of the publication-driven matching system pipeline} + \label{fig:pipeline_overview} +\end{figure} +\textbf{\textit{I.}} In the \textbf{Collecting publications \& Training} phase, publication records are collected from the university bibliography and enriched with affiliation data from the personnel database. These records are stored in a publication database and used to train a topic model on \textbf{publication titles}. + +\textbf{\textit{II.}} In the \textbf{Collecting Funding Calls \& Inference} phase, funding call information is continuously retrieved from the EU Funding \& Tenders Portal. Each call is semantically embedded and analyzed using the previously trained topic model to identify its underlying topics. + +\textbf{\textit{III.}} Finally, in the \textbf{Department Retrieval} phase, the system matches funding calls to the most relevant university units. + In the \textbf{unsupervised department retrieval}, after the call embedding is analyzed by an unsupervised model and assigned to one or more topics (clusters), similarity scores between the call embedding and publication embeddings within those topics are computed. Publications are then ranked by semantic similarity, and the corresponding departments are retrieved from the top-ranked publications. + In the \textbf{supervised department retrieval}, the call embedding is analyzed by a supervised model that directly predicts the most relevant departments. Departments are retrieved based on their predicted probabilities of relevance, which are then used to rank them. + + + diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter5.tex b/research/knowledge_clusters/thesis/content/chapters/chapter5.tex new file mode 100644 index 0000000..d79452e --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter5.tex @@ -0,0 +1,142 @@ +\chapter{Implementation}\label{implementation} + +While the Approach chapter (Chapter~\ref{approach}) introduced the conceptual pipeline (Figure~\ref{fig:pipeline_overview}), this chapter presents its concrete realization. Figure~\ref{fig:pipeline_implementation} illustrates the implementation pipeline, in which each abstract component of the design is specified with the technologies, models, and data structures used in practice. + + +\begin{figure}[h] + \centering + \includegraphics[width=0.80\textwidth]{content/images/pipe_implementation.png} + \caption{More detailed overview of the publication-driven matching system pipeline with implementation details} + \label{fig:pipeline_implementation} +\end{figure} + + +The pipeline follows the same three-phase structure as before: \textbf{Collecting Publications \& Training} - data collection is explained in Section~\ref{web_crawling}, and model training is detailed in Section~\ref{model_training}; \textbf{Collecting Funding Calls \& Inference} - data collection is described in Section~\ref{web_crawling}, and inference is presented in Section~\ref{subsec:scoring_ranking}; \textbf{Departments Retrieval} - discussed in Section~\ref{subsec:scoring_ranking}. + +In contrast to the conceptual design, the implementation specifies concrete methods and tools: Selenium for data collection, Elasticsearch indices for storage and retrieval, and Random Forest, K-Means, and HDBSCAN for modelling. Additionally, cosine similarity is applied in the unsupervised branch to rank publications and retrieve departments. + +\section{Acquisition of Publications and Funding Calls}\label{web_crawling} +\subsection{Web Crawling of Publications and Funding Calls} + +To handle the dynamic and interactive nature of the EU Funding \& Tenders Portal and the university bibliography, two crawlers were implemented using \texttt{Selenium} \cite{selenium2025python} Python library, a browser automation framework capable of rendering JavaScript content and simulating user interactions. Both crawlers operate as follows: + + +A headless browser instance (e.g., ChromeDriver) is launched to minimize resource usage. +Then, the crawler accesses the funding call or university publication listing pages, iteratively navigating through pagination controls to retrieve all available entries. +For each entity, Selenium locates relevant HTML elements using XPath and CSS selectors to extract metadata fields such as call title and topic ID for funding calls, and title and department for publications. This approach enables targeted content crawling of portals that make extensive use of JavaScript and dynamic content loading. + +\subsection{Data Storage with Elasticsearch} + +The extracted metadata is stored in an \texttt{Elasticsearch}~\cite{elastic2025elasticsearch} cluster, a distributed search and analytics engine optimized for fast retrieval and full-text search capabilities. + +Each funding call and publication is indexed as a JSON document, with fields corresponding to metadata attributes, enabling efficient querying and aggregation. +Elasticsearch’s distributed architecture allows scaling to accommodate increasing volumes of calls and publications. +Indexed data can be searched and filtered using Elasticsearch’s query DSL, enabling both full-text search and precise structured queries. + +\textit{Note: Once the publications data was retrieved and indexed, it was parsed into a \texttt{pandas}\cite{pandas_2025} DataFrame for further processing.} + + +\subsection{Departments Completion} + +Additionally, Selenium was employed to address incomplete affiliation data (departments) of publication records by navigating to researcher profile pages and extracting departmental or group affiliation information. The process operates as follows: + +First, the list of unique LSF IDs is retrieved from the publications database, where department data is missing. Next, the corresponding URLs for each researcher’s profile page are constructed. Selenium is then used to load each profile page and extract affiliation details from the relevant HTML elements. Finally, the publication dataset is updated with the newly retrieved affiliation information for the corresponding records. + + + +%%%% +\section{Topic Modelling of Publications}\label{model_training} +As mentioned in the approach, we apply topic modelling to train our models. For this purpose, BERTopic~\cite{grootendorst2022bertopic} was selected as the primary framework for topic modelling. This section outlines the experimental setup, including the rationale for selecting BERTopic (Section~\ref{subsec:why_bertopic_not_lda}), the BERTopic pipeline and its internal structure (Section~\ref{subsec:bertopic_pipeline}), and the clustering and assignment strategies (Section~\ref{subsec:clustering_strategies}). + +\subsection{Why BERTopic Rather Than Traditional Approaches (LDA)} +\label{subsec:why_bertopic_not_lda} + +\paragraph{Short texts and multilingual data.} +LDA~\cite{blei2003latent} operates on discrete token counts and relies on word co-occurrence patterns across documents. For short texts (titles) and multilingual corpora, co-occurrence information becomes sparse, often resulting in less coherent topics unless extensive preprocessing is applied. Transformer-based embeddings, as used in BERTopic, capture semantic similarity beyond lexical overlap, improving clustering quality and topic coherence. + +\subsection{BERTopic Pipeline and Internal Structure} +\label{subsec:bertopic_pipeline} + +BERTopic \cite{grootendorst2022bertopic} treats topic modelling as a problem of clustering and representation. The process begins by \textit{generating document embeddings from the inputs using a pre-trained language model}, with an optional step to \textit{reduce the dimensionality} of these embeddings. These embeddings are then clustered through clustering algorithms, or topics are assigned through a supervised classifier. Finally, \textit{interpretable topic descriptors are extracted} using a class-based TF-IDF (c-TF-IDF) procedure. + +The technologies employed for each part of the pipeline are described below and shown on Figure~\ref{fig:bertopic_structure}: + +\begin{figure}[H] + \centering + \includegraphics[scale=0.6]{content/images/BERTopic_pipe.png} + \caption{Parallel BERTopic pipelines: unsupervised clustering and supervised topic assignment.} + \label{fig:bertopic_structure} +\end{figure} + +Transformer-based \textbf{Sentence-BERT embeddings}~\cite{reimers-2019-sentence-bert} were employed to generate dense semantic representations using the \textit{SentenceTransformers} library. Specifically, the pretrained \texttt{paraphrase-multilingual-mpnet-base-v2} model was utilized, which encodes input text - such as titles or keywords - into 768-dimensional vector embeddings. This model offers a strong balance between semantic accuracy and computational efficiency, while its multilingual capabilities make it well-suited for handling diverse, cross-lingual datasets. + +To optimize the embedding space for clustering, \textbf{dimensionality reduction} is optionally applied using \texttt{UMAP}~\cite{mcinnes2020umapuniformmanifoldapproximation}. UMAP preserves both local and global structures, enhancing the quality of downstream topic modelling. This reduction step is integrated by default in the BERTopic framework. + +On the reduced embeddings, \textbf{unsupervised clustering} (HDBSCAN, K-Means) or \textbf{supervised assignment} (Random Forest) strategies are applied, which are discussed in detail in Section~\ref{subsec:clustering_strategies}. + +After the embeddings are clustered, \textbf{topic representation} is achieved through \textit{class-based TF-IDF} (c-TF-IDF), which relies on a \texttt{CountVectorizer} to convert clustered documents into token counts. Combined with the \texttt{KeyBERTInspired} model, this method extracts semantically relevant keywords for each cluster, ensuring that the topics are represented by labels that reflect the core meaning of the grouped texts~\cite{grootendorst2022bertopic}. +\subsection{Clustering and Assignment Strategies} +\label{subsec:clustering_strategies} + +Three parallel BERTopic pipelines were implemented to assign topics to publications, reflecting both \textbf{unsupervised} and \textbf{supervised} approaches: + +\textbf{HDBSCAN (unsupervised, density-based):}\label{subsec:HDBSCAN} +\textbf{HDBSCAN} \cite{HDBSCAN2025} automatically determines the number of clusters, handles varying density, and identifies outliers. It is particularly suitable for exploratory topic discovery when no labels are available. Publications are grouped into semantically coherent clusters, and representative keywords are extracted to provide insight into the thematic structure of the corpus. This approach allows identification of latent topics without prior knowledge of the departmental structure.\\ +\textbf{K-Means (unsupervised, centroid-based):}\label{subsec:KMeans} +\textbf{K-Means} \cite{K-means} enforces a fixed number of clusters, which allows for consistent comparison across models with the same topic count. It is computationally efficient and works well when clusters are roughly spherical. Each publication is assigned to the nearest centroid in the embedding space, providing an alternative unsupervised perspective on topic organization.\\ +\textbf{Random Forest (classifier-based):}\label{subsec:Supervised} +The supervised pipeline leverages historical publication–department mappings to assign publications to \textbf{predefined topics corresponding to departments}. A \textbf{Random Forest classifier} is trained on embeddings derived from publication text to predict these topic labels directly. This approach maintains semantic coherence while providing supervised predictions aligned with known departmental categories, complementing the unsupervised pipelines.\\ +This design enables a comparison between unsupervised topic discovery and supervised topic assignment. The supervised pipeline leverages labeled data to predict department relevance while still preserving the topic-informed structure of the publications. + +\section{Departments Retrieval for Funding Calls} +\label{subsec:scoring_ranking} +Once topics are assigned to each funding call, department relevance is determined using two parallel approaches. +For \textbf{unsupervised} pipelines based on \textbf{clustering} (HDBSCAN, K-Means), \textbf{cosine similarity}~\cite{scikit_learn_cosine_similarity_2025} between the call and the publications within the assigned topics is computed. Departments are then aggregated and ranked based on this similarity results. In the \textbf{supervised} Random Forest pipeline, department probabilities are \textbf{predicted directly} from the funding call embeddings using the trained classifier, which produces a ranking of the most relevant departments. + +\subsection{Unsupervised Pipeline (HDBSCAN, K-Means)} +The following procedure is used in the unsupervised pipelines for topic modelling. Initially, each call is mapped to one or more topics using BERTopic’s \texttt{transform()} for hard assignment or \texttt{approximate\_distribution()} for soft assignment. In this process, only the most relevant topics per call are retained. The code for this is as follows: + +\begin{verbatim} +# Hard assignment +topics, probs = topic_model.transform(call_representation) + +# Soft assignment +topic_distr, _ = topic_model.approximate_distribution(call_representation) +\end{verbatim} + +Once the topics are assigned, the next step is to retrieve candidate publications related to each retained topic. This is achieved by accessing BERTopic’s document information, iterating through the topics, and selecting the relevant documents for each one. The relevant code snippet is: + +\begin{verbatim} +for topic_id in topics: + document_info = topic_model.get_document_info(train_inputs, df=df) + topic_docs = document_info.loc[document_info['Topic'] == topic_id] +\end{verbatim} + +After the candidate publications are retrieved, the semantic similarity between the call embedding and each publication embedding is computed using \textbf{cosine similarity}. This allows for a measure of how closely related each publication is to the original call.\\ +Finally, the publications are ranked based on their similarity scores, and the associated departments are aggregated. This aggregation results in a \textit{top $k$} list of unique departments, reflecting those most relevant to the given call. + +\subsection{Supervised Pipeline (Random Forest)} +As said before, in the supervised BERTopic pipeline, departmental assignments for funding calls are determined directly from their semantic embeddings using a trained Random Forest classifier.\\ +The procedure begins with encoding, where the funding call's textual representation is transformed into a dense embedding using the same multilingual SentenceTransformer model as in the unsupervised pipelines: +\begin{verbatim} +# encode call +call_embeddings = embedding_model.encode(call_representation, + convert_to_numpy=True) +\end{verbatim} +Once the embedding is obtained, it is passed to the trained Random Forest classifier. This classifier outputs a probability score for each possible department, indicating how likely each department is to be the correct match for the funding call: +\begin{verbatim} +# predict probabilities +probs = classifier.predict_proba(call_embeddings) +class_labels = classifier.classes_ +\end{verbatim} +The next step involves ranking the department–probability pairs in descending order. From this ranked list, the \textit{top $k$} departments with non-zero probability are returned as the predicted matches for the funding call: +\begin{verbatim} +# rank and select top predictions +class_probs = list(zip(class_labels, probs)) +class_probs.sort(key=lambda x: x[1], reverse=True) +top_preds = [] +for label, prob in class_probs: + if prob > 0: + top_preds.append((id_to_ent[label], prob)) +return top_preds[:top_k] +\end{verbatim} \ No newline at end of file diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter6.tex b/research/knowledge_clusters/thesis/content/chapters/chapter6.tex new file mode 100644 index 0000000..5208639 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter6.tex @@ -0,0 +1,459 @@ +\chapter{Evaluation} +\label{evaluation} + +This chapter provides a comprehensive evaluation of the proposed clustering and classification models based on the implemented pipeline (Figure~\ref{fig:pipeline_implementation}, Section \textbf{\textit{III}}), which maps publications and funding calls to relevant academic departments. +Three different experiments were conducted: \textbf{Publication Validation}, \textbf{Manual Validation of Historical Calls} and \textbf{Future Call Validation by Domain Experts}. The first, publication validation (\ref{subsec:cross_validation}), is divided into two parts: the first part (\ref{subsec:input_sensitivity}) examines the performance of different input representations, analyzing how each influences model accuracy and ranking quality; the second part (\ref{subsec:model_comparison}) compares the models' effectiveness across department categories using their best-performing inputs. This two-part approach ensures a thorough understanding of both input sensitivity and overall model performance on unseen publications data. + +Additionally, our manual validation (\ref{subsec:manual_validation}) of historical funding calls tests the models' ability to generalize to real-world scenarios with distinct textual characteristics. Future Call Validation by Domain Experts (\ref{sec:expert_validation}) further enriches the analysis by incorporating domain expertise to assess the practical relevance and plausibility of predictions from an institutional perspective. Using ranking-oriented metrics tailored to the multi-label nature of the task, this chapter delivers a robust assessment of the models' strengths, limitations, and suitability for real-world deployment. + +\section{Experimental Setup} +\label{sec:experiment_setups} + +\subsection{Training Data: Publication Dataset} +The dataset comprises a total of $99{,}514$ publications. + +A summary of the dataset with respect to available departmental information is presented below: +% 11 unique faculties (english) +% 582 unique chairs +% 408 unique institutes +% 177151 unique researchers + +\begin{itemize} + \item $90{,}304$ ($90.7\%$) publications have non-empty faculty assignments. + \item $88{,}862$ ($89.3\%$) publications have non-empty institute assignments. + \item $82{,}649$ ($83.0\%$) publications have non-empty chair assignments. + \item $99{,}513$ ($100.0\%$) publications have non-empty researcher assignments. + \item $79{,}314$ ($79.7\%$) publications contain fully complete data across all departments fields. +\end{itemize} + +These statistics highlight both the coverage of organizational metadata in the dataset and potential sparsity issues that may influence evaluation and ranking performance. + +\subsection{Input Variants (Publication Representations)} +\label{subsec:input_variants} + +To study robustness with respect to textual representation, three input variants were built and modelled in parallel: +\begin{enumerate} + \item \textbf{RAW titles:} the raw publication titles as published. + \item \textbf{LLM-generated keywords:} concise keyword lists generated from each title using Llama 3 \cite{dubey2024llama} to produce human-style summary keywords. + \item \textbf{YAKE keywords:} unsupervised keywords extracted with YAKE\cite{campos2020yake} ("Yet Another Keyword Extractor") to obtain compact, language-independent token lists from each title. +\end{enumerate} + +Using both an LLM (Llama~3) and an unsupervised statistical extractor (YAKE) provides complementary perspectives: the LLM can supply abstractive or paraphrased keyphrases, while YAKE selects salient terms based on local text statistics without requiring training data. Using multiple input variants allows us to evaluate the robustness of the models and their ability to capture semantic meaning in different forms of textual representation. + + +\subsection{Hyperparameter Tuning} +\label{subsec:parameters} +For HDBSCAN, the clustering was configured with a minimum cluster size of \textbf{10}, meaning that any group of fewer than ten publications was considered noise or outliers. The parameter \textit{min\_samples} was set to \textbf{5}, which controls the sensitivity of the algorithm to local density differences. Since this approach can leave a substantial fraction of the data unclustered, an embedding-based outlier reduction method was applied to reassign borderline cases. Furthermore, a topic reduction step merged smaller, semantically related topics into larger ones, resulting in approximately \textbf{2,500} clusters. This number was chosen to match the scale of clusters generated by K-Means, ensuring comparability between methods. + +In the case of K-Means, the number of clusters was explicitly set to \textbf{2,500}. Unlike HDBSCAN, K-Means always produces the specified number of clusters, which guarantees full data assignment but risks forcing heterogeneous data points into artificial groups. By aligning the number of clusters with HDBSCAN's reduced output, both approaches could be compared under a similar clustering granularity. + +Finally, for the Random Forest classifier, several parameter choices were made to balance predictive power and computational feasibility. A total of \textbf{100} decision trees \textit{(n\_estimators)} were used, which provides robust averaging of predictions without excessive training time. The maximum depth of trees was limited to \textbf{50}, a safeguard against overfitting and memory overuse given the high-dimensional input. To address the substantial class imbalance in the dataset, class weights were adjusted inversely to class frequencies, ensuring that underrepresented departments received fairer treatment in the predictions. The number of features considered at each split was set to the square root of the total feature count, a common choice that improves generalization while keeping trees diverse. + +\section{Evaluation Metrics}\label{sec:eval_metrics} + +The performance of the proposed pipelines is assessed using \textbf{ranking-oriented evaluation metrics}, which are more suitable than classical classification metrics for this task. Since each funding call or publication can correspond to multiple departments, and the practical goal is to determine whether the relevant departments appear among the \textit{top predictions}, we adopt metrics that explicitly account for ranking quality rather than single-label correctness. In particular, we focus on \textbf{Hit Rate} and \textbf{Mean Rank (MR)} at different cutoffs, both of which are commonly used in information retrieval and recommender systems \cite{li2020sampling,bordes2013translating}. + +\paragraph{Hit Rate} + +\textbf{Hit Rate} quantifies the proportion of instances for which at least one correct label appears within the top-$k$ predictions: + +\[ +\text{Hit Rate@k} = \frac{\text{Number of instances with at least one correct prediction in top-}k}{N} +\] + +where $N$ is the total number of test instances. This metric reflects the system’s ability to return \textit{at least one relevant department} among its top-$k$ ranked recommendations. A \textit{high Hit Rate} indicates that the \textit{system consistently captures at least one correct department early} in the ranked list, with a maximum of 100\%. +In practice, this means that decision-makers are more likely to see relevant departments without scanning the full ranking. + +\paragraph{Mean Rank (MR)} + +\textbf{Mean Rank} measures the \textit{average position} at which the first correct department appears across all test instances. For each instance $i$, we record: + +\[ +\text{Rank}_i = \text{position of the first correct label in the predicted list}, +\] + +and compute the overall MR as: + +\[ +\text{MR} = \frac{1}{N} \sum_{i=1}^N \text{Rank}_i +\] +A \textit{lower MR} indicates that\textit{ the system places correct departments closer to the top of the list, with the theoretical minimum being 1}. + +\paragraph{Why not Accuracy or F1-Score?} + +Classical classification metrics such as \textbf{accuracy} and \textbf{F1-score} assume a closed-set prediction scenario in which each instance is associated with a single correct label \cite{sorower2010literature}. However, in our setting, each call or publication may be associated with \textbf{multiple departments} (i.e., multi-label classification). Furthermore, the \textbf{ranking} of predictions is as important as the presence of correct labels. Traditional metrics like accuracy or F1-score unfairly penalize cases where the correct department is ranked second or third, even though such predictions may still be useful. +Moreover, in ranked recommendation tasks, false positives are inevitable, especially for long candidate lists. Traditional metrics would heavily penalize these, even if relevant departments are correctly ranked near the top. + +For these reasons, \textbf{Hit Rate@k} and \textbf{Mean Rank (MR)} are more faithful evaluation measures, as they capture both: \textit{whether relevant departments are covered by the system, and how prominently they appear in the ranked output}. + +\textbf{Evaluation at Top-$k$:} Both metrics are reported at different \textbf{top-$k$ cutoffs} (e.g., top-5, top-10, top-15 predictions). This allows us to analyze how performance changes when more candidate departments are considered: +\textbf{Smaller $k$ values} (e.g., Hit Rate@5) measure how well the system prioritizes the most relevant departments. +\textbf{Larger $k$ values} (e.g., Hit Rate@15) indicate the broader coverage of relevant departments if users are willing to examine longer lists. + +\section{Publication Validation} +\label{subsec:cross_validation} + +To evaluate the generalization performance of the proposed clustering and classification pipelines, a \textbf{90/10 train-test split} was employed. This approach ensures that each model is trained on \textbf{90\% of the publications} and tested on the remaining \textbf{10\% of the publications with known department labels}, providing a fair assessment of how well each model can predict unseen data. + +The models under evaluation include \textbf{HDBSCAN}, \textbf{K-Means}, and the supervised \textbf{Random Forest classifier}. Each model was trained using different input data representations, and the performance of each model was evaluated using ranking-oriented metrics. These metrics include the \textbf{Hit Rate} and \textbf{Mean Rank (MR)}, which assess the relevance and accuracy of \textit{predicted departments or individual researchers} at various cutoff levels: \textbf{Top-5}, \textbf{Top-10}, and \textbf{Top-15}. + +The publication validation is presented in two stages: \textbf{Input Sensitivity} and \textbf{Model Comparison}. +The \textbf{objective} of the Input Sensitivity test is to compare \textit{the impact of different input representations on model performance} and identify \textit{which input works best for each model}. +The \textbf{objective} of the Model Comparison stage is to determine \textit{which model performs best on its most effective input representation}. + + + +\subsection{Input Sensitivity Analysis} +\label{subsec:input_sensitivity} + +In this stage, we examine the impact of different input representations on the model performance. The \textbf{input data} consists of three distinct representations: \textbf{RAW titles}, \textbf{YAKE keywords}, and \textbf{LLM-generated keywords}. We analyze the effect of these inputs on the ranking performance for each model across all department categories. This allows us to identify\textit{ how input preprocessing influences the accuracy of the rankings and model predictions}. + +Tables~\ref{tab:hdbscan_top5_transposed}-\ref{tab:rf_top5_transposed} report the Top-5 Hit Rate (in \%) and MR scores for each department entity type across the three input variations (with the exception of researchers in the random forest model). The visualization of results is also provided in Fig~\ref{fig:inputs_comparison}. The \textbf{highest} Hit Rate and \textbf{lowest} MR scores for each department entity are highlighted in \textbf{bold}. + +\begin{table}[h] +\scriptsize +\centering +\caption{HDBSCAN Top-5 performance for each input variation.} +\label{tab:hdbscan_top5_transposed} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{ll *{5}{>{\centering\arraybackslash}p{1.5cm}}} +\toprule + Input & Metric & \multicolumn{1}{c}{Faculties} & \multicolumn{1}{c}{Chairs} & \multicolumn{1}{c}{Institutes} & \multicolumn{1}{c}{Researchers} \\ +\cmidrule(lr){3-3}\cmidrule(lr){4-4}\cmidrule(lr){5-5}\cmidrule(lr){6-6} +\midrule +RAW & Hit Rate & \textbf{95.9} & \textbf{57.8} & \textbf{72.2} & \textbf{34.1} & \\ + & MR & \textbf{1.59} & \textbf{3.57} & \textbf{2.77} & \textbf{4.65} & \\ +\midrule +YAKE & Hit Rate & 94.8 & 53.2 & 68.7 & 29.6 & \\ + & MR & 1.72 & 3.81 & 2.97 & 4.83 & \\ +\midrule +LLM & Hit Rate & 95.6 & 53.3 & 70.2 & 28.6 & \\ + & MR & 1.66 & 3.86 & 2.94 & 4.90 & \\ +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{1em} +\end{adjustbox} +\end{table} +\paragraph{HDBSCAN} +As shown in Table~\ref{tab:hdbscan_top5_transposed}, HDBSCAN consistently performs best with \textbf{RAW titles}, achieving the highest Hit Rates and lowest MR values across all organizational entities. Both YAKE and LLM-based keywords lead to reduced performance, with the largest degradation observed at the researcher level, where Hit Rate drops by more than 5 percentage points compared to RAW. This suggests that, for this test, HDBSCAN relies heavily on the full lexical richness of the input text and loses discriminative detail when inputs are compressed into keyword sets. + +\begin{table}[h] +\scriptsize +\centering +\caption{K-MEANS Top-5 performance for each input variation.} +\label{tab:kmeans_top5_transposed} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{ll *{5}{>{\centering\arraybackslash}p{1.5cm}}} +\toprule + Input & Metric & \multicolumn{1}{c}{Faculties} & \multicolumn{1}{c}{Chairs} & \multicolumn{1}{c}{Institutes} & \multicolumn{1}{c}{Researchers} \\ +\cmidrule(lr){3-3}\cmidrule(lr){4-4}\cmidrule(lr){5-5}\cmidrule(lr){6-6} +\midrule +RAW & Hit Rate & \textbf{96.3} & \textbf{59.2} & \textbf{73.2} & \textbf{35.1} & \\ + & MR & \textbf{1.55} & \textbf{3.52} & \textbf{2.73} & \textbf{4.60} & \\ +\midrule +YAKE & Hit Rate & 95.7 & 55.0 & 70.1 & 30.5 & \\ + & MR & 1.66 & 3.74 & 2.90 & 4.79 & \\ +\midrule +LLM & Hit Rate & 96.2 & 55.0 & 71.5 & 29.6 & \\ + & MR & 1.61 & 3.77 & 2.88 & 4.85 & \\ +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{1em} +\end{adjustbox} +\end{table} +\paragraph{K-Means} +K-Means shows a similar pattern (Table~\ref{tab:kmeans_top5_transposed}): RAW titles yield the strongest results across faculties, chairs, institutes, and researchers. While the performance gap between RAW and keyword-based inputs is smaller than in HDBSCAN, the loss is still notable at finer-grained levels (e.g., researchers). This indicates that K-Means, like HDBSCAN, benefits from richer lexical input under given conditions, though it appears slightly more robust to input reduction. + + +\begin{table}[h] +\scriptsize +\centering +\caption{Random Forest Top-5 performance for each input variation.} +\label{tab:rf_top5_transposed} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{ll *{5}{>{\centering\arraybackslash}p{1.5cm}}} +\toprule + Input & Metric & \multicolumn{1}{c}{Faculties} & \multicolumn{1}{c}{Chairs} & \multicolumn{1}{c}{Institutes} \\ +\cmidrule(lr){3-3}\cmidrule(lr){4-4}\cmidrule(lr){5-5} +\midrule +RAW & Hit Rate & 97.9 & 95.9 & 82.7 & \\ + & MR & 1.26 & 1.28 & 2.00 & \\ +\midrule +YAKE & Hit Rate & 96.3 & 86.9 & 73.5 & \\ + & MR & 1.43 & 1.80 & 2.50 & \\ +\midrule +LLM & Hit Rate & \textbf{99.3} & \textbf{97.4} & \textbf{90.7} & \\ + & MR & \textbf{1.15} & \textbf{1.18} & \textbf{1.55} & \\ +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{1em} +\end{adjustbox} +\end{table} +\paragraph{Random Forest} +The supervised Random Forest model diverges from the clustering methods (Table~\ref{tab:rf_top5_transposed}). While RAW titles already perform strongly, \textbf{LLM-generated keywords} achieve the best results overall, with near-perfect Hit Rates (up to \textbf{99.3\%}) and the lowest MR values across faculties, chairs, and institutes. This demonstrates that Random Forest can exploit the semantic abstraction and noise reduction introduced by LLM-based preprocessing, yielding clearer classification boundaries than when using raw lexical input. + +Overall, the input sensitivity analysis highlights a clear distinction between clustering-based and supervised models. +Testing on publications, \textbf{unsupervised} clustering models (HDBSCAN, K-Means), performance is maximized with \textbf{RAW titles}, which preserve the lexical diversity required for similarity-based grouping. Keyword reduction (YAKE, LLM) consistently weakens ranking quality, particularly at finer entity resolutions. +For the \textbf{supervised} Random Forest model, the opposite holds: \textbf{LLM-generated keywords} significantly enhance prediction accuracy, as the model benefits from condensed, semantically enriched features that reduce noise and emphasize discriminative signals. +\begin{figure}[h] + \centering + + % First two side-by-side with overlap + \hspace{-1cm} % <- negative space to overlap + \begin{subfigure}{0.55\textwidth} + \includegraphics[width=\linewidth]{content/images/HDBSCAN_hr_top5_bar_chart_by_input.png} + \label{fig:subim1} + \end{subfigure} + \hspace{-1cm} % <- negative space to overlap + \begin{subfigure}{0.55\textwidth} + \includegraphics[width=\linewidth]{content/images/K-MEANS_hr_top5_bar_chart_by_input.png} + \label{fig:subim2} + \end{subfigure} +\hspace{1cm} % <- negative space to overlap + % Third one below, centered + \begin{subfigure}{0.55\textwidth} + \includegraphics[width=\linewidth]{content/images/Random Forest_hr_top5_bar_chart_by_input.png} + \label{fig:subim3} + \end{subfigure} + + \caption{Hit Rate (\%) of proposed models for each input variation (Top-5).} + \label{fig:inputs_comparison} +\end{figure} + + +\subsection{Model Comparison} +\label{subsec:model_comparison} +Once the \textbf{best-performing input representation} for publication validation, as identified in the input sensitivity analysis (\textbf{RAW titles} for HDBSCAN and K-MEANS, \textbf{LLM-keywords} for Random Forest) for each model have been identified in the previous stage, we proceed to compare the models directly for each department category. This comparison is conducted for faculties, institutes, chairs, and individual researchers. The goal is to determine \textit{which model}-HDBSCAN, K-Means, or Random Forest-\textit{is most effective at mapping publications to relevant departments}, taking into account the specific characteristics of each category. + +The consolidated results (Hit Rate in \% and MR) across all departments are reported in Table~\ref{tab:all_entities_comparison} The \textbf{highest} Hit Rate and \textbf{lowest} MR scores are presented in \textbf{bold}. + +\begin{table}[h] +\scriptsize +\centering +\caption{Performance across departments (best input for model)} +\label{tab:all_entities_comparison} +\renewcommand{\arraystretch}{1.0} +\begin{tabular}{{2}{>{\centering\arraybackslash}p{0.8cm}} | *{3}{>{\centering\arraybackslash}p{0.8cm}} | *{3}{>{\centering\arraybackslash}p{0.8cm}} | *{3}{>{\centering\arraybackslash}p{0.8cm}}} +\toprule +& & \multicolumn{3}{c}{HDBSCAN (RAW)} & \multicolumn{3}{c}{K-MEANS (RAW)} & \multicolumn{3}{c}{Random Forest (LLM)} \\ +\cmidrule(lr){3-5} \cmidrule(lr){6-8} \cmidrule(lr){9-11} +Entity & Metric & T5 & T10 & T15 & T5 & T10 & T15 & T5 & T10 & T15 \\ +\midrule +Faculties & HitRate & 95.9 & 98.2 & 98.2 & 96.3 & 98.6 & 98.7 & \textbf{99.3} & \textbf{99.8} & \textbf{99.9} \\ + & MR & 1.59 & 1.70 & 1.79 & 1.55 & 1.64 & 1.70 & \textbf{1.15} & \textbf{1.17} & \textbf{1.17} \\ +\midrule +Chairs & HitRate & 57.8 & 65.5 & 69.1 & 59.2 & 66.9 & 71.1 & \textbf{97.4} & \textbf{98.1} & \textbf{98.4} \\ + & MR & 3.57 & 5.43 & 7.03 & 3.52 & 5.30 & 6.83 & \textbf{1.18} & \textbf{1.29} & \textbf{1.38} \\ +\midrule +Institutes & HitRate & 72.2 & 78.2 & 81.0 & 73.2 & 79.5 & 82.6 & \textbf{90.7} & \textbf{92.1} & \textbf{92.9} \\ + & MR & 2.77 & 3.95 & 4.95 & 2.73 & 3.87 & 4.79 & \textbf{1.55} & \textbf{1.97} & \textbf{2.33} \\ +\midrule +Researchers & HitRate & 34.1 & 42.3 & 46.6 & \textbf{35.1} & \textbf{44.1} & \textbf{48.6} & - & - & - \\ + & MR & 4.65 & 7.67 & 10.42 & \textbf{4.60} & \textbf{7.55} & \textbf{10.20} & - & - & - \\ +\bottomrule +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{0.5em} +{\footnotesize \textit{Note}: T5/T10/T15 = Top 5/10/15.} +\end{adjustbox} +\end{table} +\paragraph{Faculties} +At the faculty level, all three models achieve very high performance (Table~\ref{tab:all_entities_comparison}). Random Forest with LLM keywords reaches the highest accuracy, with a Hit Rate of \textbf{99.3\%} at Top-5 and an MR of \textbf{1.15}, slightly outperforming both clustering methods. This indicates that faculty-level mapping is a relatively tractable task, where both supervised and unsupervised approaches are effective, though Random Forest achieves a near-ceiling performance. + +\paragraph{Chairs} +For chair-level classification, the performance gap between models becomes pronounced. Random Forest dominates, achieving near-perfect Hit Rates (\textbf{97.4\%} at Top-5) and very low MR values (\textbf{1.18}), while clustering methods remain below 60\% Hit Rate. We assume that, under the given conditions, supervised learning with semantically enriched input features struggles less to capture finer distinctions between closely related entities, compared to unsupervised similarity-based clustering strategies. + +\paragraph{Institutes} +A similar trend is observed at the institute level. Random Forest achieves markedly higher performance (\textbf{90.7\%} Hit Rate at Top-5) compared to clustering approaches, which plateau around 72–73\%. + +\paragraph{Researchers} +At the researcher level, only clustering methods could be evaluated, as the supervised model was not applicable due to data sparsity. Both HDBSCAN and K-Means show modest results, with Hit Rates around 34–35\% at Top-5. K-Means performs slightly better than HDBSCAN, but overall accuracy remains low. This confirms that individual-level disambiguation is the most challenging setting, where current feature representations provide insufficient discriminatory power. Future improvements may require richer contextual embeddings, metadata integration, or hybrid strategies. + +\begin{figure}[h] + \centering + \includegraphics[scale=0.58]{content/images/pub_valid_chart_top15.png} + \caption{Publication validation results for Top-15 cutoff} + \label{fig:cross_validation_top15} +\end{figure} + +Overall, the findings suggest that while clustering methods offer a scalable, unsupervised baseline, supervised learning models, particularly when applied exclusively to textual content, yield the highest accuracy. However, this outcome may not fully align with real-world funding processes. It is also possible that the Random Forest model is overfitting to the clean publication data (titles).\\ +Figure~\ref{fig:cross_validation_top15} illustrates the overall results of the model comparison for the Top-15 predictions. + + + +\section{Manual Validation of Historical Calls} +\label{subsec:manual_validation} + +To complement the publication validation experiments on historical publication data, an additional \textbf{manual validation of historical calls} was performed on a real-world test case. + +The \textbf{objective} of the manual validation is to evaluate the models' performance in accurately mapping funding calls to the relevant academic departments, as assessed by a non-expert (the author), using real-world data that may differ in structure and content from the publication data employed in the publication validation. + +This evaluation utilized a small dataset comprising \textbf{47 historical funding calls} provided by domain experts, each linked to at least one successful proposal. The dataset included complete metadata for each funding call, such as the \textbf{contact researcher's name}, which was used to identify the corresponding organizational entities (departments) through the researcher’s affiliation with the University of Duisburg-Essen, as indicated on the university’s web pages. These affiliations served as the ground-truth labels. + +The \textbf{input data} for this manual validation consists of the title of each funding call. + +The \textbf{output} of the models is the predicted organizational entities (departments), which were compared against the manually established ground-truth labels for each funding call. The model's predictions were assessed based on their accuracy in identifying the relevant departments. + +Predictions were evaluated at three cutoff levels: \textbf{Top-5}, \textbf{Top-10}, and \textbf{Top-15}, using the same ranking-oriented metrics as before (\textbf{Hit Rate} and \textbf{Mean Rank (MR)}). For this evaluation, the models trained on \textbf{RAW titles} were selected.\\ +The results of the evaluation are presented in Table \ref{tab:manuall_entities_comparison}, with the \textbf{highest} Hit Rate and \textbf{lowest} MR score highlighted in \textbf{bold}. Results for the Top-10 cutoff are also shown in Fig~\ref{fig:manual_validation_top15}. + + + +% Creating a dense table +\begin{table}[h] +\footnotesize +\centering +\caption{Manual validation across all models trained on RAW titles} +\label{tab:manuall_entities_comparison} +\renewcommand{\arraystretch}{1.0} +\begin{tabular}{{2}{>{\centering\arraybackslash}p{0.8cm}} | *{3}{>{\centering\arraybackslash}p{0.8cm}} | *{3}{>{\centering\arraybackslash}p{0.8cm}} | *{3}{>{\centering\arraybackslash}p{0.8cm}} } +\toprule +& & \multicolumn{3}{c}{HDBSCAN} & \multicolumn{3}{c}{K-MEANS} & \multicolumn{3}{c}{Random Forest} \\ +\cmidrule(lr){3-5} \cmidrule(lr){6-8} \cmidrule(lr){9-11} +Entity & Metric & T5 & T10 & T15 & T5 & T10 & T15 & T5 & T10 & T15 \\ +\midrule +Faculties & HitRate & 87.2 & 95.7 & 95.7 & \textbf{91.5} & \textbf{100} & \textbf{100} & 74.5 & 93.7 & 95.7 \\ + & MR & 2.34 & 2.66 & 2.87 & \textbf{2.11} & \textbf{2.17} & \textbf{2.17} & 2.81 & 3.45 & 3.66 \\ +\midrule +Chairs & HitRate & 80.9 & 89.3 & 91.5 & \textbf{89.4} & \textbf{93.7} & \textbf{95.7} & 74.4 & 91.5 & \textbf{95.7} \\ + & MR & \textbf{2.21} & 2.81 & 3.23 & 2.32 & \textbf{2.74} & \textbf{3.09} & 2.94 & 3.68 & 3.91 \\ +\midrule +Institutes & HitRate & 83.0 & 91.5 & 95.7 & \textbf{87.2} & \textbf{95.8} & \textbf{97.9} & 66.0 & 76.6 & 83.0 \\ + & MR & \textbf{2.26} & 2.72 & \textbf{3.02} & 2.39 & \textbf{2.68} & \textbf{2.79} & 3.34 & 4.40 & 5.09 \\ +\midrule +Researchers & HitRate & \textbf{38.3} & \textbf{59.6} & \textbf{59.6} & 34.0 & 53.2 & 55.3 & - & - & - \\ + & MR & \textbf{4.64} & \textbf{6.98} & \textbf{9.00} & 4.83 & 7.49 & 9.77 & - & - & - \\ +\bottomrule +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +{\footnotesize \textit{Note}: T5/T10/T15 = Top 5/10/15.} +\end{adjustbox} +\end{table} + +Several key observations can be drawn from the manual validation experiment for each organizational entity: +\paragraph{Faculties} +At the faculty level (Table~\ref{tab:manuall_entities_comparison}), K-Means clearly outperforms the other models, achieving a perfect Hit Rate of \textbf{100\%} at both Top-10 and Top-15 and the lowest MR values across all cutoffs (2.11–2.17). HDBSCAN follows closely, reaching 95.7\% Hit Rate at Top-10/15 but with slightly higher MR values. Random Forest, while competitive at broader cutoffs (93.7–95.7\%), performs weakest at Top-5, indicating difficulties in ranking the correct faculty highly. These results show that K-Means is the most effective approach for coarse-grained faculty-level mappings. + +\paragraph{Chairs} +At the chair level, K-Means again provides the most consistent performance, reaching up to \textbf{95.7\%} Hit Rate at Top-15. HDBSCAN achieves the best MR at Top-5 (2.21), showing strength in early ranking, but K-Means surpasses it at Top-10 and Top-15 in both Hit Rate and MR. Random Forest improves with larger cutoffs but remains weaker overall. This indicates that while HDBSCAN can prioritize correct chairs earlier in some cases, K-Means provides more reliable performance across broader ranking thresholds. + +\paragraph{Institutes} +For institutes, K-Means achieves the strongest overall performance, with Hit Rates rising from 87.2\% at Top-5 to \textbf{97.9\%} at Top-15, and competitive MR values (2.39–2.79). HDBSCAN occasionally ranks the correct institute higher at narrow cutoffs (MR 2.26 at Top-5), but its coverage is slightly lower than K-Means at higher cutoffs. Random Forest performs notably worse, with Hit Rates dropping to 66.0–83.0\% and much higher MR values, highlighting weaker generalization. Overall, K-Means balances both breadth (high coverage) and depth (ranking quality) most effectively at this level. + +\paragraph{Researchers} +At the researcher level, performance declines substantially for all models due to the fine-grained and sparse nature of this entity type. HDBSCAN performs best, reaching a Top-15 Hit Rate of \textbf{59.6\%} and the lowest MR values across cutoffs (4.64–9.00). K-Means follows closely but consistently trails HDBSCAN, while Random Forest is not applicable due to insufficient training data. These results indicate that clustering-based approaches, particularly HDBSCAN, retain limited but meaningful predictive power even at the individual researcher level. + +\begin{figure}[h] + \centering + \includegraphics[scale=0.58]{content/images/manual_validation_chart_top10.png} + \caption{Manual-validation results for Top-10 cutoff} + \label{fig:manual_validation_top15} +\end{figure} + +Overall, from our perspective, it can be observed that clustering-based models, and particularly K-Means, are\textit{ more robust and adaptable} to heterogeneous real-world funding call data than supervised approach. K-Means demonstrates scalability across faculties, chairs, and institutes, while HDBSCAN retains niche advantages in fine-grained researcher-level predictions. This reinforces the conclusion that unsupervised clustering methods are better suited for practical funding-call alignment tasks, especially when dealing with unseen or structurally diverse inputs. + + +\section{Future Call Validation by Domain Experts} +\label{sec:expert_validation} +As a final validation step, the proposed approach was evaluated with the involvement of \textbf{domain experts}. + +The \textbf{objective} of this evaluation is to \textit{assess the practical relevance and plausibility of the model’s predictions from the perspective of experts in the field}. In contrast to the preceding experiments, which were based on controlled benchmarking with simulated mappings of publications and calls, this stage was conducted on \textbf{previously unseen real-world funding data}. An additional goal was to explore whether models perform better when using only the titles of funding calls, or if incorporating the full descriptions could produce more accurate and useful recommendations. +The evaluation was performed on two datasets: \textbf{Forthcoming calls} ($56$ instances), representing opportunities that had not yet received submitted proposals, and \textbf{Closed calls} ($100$ instances), for which successful proposals already exist. + +Two variants of the HDBSCAN model were employed. The first was trained on \textbf{RAW publication titles}, while the second trained on \textbf{LLM-generated keywords} extracted from the same publication titles. + +Regarding \textbf{input data}, the first model processed the original titles and descriptions of the funding calls (\textbf{RAW text}). The second model operated on \textbf{LLM-generated keywords}, where the titles and descriptions were condensed into semantically focused keyword sets. Comparing the two representations allows for an examination of how different input abstractions affect prediction quality for a real-world scenario. + +The \textbf{output} consisted of ranked departmental predictions generated by both models, which were subsequently evaluated by domain experts. The experts judged the \textbf{correctness} and \textbf{plausibility} of the mappings at three cutoff levels: \textbf{Top-5}, \textbf{Top-10}, and \textbf{Top-15}. Evaluation was based on the \textbf{Hit Rate} metric, and the \textbf{highest} Hit Rates together with the \textbf{lowest} MR scores are highlighted in \textbf{bold} throughout the results tables. +The tests were conducted for each department level separately. The results are as follows: + +\begin{table}[h] +\scriptsize +\centering +\caption{Expert evaluation at the faculty level.} +\label{tab:expert_faculty_summary} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{l | *{2}{>{\centering\arraybackslash}p{1.5cm}} | *{2}{>{\centering\arraybackslash}p{1.5cm}}} +\toprule + & \multicolumn{4}{c}{Faculties} \\ + \cmidrule(lr){2-5} + & \multicolumn{2}{c}{Forthcoming} & \multicolumn{2}{c}{Closed} \\ +\cmidrule(lr){2-3} \cmidrule(lr){4-5} +Input & T5 & T10 & T5 & T10 \\ +\midrule +Titles (RAW) & 87.5 & 89.2 & 51.0 & 54.0 \\ +Titles (LLM) & \textbf{89.3} & \textbf{89.3} & 75.0 & 77.0 \\ +Description (RAW) & 80.4 & 80.4 & 64.0 & 66.0 \\ +Description (LLM) & 84.0 & 85.7 & 72.0 & \textbf{79.0} \\ +\bottomrule +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{0.5em} +{\footnotesize \textit{Note}: T5/T10 = Top 5/10.} +\end{adjustbox} +\end{table} + +\paragraph{Faculties} +At the faculty level (Table~\ref{tab:expert_faculty_summary}), LLM-generated keywords yield consistent improvements over raw text inputs. For forthcoming calls, titles enhanced with LLM features achieve the highest hit rates (\textbf{89.3\%} at both Top-5 and Top-10), slightly outperforming raw titles (87.5–89.2\%). Descriptions show a similar pattern, with LLM-based inputs raising hit rates from 80.4\% to 84.0–85.7\%. The effect is more pronounced in closed calls, where raw titles perform poorly (51.0–54.0\%), while LLM-based titles substantially improve results (75.0–77.0\%). For descriptions, LLM features also provide a notable gain, reaching up to \textbf{79.0\%} at Top-10 compared to 64.0–66.0\% with raw input. + +\begin{table}[h] +\scriptsize +\centering +\caption{Expert evaluation at the chair level.} +\label{tab:expert_chairs_summary} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{l | *{3}{>{\centering\arraybackslash}p{1.2cm}} | *{3}{>{\centering\arraybackslash}p{1.2cm}}} +\toprule + & \multicolumn{6}{c}{Chairs} \\ +\cmidrule(lr){2-7} + & \multicolumn{3}{c}{Forthcoming} & \multicolumn{3}{c}{Closed} \\ +\cmidrule(lr){2-4} \cmidrule(lr){5-7} +Input & T5 & T10 & T15 & T5 & T10 & T15 \\ +\midrule +Titles (RAW) & 53.6 & 62.5 & 67.9 & 32.0 & 38.0 & 41.0 \\ +Titles (LLM) & \textbf{73.2} & \textbf{80.4} & \textbf{84.0} & 59.0 & 63.0 & 65.0 \\ +Description (RAW) & 53.6 & 60.7 & 60.7 & 44.0 & 46.0 & 46.0 \\ +Description (LLM) & \textbf{73.2} & 75.0 & 76.8 & \textbf{62.0} & \textbf{65.0} & \textbf{67.0} \\ +\bottomrule +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{0.5em} +{\footnotesize \textit{Note}: T5/T10/T15 = Top 5/10/15.} +\end{adjustbox} +\end{table} +\paragraph{Chairs} +At the chair level (Table~\ref{tab:expert_chairs_summary}), the advantage of LLM-based features becomes more pronounced. For forthcoming calls, LLM-enhanced titles reach the highest performance (\textbf{73.2–84.0\%}), markedly outperforming raw titles (53.6–67.9\%). A similar trend is observed with descriptions, where LLM-based representations yield hit rates of up to 76.8\%, compared to 53.6–60.7\% with raw text.\\ +The improvements extend to closed calls, where LLM features nearly double the Top-5 hit rate compared to raw titles (59.0\% vs. 32.0\%). Descriptions follow the same pattern, with LLM-based predictions reaching up to \textbf{67.0\%} at Top-15, surpassing raw inputs (44.0–46.0\%). Importantly, while titles dominate for forthcoming calls, descriptions enriched with LLM keywords show stronger performance for closed calls, suggesting they capture richer context from archived funding opportunities. +\begin{table}[h] +\scriptsize +\centering +\caption{Expert evaluation at the institute level.} +\label{tab:expert_institutes_summary} +\renewcommand{\arraystretch}{1.2} +\begin{tabular}{l | *{3}{>{\centering\arraybackslash}p{1.2cm}} | *{3}{>{\centering\arraybackslash}p{1.2cm}}} +\toprule + & \multicolumn{6}{c}{Institutes} \\ +\cmidrule(lr){2-7} + & \multicolumn{3}{c}{Forthcoming} & \multicolumn{3}{c}{Closed} \\ +\cmidrule(lr){2-4} \cmidrule(lr){5-7} +Input & T5 & T10 & T15 & T5 & T10 & T15 \\ +\midrule +Titles (RAW) & 53.6 & \textbf{66.0} & \textbf{66.0} & 37.0 & 45.0 & 48.0 \\ +Titles (LLM) & \textbf{55.4} & 64.3 & 64.3 & 49.0 & 61.0 & 61.0 \\ +Description (RAW) & 50.0 & 51.8 & 51.8 & 46.0 & 48.0 & 48.0 \\ +Description (LLM) & 53.6 & 62.5 & \textbf{66.0} & \textbf{57.0} & \textbf{63.0} & \textbf{65.0} \\ +\bottomrule +\end{tabular} +\begin{adjustbox}{max width=\textwidth} +\vspace{0.5em} +{\footnotesize \textit{Note}: T5/T10/T15 = Top 5/10/15.} +\end{adjustbox} +\end{table} + +\paragraph{Institutes} +At the institute level (Table~\ref{tab:expert_institutes_summary}), results are more mixed, with the benefit of LLM features depending on the dataset and cutoff. For forthcoming calls, LLM-based titles only slightly improve over raw input at Top-5 (55.4\% vs. 53.6\%), while raw titles remain competitive at broader cutoffs (up to \textbf{66.0\%}). Descriptions, however, show clearer gains from LLM enrichment, rising to 62.5–\textbf{66.0\%} compared to just 50.0–51.8\% with raw text.\\ +The effect is stronger for closed calls. Here, both titles and descriptions gain considerably from LLM-based keywords, with descriptions achieving the highest overall scores (\textbf{57.0–65.0\%}) compared to 46.0–48.0\% for raw descriptions. This highlights that, while raw titles can still be competitive for forthcoming calls, descriptions enriched with LLM features capture more nuanced signals in archived funding opportunities and consistently deliver the best results at the institute level. + + +\paragraph{Conclusion} +The expert validation demonstrates that, from the domain experts perspective, \textbf{LLM-generated keyword representations consistently outperform raw text} in terms of plausibility and correctness of mappings across faculties, chairs, and institutes. Improvements are most pronounced at finer levels of granularity, where hit rates increase substantially, while faculty-level gains remain more moderate but stable. A clear pattern also emerges between data types: \textbf{titles tend to perform best for forthcoming calls}, where concise information suffices, while \textbf{descriptions enriched with LLM keywords are especially effective for closed calls}, capturing richer context and improving alignment with historical opportunities. Overall, the results highlight the added value of LLM-based representations in enhancing both precision and robustness of funding recommendations at multiple organizational levels. diff --git a/research/knowledge_clusters/thesis/content/chapters/chapter7.tex b/research/knowledge_clusters/thesis/content/chapters/chapter7.tex new file mode 100644 index 0000000..de67574 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/chapter7.tex @@ -0,0 +1,32 @@ +\chapter{Discussion}\label{discussion} +% Setting up the context for the discussion +The aim of this thesis was to develop a publication-driven system for automatically matching external research funding calls to appropriate university departments. The approaches implemented included two unsupervised clustering pipelines (HDBSCAN and K-Means) as well as a supervised pipeline using a Random Forest classifier within the BERTopic framework. Different textual representations (RAW titles, YAKE keywords, and LLM-generated keywords) were evaluated to examine their effect on model performance. + +\section{Could the results answer the initial questions?} +% Evaluating whether the research questions were addressed +The evaluation results show that the system can answer the initial research question. At the faculty, chair and institute levels, the models consistently achieved high hit rates, confirming that publication-based topic modelling provides a solid basis for aligning funding calls with departmental expertise. Both manual validation of historical calls and future funding calls validation by experts further confirmed that the recommendations are meaningful in practice. + +\section{Model Performance} +% Comparing performance across pipelines and validation settings +The results demonstrate clear differences between the pipelines. In publication validation experiments on publication data, the Random Forest classifier achieved the highest scores, particularly when combined with LLM-generated keywords. At the faculty level, it reached nearly perfect accuracy, and at the chair and institute levels, it outperformed both clustering approaches. However, this strong performance on publication data suggests that Random Forest may be \textbf{overfitting} to clean publication data, leading to reduced performance on real-world funding calls. In contrast, in the manual validation of historical calls on real funding calls, Random Forest performed worse than HDBSCAN and K-Means. K-Means achieved the best overall results in this setting, with higher hit rates and lower mean ranks across faculties, chairs, and institutes. HDBSCAN also performed strongly, especially for researcher-level predictions, where supervised methods were not applicable. This difference indicates that the Random Forest generalized less effectively to heterogeneous funding call data, while clustering-based approaches proved more robust. + +In the future funding calls validation by experts, at all levels of aggregation, HDBSCAN models enriched with LLM-generated keywords were judged superior, with clear improvements in closed-call evaluations. The results also suggest that working more extensively with descriptions could further strengthen performance, as they carry richer semantic information than titles alone. This raises the possibility that if the publication data used to train the models included abstracts, more meaningful semantic features could be extracted. Inferring funding call descriptions with models trained on abstracts might therefore yield even better alignment and more accurate recommendations in future iterations. + +\section{Open Challenges} +The main challenge that remains is reliable recommendation at the researcher level. Both clustering methods achieved only modest results here, with top-15 hit rates around 60\% at best. Sparse metadata, incomplete affiliations, and limited textual information in titles restricted the accuracy of fine-grained recommendations. Working with richer textual sources could help address this limitation. For example, using full funding call descriptions rather than titles already improved results in closed-call evaluations, and training models on publication abstracts (instead of titles alone) could enable extraction of more meaningful semantic features. This would likely improve researcher-level alignment, where fine-grained distinctions between expertise areas are most important. + +\section{Scalability Issues} +While the proposed system shows promise, scalability presents some practical considerations. BERTopic provides strong topic modeling capabilities but is computationally intensive, particularly for large volumes of publications, such as those across a whole university. Updating topic representations dynamically as new publications or funding calls are added requires substantial computational resources. + +Real-time crawling of funding portals introduces additional complexity. Many portals, such as the European Commission’s Funding \& Tenders Portal, have non-standardized structures that can require custom scripts, which may need frequent adjustment when websites change. Rate limits and access restrictions can also slow continuous data collection, making real-time matching more challenging. + +The current batch-processing approach also means updates to departmental profiles require retraining the topic model, which is not optimized for incremental changes. Approaches such as lightweight embedding models (e.g., MiniLM) or incremental clustering could make updates more efficient and support larger-scale deployment with fewer computational demands. + +\section{Summary} +Overall, the results demonstrate that a publication-driven system can improve the allocation of funding calls. Random Forest performed well on publication data but showed some overfitting, whereas clustering methods provided more reliable outcomes during manual validation of historical and upcoming funding calls. Recommendations were effective at faculty, chair and institute levels, while researcher-level suggestions remain an area for refinement. + +Expert validation also revealed a systematic difference between input types: titles worked best for forthcoming calls, where concise signals were sufficient, while descriptions enriched with LLM-generated keywords performed better for closed calls, where richer context was needed. + + Scalability is shaped by computational demands and the practicalities of web crawling. +Future developments could focus on lightweight modeling, fairness-aware adjustments, and broader use of abstracts and descriptions to enhance both practicality and impact. + diff --git a/research/knowledge_clusters/thesis/content/chapters/clause.tex b/research/knowledge_clusters/thesis/content/chapters/clause.tex new file mode 100644 index 0000000..d625150 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/clause.tex @@ -0,0 +1,43 @@ +%pagenumbering{null} + +\ + +%clearpage +\cleardoublepage + +\ + + +\pagestyle{empty} +\vfill + +% \todo[inline]{It may be necessary that you add the correct type of work here} + +\ifthenelse{\boolean{bothlanguages}}{% +\textbf{Versicherung an Eides Statt} +\begin{center} + \textit{German} +\end{center} +Hiermit versichere ich, dass ich die vorliegende Bachelor/Masterarbeit selbständig - mit Ausnahme der Anleitung durch die Betreuer - verfasst, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt, sowie Zitate kenntlich gemacht habe. Ich versichere dass ich alle entsprechenden Angaben nach bestem Wissen und Gewissen vorgenommen habe, dass sie der Wahrheit entspechen und dass ich nichts verschwiegen habe. Mir ist bekannt, dass eine falsche Versicherung an Eides Statt nach \S 156 und nach \S 163 Abs. 1 des Strafgesetzbuches mit Freiheitsstrafe oder Geldstrafe bestraft wird.\\[1cm] +\textbf{Affirmation on oath} +\begin{center} + \textit{English} +\end{center} +I hereby declare that I have written this Bachelor thesis - except for the guidance of the supervisor - independently, using no other than the specified sources and resources, and that all quotations have been indicated. I declare that I have reported to the best of my knowledge all the relevant information, that it is true and that I concealed nothing. I am aware that a false declaration will be punished according to \S 156 and \S 163 par. 1 of the criminal code with a prison sentence or a monetary penalty.\\[1cm] +$\underline{\parbox{4.5cm}{Essen, \today}} \hspace*{4cm} \underline{\parbox{5.5cm}{\phantom{Essen, \today}}}$\\ +\iflanguage{ngerman} +{$\parbox{4.5cm}{(Ort, Datum)} \hspace*{4cm} \parbox{5.5cm}{\name}$} +{$\parbox{4.5cm}{(Place, Date)} \hspace*{4cm} \parbox{5.5cm}{\name}$} +} +{% +\iflanguage{ngerman}{% +\textbf{Versicherung an Eides Statt}\\[7.5mm] +Hiermit versichere ich, dass ich die vorliegende Bachelor/Masterarbeit selbständig - mit Ausnahme der Anleitung durch die Betreuer - verfasst, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt, sowie Zitate kenntlich gemacht habe. Ich versichere dass ich alle entsprechenden Angaben nach bestem Wissen und Gewissen vorgenommen habe, dass sie der Wahrheit entspechen und dass ich nichts verschwiegen habe. Mir ist bekannt, dass eine falsche Versicherung an Eides Statt nach \S 156 und nach \S 163 Abs. 1 des Strafgesetzbuches mit Freiheitsstrafe oder Geldstrafe bestraft wird.\\[1cm] +$\underline{\parbox{4.5cm}{Essen, \today}} \hspace*{4cm} \underline{\parbox{5.5cm}{\phantom{Essen, \today}}}$\\ +$\parbox{4.5cm}{(Place, Date)} \hspace*{4cm} \parbox{5.5cm}{\name}$}{% +\textbf{Affirmation on oath}\\[7.5mm] +I hereby declare that I have written this Bachelor (Master) thesis - except for the guidance of the supervisor - independently, using no other than the specified sources and resources, and that all quotations have been indicated. I declare that I have reported to the best of my knowledge all the relevant information, that it is true and that I concealed nothing. I am aware that a false declaration will be punished according to \S 156 and \S 163 par. 1 of the criminal code with a prison sentence or a monetary penalty.\\[1cm] +$\underline{\parbox{4.5cm}{Essen, \today}} \hspace*{4cm} \underline{\parbox{5.5cm}{\phantom{Essen, \today}}}$\\ +$\parbox{4.5cm}{(Place, Date)} \hspace*{4cm} \parbox{5.5cm}{\name}$}} + + diff --git a/research/knowledge_clusters/thesis/content/chapters/non_disclosure_agreement.tex b/research/knowledge_clusters/thesis/content/chapters/non_disclosure_agreement.tex new file mode 100644 index 0000000..549e81b --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/non_disclosure_agreement.tex @@ -0,0 +1,31 @@ + +\pagestyle{empty} +\cleardoublepage + +\ + +\vfill +\todo[inline]{Use only in case of thesis with a company to prevent disclosure of the document. Remove this page if it is not needed. See file non\_disclosure\_agreement.tex} +\todo[inline]{Add a label on the cover saying ``Sperrvermerk, bitte beachten!!!''} +\ifthenelse{\boolean{bothlanguages}}{% + \textbf{Geheimhaltungsvereinbarung} + \begin{center} + \textit{German} + \end{center} + Diese Abschlussarbeit enthält vertrauliche Informationen. Sie darf - auch auszugsweise - weder veröffentlicht noch vervielfältigt oder auf elektronischem Wege verteilt werden. Einsichtnahme ist für einen Zeitraum von fünf Jahren ab Abgabe nur den am Prüfungsverfahren Beteiligten gestattet.\\\\[7ex] + \textbf{Non-disclosure agreement} + \begin{center} + \textit{English} + \end{center} + This thesis contains confidential information. It may not be published, reproduced or distributed electronically, even in excerpts. Inspection is permitted for a period of five years from the date of submission only to those involved in the examination procedure. +} +{% + \iflanguage{ngerman} + {\textbf{Geheimhaltungsvereinbarung}\\[5ex] + Diese Abschlussarbeit enthält vertrauliche Informationen. Sie darf - auch auszugsweise - weder veröffentlicht noch vervielfältigt oder auf elektronischem Wege verteilt werden. Einsichtnahme ist für einen Zeitraum von fünf Jahren ab Abgabe nur den am Prüfungsverfahren Beteiligten gestattet.} + {\textbf{Non-disclosure agreement}\\[5ex] + This thesis contains confidential information. It may not be published, reproduced or distributed electronically, even in excerpts. Inspection is permitted for a period of five years from the date of submission only to those involved in the examination procedure.} +} + +\cleardoublepage +\pagestyle{headings} diff --git a/research/knowledge_clusters/thesis/content/chapters/titlePage.tex b/research/knowledge_clusters/thesis/content/chapters/titlePage.tex new file mode 100644 index 0000000..d2a4b7e --- /dev/null +++ b/research/knowledge_clusters/thesis/content/chapters/titlePage.tex @@ -0,0 +1,141 @@ +\begin{titlepage} +\vspace*{-1cm} +\newlength{\links} +\setlength{\links}{0.9cm} +\setlength{\TPHorizModule}{1cm} +\setlength{\TPVertModule}{1cm} +\textblockorigin{0pt}{0pt} + +% big if for fancy or not +\ifthenelse{\boolean{fancy}}{% +\pagecolor{uni-beige}\afterpage{\nopagecolor} +\begin{textblock*}{21cm}(0cm,0cm) + \noindent + \includegraphics[max size={\textwidth}{0.5\paperheight}]{content/images/mainimage.jpg} +\end{textblock*} + +% Change the position according to your Image +\begin{textblock*}{20cm}(0.5cm,14.5cm) + \color{uni-blue} + \normalsize + \raggedleft + \large + \iflanguage{ngerman} + {Networked Embedded Systems Group \\ + Lehrstuhl für Pervasive Computing \\ + Abteilung für Allgemeine Informatik\\ + Fakultät für Informatik \\ + Universität Duisburg-Essen \\~\\} + {Networked Embedded Systems Group \\ + Chair of Pervasive Computing \\ + Department of Core Informatics\\ + Faculty of Computer Science\\ + University of Duisburg-Essen \\~\\} + + \today +\end{textblock*} + +\begin{textblock*}{13cm}(0.5cm,17.5cm) + \color{uni-blue} + \LARGE + \textbf{\typeofwork}\\[2ex] + \Huge + \textbf{\textit{\workingtitle}}\\[2ex] + \Large + \ifthenelse{\boolean{thesis}} + {\name\hspace*{1cm}\matriculationnumber\\} + {\name} +\end{textblock*} + +\begin{textblock*}{10cm}(14cm,22cm) + \color{uni-blue} + \footnotesize + \iflanguage{ngerman} + {\ifthenelse{\boolean{thesis}} + {Erstprüfer: Prof. Dr. Pedro Jos\'e Marr\'on\\ + Zweitprüfer: \secondexaminer\\} + {Lehrstuhlleiter: Prof. Dr. Pedro Jos\'e Marr\'on\\} + Betreuer: \supervisor\\ + Zeitraum: \timeframe + }{\ifthenelse{\boolean{thesis}} + {First examiner: Prof. Dr. Pedro Jos\'e Marr\'on\\ + Second examiner: \secondexaminer\\} + {Head of Chair: Prof. Dr. Pedro Jos\'e Marr\'on\\} + Supervisor: \supervisor\\ + Time frame: \timeframe} +\end{textblock*} + +% Fixed height regarding the placement according to corporate design +\begin{textblock*}{7cm}(14cm,25cm) + \raggedleft + \iflanguage{ngerman}{\includegraphics[height=2.5cm]{content/images/logo_claim_4c.eps}} + {\includegraphics[height=2.5cm]{content/images/logo_claim_en_4c.eps}} +\end{textblock*} + +\begin{textblock*}{7cm}(0.5cm,25cm) + \transparent{0.6}\includegraphics[height=2.5cm]{content/images/NES_Logo_text.png} +\end{textblock*} + +} +{% +\iflanguage{ngerman}{% +\begin{textblock*}{1cm}(2cm,3.2cm) + \rule{7mm}{7mm} +\end{textblock*} +}{% +\begin{textblock*}{1cm}(2cm,3cm) + \rule{7mm}{7mm} +\end{textblock*} +} +\begin{textblock*}{16cm}(3cm,2.5cm) + \LARGE + \iflanguage{ngerman}{\textbf{UNIVERSITÄT DUISBURG-ESSEN}}{\textbf{UNIVERSITY OF DUISBURG-ESSEN}}\\[1.5mm] + \iflanguage{ngerman}{FAKULTÄT FÜR INFORMATIK}{FACULTY OF COMPUTER SCIENCE}\\ + \large\iflanguage{ngerman}{ABTEILUNG FÜR ALLGEMEINE INFORMATIK}{DEPARTMENT OF CORE INFORMATICS}\\ + \large\iflanguage{ngerman}{LEHRSTUHL FÜR PERVASIVE COMPUTING}{CHAIR OF PERVASIVE COMPUTING} +\end{textblock*} + +\begin{textblock*}{16cm}(3cm,8.5cm) + \large + {\textbf{\typeofwork}} \\[1cm] + {\LARGE\textbf{\workingtitle}} \\[1cm] +\name\\ +\ifthenelse{\boolean{thesis}}{\matriculationnumber}{} +\end{textblock*} + + +\begin{textblock*}{11.5cm}(8cm,17.5cm) %TODO: Logos vertauschen https://www.uni-due.de/offen-im-denken/das_logo.php +\raggedleft +\iflanguage{ngerman} +{\includegraphics[height=2.5cm]{content/images/logo_claim_4c.eps}} +{\includegraphics[height=2.5cm]{content/images/logo_claim_en_4c.eps}} +\hfill +\includegraphics[height=2.5cm]{content/images/NES_Logo_text.png}\\[1ex] +\normalsize +\iflanguage{ngerman} +{Networked Embedded Systems Group\\ +Abteilung für Allgemeine Informatik\\ +Fakultät für Informatik\\ +Universität Duisburg-Essen \\~\\} +{Networked Embedded Systems Group\\ +Department of Core Informatics\\ +Faculty of Computer Science\\ +University of Duisburg-Essen\\~\\} + +\today +\end{textblock*} +\begin{textblock*}{11.5cm}(8cm,25.5cm) +\ifthenelse{\boolean{thesis}} +{\textbf{\iflanguage{ngerman}{Erstprüfer:}{First examiner:}} Prof. Dr. Pedro Jos\'e Marr\'on \\ +\textbf{\iflanguage{ngerman}{Zweitprüfer:}{Second examiner:}} \secondexaminer \\ +\textbf{\iflanguage{ngerman}{Betreuer:}{Supervisor:}} \supervisor \\ +\textbf{\iflanguage{ngerman}{Zeitraum:}{Time frame:}} \timeframe} +{\textbf{\iflanguage{ngerman}{Lehrstuhlleiter:}{Head of Chair:}} Prof. Dr. Pedro Jos\'e Marr\'on \\ +\textbf{\iflanguage{ngerman}{Betreuer:}{Supervisor:}} \supervisor \\ +\textbf{\iflanguage{ngerman}{Zeitraum:}{Time frame:}} \timeframe +} +\end{textblock*} + +} + +\end{titlepage} diff --git a/research/knowledge_clusters/thesis/content/images/BERTopic_pipe.png b/research/knowledge_clusters/thesis/content/images/BERTopic_pipe.png new file mode 100644 index 0000000..ae9564f Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/BERTopic_pipe.png differ diff --git a/research/knowledge_clusters/thesis/content/images/HDBSCAN.png b/research/knowledge_clusters/thesis/content/images/HDBSCAN.png new file mode 100644 index 0000000..4ba5099 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/HDBSCAN.png differ diff --git a/research/knowledge_clusters/thesis/content/images/HDBSCAN_hr_top5_bar_chart_by_input.png b/research/knowledge_clusters/thesis/content/images/HDBSCAN_hr_top5_bar_chart_by_input.png new file mode 100644 index 0000000..60ee423 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/HDBSCAN_hr_top5_bar_chart_by_input.png differ diff --git a/research/knowledge_clusters/thesis/content/images/K-MEANS_hr_top5_bar_chart_by_input.png b/research/knowledge_clusters/thesis/content/images/K-MEANS_hr_top5_bar_chart_by_input.png new file mode 100644 index 0000000..3b6604a Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/K-MEANS_hr_top5_bar_chart_by_input.png differ diff --git a/research/knowledge_clusters/thesis/content/images/Kmeans.png b/research/knowledge_clusters/thesis/content/images/Kmeans.png new file mode 100644 index 0000000..ad799e3 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/Kmeans.png differ diff --git a/research/knowledge_clusters/thesis/content/images/NES_Logo_text.png b/research/knowledge_clusters/thesis/content/images/NES_Logo_text.png new file mode 100644 index 0000000..9fcc713 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/NES_Logo_text.png differ diff --git a/research/knowledge_clusters/thesis/content/images/PIPE_IMPL.png b/research/knowledge_clusters/thesis/content/images/PIPE_IMPL.png new file mode 100644 index 0000000..be046dc Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/PIPE_IMPL.png differ diff --git a/research/knowledge_clusters/thesis/content/images/RF.png b/research/knowledge_clusters/thesis/content/images/RF.png new file mode 100644 index 0000000..c507fe6 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/RF.png differ diff --git a/research/knowledge_clusters/thesis/content/images/Random Forest_hr_top5_bar_chart_by_input.png b/research/knowledge_clusters/thesis/content/images/Random Forest_hr_top5_bar_chart_by_input.png new file mode 100644 index 0000000..8b73b64 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/Random Forest_hr_top5_bar_chart_by_input.png differ diff --git a/research/knowledge_clusters/thesis/content/images/call.png b/research/knowledge_clusters/thesis/content/images/call.png new file mode 100644 index 0000000..fa5bdec Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/call.png differ diff --git a/research/knowledge_clusters/thesis/content/images/cross_valid_chart.png b/research/knowledge_clusters/thesis/content/images/cross_valid_chart.png new file mode 100644 index 0000000..bedbd65 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/cross_valid_chart.png differ diff --git a/research/knowledge_clusters/thesis/content/images/exp_chair.png b/research/knowledge_clusters/thesis/content/images/exp_chair.png new file mode 100644 index 0000000..88fe377 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/exp_chair.png differ diff --git a/research/knowledge_clusters/thesis/content/images/exp_fac.png b/research/knowledge_clusters/thesis/content/images/exp_fac.png new file mode 100644 index 0000000..e8398e6 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/exp_fac.png differ diff --git a/research/knowledge_clusters/thesis/content/images/exp_inst.png b/research/knowledge_clusters/thesis/content/images/exp_inst.png new file mode 100644 index 0000000..9b26da8 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/exp_inst.png differ diff --git a/research/knowledge_clusters/thesis/content/images/finale_pipe.png b/research/knowledge_clusters/thesis/content/images/finale_pipe.png new file mode 100644 index 0000000..833d7ad Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/finale_pipe.png differ diff --git a/research/knowledge_clusters/thesis/content/images/lsf_person.png b/research/knowledge_clusters/thesis/content/images/lsf_person.png new file mode 100644 index 0000000..83e6154 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/lsf_person.png differ diff --git a/research/knowledge_clusters/thesis/content/images/mainimage.jpg b/research/knowledge_clusters/thesis/content/images/mainimage.jpg new file mode 100644 index 0000000..9fe9555 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/mainimage.jpg differ diff --git a/research/knowledge_clusters/thesis/content/images/manual_valid_chart.png b/research/knowledge_clusters/thesis/content/images/manual_valid_chart.png new file mode 100644 index 0000000..b496bb9 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/manual_valid_chart.png differ diff --git a/research/knowledge_clusters/thesis/content/images/manual_validation_chart_top10.png b/research/knowledge_clusters/thesis/content/images/manual_validation_chart_top10.png new file mode 100644 index 0000000..77a303f Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/manual_validation_chart_top10.png differ diff --git a/research/knowledge_clusters/thesis/content/images/mr_top15_bar_chart_by_model.png b/research/knowledge_clusters/thesis/content/images/mr_top15_bar_chart_by_model.png new file mode 100644 index 0000000..fa64147 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/mr_top15_bar_chart_by_model.png differ diff --git a/research/knowledge_clusters/thesis/content/images/mrr_top15_bar_chart_by_model.png b/research/knowledge_clusters/thesis/content/images/mrr_top15_bar_chart_by_model.png new file mode 100644 index 0000000..8040045 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/mrr_top15_bar_chart_by_model.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pipe_approachpng.png b/research/knowledge_clusters/thesis/content/images/pipe_approachpng.png new file mode 100644 index 0000000..e3cd4fa Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pipe_approachpng.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pipe_implementation.png b/research/knowledge_clusters/thesis/content/images/pipe_implementation.png new file mode 100644 index 0000000..3ebf828 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pipe_implementation.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pipe_updated.png b/research/knowledge_clusters/thesis/content/images/pipe_updated.png new file mode 100644 index 0000000..c5f655f Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pipe_updated.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pub.png b/research/knowledge_clusters/thesis/content/images/pub.png new file mode 100644 index 0000000..6d3fc6c Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pub.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pub_empt.png b/research/knowledge_clusters/thesis/content/images/pub_empt.png new file mode 100644 index 0000000..81116d5 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pub_empt.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pub_empt2.png b/research/knowledge_clusters/thesis/content/images/pub_empt2.png new file mode 100644 index 0000000..47992fd Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pub_empt2.png differ diff --git a/research/knowledge_clusters/thesis/content/images/pub_valid_chart_top15.png b/research/knowledge_clusters/thesis/content/images/pub_valid_chart_top15.png new file mode 100644 index 0000000..8b2acb8 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/pub_valid_chart_top15.png differ diff --git a/research/knowledge_clusters/thesis/content/images/titles_trained_2_get_topic_info.PNG b/research/knowledge_clusters/thesis/content/images/titles_trained_2_get_topic_info.PNG new file mode 100644 index 0000000..43c35b8 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/titles_trained_2_get_topic_info.PNG differ diff --git a/research/knowledge_clusters/thesis/content/images/titles_trained_2_hier_dis_lvl_0.PNG b/research/knowledge_clusters/thesis/content/images/titles_trained_2_hier_dis_lvl_0.PNG new file mode 100644 index 0000000..d3abac8 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/titles_trained_2_hier_dis_lvl_0.PNG differ diff --git a/research/knowledge_clusters/thesis/content/images/titles_trained_2_hier_dis_lvl_9.PNG b/research/knowledge_clusters/thesis/content/images/titles_trained_2_hier_dis_lvl_9.PNG new file mode 100644 index 0000000..fe62424 Binary files /dev/null and b/research/knowledge_clusters/thesis/content/images/titles_trained_2_hier_dis_lvl_9.PNG differ diff --git a/research/knowledge_clusters/thesis/content/references/references.bib b/research/knowledge_clusters/thesis/content/references/references.bib new file mode 100644 index 0000000..1ca6aa1 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/references/references.bib @@ -0,0 +1,363 @@ +@article{dubey2024llama, + title={The llama 3 herd of models}, + author={Dubey, Abhimanyu and Jauhri, Abhinav and Pandey, Abhinav and Kadian, Abhishek and Al-Dahle, Ahmad and Letman, Aiesha and Mathur, Akhil and Schelten, Alan and Yang, Amy and Fan, Angela and others}, + journal={arXiv e-prints}, + pages={arXiv--2407}, + year={2024} +} +@article{campos2020yake, + title={YAKE! Keyword extraction from single documents using multiple local features}, + author={Campos, Ricardo and Mangaravite, V{\'\i}tor and Pasquali, Arian and Jorge, Al{\'\i}pio and Nunes, C{\'e}lia and Jatowt, Adam}, + journal={Information Sciences}, + volume={509}, + pages={257--289}, + year={2020}, + publisher={Elsevier} +} +@misc{elastic2025elasticsearch, + title={Elasticsearch Documentation}, + author={{Elastic}}, + year={2025}, + howpublished={Online; accessed 10 August 2025}, + url={https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html}, + note={Official documentation for Elasticsearch, covering versions up to 8.19, including setup, APIs, query languages, and deployment guides} +} +@misc{selenium2025python, + title={Selenium Python Bindings Documentation}, + author={{Selenium Project}}, + year={2025}, + howpublished={Online; accessed 10 August 2025}, + url={https://selenium-python.readthedocs.io/}, + note={Official documentation for the Selenium Python bindings, covering WebDriver, browser automation, and Python-specific features for Selenium 4.34} +} +@article{grootendorst2022bertopic, + title={BERTopic: Neural topic modeling with a class-based TF-IDF procedure}, + author={Grootendorst, Maarten}, + journal={arXiv preprint arXiv:2203.05794}, + year={2022} +} +@inproceedings{reimers-2019-sentence-bert, + title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", + author = "Reimers, Nils and Gurevych, Iryna", + booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", + month = "11", + year = "2019", + publisher = "Association for Computational Linguistics", + url = "https://arxiv.org/abs/1908.10084", +}@misc{mcinnes2020umapuniformmanifoldapproximation, + title={UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction}, + author={Leland McInnes and John Healy and James Melville}, + year={2020}, + eprint={1802.03426}, + archivePrefix={arXiv}, + primaryClass={stat.ML}, + url={https://arxiv.org/abs/1802.03426}, +}@article{scikit-learn, + title={Scikit-learn: Machine Learning in Python}, + author={Pedregosa, Fabian and Varoquaux, Gaël and others}, + journal={Journal of Machine Learning Research}, + volume={12}, + pages={2825--2830}, + year={2011} +} +@misc{HDBSCAN2025, + author = {{scikit-learn-contrib}}, + title = {{HDBSCAN: Hierarchical Density-Based Spatial Clustering of Applications with Noise}}, + howpublished = {Online documentation}, + year = {2025}, + note = {Accessed: August 11, 2025}, + url = {https://hdbscan.readthedocs.io/en/latest/index.html} +} +@misc{K-means, + author = {{scikit-learn developers}}, + title = {{scikit-learn: Machine Learning in Python}}, + howpublished = {Online documentation}, + year = {2025}, + note = {Accessed: August 11, 2025}, + url = {https://scikit-learn.org/stable/modules/clustering.html#k-means} +}@misc{random-forest, + author = {{scikit-learn developers}}, + title = {{scikit-learn: Machine Learning in Python}}, + howpublished = {Online documentation}, + year = {2025}, + note = {Accessed: August 11, 2025}, + url = {https://scikit-learn.org/stable/modules/ensemble.html#random-forests} +}@article{blei2003latent, + title={Latent dirichlet allocation}, + author={Blei, David M and Ng, Andrew Y and Jordan, Michael I}, + journal={Journal of machine Learning research}, + volume={3}, + number={Jan}, + pages={993--1022}, + year={2003} +}@misc{BERTtopic_doc, + author = {Grootendorst, Maarten}, + title = {{BERTopic}: Topic Modeling with {BERT} and {c-TF-IDF}}, + howpublished = {Online documentation}, + year = {2025}, + note = {Accessed: August 12, 2025}, + url = {https://maartengr.github.io/BERTopic/index.html} +} +@article{herbert2013time, + title={On the time spent preparing grant proposals: an observational study of Australian researchers}, + author={Herbert, Danielle L and Barnett, Adrian G and Clarke, Philip and Graves, Nicholas}, + journal={BMJ open}, + volume={3}, + number={5}, + pages={e002800}, + year={2013}, + publisher={British Medical Journal Publishing Group} +@article{crow2020your, + title={What to do when your grant is rejected.}, + author={Crow, James Mitchell}, + journal={Nature}, + volume={578}, + number={7795}, + pages={477--480}, + year={2020}, + publisher={Nature Publishing Group} +} +@article{balog2009language, + title={A language modeling framework for expert finding}, + author={Balog, Krisztian and Azzopardi, Leif and de Rijke, Maarten}, + journal={Information Processing \& Management}, + volume={45}, + number={1}, + pages={1--19}, + year={2009}, + publisher={Elsevier} +} +@inproceedings{tang2008arnetminer, + title={Arnetminer: extraction and mining of academic social networks}, + author={Tang, Jie and Zhang, Jing and Yao, Limin and Li, Juanzi and Zhang, Li and Su, Zhong}, + booktitle={Proceedings of the 14th ACM SIGKDD international conference on Knowledge discovery and data mining}, + pages={990--998}, + year={2008} +} +@article{zeng2020gotfunding, + title={GotFunding: A grant recommendation system based on scientific articles}, + author={Zeng, Tong and Acuna, Daniel E}, + journal={Proceedings of the Association for Information Science and Technology}, + volume={57}, + number={1}, + pages={e323}, + year={2020}, + publisher={Wiley Online Library} +} +@misc{GrantForward, +title = {GrantForward}, +author = {Cazoodle Inc.}, +year = {2012}, +howpublished = {\url{https://www.grantforward.com/}}, +note = {Champaign, IL, USA. Accessed: 2025-08-20. A funding opportunity database built by academics for researchers, originating from the University of Illinois at Urbana-Champaign.} +} +@inproceedings{wang2006topics, + title={Topics over time: a non-markov continuous-time model of topical trends}, + author={Wang, Xuerui and McCallum, Andrew}, + booktitle={Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining}, + pages={424--433}, + year={2006} +}@article{zhang2018joint, + title={Joint modeling of the association between NIH funding and its three primary outcomes: patents, publications, and citation impact}, + author={Zhang, Fengqing and Yan, Erjia and Niu, Xin and Zhu, Yongjun}, + journal={Scientometrics}, + volume={117}, + number={1}, + pages={591--602}, + year={2018}, + publisher={Springer} +} +@misc{pandas_2025, + author = {{The Pandas Development Team}}, + title = {{Pandas: Powerful Python Data Analysis Toolkit}}, + year = {2025}, + howpublished = {\url{https://pandas.pydata.org/docs/}}, + note = {Accessed: 2025-08-25}, + url = {https://pandas.pydata.org/docs/} +}@misc{scikit_learn_cosine_similarity_2025, + author = {{scikit-learn developers}}, + title = {{scikit-learn: Cosine Similarity}}, + year = {2025}, + howpublished = {\url{https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_similarity.html}}, + note = {Accessed: 2025-08-26}, + url = {https://scikit-learn.org/stable/modules/generated/sklearn.metrics.pairwise.cosine_similarity.html} +} +@misc{uniduisburgessenbibliography, + author = {{Universitätsbibliothek Duisburg-Essen}}, + title = {Universitätsbibliographie der Universität Duisburg-Essen}, + year = {2025}, + howpublished = {\url{https://bibliographie.ub.uni-due.de/}}, + note = {Accessed: 2025-08-28} +} +@misc{uniduisburgessenfacts2025, + author = {{University of Duisburg-Essen}}, + title = {Facts \& Figures - University of Duisburg-Essen}, + year = {2025}, + howpublished = {\url{https://www.uni-due.de/de/universitaet/ueberblick.php}}, + note = {Accessed: 2025-08-28} +} +@misc{eufundingtenders2025, + author = {{European Commission}}, + title = {EU Funding \& Tenders Portal: Calls for Proposals - Topic List}, + year = {2025}, + howpublished = {\url{https://ec.europa.eu/info/funding-tenders/opportunities/portal/screen/opportunities/calls-for-proposals}}, + note = {Accessed: 2025-08-28} +}@inproceedings{li2020sampling, + title={On sampling top-k recommendation evaluation}, + author={Li, Dong and Jin, Ruoming and Gao, Jing and Liu, Zhi}, + booktitle={Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery \& Data Mining}, + pages={2114--2124}, + year={2020} +}@article{bordes2013translating, + title={Translating embeddings for modeling multi-relational data}, + author={Bordes, Antoine and Usunier, Nicolas and Garcia-Duran, Alberto and Weston, Jason and Yakhnenko, Oksana}, + journal={Advances in neural information processing systems}, + volume={26}, + year={2013} +}@article{sorower2010literature, + title={A literature survey on algorithms for multi-label learning}, + author={Sorower, Mohammad S}, + journal={Oregon State University, Corvallis}, + volume={18}, + number={1}, + pages={25}, + year={2010} +} +@article{balog2009language, + title={A language modeling framework for expert finding}, + author={Balog, Krisztian and Azzopardi, Leif and de Rijke, Maarten}, + journal={Information Processing \& Management}, + volume={45}, + number={1}, + pages={1--19}, + year={2009}, + publisher={Elsevier} +}@inproceedings{serdyukov2008modeling, + title={Modeling multi-step relevance propagation for expert finding}, + author={Serdyukov, Pavel and Rode, Henning and Hiemstra, Djoerd}, + booktitle={Proceedings of the 17th ACM conference on Information and knowledge management}, + pages={1133--1142}, + year={2008} +}@inproceedings{sinha2015overview, + title={An overview of microsoft academic service (mas) and applications}, + author={Sinha, Arnab and Shen, Zhihong and Song, Yang and Ma, Hao and Eide, Darrin and Hsu, Bo-June and Wang, Kuansan}, + booktitle={Proceedings of the 24th international conference on world wide web}, + pages={243--246}, + year={2015} +}@article{ammar2018construction, + title={Construction of the literature graph in semantic scholar}, + author={Ammar, Waleed and Groeneveld, Dirk and Bhagavatula, Chandra and Beltagy, Iz and Crawford, Miles and Downey, Doug and Dunkelberger, Jason and Elgohary, Ahmed and Feldman, Sergey and Ha, Vu and others}, + journal={arXiv preprint arXiv:1805.02262}, + year={2018} +} +@article{charlin2013toronto, + title={The Toronto paper matching system: an automated paper-reviewer assignment system}, + author={Charlin, Laurent and Zemel, Richard}, + year={2013} +} +@article{ZHANG2024100095, +title = {Scholarly recommendation system for NIH funded grants based on biomedical word embedding models}, +journal = {Natural Language Processing Journal}, +volume = {8}, +pages = {100095}, +year = {2024}, +issn = {2949-7191}, +doi = {https://doi.org/10.1016/j.nlp.2024.100095}, +url = {https://www.sciencedirect.com/science/article/pii/S2949719124000438}, +author = {Zitong Zhang and Ashraf Yaseen and Hulin Wu}, +keywords = {NIH, Funded grant, Word embedding, Recommendation system}, +}@article{zhu2023novel, + title={A novel NIH research grant recommender using BERT}, + author={Zhu, Jie and Patra, Braja Gopal and Wu, Hulin and Yaseen, Ashraf}, + journal={PloS one}, + volume={18}, + number={1}, + pages={e0278636}, + year={2023}, + publisher={Public Library of Science San Francisco, CA USA} +} +@inproceedings{asim2018content, + title={Content based call for papers recommendation to researchers}, + author={Asim, Muhammad and Khusro, Shah}, + booktitle={2018 12th International Conference on Open Source Systems and Technologies (ICOSST)}, + pages={42--47}, + year={2018}, + organization={IEEE} +} +@inproceedings{kamada2015recommendation, + title={Recommendation system of grants-in-aid for researchers by using jsps keyword}, + author={Kamada, Shin and Ichimura, Takumi and Watanabe, Takanobu}, + booktitle={2015 IEEE 8th International Workshop on Computational Intelligence and Applications (IWCIA)}, + pages={143--148}, + year={2015}, + organization={IEEE} +} +@article{ZHANG2024100095, +title = {Scholarly recommendation system for NIH funded grants based on biomedical word embedding models}, +journal = {Natural Language Processing Journal}, +volume = {8}, +pages = {100095}, +year = {2024}, +issn = {2949-7191}, +doi = {https://doi.org/10.1016/j.nlp.2024.100095}, +url = {https://www.sciencedirect.com/science/article/pii/S2949719124000438}, +author = {Zitong Zhang and Ashraf Yaseen and Hulin Wu}, +keywords = {NIH, Funded grant, Word embedding, Recommendation system}, +}@article{kim2019research, + title={Research paper classification systems based on TF-IDF and LDA schemes}, + author={Kim, Sang-Woon and Gil, Joon-Min}, + journal={Human-centric Computing and Information Sciences}, + volume={9}, + number={1}, + pages={30}, + year={2019}, + publisher={Springer} +}@inproceedings{korkontzelos2016ensemble, + title={Ensemble Classification of Grants using LDA-based Features}, + author={Korkontzelos, Yannis and Thomas, Beverley and Miwa, Makoto and Ananiadou, Sophia}, + booktitle={Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16)}, + pages={1288--1294}, + year={2016} +}@article{beltagy2019scibert, + title={SciBERT: A pretrained language model for scientific text}, + author={Beltagy, Iz and Lo, Kyle and Cohan, Arman}, + journal={arXiv preprint arXiv:1903.10676}, + year={2019} +} +@misc{le2014distributed, + title={Distributed Representations of Sentences and Documents}, + author={Le, Quoc and Mikolov, Tomas}, + year={2014}, + eprint={1405.4053}, + archivePrefix={arXiv}, + primaryClass={cs.CL}, + url={https://arxiv.org/abs/1405.4053}, + note={This paper introduces the Paragraph Vector framework (Doc2Vec), commonly implemented in libraries like Gensim.} +}@article{angelov2020top2vec, + title={Top2vec: Distributed representations of topics}, + author={Angelov, Dimo}, + journal={arXiv preprint arXiv:2008.09470}, + year={2020} +}@article{bianchi2020pre, + title={Pre-training is a hot topic: Contextualized document embeddings improve topic coherence}, + author={Bianchi, Federico and Terragni, Silvia and Hovy, Dirk}, + journal={arXiv preprint arXiv:2004.03974}, + year={2020} +}@misc{funding_tenders, + title = {Funding \& Tenders Portal}, + howpublished = {\url{https://ec.europa.eu/info/funding-tenders}}, + note = {Accessed: 2025-08-31} +} +@misc{googlescholar, + author = {{Google}}, + title = {Google Scholar}, + howpublished = {\url{https://scholar.google.com}}, + note = {Accessed: 2025-09-01}, + year = {2004} +}@misc{pivotrp, + author = {{Ex Libris, a ProQuest Company}}, + title = {Pivot-RP: Research Funding and Collaboration Platform}, + howpublished = {\url{https://pivot.proquest.com}}, + note = {Accessed: 2025-09-01}, + year = {2011} +} \ No newline at end of file diff --git a/research/knowledge_clusters/thesis/content/utility.tex b/research/knowledge_clusters/thesis/content/utility.tex new file mode 100644 index 0000000..5b3b4c9 --- /dev/null +++ b/research/knowledge_clusters/thesis/content/utility.tex @@ -0,0 +1,167 @@ +% TODO: prevent warnings caused by included pdf files by increasing the output pdf version. Alternatively you can reduce versions of included pdfs. As long as you don't have any warnings related to pdf versions, you should not need this. +% \pdfminorversion=7 + +% draw a vertical bar to highlight overfull hboxes. This can make debugging overfull hboxes easier. +% TODO: Remove this for the final document (overfull hboxes should be removed anyway). +\overfullrule=5pt + +\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} +\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} +\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} + +% Accept different input encodings +\usepackage[utf8]{inputenc} + +% helps with the occasional warnings +\usepackage{scrhack} + +\usepackage{ifpdf} +\ifx\pdfoutput\undefined +\pdffalse %not PDFLaTeX +\else +\pdfoutput=1 +\pdftrue +\fi + +% for prettier tables +\usepackage{booktabs} + +% provides the \url{} command to pretty print urls +\usepackage{url} + +% needed for a german bibliography-style (s. below) +\usepackage{bibgerm} + +% allows text flowing around figures. +\usepackage{wrapfig} + +% allows to \includegraphics +\usepackage{graphicx} + +% defines some standard colornames like "black" etc. +\usepackage{color} + +% allows to color tablecells +\usepackage{colortbl} + +% provides an easier interface to if-then-else constructs in +% custom macros +\usepackage{ifthen} + +% allows tables to break over pages. +\usepackage{supertabular} + +% allows to have different kinds paper orientations in the same pdf-documnent +\usepackage{pdflscape} + +% allows to specify absolute texpos for textboxes. This is generally only important for the titlepage +\usepackage[absolute,overlay]{textpos} + +% allows to enumerate different figures with a) b) in the same figure-environment. +\usepackage{subcaption} + + +% Coloured boxes, for LaTeX examples and theorems, etc +\usepackage[most]{tcolorbox} + +% Graphics package-alike macros for “general” boxes +\usepackage[export]{adjustbox} + +% Simple arithmetic in LaTeX commands +\usepackage{calc} + +% Execute command after the next page break +\usepackage{afterpage} + +% Using a color stack for transparency with pdfTeX +\usepackage{transparent} + +% provides \todo and \missingfigure commands +\usepackage{todonotes} + +% provides pseudo-code environment +\usepackage{algorithm} +\usepackage{algpseudocode} + +% provides lstlisting useful for code +\usepackage{listings} +\lstset{% + tabsize = 4, + numbers = left, + keywordstyle = \color{blue}, + stringstyle = \color{blue}, + basicstyle = \small \ttfamily , + breaklines = true, + numberstyle = \tiny, + xleftmargin=2em,frame=single,framexleftmargin=1.5em +} + +% corporate desing colors +% primary color +\definecolor{uni-blue}{RGB}{0,76,147} +% secondary color +\definecolor{uni-beige}{RGB}{239,228,191} +% tertiary color +\definecolor{uni-lightblue}{RGB}{223,228,142} +\definecolor{uni-white}{RGB}{255,255,255} +% copy text color +\definecolor{uni-black}{RGB}{0,0,0} +% additional colors +\definecolor{uni-orange}{RGB}{236,114,6} +\definecolor{uni-green}{RGB}{97,162,124} +\definecolor{uni-red}{RGB}{184,16,59} +\definecolor{uni-yellow}{RGB}{254,202,0} +% colors for links +\definecolor{mygrey}{rgb}{0.45,0.45,0.45} +\definecolor{mydarkgrey}{rgb}{0.2,0.2,0.2} + +\ifpdf + +% TODO: +% Metadata and configuration of the pdf output: +% Do not forget to enter the correct title, author, subject und keywords + +% For screen viewing it is nice to have references marked in a slightly different +% color than the rest of the text. Since they will be hyperlinks to the +% referenced objects. +\usepackage[pdftex, + pdftitle={}, + colorlinks, + linkcolor={mydarkgrey}, + citecolor={mygrey}, + urlcolor={black}, + plainpages={false}, + bookmarksnumbered={true}, + pdfauthor={}, + pdfsubject={}, + pdfkeywords={}, + pdfstartview={FitBH}]{hyperref} + +% For the final printouts (remember - you need at least three - one for each examiner and one for the archive +% [ This might have changed - so contact the "Prüfungsamt" about the current regulations !! ] - it is better +% to have all text in the same color (namely black). +% +%\usepackage[pdftex, +% pdftitle={}, +% colorlinks, +% linkcolor={black}, +% citecolor={black}, +% urlcolor={black}, +% plainpages={false}, +% bookmarksnumbered={true}, +% pdfauthor={}, +% pdfsubject={}, +% pdfkeywords={}, +% pdfstartview={FitBH}]{hyperref} +\pdfcompresslevel=9 +\fi + +\usepackage{typearea} +\areaset[1.5cm]{418pt}{658pt} +\setlength{\headheight}{37pt} + + +% boolean for switching modes +\newboolean{fancy} +\newboolean{thesis} +\newboolean{bothlanguages} \ No newline at end of file diff --git a/research/knowledge_clusters/thesis/todowarning.tex b/research/knowledge_clusters/thesis/todowarning.tex new file mode 100644 index 0000000..fafddb3 --- /dev/null +++ b/research/knowledge_clusters/thesis/todowarning.tex @@ -0,0 +1,7 @@ +\pagestyle{empty} +\clearpage + +\todo[inline]{Read all places marked with todo. Some important warnings are located in the output pdf (like this right here). Other places you need to edit are also marked in the source code. Delete this page afterwards.} + +\clearpage +\pagestyle{headings} \ No newline at end of file diff --git a/miner_research/findings/Prompts.rtf b/research/miner_research/findings/Prompts.rtf similarity index 100% rename from miner_research/findings/Prompts.rtf rename to research/miner_research/findings/Prompts.rtf diff --git a/miner_research/findings/dev1.txt b/research/miner_research/findings/dev1.txt similarity index 100% rename from miner_research/findings/dev1.txt rename to research/miner_research/findings/dev1.txt diff --git a/miner_research/findings/dev2.txt b/research/miner_research/findings/dev2.txt similarity index 100% rename from miner_research/findings/dev2.txt rename to research/miner_research/findings/dev2.txt diff --git a/miner_research/findings/obsidian/00_Project_Overview.md b/research/miner_research/findings/obsidian/00_Project_Overview.md similarity index 100% rename from miner_research/findings/obsidian/00_Project_Overview.md rename to research/miner_research/findings/obsidian/00_Project_Overview.md diff --git a/miner_research/findings/obsidian/01_Initial_Pipeline.md b/research/miner_research/findings/obsidian/01_Initial_Pipeline.md similarity index 100% rename from miner_research/findings/obsidian/01_Initial_Pipeline.md rename to research/miner_research/findings/obsidian/01_Initial_Pipeline.md diff --git a/miner_research/findings/obsidian/02_Baseline_Evaluation.md b/research/miner_research/findings/obsidian/02_Baseline_Evaluation.md similarity index 100% rename from miner_research/findings/obsidian/02_Baseline_Evaluation.md rename to research/miner_research/findings/obsidian/02_Baseline_Evaluation.md diff --git a/miner_research/findings/obsidian/03_ML_Approach.md b/research/miner_research/findings/obsidian/03_ML_Approach.md similarity index 100% rename from miner_research/findings/obsidian/03_ML_Approach.md rename to research/miner_research/findings/obsidian/03_ML_Approach.md diff --git a/miner_research/findings/obsidian/04_Expanding_Universities.md b/research/miner_research/findings/obsidian/04_Expanding_Universities.md similarity index 100% rename from miner_research/findings/obsidian/04_Expanding_Universities.md rename to research/miner_research/findings/obsidian/04_Expanding_Universities.md diff --git a/miner_research/findings/obsidian/05_Geometry_and_Fixes.md b/research/miner_research/findings/obsidian/05_Geometry_and_Fixes.md similarity index 100% rename from miner_research/findings/obsidian/05_Geometry_and_Fixes.md rename to research/miner_research/findings/obsidian/05_Geometry_and_Fixes.md diff --git a/miner_research/findings/obsidian/06_Width_Search.md b/research/miner_research/findings/obsidian/06_Width_Search.md similarity index 100% rename from miner_research/findings/obsidian/06_Width_Search.md rename to research/miner_research/findings/obsidian/06_Width_Search.md diff --git a/miner_research/findings/obsidian/07_DistilBERT_and_FLAN.md b/research/miner_research/findings/obsidian/07_DistilBERT_and_FLAN.md similarity index 100% rename from miner_research/findings/obsidian/07_DistilBERT_and_FLAN.md rename to research/miner_research/findings/obsidian/07_DistilBERT_and_FLAN.md diff --git a/miner_research/findings/obsidian/08_LLM_Approach.md b/research/miner_research/findings/obsidian/08_LLM_Approach.md similarity index 100% rename from miner_research/findings/obsidian/08_LLM_Approach.md rename to research/miner_research/findings/obsidian/08_LLM_Approach.md diff --git a/miner_research/findings/obsidian/09_Results_Summary.md b/research/miner_research/findings/obsidian/09_Results_Summary.md similarity index 100% rename from miner_research/findings/obsidian/09_Results_Summary.md rename to research/miner_research/findings/obsidian/09_Results_Summary.md diff --git a/miner_research/findings/obsidian/10_CMS_Statistics.md b/research/miner_research/findings/obsidian/10_CMS_Statistics.md similarity index 100% rename from miner_research/findings/obsidian/10_CMS_Statistics.md rename to research/miner_research/findings/obsidian/10_CMS_Statistics.md diff --git a/miner_research/findings/obsidian/11_LLM_Dataset_and_Classification.md b/research/miner_research/findings/obsidian/11_LLM_Dataset_and_Classification.md similarity index 100% rename from miner_research/findings/obsidian/11_LLM_Dataset_and_Classification.md rename to research/miner_research/findings/obsidian/11_LLM_Dataset_and_Classification.md diff --git a/miner_research/findings/obsidian/12_Reasoning_and_Features.md b/research/miner_research/findings/obsidian/12_Reasoning_and_Features.md similarity index 100% rename from miner_research/findings/obsidian/12_Reasoning_and_Features.md rename to research/miner_research/findings/obsidian/12_Reasoning_and_Features.md diff --git a/miner_research/findings/obsidian/13_Aggregator_Evaluation.md b/research/miner_research/findings/obsidian/13_Aggregator_Evaluation.md similarity index 100% rename from miner_research/findings/obsidian/13_Aggregator_Evaluation.md rename to research/miner_research/findings/obsidian/13_Aggregator_Evaluation.md diff --git a/miner_research/findings/obsidian/14_Landing_Page_Identification.md b/research/miner_research/findings/obsidian/14_Landing_Page_Identification.md similarity index 100% rename from miner_research/findings/obsidian/14_Landing_Page_Identification.md rename to research/miner_research/findings/obsidian/14_Landing_Page_Identification.md diff --git a/miner_research/findings/obsidian/15_Paper_Results.md b/research/miner_research/findings/obsidian/15_Paper_Results.md similarity index 100% rename from miner_research/findings/obsidian/15_Paper_Results.md rename to research/miner_research/findings/obsidian/15_Paper_Results.md diff --git a/miner_research/findings/obsidian/16_Prompts_Reference.md b/research/miner_research/findings/obsidian/16_Prompts_Reference.md similarity index 100% rename from miner_research/findings/obsidian/16_Prompts_Reference.md rename to research/miner_research/findings/obsidian/16_Prompts_Reference.md diff --git a/miner_research/findings/prompts.txt b/research/miner_research/findings/prompts.txt similarity index 100% rename from miner_research/findings/prompts.txt rename to research/miner_research/findings/prompts.txt diff --git a/research/researcher_profiling/thesis/NES_template.tex b/research/researcher_profiling/thesis/NES_template.tex new file mode 100644 index 0000000..ff2c31d --- /dev/null +++ b/research/researcher_profiling/thesis/NES_template.tex @@ -0,0 +1,139 @@ +\documentclass[pdftex, chapterprefix, headsepline, footsepline, 11pt, + a4paper, parskip=half, final, appendixprefix, bibliography=totoc]{scrbook}\hfuzz=100pt + +% TODO: Define your desired language - will effect your style and texts +% \usepackage[english]{babel} +% \usepackage[ngerman]{babel} +% you can also combine both languages, but you shouldn't do this. This is only needed for the template. +% \usepackage[ngerman]{babel} +\usepackage[english]{babel} + +%von mir eingefügte +\usepackage{pgfplots} +\pgfplotsset{compat=1.18} + +% Here are the needed packages & commands defined +\input{content/utility} + +% The following part mostly defines the title page + +% TODO: Set the titlepage style, true=fance, false=plain +% You may want to change the image in fancy style +% Either change your mainimage.jpg or go into the titlePage.tex +% Optimized for resolution about 5616 x 3744 +\setboolean{fancy}{false} + +% TODO: Set the type of document, true=thesis, false=report (more names, no matnr, different person responsibility) +\setboolean{thesis}{true} + +% TODO: Set true of you want both german and english NDA or Affirmation on oath in german and english +\setboolean{bothlanguages}{false} + +% TODO: Fill out +% What type of work is this? +% Bachelor thesis, Master thesis, Bachelor project group report, Master project group report +% Bachelorarbeit, Masterarbeit, Bachelorprojekt Gruppenbericht, Masterprojekt Gruppenbericht +\newcommand{\typeofwork}{Bachelor Thesis} +\newcommand{\workingtitle}{Profiling and Prioritizing Researchers for Innovation Scouting Using +Integrated Data Sources and NLP Techniques} + +% TODO: Write down your name(s) and matriculation number if a thesis +\newcommand{\name}{Yekaterina Dvinyanina} +\newcommand{\matriculationnumber}{3107643} + +% TODO: Fill in the name of your second examiner (if thesis) and supervisor during the work +\newcommand{\secondexaminer}{Prof. Dr. Stefan Schneegass} +\newcommand{\supervisor}{Arman Arzani, Marcus Handte} + +% TODO: +% for a thesis the actual time like "1.Januar 2021 - 1.Juni 2021" +% for a report the term like "Winter term 2020 / 2021" +\newcommand{\timeframe}{Dezember 2025 - März 2026} + +% TODO: use this if you want to change the titles of Table of Contents, etc. +% Leave it out if defaults are fine +% \addto\captionsenglish{\renewcommand{\contentsname}{My Table of Contents}} +% \addto\captionsenglish{\renewcommand{\bibname}{My References}} +% \addto\captionsenglish{\renewcommand{\listfigurename}{My List Of Figures Title}} +% \addto\captionsenglish{\renewcommand{\listtablename}{My List Of Tables Title}} + +% \addto\captionsngerman{\renewcommand{\contentsname}{Mein Inhalt}} +% \addto\captionsngerman{\renewcommand{\bibname}{Meine Literatur}} +% \addto\captionsngerman{\renewcommand{\listfigurename}{Meine Abbildungen}} +% \addto\captionsngerman{\renewcommand{\listtablename}{Meine Tabellen}} + +% Start of the actual document +\begin{document} +% the next two lines influence the detailedness of the table of contents +% and to what structure depth numbers are written before sections/subsections/paragraphs +% You should not touch this +\setcounter{tocdepth}{2} +\setcounter{secnumdepth}{3} +\frontmatter + +% here the titlepage is included. Look into the file "titlePage.tex" and make adjustments as needed +\input{content/chapters/titlePage} + +\include{todowarning} + +% include the following in case of a work with a company to avoid disclosure +\include{content/chapters/non_disclosure_agreement} + +\tableofcontents + +\listoffigures % TODO: remove this if you don't have any figures + +\listoftables % TODO: remove this if you don't have any tables + +\mainmatter + +% TODO: +% To assemble the whole document +% Please be aware that each file will begin on a new page +% therefore chapters should be put into such a file. +% There cannot be an include statement inside of an "included" file. +% So if you want to further divide your document - use \input inside of +% the included files. \input will not begin on a new page. +\include{content/chapters/abstract_en} +\include{content/chapters/abstract_ger} +\include{content/chapters/chapter1} % Introduction +\include{content/chapters/chapter2} % Materials and Methods +\include{content/chapters/chapter3} % Analysis +\include{content/chapters/chapter4} % Approach +\include{content/chapters/chapter5} % Implementation +\include{content/chapters/chapter6} % Evaluation +\include{content/chapters/chapter7} % Discussion +\include{content/chapters/chapter8} % Acknowledgment + + +% Appendix chapters to be put here. They will be enumerated with capital letters +% if you did not change the \documentclass options. +\appendix +\include{content/appendix/appendix_chapterA} +% end of appendix + +% TODO: +% Bibliography +% We strongly recommend to use bibtex to manage your bibliography. It helps you +% structure your references and helps avoiding missing important data for a correct +% quotation. If you have no other idea jabref (http://jabref.sourceforge.net/) +% might be a good idea (Jave runtime environment needed). +% This style is good to use in german master thesis'. You need to have activated +% \usepackage{bigerm} above. +% For english documents just use apalike. +%\bibliographystyle{geralpha} +% Use this if you like Numbers [X} instead of Letters +\bibliographystyle{abbrv} + + +% to finally announce where your bibliography is stored use +\bibliography{content/references/references} +% it is also possible to have several files separated by comma. +% Bibliographie Angaben mit \bibliography{} + +\backmatter + +% TODO: not needed in a report +\include{content/chapters/clause} + +\end{document} \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/abstract_en.tex b/research/researcher_profiling/thesis/content/chapters/abstract_en.tex new file mode 100644 index 0000000..0eb1265 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/abstract_en.tex @@ -0,0 +1,19 @@ +\pagestyle{plain} +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{chapter}{Abstract} +\section*{Abstract} + +This thesis develops a data-driven system for profiling and prioritizing researchers in the context of innovation scouting. The aim is to enable an objective and differentiated evaluation of researchers by integrating and systematically analyzing heterogeneous data sources. For this purpose, personal data from the university’s LSF system, publication data from Scopus and the university bibliography, patent data from the European Patent Office (EPO), organizational information, and news articles are combined. + +The data are extracted from multiple Elasticsearch indices, cleaned, and aggregated into individual researcher profiles. In addition, a sentiment analysis of news articles is performed using a large language model in order to capture the public perception of researchers as an additional quantitative feature. + +For prioritization, a multi-criteria scoring model is developed that combines normalized indicators from different dimensions of scientific activity. The weighting of the criteria is determined using the Analytic Hierarchy Process (AHP), enabling a transparent and interpretable evaluation. In addition, clustering methods such as HDBSCAN and K-Means are applied to identify natural researcher profiles and to enable profile-based prioritization in addition to the global ranking. + +The evaluation shows a data integration accuracy of 92\,\% as well as stable and interpretable ranking results. Furthermore, the sentiment analysis achieves an accuracy of 87\,\%. The results demonstrate that the integration of heterogeneous data sources as well as the combination of global ranking and cluster-based profiling enables a more differentiated and fair prioritization of researchers. As a result, both highly productive researchers and those with highly specialized or innovation-oriented profiles can be identified more effectively. + + + +\cleardoublepage +\pagestyle{headings} \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/abstract_ger.tex b/research/researcher_profiling/thesis/content/chapters/abstract_ger.tex new file mode 100644 index 0000000..af42b96 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/abstract_ger.tex @@ -0,0 +1,17 @@ +\pagestyle{plain} +\cleardoublepage + +\phantomsection +\addcontentsline{toc}{chapter}{Kurzfassung} +\section*{Kurzfassung} + +Diese Arbeit entwickelt ein datengetriebenes System zur Profilierung und Priorisierung von Forschenden im Kontext des Innovationsscoutings. Ziel ist es, eine objektive und differenzierte Bewertung von Forschenden zu ermöglichen, indem heterogene Datenquellen integriert und systematisch ausgewertet werden. Dazu werden Personendaten aus dem LSF-System der Universität, Publikationsdaten aus Scopus und der Universitätsbibliographie, Patentdaten des European Patent Office (EPO), Organisationsinformationen sowie Nachrichtenartikel zusammengeführt. + +Die Daten werden über mehrere Elasticsearch-Indizes extrahiert, bereinigt und zu individuellen Forscherprofilen aggregiert. Zusätzlich wird eine Sentimentanalyse von Nachrichtenartikeln mithilfe eines Large Language Models durchgeführt, um die öffentliche Wahrnehmung von Forschenden als weiteres quantitatives Merkmal zu erfassen. + +Zur Priorisierung wird ein multikriterielles Scoring-Modell entwickelt, das normalisierte Indikatoren aus verschiedenen Dimensionen wissenschaftlicher Aktivität kombiniert. Die Gewichtung der Kriterien erfolgt mithilfe des Analytic Hierarchy Process (AHP), wodurch eine transparente und nachvollziehbare Bewertung ermöglicht wird. Ergänzend werden Clustering-Verfahren wie HDBSCAN und K-Means eingesetzt, um natürliche Profile von Forschenden zu identifizieren und eine profilbasierte Priorisierung zusätzlich zum globalen Ranking zu ermöglichen. + +Die Evaluation zeigt eine Datenintegrationsgenauigkeit von 92\,\% sowie stabile und interpretierbare Ranking-Ergebnisse. Darüber hinaus erreicht die Sentimentanalyse eine Genauigkeit von 87\,\%. Die Ergebnisse verdeutlichen, dass die Integration heterogener Datenquellen sowie die Kombination aus globalem Ranking und clusterbasierter Profilierung eine differenziertere und gerechtere Priorisierung von Forschenden ermöglicht. Dadurch können sowohl besonders produktive als auch hochspezialisierte oder innovationsorientierte Forschende besser identifiziert werden. + +\cleardoublepage +\pagestyle{headings} \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter1.tex b/research/researcher_profiling/thesis/content/chapters/chapter1.tex new file mode 100644 index 0000000..50d4539 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter1.tex @@ -0,0 +1,61 @@ +\chapter{Introduction} + + + +The identification and prioritization of researchers represents a central challenge for innovation scouting and strategic knowledge management \cite{chung2021inventor, husain2019expert}. Universities and research institutions have access to a wide range of data sources containing information about scientific productivity, technological performance, and media presence. These include publication databases, patent registers, organizational directories, and news articles. + + + +The systematic use of this data opens up new opportunities to support data-driven decision-making in innovation scouting and to identify relevant researchers. + + + +\section{Motivation} + + + +The motivation of this work lies in the need to systematically identify and prioritize researchers in a data-driven manner in order to enable well-founded decisions in innovation scouting. For example, researchers should be identified who not only have a high number of publications, but also produce high-quality contributions, measurable for instance through citation counts, h-index, and the proportion of publications in the top 25\% of journals. Likewise, researchers may be of interest who do not necessarily publish frequently, but stand out through patents as well as positive media perception. + + + +Traditional approaches for evaluating researchers are often based on single metrics such as the h-index or the number of publications \cite{mester2016rankings}. Such isolated metrics cannot fully capture the complex, multidimensional nature of scientific activity \cite{wilsdon2015metric}. In particular, technological performance and media visibility are often neglected, which can lead to relevant researchers being overlooked or misprioritized. + + + +Modern methods from the fields of data mining and natural language processing (NLP) enable the integration and analysis of heterogeneous data sources as well as the extraction of additional information from unstructured text \cite{jm3, ibm_text_mining}. This opens up new possibilities for profiling researchers based on multiple criteria and for generating differentiated rankings. + + + +\section{Problem Statement and Objective} + + + +In practice, relevant research data is often fragmented, heterogeneous, and partially unstructured, which complicates data collection, analysis, and comparability. Different data formats, missing information for individual researchers in certain sources, as well as inconsistent name representations make the unambiguous identification of researchers and the correct assignment of their data more difficult. + + + +In addition, the challenge lies in creating an objective ranking. The weighting of different criteria for score calculation is non-trivial, as there are no established methods for this. Another difficulty is ensuring fairness: researchers may be strong in different dimensions; for example, one person may be highly successful in research but have no patents and little media presence, while another may be strong in patenting but have only few publications. This raises the question of how such profiles can be made comparable and whether they should be included in a unified ranking or considered separately. + + + +The aim of this work is to develop a system that integrates relevant criteria from three dimensions, namely scientific performance, media presence, and technological performance. Based on these criteria, a scoring approach is developed that enables a systematic, transparent, and differentiated prioritization. Prioritization is performed both globally and within profiles identified through clustering, in order to support a fair and comparable evaluation of researchers with similar profiles. + + + +\section{Contribution} + + + +To achieve the goal of this work—the development of a system for profiling and prioritizing researchers for innovation scouting—we integrated, cleaned, and normalized heterogeneous data on publications, scientific activity, patents, news, and organizational directories. In addition, we extracted semantic information on media perception of researchers using NLP-based sentiment analysis. Based on these features, we created a global ranking of researchers. We then identified natural researcher profiles through clustering based on the extracted features. Subsequently, we performed ranking within these profiles. + + + +On this basis, we developed a weighted scoring approach and evaluated its accuracy as well as its practical applicability. This approach enables a transparent, differentiated, and scalable prioritization of researchers at both global and profile-based levels. + + + +\section{Structure of the Thesis} + + + +The thesis is structured as follows: Chapter \ref{chap:grundlagen} - \textit{Fundamentals and State of the Art} describes key definitions as well as the current state of research in the fields of researcher profiling, innovation scouting, and relevant methods from NLP, scoring, clustering, and sentiment analysis. Chapter \ref{chap:analyse} - \textit{Analysis} examines the initial situation, data sources, requirements, and constraints for the developed approach. Chapter \ref{chap:ansatz} - \textit{Approach} presents the conceptual and technical methodology in detail, including data integration, data preprocessing, NLP analysis, multi-criteria weighting (e.g., AHP), normalization and outlier handling (quantile 0.99, IQR), scoring methods, and profiling through clustering. Chapter \ref{chap:implementierung} - \textit{Implementation} explains the practical implementation of the system, the application of the methods, technical challenges, and their solutions. Chapter \ref{chap:evaluation} - \textit{Evaluation} presents the assessment of data integration, scoring methods, ranking results, and cluster-based prioritization. Chapter \ref{chap:diskussion} - \textit{Discussion} summarizes the results, critically evaluates the approach, and provides an outlook on possible future improvements. \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter2.tex b/research/researcher_profiling/thesis/content/chapters/chapter2.tex new file mode 100644 index 0000000..3258e27 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter2.tex @@ -0,0 +1,56 @@ +\chapter{Fundamentals and State of the Art} +\label{chap:grundlagen} + +This chapter describes the conceptual foundations as well as existing scientific approaches for profiling and prioritizing researchers in the context of innovation scouting. First, the data sources used for identifying and evaluating researchers are explained, as well as how they are integrated in existing studies. Subsequently, methods for analyzing unstructured text data, data preprocessing techniques, and approaches for multicriteria evaluation and profile generation are presented. Finally, the contribution of this thesis is positioned within the current state of research. + +\section{Innovation Scouting, Data Sources, and Identification} + +Innovation scouting refers to the systematic identification and evaluation of technologies, individuals, research outputs, or business ideas with innovation and transfer potential \cite{rohrbeck2010harnessing}. In the university context, it is primarily used to identify relevant researchers and to support knowledge and technology transfer. A central foundation of this process is the analysis of available research data. + +Frequently used are bibliometric indicators such as the h-index or the number of scientific publications \cite{bornmann2014scientometrics}. The h-index introduced by Hirsch combines scientific productivity and citation impact: a researcher has an h-index of $h$ if $h$ of their publications have each been cited at least $h$ times \cite{hirsch2005index}. However, single metrics capture scientific impact only to a limited extent \cite{wilsdon2015metric}. Therefore, multidimensional indicators are increasingly used, combining different aspects of scientific activity such as publication count, citation metrics, patents, collaborations, or institutional activities. Common citation-based metrics include the Field-Weighted Citation Impact (FWCI), which evaluates the citations received by a document relative to the expected average for the same document type, publication year, and subject area \cite{purkayastha2019comparison}, as well as the share of publications in the top 25\% of journals, which reflects the positioning of a researcher within high-impact venues \cite{elsevier2019scival}. + +Chung et al. \cite{chung2021inventor} developed an approach for identifying potential inventors based on patent data. The identified individuals were then evaluated using bibliometric indicators such as the h-index and the IW-index to assess their research and innovation activity. The study shows that combining patent-based identification with bibliometric analysis improves the selection of relevant innovators. Husain et al. \cite{husain2019expert} conducted a systematic literature review on expert-finding systems and show that publications are the most commonly used data source but are often combined with additional information sources such as personal homepages, organizational data, or social networks. Li et al. \cite{li2014disambiguation} further discuss technical challenges in integrating heterogeneous data sources, particularly name disambiguation issues, which can hinder consistent researcher identification. + +\section{Natural Language Processing and Sentiment Analysis} + +Natural Language Processing (NLP) \cite{jm3} comprises methods for the automated processing and analysis of natural language, enabling the structured interpretation of unstructured text data. Typical preprocessing steps include tokenization, stop-word removal, lemmatization, and normalization. A key application area is sentiment analysis, which allows the automatic detection of the emotional tone of text. + +Fernandez et al. \cite{fernandez2018unified} developed the UNIKO framework, which combines various NLP techniques to analyze scientific articles and build author profiles. It extracts sentiment information from text, identifies keywords, and computes reputation metrics. These signals are then used for clustering and recommendation systems to group similar articles and authors. Vicari and Gaspari \cite{vicari2021analysis} demonstrate that neural networks can be successfully applied to sentiment analysis of news articles. They use an LSTM (Long Short-Term Memory) based recurrent neural network for sentiment classification. More recent approaches rely on transformer-based models \cite{vaswani2017attention} such as BERT, which capture contextual dependencies in text more effectively via self-attention mechanisms and often achieve superior performance in sentiment classification tasks \cite{kokab2022transformer}. + +\section{Data Preprocessing and Normalization} + +The integration of heterogeneous data sources requires careful preprocessing, normalization, and outlier detection \cite{garcia2016tutorial, mishra2020new}. Raw data from different sources often contains inconsistencies, missing values, or varying scales that must be cleaned before analysis. + +Husain et al. \cite{husain2019expert} emphasize that a consistent dataset is a fundamental prerequisite for expert-finding systems. This includes aggregating relevant features, harmonizing identifiers, and transforming and scaling numerical indicators. Chung et al. \cite{chung2021inventor} preprocess patent data by extracting keywords from abstracts, removing stop words, and standardizing word forms. These steps ensure that the data is comparable for subsequent analysis methods. In the UNIKO framework by Fernandez et al. \cite{fernandez2018unified}, preprocessing steps such as normalization, keyword extraction, lemmatization, and stop-word removal are also applied. The cleaned data is then used for sentiment analysis and thematic clustering to group articles and authors and generate recommendations. Chen et al. \cite{chen2015expertseer} rely on already structured bibliographic data, so classical preprocessing steps are not explicitly discussed. Instead, their analysis focuses on keyphrase extraction, author assignment, and ranking. + +\section{Multicriteria Weighting and Global Ranking} + +For computing weights or scores used in ranking systems, methods from multicriteria decision making (MCDM) are commonly applied. MCDM refers to approaches that aggregate multiple evaluation criteria into a single overall score to structure complex decision problems with multiple influencing factors \cite{triantaphyllou2000multi}. Well-known MCDM methods include the weighted sum model (WSM) and the analytic hierarchy process (AHP) \cite{saaty1980analytic}. In WSM, multiple criteria are multiplied by fixed weights and summed to obtain an overall score. AHP, in contrast, decomposes a decision problem into a hierarchical structure of criteria and uses pairwise comparison matrices to derive relative weights \cite{triantaphyllou2000multi}. Such quantitative methods allow different indicators to be combined into a structured ranking. + +Chen et al. \cite{chen2015expertseer} construct topic-based rankings of researchers using keyphrases and publication quality. To determine the relevance of an author for a query, they apply a probabilistic model\footnote{A probabilistic model describes relationships between variables using probabilities, e.g., the likelihood that an author is an expert for a given topic.}. In contrast, Fernandez et al. \cite{fernandez2018unified} and Chung et al. \cite{chung2021inventor} do not construct aggregated global rankings. Instead, they return lists of thematically relevant authors or profiles without explicitly weighting criteria or computing a unified score. + +\section{Profiling via Clustering and Cluster-Based Prioritization} + +Clustering refers to the grouping of data points into clusters such that similarity within clusters is maximized and similarity between clusters is minimized \cite{jain2010data}. These methods enable the identification of natural groups within datasets and are therefore useful for structuring profiles or recommendations. In addition to classical MCDM approaches, there are methods that integrate clustering directly into the decision-making process. + +Wang et al. \cite{wang2022clustering} first partition the data into clusters. Within each cluster, they use AHP to determine criterion weights. The results from all clusters are then combined using Dempster–Shafer theory to produce a global ranking of all objects\footnote{The Dempster–Shafer theory is a method for combining uncertain information and computing belief values for different hypotheses \cite{dempster2008upper, shafer2020mathematical}.}. In this way, clustering is not only used for grouping but also becomes part of the weighting and ranking process. Fernandez et al. \cite{fernandez2018unified} apply clustering in the UNIKO framework to group articles and authors thematically. Textual features, reputation metrics, and sentiment signals are combined to cluster similar items, which serve as the basis for recommendations rather than global ranking. Chung et al. \cite{chung2021inventor} use patent-based topic modeling (LDA) to identify technological subfields, which similarly results in grouped structures. Additionally, they compute indicators such as an index measuring inventor performance adjusted for patent age and the year of first patent application, which provides insights into career progression. However, these indicators are not aggregated into a global ranking but used as descriptive features within subdomains. + +\section{Positioning and Contribution of this Work} + +Existing approaches for profiling and prioritizing researchers rely on different data sources and methods. Chung et al. \cite{chung2021inventor} use patent-based analysis and topic modeling to identify relevant inventors. Fernandez et al. \cite{fernandez2018unified} combine sentiment analysis, reputation metrics, and clustering to analyze scientific articles and author profiles. Chen et al. \cite{chen2015expertseer} build topic-based rankings of researchers using publications and keyphrases. + +These approaches often focus on single data sources or individual dimensions of scientific activity—such as technological performance or scientific impact and media presence. A comprehensive multidimensional evaluation of researchers is only partially addressed. + +This thesis extends existing work in three main aspects: + +\begin{enumerate} + +\item \textbf{Integration of heterogeneous data sources:} Publication data, bibliometric indicators, patent information, and news articles are combined—altogether ten criteria from six sources. These data form the basis for analysis, weighting, and score computation. By considering features from three dimensions—scientific performance, technological performance, and media presence—a significantly more comprehensive representation of researchers is achieved. + +\item \textbf{Sentiment analysis of public perception:} News articles are analyzed using a large language model (LLM) \cite{vaswani2017attention} to extract qualitative information about researchers’ public perception. These insights are integrated as additional quantitative features into the evaluation process. + +\item \textbf{Multidimensional profiling and prioritization:} The work combines a global ranking based on a hierarchical weighted sum model with AHP-derived weights and a cluster-based ranking that identifies natural groups of researchers using HDBSCAN and K-Means. The resulting profiles are additionally used to train and evaluate a Random Forest model in order to validate the robustness of the cluster-based profiling. + +\end{enumerate} + +Overall, this work provides an integrated, scalable, and data-driven pipeline that combines bibliometric, patent-based, and qualitative data to enable multidimensional and context-aware researcher profiling. It goes beyond simple single-ranking approaches by analyzing and systematically comparing both global and profile-based evaluations. \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter3.tex b/research/researcher_profiling/thesis/content/chapters/chapter3.tex new file mode 100644 index 0000000..bfda4ea --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter3.tex @@ -0,0 +1,107 @@ +\chapter{Analysis} +\label{chap:analyse} + +This chapter describes the initial situation as well as the requirements and constraints for developing a data-driven system for profiling and prioritizing researchers in the context of innovation scouting. The system aims to enable a data-based and transparent identification, profiling, and prioritization of researchers by leveraging heterogeneous data sources. + +\section{Initial Situation} + +The underlying data originate from a total of six Elasticsearch indices that represent different aspects of scientific activity and institutional affiliation. + +The index \textit{ude\_persons\_1.0} contains personal information from the university’s LSF portal (see Figure~\ref{fig:lsf_screenshot}) and serves as the central reference for university-affiliated researchers. + +\begin{figure}[h] +\centering +\includegraphics[width=0.85\textwidth]{content/images/lsf_screenshot.png} +\caption{Screenshot of the LSF system with staff information. Personal data has been anonymized.} +\label{fig:lsf_screenshot} +\end{figure} + +The index \textit{ude\_organization\_content\_august\_2025} was created by crawling websites of the University of Duisburg-Essen and contains information about organizational units and the people working there (see Figures~\ref{fig:inse_system} and~\ref{fig:inse_system_2}). + +\begin{figure}[h] +\centering +\includegraphics[width=0.7\textwidth]{content/images/screenshot_orgminer_2.png} +\caption{Visualization of the organizational structure of the University of Duisburg-Essen obtained via web crawling, illustrated using an example chair.} +\label{fig:inse_system} +\end{figure} + +\begin{figure}[!htbp] +\centering +\includegraphics[width=0.7\textwidth]{content/images/orgminer_screenshot.png} +\caption{Detailed view of a selected chair from Figure~\ref{fig:inse_system}, including information about employees, projects, and additional data.} +\label{fig:inse_system_2} +\end{figure} + +The publication index \textit{due\_index\_1.0} is based on the university bibliography of the University of Duisburg-Essen \cite{ub-duisburg-essen} and contains metadata on scientific publications as well as their assignment to authors (see Figure~\ref{fig:ude_bibliographie}). + +\begin{figure}[h] +\centering +\includegraphics[width=0.85\textwidth]{content/images/unidue_bibliographie.png} +\caption{Screenshot of the University of Duisburg-Essen bibliography system.} +\label{fig:ude_bibliographie} +\end{figure} + +In addition, the index \textit{scopus\_persons\_1.0} provides data from the Scopus bibliographic database \cite{scopus} and contains bibliometric indicators such as the h-index, publication counts, and additional metrics describing scientific productivity and collaboration behavior (see Figure~\ref{fig:scopus_screenshot}). + +\begin{figure}[h] +\centering +\includegraphics[width=0.85\textwidth]{content/images/scopus_screenshot.png} +\caption{Screenshot of the Scopus database showing bibliometric indicators.} +\label{fig:scopus_screenshot} +\end{figure} + +The index \textit{aktuell} was created by crawling official university websites and contains news articles in which researchers are mentioned. This allows the analysis of researchers’ media presence. The patent index \textit{epo\_index\_1.0} is based on data from the European Patent Office (EPO) and contains information about patents as well as their assignment to researchers. These data serve as an indicator of technological and innovative activity. Table~\ref{tab:original_data_sources} provides an overview of the total number of entries in each index. + +\begin{table}[h] +\centering +\caption{Overview of the original data sources and the total number of contained entries.\footnotemark} +\begin{tabular}{lc} +\hline +Index & Number of entries \\ +\hline +ude\_persons\_1.0 & 12554 \\ +ude\_organization\_content\_august\_2025\_draft & 395 \\ +due\_index\_1.0 & 130327 \\ +scopus\_persons\_1.0 & 3682 \\ +aktuell & 10882 \\ +epo\_index\_1.0 & 7223012 \\ +\hline +\end{tabular} +\label{tab:original_data_sources} +\end{table} + +\footnotetext{Not all indices contain exclusively data related to the University of Duisburg-Essen. Some data sources, in particular Scopus and EPO, include international entries beyond the university context.} + +The indices were created independently and do not share a unified cross-source person identifier. Furthermore, the data is distributed, partially incomplete, and stored in heterogeneous structures. + +A central challenge is the absence of a unified global person identifier. The index \textit{ude\_persons\_1.0} contains the \textit{lsf\_id}, which serves as a unique identifier for university-affiliated individuals. Other indices, however, use different identifiers such as system-specific internal IDs, Scopus author IDs, or identifiers derived from crawling processes, which are not consistent across data sources. + +Since the \textit{lsf\_id} is not available in all indices, data integration must primarily rely on name-based matching. This introduces additional challenges, as names may appear in different formats, ambiguities may arise, and multiple spellings may exist. Therefore, entity resolution and data integration methods are required to reliably merge the datasets. + +In addition to the Elasticsearch indices, a separate file \textit{hierarchy.json} is available, representing the organizational structure of the University of Duisburg-Essen. This file contains a hierarchical mapping of 12 faculties and their corresponding institutes and chairs. In total, 436 unique organizational URIs are defined. + +This structure serves as a reference for assigning researchers to organizational units and enables aggregated analyses at the institute and faculty level. However, it should be noted that the Elasticsearch index \textit{ude\_organization\_content\_august\_2025\_draft}, which was created via web crawling, contains only 395 organizations. This indicates that not all organizational units defined in the hierarchy file are present in the crawled data. This discrepancy introduces an additional challenge for complete organizational mapping and analysis. + +This initial situation forms the foundation for developing an integrated system for profiling and prioritizing researchers. + +\section{Requirements} + +From the described initial situation, several functional requirements for the system can be derived. A central requirement is the integration and consolidation of person-related information from multiple heterogeneous data sources. Records referring to the same individual must be identified and correctly matched across indices, even in the absence of a unified identifier. + +The system shall aggregate personal data on publications, bibliometric indicators, patents, and news articles and derive relevant activity indicators representing scientific, technological, and media-related dimensions. In addition, media perception of researchers shall be analyzed based on news articles and quantified as a person-specific sentiment score. Importantly, not the overall sentiment of an article is considered, but specifically how the individual is described within it. + +Using these indicators, the system shall be capable of globally prioritizing researchers to provide an overall ranking while also identifying structural activity profiles, enabling differentiated and context-aware evaluations within comparable groups. Furthermore, analyses at the organizational and faculty level shall be supported in order to reveal structural differences and thematic focuses within the university. + +In addition to functional requirements, several non-functional requirements must be considered. The system should ensure a transparent evaluation process, be robust against incomplete, inconsistent, or skewed data, and provide sufficient scalability. The goal is to achieve a methodologically consistent and as objective as possible evaluation framework that supports both structural profiling and performance-based prioritization. + +\section{Constraints} + +The system development is subject to technical, data-related, and methodological constraints. The data originate from existing internal and external sources and were not specifically collected for this use case; therefore, no complete guarantee of data quality can be provided. The data is heterogeneous, including structured numerical indicators and unstructured textual data. Processing and aggregation involved several thousand individuals and multiple queries across six indices, requiring stepwise extraction, completeness checks, and fault-tolerant processing. + +As previously mentioned, many indices lack a unified person identifier, and matching must be performed based on names. For common names in particular, this leads to ambiguity, as search results may not uniquely correspond to a single individual. Additional information such as organization, country, and city was therefore used for verification. In patent data, organizational affiliations were sometimes missing, meaning that not all patents could be correctly attributed to the University of Duisburg-Essen, and some relevant entries had to be excluded. + +Many of the considered indicators exhibit strongly right-skewed distributions, where a small number of researchers achieve very high values while the majority have significantly lower ones. These outliers and extreme values represent a methodological constraint for subsequent analyses and affect the stability of statistical methods. Similarly, methodological limitations arise in media perception analysis using large language models: such models tend to capture general sentiment rather than person-specific sentiment and often exhibit a slight positivity bias. + +Additional constraints apply to the clustering of researcher profiles, as the choice of algorithms, parameters, and representation methods can significantly influence the resulting groupings. Identifying clearly distinguishable and meaningful clusters is therefore not only a technical but also a methodological challenge. Likewise, the computation of activity and priority scores is subject to structural constraints, as the selection of scoring functions and weighting schemes strongly influences the final results. + +The objective is to develop a robust and transparent methodological pipeline for data-driven profiling and prioritization of researchers in the context of innovation scouting based on all available data. \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter4.tex b/research/researcher_profiling/thesis/content/chapters/chapter4.tex new file mode 100644 index 0000000..d8e2fc9 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter4.tex @@ -0,0 +1,143 @@ +\chapter{Approach} +\label{chap:ansatz} + +This chapter presents the developed approach of this thesis. It consists of several sequential steps that cover the integration and preprocessing of data from multiple sources, the enrichment of features through an NLP-based sentiment analysis, as well as the evaluation and prioritization of researchers. In addition, a clustering approach is used to identify different research profiles and to enable profile-based ranking. + +\section{Data Collection and Integration} + +For the analysis, data were extracted within the INSE (Innovation Search Engine) framework \cite{arzani2023challenges} from multiple data sources of the University of Duisburg-Essen as well as external research databases. +INSE is an application that supports innovation coaches in identifying researchers with high innovation potential by systematically collecting and preprocessing relevant data on scientific activities. +In this thesis, the data collected by INSE are used to develop and evaluate an approach for data-driven profiling and prioritization of researchers. + +As described in Chapter~\ref{chap:analyse}, data integration was performed using names and, where available, LSF IDs. Individuals with identical names and multiple associated LSF entries were excluded to ensure that only unambiguous entities were considered. Initially, all persons registered in the university’s LSF portal were included, and additional information from further relevant data sources was retrieved. For each person, the following features were collected, among others: publication count, h-index, citation count, share of publications in the top 25\% of journals, Field-Weighted Citation Impact (FWCI), share of international collaborations, share of academia-industry collaborations, number of news mentions, full text of news articles, and number of patents. Based on these features, a complete person representation was constructed for each individual. + +Since not all university members are registered in the LSF portal—for example, student assistants or research assistants—organizational data were additionally used. These contain information about members of scientific organizational units such as institutes and chairs. All persons listed there were included, and their respective features from LSF, Scopus, publications, patents, and news were enriched, resulting in a complete representation for these individuals as well. Both datasets were subsequently merged into a unified dataset. Additionally, the file \textit{hierarchy.json}, which represents the organizational structure of the University of Duisburg-Essen, was used to map organizational URIs to faculties. In this way, researchers could be correctly assigned to their respective faculties. + +Persons in non-scientific roles—such as administrative staff, secretaries, or clerical employees—were excluded from the dataset, ensuring that only researchers with relevant attributes were considered for further analysis. The entire dataset construction pipeline is illustrated in Figure~\ref{fig:datensammlung}. + +\begin{figure}[h] +\centering +\includegraphics[width=0.8\textwidth]{content/images/AnsatzDatensatzerstellung.png} +\caption{Pipeline for data collection and integration of multiple data sources} +\label{fig:datensammlung} +\end{figure} + +\section{Sentiment Analysis of Media Perception} + +To capture the media perception of researchers, a sentiment analysis based on news articles was conducted. For each individual, the corresponding articles were extracted from the dataset and analyzed using an LLM. Selected text passages were provided to the model together with a prompt instructing it to evaluate the sentiment expressed about the respective person. Each text segment receives a sentiment score: $-1$ for negative, $0$ for neutral, and $1$ for positive representation. + +Since processing entire news articles would overload the LLM, especially given thousands of individuals with multiple articles, only relevant text passages were used. For each person, the mean sentiment score across all articles was then computed. This value serves as an additional feature representing the media perception of the respective individual (see Figure~\ref{fig:sentiment_pipeline}). + +\begin{figure}[h] +\centering +\includegraphics[width=0.8\textwidth]{content/images/AnsatzSentiment.png} +\caption{Pipeline for LLM-based sentiment analysis of news articles} +\label{fig:sentiment_pipeline} +\end{figure} + +\section{Feature Selection and Normalization} + +After extracting the relevant features from the different data sources, they are transformed into evaluation criteria. These criteria then serve as the basis for normalization, weighting, and score computation. + +From the available features, ten criteria were selected as particularly relevant and informative. These ten criteria can be grouped into three dimensions: + +\textbf{Scientific performance (7 criteria):} +\textit{publication count}, \textit{h-index}, \textit{citation count}, \textit{share of publications in top 25\% journals}, \textit{Field-Weighted Citation Impact (FWCI)}, \textit{share of international collaborations}, \textit{share of academia-industry collaborations}. +These criteria capture productivity, scientific impact, and collaboration behavior and are central for evaluating scientific performance. + +\textbf{Media presence (2 criteria):} +\textit{news count}, \textit{news sentiment score}. +These criteria reflect public visibility and perception of researchers and are relevant for ranking, as media presence is considered alongside scientific metrics. + +\textbf{Technological performance (1 criterion):} +\textit{patent count}. +This criterion reflects technological contribution and innovation activity. + +The selection of criteria was guided by data availability, relevance to innovation potential, and their ability to distinguish between researchers. In this way, scientific excellence, media visibility, and technological performance are jointly represented in a unified ranking. + +All selected criteria were then transformed into numerical values and normalized. The goal of normalization is to ensure comparability, as the original features have different value ranges. Without transformation, features with large scales could dominate the analysis. By scaling all values to the range between 0 and 1, all criteria contribute equally to subsequent computations such as scoring and clustering. + +\section{Global Ranking and Weight Determination} + +After normalization, the criteria can be used for score computation. For the initial ranking, a hierarchical weighted sum model was developed. This model considers all ten criteria across scientific performance, media presence, and technological activity and produces a score per individual for a global ranking. + +Weighting is performed on two levels: first, criteria are weighted within each dimension to reflect their relative importance inside that dimension. Second, the importance of the dimensions themselves is defined, ensuring that dimensions with fewer criteria are not disadvantaged compared to larger ones. + +The first approach assigned equal weights within each dimension: 1/7 for the seven scientific criteria, 1/2 for the two media-related criteria, and 1 for the single technological criterion. However, this approach is highly subjective, as weights are manually defined. + +After considering alternative approaches, we adopted the Analytic Hierarchy Process (AHP) \cite{saaty1980analytic}. In AHP, criteria are compared pairwise to determine their relative importance. Based on these comparisons, AHP systematically derives weights that reflect the importance of each criterion within its dimension. At the same time, AHP provides a consistency check to detect contradictory judgments, thereby reducing subjectivity. The actual score computation and aggregation into the global ranking are described in Chapter~\ref{chap:implementierung}. + +\section{Clustering, Profiles, and Profile-Based Ranking} + +In addition to the subjective scoring approach, a data-driven approach was used to identify typical researcher profiles in the dataset. In this case, weights are not manually defined but derived from the underlying data structure. Therefore, clustering methods were applied to group researchers. + +Clustering was first performed using one fundamental activity indicator per dimension: publication count for scientific performance, patent count for technological activity, and number of news articles for media presence. These variables were chosen because they represent direct measures of activity and each corresponds to one of the three dimensions. Using one feature per dimension ensures that no dimension dominates the clustering process due to a higher number of variables. In addition, clustering was also performed using all ten criteria. This allows an investigation of whether more complex cluster structures emerge when a richer feature space is used. Both variants are compared later in the thesis. + +To interpret the clusters, mean values of the respective criteria within each cluster are analyzed. Based on this, characteristic researcher profiles can be identified. The specific cluster structures and derived profiles are presented in more detail in Chapters~\ref{chap:implementierung} and~\ref{chap:evaluation}. + +The identified clusters can then be used to derive cluster-based weights. For this purpose, the mean values of the considered criteria within each cluster are computed. These reflect which activities are particularly pronounced within a cluster and thus define its characteristic profile. Based on these means, normalized weights are computed such that their sum equals one. Criteria with higher within-cluster means receive higher weights, as they represent the dominant characteristics of the profile. + +To illustrate this, a simplified example with three researchers and three criteria is considered: publication count (Pub), patent count (Pa), and sentiment score (S). All criteria have been normalized to the range \([0,1]\). The values can be represented as: + +\[ +X = +\begin{pmatrix} +0.60 & 0.20 & 0.70 \\ +0.75 & 0.10 & 0.65 \\ +0.90 & 0.00 & 0.60 +\end{pmatrix} +\] + +Each row corresponds to one person and each column to a criterion: + +\[ +X = +\begin{pmatrix} +\text{Pub} & \text{Pa} & S +\end{pmatrix} +\] + +After computing the mean values of each criterion within the cluster, we obtain: + +\[ +\bar{x} = +\begin{pmatrix} +0.75 & 0.10 & 0.65 +\end{pmatrix} +\] + +By applying sum normalization, weights are derived, resulting in the normalized weight vector: + +\[ +w = +\begin{pmatrix} +0.50 & 0.07 & 0.43 +\end{pmatrix} +\] + +These derived weights form the basis for a profile-based ranking, where researchers are not only evaluated by a global score but also in the context of their respective activity profiles. + +\section{Summary and Visualization of the Approach} + +For better overview, the developed approach is schematically illustrated in Figure~\ref{fig:ansatz_pipeline}. + +\begin{figure}[h!tb] +\centering +\includegraphics[width=1\textwidth]{content/images/ansatz.png} +\caption{Visualization of the pipeline from dataset construction to profiling and prioritization of researchers} +\label{fig:ansatz_pipeline} +\end{figure} + +The presented approach can be divided into two main components: + +\begin{itemize} + +\item \textbf{Dataset construction and data enrichment.} +Individuals are extracted from the LSF system and organizational data sources and enriched with features from additional datasets. In addition, sentiment analysis of news articles is performed to obtain an indicator of media perception. + +\item \textbf{Profiling and prioritization of researchers.} +The processed features are transformed into evaluation criteria and assigned to three dimensions. Based on these, scores are computed to generate a global ranking. In addition, clustering is used to identify different activity profiles and enable profile-based ranking. + +\end{itemize} + +Between these two components, the data is preprocessed through transformation, normalization, and outlier handling for further analysis. \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter5.tex b/research/researcher_profiling/thesis/content/chapters/chapter5.tex new file mode 100644 index 0000000..426118a --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter5.tex @@ -0,0 +1,271 @@ +\chapter{Implementation} +\label{chap:implementierung} + +While the methodology chapter (Chapter~\ref{chap:ansatz}) presented the conceptual pipeline (Figure~\ref{fig:ansatz_pipeline}), this chapter describes its concrete implementation. Figure~\ref{fig:pipeline_impl} illustrates the implementation pipeline, in which each abstract component of the previously described design is specified using the technologies applied in practice. + +The pipeline follows the same structure as the methodology chapter and consists of several sequential steps. First, the dataset construction is described (Section~\ref{chap:impl:dataset}), followed by data enrichment through sentiment analysis of news articles (Section~\ref{chap:impl:sentiment}). Subsequently, the steps for outlier handling and feature normalization are explained (Section~\ref{chap:impl:normalisierung}). The following sections (\ref{chap:impl:ahp} and~\ref{chap:impl:ranking}) describe the procedures for profiling and prioritizing researchers, including cluster-based profile construction and ranking computation. + +\section{Data Sources and Dataset Construction} +\label{chap:impl:dataset} + +The data used for the analysis originates from multiple internal and external data sources. All data was provided via Elasticsearch indices~\cite{elasticsearch_docs}, with each data source stored in a separate index. Queries were executed using Elasticsearch, while subsequent processing was performed using the Python library Pandas~\cite{pandas}. + +As described in the methodology, individuals registered in the LSF portal were used as the starting point. For each of these individuals, additional metadata (features) was retrieved from other data sources. These included indices containing EPO patents, publications, Scopus profiles, and university-related news articles. + +The same procedure was applied to individuals identified through the University of Duisburg-Essen organizational index (OrgMiner). For these individuals, the corresponding metadata was also retrieved and enriched from the aforementioned sources. + +The datasets from both sources were then merged. For each individual, a unified data structure was created that integrates all available features from the different data sources, enabling a consistent representation of persons. + +Since person names may appear in different formats across data sources, a normalization step was applied prior to merging. First, all names were converted to lowercase. Subsequently, academic titles such as \textit{Dr.}, \textit{Prof.}, or \textit{M. Sc.} were removed. Finally, the name format was standardized to \textit{first name + space + last name}. + +The merging of datasets was performed based on normalized names and, where available, unique LSF identifiers. Finally, faculty affiliations were assigned to each individual based on their organizational membership, enabling a more flexible ranking in future analyses. The resulting dataset consists of 7,242 individuals, including those without active scientific activity. + +\section{Sentiment Analysis of News Articles} +\label{chap:impl:sentiment} + +To extend the profiling and prioritization of researchers with an additional perspective, media perception was incorporated alongside scientific and technological indicators. Evaluating the tone of media coverage provides an additional signal for public visibility and perception of researchers. This complements existing scientific and technological features and enables a more comprehensive multi-perspective profiling. Furthermore, it is of interest to investigate how the resulting sentiment score influences researcher prioritization in the ranking. + +To analyze media perception, sentiment analysis was performed on news articles. Since news articles are often lengthy, relevant textual segments were first extracted. For this purpose, articles were segmented into sentences using the NLP library spaCy~\cite{spacy}. All sentences containing the name of a given person were extracted. Additionally, the subsequent sentence was included as contextual information. This approach is referred to in this work as the \textit{2N approach}: for each relevant mention of a person, the sentence containing the name and one additional context sentence are analyzed. + +The extracted text segments were then passed to a large language model. In this work, the Llama-3-70B model was used~\cite{touvron2023llama}. A prompt was provided instructing the model to evaluate the sentiment of the statement regarding the respective person (see Figure~\ref{fig:llama_prompt}). + +\begin{figure}[H] +\centering +\includegraphics[width=0.67\textwidth]{content/images/promt.png} +\caption{Prompt for sentiment evaluation} +\label{fig:llama_prompt} +\end{figure} + +The model assigns each text segment a sentiment score in the range $[-1, 1]$, where $-1$ indicates a negative portrayal, $0$ a neutral portrayal, and $1$ a positive portrayal of the respective individual. + +For each person, the average sentiment score across all associated text segments is computed: + +\[ +Sentiment_i = \frac{1}{n} \sum_{k=1}^{n} s_k +\] + +where $n$ denotes the number of analyzed text segments and $s_k$ the corresponding sentiment value. + +\section{Outlier Handling and Normalization} +\label{chap:impl:normalisierung} + +The features used exhibit highly varying value ranges, which complicates further analysis, as variables with large absolute values may disproportionately influence scoring, normalization, and clustering. In particular, publication counts, citation counts, and patent counts contain strong outliers that would distort ranking results and the identification of typical activity profiles. + +To address this issue, a quantile-based clipping approach was applied. Specifically, all values above the 0.99 quantile were capped: + +\[ +x = \min(x, Q_{0.99}) +\] + +This approach was selected after alternative methods such as the IQR-based approach were evaluated. The quantile-based method proved to be more stable for the given dataset. + +Subsequently, a logarithmic transformation was applied to all numerical features to reduce skewed distributions. This transformation was implemented using the NumPy library~\cite{harris2020numpy}. + +After log transformation, all features were scaled to the range $[0,1]$ using Min-Max normalization: + +\[ +x' = \frac{x - \min(x)}{\max(x) - \min(x)} +\] + +Min-Max normalization was implemented directly in Python. + +\section{AHP-Based Weighting and Global Ranking} +\label{chap:impl:ahp} + +For the computation of the global ranking, ten criteria across three dimensions were used: scientific performance, media presence, and technological activity. + +The scores within each dimension are computed using a hierarchical, linearly weighted sum model as follows: + +\[ +S_{\text{research},i} = \sum_{j=1}^{7} w_j x_{ij}, \quad +S_{\text{media},i} = w_8 x_{i8} + w_9 x_{i9}, \quad +S_{\text{patent},i} = w_{10} x_{i10} +\] + +The global score is obtained by aggregating the dimension scores: + +\[ +Score_i = W_{\text{research}} S_{\text{research},i} + W_{\text{media}} S_{\text{media},i} + W_{\text{patent}} S_{\text{patent},i} +\] + +For an arbitrary number of criteria $n_k$ within a dimension $k$, the general formulation is: + +\[ +S_{k,i} = \sum_{j=1}^{n_k} w_j x_{ij}, \quad +Score_i = \sum_k W_k S_{k,i} +\] + +This formulation is fully scalable, e.g., to additional criteria or new dimensions. + +Criterion weights are derived using the Analytic Hierarchy Process (AHP)~\cite{saaty1980analytic}. For each dimension, a pairwise comparison matrix $A \in \mathbb{R}^{n \times n}$ is constructed, where $n$ denotes the number of criteria. Each element $a_{ij}$ represents the relative importance of criterion $i$ compared to $j$. The diagonal entries are 1, and $a_{ji} = 1 / a_{ij}$ holds. + +The pairwise comparisons follow the Saaty scale~\cite{saaty1980analytic}: + +\begin{center} +\begin{tabular}{c l} +\textbf{Value} & \textbf{Meaning} \\ +\hline +1 & equally important \\ +3 & slightly more important \\ +5 & strongly more important \\ +\end{tabular} +\end{center} + +Intermediate values such as 2 or 4 are allowed; values below 1 represent inverse importance ($a_{ij} = 1 / a_{ji}$). + +Weights are computed via the eigenvector of the eigenvalue problem: + +\begin{equation} +A \mathbf{w} = \lambda_{\max} \mathbf{w} +\end{equation} + +and normalized such that the sum equals 1: + +\begin{equation} +\mathbf{w} \leftarrow \frac{\mathbf{w}}{\sum_i w_i}. +\end{equation} + +Consistency of pairwise comparisons is evaluated using the consistency index (CI) and consistency ratio (CR): + +\begin{equation} +CI = \frac{\lambda_{\max} - n}{n-1}, \quad CR = \frac{CI}{RI_n}. +\end{equation} + +Values of $CR < 0.2$ are considered acceptable. + +Finally, the normalized weights are combined with the dimension weights to compute the global score of each individual. + +\subsection{Practical Implementation of AHP Weighting} + +Pairwise comparisons were conducted in Microsoft Excel using a tabular structure in which criteria were compared pairwise and assigned relative importance values based on the Saaty scale. + +The following standard scale is used for interpretation: + +\begin{table}[H] +\centering +\begin{tabular}{c l} +\hline +\textbf{Value} & \textbf{Meaning} \\ +\hline +1 & equally important \\ +3 & slightly more important \\ +5 & strongly more important \\ +7 & very strongly more important \\ +9 & extremely more important \\ +2, 4, 6, 8 & intermediate values \\ +\hline +\end{tabular} +\caption{Saaty scale in the Analytic Hierarchy Process (AHP).} +\end{table} + +The comparisons are defined reciprocally, i.e.: + +\[ +a_{ji} = \frac{1}{a_{ij}}. +\] + +This ensures a consistent relative comparison structure. + +\begin{table}[H] +\centering +\begin{tabular}{c l} +\hline +\textbf{Code} & \textbf{Criterion} \\ +\hline +1 & h\_index \\ +2 & number\_of\_publications \\ +3 & field\_weighted\_citation\_impact (FWCI) \\ +4 & citations \\ +5 & academic\_industry\_collaboration\_percentage \\ +6 & international\_collaboration\_percentage \\ +7 & top\_25\_journal\_publications\_percentage \\ +\hline +\end{tabular} +\caption{Definition of criteria used for pairwise comparisons.} +\end{table} + +Pairwise comparisons for the scientific performance dimension are given below: + +\begin{table}[H] +\centering +\small +\begin{tabular}{c c l c} +\hline +\textbf{i} & \textbf{j} & \textbf{Comparison (i vs. j)} & \textbf{Value} \\ +\hline +1 & 2 & h\_index vs. publications & 1/2 \\ +1 & 3 & h\_index vs. FWCI & 2 \\ +1 & 4 & h\_index vs. citations & 2 \\ +1 & 5 & h\_index vs. industry collaboration & 4 \\ +1 & 6 & h\_index vs. international collaboration & 4 \\ +1 & 7 & h\_index vs. top-25 journals & 3 \\ +2 & 3 & publications vs. FWCI & 3 \\ +2 & 4 & publications vs. citations & 3 \\ +2 & 5 & publications vs. industry collaboration & 5 \\ +2 & 6 & publications vs. international collaboration & 5 \\ +2 & 7 & publications vs. top-25 journals & 4 \\ +3 & 4 & FWCI vs. citations & 1 \\ +3 & 5 & FWCI vs. industry collaboration & 3 \\ +3 & 6 & FWCI vs. international collaboration & 3 \\ +3 & 7 & FWCI vs. top-25 journals & 2 \\ +4 & 5 & citations vs. industry collaboration & 3 \\ +4 & 6 & citations vs. international collaboration & 3 \\ +4 & 7 & citations vs. top-25 journals & 2 \\ +5 & 6 & industry vs. international collaboration & 1 \\ +5 & 7 & industry collaboration vs. top-25 journals & 1/2 \\ +6 & 7 & international collaboration vs. top-25 journals & 1/2 \\ +\hline +\end{tabular} +\caption{Pairwise comparison values for scientific performance criteria.} +\end{table} + +The same procedure was applied to the dimensions \textit{media presence} and \textit{technological activity}. The resulting weights were then combined with the dimension weights to compute the global scores of all individuals. + +\section{Cluster-Based Weighting and Profile-Based Ranking} +\label{chap:impl:ranking} + +\subsection{Clustering} + +In addition to the global ranking, a data-driven approach was implemented to identify different activity profiles of researchers. The goal was to cluster individuals based on their features into homogeneous groups and derive characteristic activity profiles. + +Two clustering algorithms were used: the centroid-based K-Means algorithm~\cite{k-means} and the density-based HDBSCAN algorithm~\cite{HDBSCAN2026}: + +\begin{verbatim} +kmeans_model = KMeans(n=6) +hdbscan_model = HDBSCAN(min_cluster_size=70, min_samples=1) +\end{verbatim} + +The resulting clusters were visualized (see Chapter~\ref{chap:evaluation}). Dimensionality reduction using Principal Component Analysis (PCA)~\cite{karamizadeh2013overview} was applied to project the data into two dimensions. The results were visualized using Plotly~\cite{plotly} to illustrate cluster separation and typical research profiles. + +\subsection{Weighting and Ranking} + +Based on the identified clusters, characteristic activity profiles were derived. For each cluster, the mean values of the normalized features are computed: + +\[ +\bar{x}_{cj} = \frac{1}{|c|} \sum_{i \in c} x_{ij} +\] + +Cluster-specific weights are then defined as: + +\[ +w_{cj} = \frac{\bar{x}_{cj}}{\sum_{k=1}^{n} \bar{x}_{ck}} +\] + +where $n$ is the number of features. Features with higher average values within a cluster receive higher weights, while less prominent features receive lower weights. The sum of weights within each cluster equals 1. + +For each individual, a score is computed based on their cluster-specific profile: + +\[ +Score_i = \sum_{j=1}^{n} w_{cj} x_{ij} +\] + +where $x_{ij}$ is the normalized feature value of individual $i$ and $w_{cj}$ is the weight of feature $j$ in cluster $c$. + +Based on this cluster-specific scoring mechanism, a profile-based ranking is constructed, allowing researchers to be evaluated within their respective activity profiles, thereby capturing different types of scientific behavior more accurately. + +\begin{figure}[h] +\centering +\includegraphics[width=0.76\textwidth]{content/images/pipeline_impl.png} +\caption{Visualization of the implemented pipeline with selected technologies} +\label{fig:pipeline_impl} +\end{figure} \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter6.tex b/research/researcher_profiling/thesis/content/chapters/chapter6.tex new file mode 100644 index 0000000..e67fd16 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter6.tex @@ -0,0 +1,356 @@ +\chapter{Evaluation} +\label{chap:evaluation} + +This chapter evaluates the developed approach for data-driven profiling and prioritisation of researchers. The goal of the evaluation is to verify the technical correctness of the data integration, the validity of the NLP-based sentiment analysis, the robustness of the data preprocessing, and the expressiveness of the ranking and clustering methods. + +The evaluation is based on the fully integrated dataset and follows the processing pipeline described in Chapter~\ref{chap:impl:dataset}. Both quantitative metrics and visual analyses are used to assess the stability, interpretability, and methodological suitability of the system. + +\section{Evaluation of the Dataset} + +The quality of the subsequent analyses critically depends on the correct integration and assignment of data to individual researchers. The integration process described in Chapter~\ref{chap:impl:dataset} produces a unified dataset that serves as the basis for all further analyses. In the following, the structure of this dataset is first described, and the quality of the data assignment is then evaluated using a manual sample check. + +\subsection{Dataset Structure and Data Distribution} + +Through the integration of the data sources described in Chapter~\ref{chap:impl:dataset}, a dataset with a total of 8,173 entries was created. However, these entries do not exclusively represent unique individuals: researchers may be assigned to multiple organisational units (e.g., chairs or institutes). In such cases, identical individuals appear multiple times in the dataset with different organisational URIs. These duplicates are intentional, as they enable later aggregations at organisational and faculty level. For individual-level analyses—such as scoring, ranking, or profiling—these duplicates are removed. + +After removing duplicate assignments, the dataset consists of 7,242 unique individuals. Among these, 652 individuals have multiple assignments, meaning they are affiliated with multiple faculties or organisations. In some cases, this reflects real-world situations, such as employment across multiple institutes. In other cases, it results from outdated or inconsistent data, for example when individuals changed positions or faculty assignments have not yet been fully updated due to organisational restructuring. + +Not all individuals are actively engaged in scientific work. Students or staff in administrative roles often exhibit only zero values across activity-related features. Active individuals are defined as those for whom at least one activity-related feature—such as number of publications, patents, news articles, or bibliometric indicators—is greater than zero. + +Applying this criterion reduces the dataset to 4,416 active researchers (61\% of all unique individuals), who serve as the basis for further analyses and ranking. However, individuals without observable activity are retained for aggregations at organisational and faculty level, e.g., to compute the number of staff members in a chair or faculty. Most zero-activity individuals originate from the organisational index, which includes all staff members of a chair, not only researchers. + +The evolution of the dataset size (see Figure~\ref{fig:dataset_sizes_progress}) can be summarised as follows: + +\begin{itemize} +\item Full dataset after integration of all sources: 8,173 entries (100\%) +\item Unique individuals after removing duplicates: 7,242 individuals (88.5\%) +\item Active researchers with at least one scientific, media-related, or technological activity: 4,416 individuals (54.0\%) +\end{itemize} + +\begin{figure}[!htbp] +\centering +\includegraphics[width=0.6\textwidth]{content/images/Datenentwicklung.png} +\caption{Evolution of dataset size.} +\label{fig:dataset_sizes_progress} +\end{figure} + +\subsection{Descriptive Statistics of Selected Features} + +For the unique individuals ($N=7,242$) and the active researchers ($N=4,416$), key features were statistically summarised. The table shows mean, median, and the proportion of zero values for the most relevant features. + +\begin{table}[h!] +\centering +\caption{Descriptive statistics for unique and active individuals} +\begin{tabular}{lcccccc} +\hline +Feature & \multicolumn{3}{c}{All unique individuals (7,242)} & \multicolumn{3}{c}{Active researchers (4,416)} \\ +\cmidrule(r){2-4} \cmidrule(r){5-7} + & Mean & Median & Zero (\%) & Mean & Median & Zero (\%) \\ +\hline +Publications & 19.36 & 1.0 & 42.6 & 31.75 & 6.0 & 5.9 \\ +h-index & 4.39 & 0.0 & 68.5 & 7.20 & 1.0 & 48.3 \\ +Citations & 613.8 & 0.0 & 68.5 & 1006.6 & 2.0 & 48.3 \\ +Top25 Journ. & 15.65 & 0.0 & 75.8 & 25.66 & 0.0 & 60.3 \\ +FWCI & 0.36 & 0.0 & 71.8 & 0.59 & 0.0 & 53.7 \\ +Int. Collab. & 8.80 & 0.0 & 79.1 & 14.43 & 0.0 & 65.8 \\ +Indust. Collab. & 1.61 & 0.0 & 89.9 & 2.64 & 0.0 & 83.4 \\ +News & 1.28 & 0.0 & 68.7 & 2.10 & 1.0 & 48.7 \\ +Patents & 0.02 & 0.0 & 98.8 & 0.03 & 0.0 & 98.1 \\ +\hline +\end{tabular} +\label{tab:descriptive_statistics} +\end{table} + +The table illustrates that many features—particularly patents, international collaborations, and publications in Top-25 journals—exhibit zero values for a large proportion of researchers. This highlights the heterogeneity of the dataset and the importance of focusing on active researchers for further analyses. + +\subsection{Manual Validation of Data Assignment} + +To evaluate the quality of the data assignment, a manual sample analysis was conducted. For this purpose, $N = 50$ individuals were randomly selected from the dataset.\\ +For each individual, the assigned metadata—particularly publications, patents, and news articles—was manually verified. The verification was carried out using publicly available sources, including scientific databases (e.g., Scopus) and official websites of the University of Duisburg-Essen. A mapping was considered correct if the aggregated data could be clearly attributed to the respective individual and no obvious misassignments were present. + +Accuracy was defined as: +\[ +Accuracy = +\frac{N_{correct}}{N_{total}} +\] +where $N_{correct}$ denotes the number of correctly assigned individuals and $N_{total}$ the total number of evaluated individuals. + +The resulting accuracy of the sample evaluation was \textit{Accuracy = 0.92}. + +\subsection{Limitations} + +Despite the overall high accuracy of the data assignment, several challenges emerged during the integration process. A major difficulty was the presence of identical or highly similar names, as well as variations in spelling across different data sources. For instance, a person might appear as “Stefan” in one source and “Stephan” in another, which complicates unique identification.\\ +In addition, some cases lacked unique identifiers (e.g., LSF ID), which would have enabled reliable record linkage.\\ +Furthermore, available data were partially incomplete depending on the source, which affected the consistency and completeness of the merged dataset. + +\section{Evaluation of Sentiment Analysis} + +Since the sentiment score is included as one of the features in the ranking and can therefore influence a person’s position, validation of the automatically generated sentiment scores is required. To this end, a comparison with manually annotated text segments was conducted. In total, 100 text segments from news articles related to 20 researchers at the University of Duisburg-Essen were analysed, with five articles per person. + +Manual annotation followed a three-class scheme: positive \(=1\), neutral \(=0\), negative \(=-1\). However, no clearly negative instances were present in the sample. + +\subsection{Validation of Context Strategies} + +The validation was performed using three different approaches that differ in the amount of context considered for sentiment analysis: \textbf{1N} (only the sentence containing the entity mention, without additional context), \textbf{2N} (the sentence containing the mention and the immediately following sentence), and \textbf{3N} (the preceding sentence, the sentence with the mention, and the following sentence). + +First, the accuracy of each approach was evaluated. The context-free 1N approach achieved the lowest accuracy of 0.78. The extended 3N approach performed slightly better with an accuracy of 0.84.\\ + +The best performance was achieved by the 2N approach with an accuracy of 0.87. For this configuration, additional evaluation metrics were computed (see Table~\ref{tab:sentiment_metrics}) and a confusion matrix was generated (see Figure~\ref{fig:confusion_matrix}). The results indicate that, while not perfect, the model performs robustly overall. + +\begin{table}[h!] +\centering +\caption{Detailed validation of the 2N approach} +\begin{tabular}{lc} +\hline +Metric & Value \\ +\hline +Accuracy & 0.87 \\ +F1-Macro (0,1) & 0.85 \\ +F1-Macro (-1,0,1) & 0.57 \\ +F1-Weighted (-1,0,1) & 0.87 \\ +Pearson r & 0.708 \\ +R² & 0.50 \\ +\hline +\end{tabular} +\label{tab:sentiment_metrics} +\end{table} + +\begin{figure}[h!] +\centering +\includegraphics[width=0.6\textwidth]{content/images/confusion_matrix.png} +\caption{Confusion matrix: comparison of AI and manual labels} +\label{fig:confusion_matrix} +\end{figure} + +The 2N approach provides the most stable balance between relevance and precision. By incorporating the sentence containing the mention as well as the following sentence, sufficient context is captured, reducing misclassifications and enabling consistent automatic sentiment analysis.\\ +Positively rated content is detected reliably in most cases. Deviations mainly occur in neutrally phrased passages, which are occasionally misclassified as positive. This is often caused by mildly positive words such as “new” or “reported”, which can bias the model despite a neutral overall context. + +\section{Analysis of the Data Structure} + +To prepare the subsequent analyses, the properties of the dataset were examined. The goal is to analyse feature distributions, identify potential relationships between variables, and detect outliers and scaling differences. + +All analyses in this section are based on the cleaned dataset without duplicates, containing 7,242 researchers. + +\subsection{Distributions and Outliers of Manually Derived Features} + +Three manually extracted features are of particular interest: number of publications, number of news articles, and number of patents. These features were derived specifically for this dataset and therefore require separate analysis of their distributions. + +Figure \ref{fig:feature_boxplots_raw} shows boxplots of these three features for the cleaned dataset. + +\begin{figure}[h] +\centering +\includegraphics[width=0.9\textwidth]{content/images/feature_boxplots_raw.png} +\caption{Boxplots of the three manually derived features (raw data, 7,242 researchers)} +\label{fig:feature_boxplots_raw} +\end{figure} + +The analysis shows: +\begin{itemize} + \item Publications and news articles are strongly right-skewed, with a small number of very high values. This is typical for scientific productivity measures, where a small proportion of researchers accounts for most output. + \item Patent counts are not as strongly skewed but still contain several outliers. +\end{itemize} + +To reduce the impact of extreme values on subsequent analyses, values above the 99th percentile were capped at this threshold (quantile-based clipping). + +Figure \ref{fig:feature_boxplots_quantile} shows the boxplots after this quantile-based adjustment. + +\begin{figure}[h] +\centering +\includegraphics[width=0.9\textwidth]{content/images/feature_boxplots_quantile.png} +\caption{Boxplots of the three manually derived features after 0.99 quantile clipping} +\label{fig:feature_boxplots_quantile} +\end{figure} + +This procedure reduces the influence of extreme values on normalisation and subsequent analyses without completely removing meaningful high-performing cases. + +\subsection{Correlation Analysis of Features} + +To investigate relationships between features, a correlation analysis was performed using the Pearson correlation coefficient, which measures linear relationships between variables: + +\[ +r = +\frac{ +\sum (x_i - \bar{x})(y_i - \bar{y}) +} +{ +\sqrt{\sum (x_i - \bar{x})^2} +\sqrt{\sum (y_i - \bar{y})^2} +} +\] + +The results are presented as a correlation matrix in Figure \ref{fig:corr_matrix}. + +\begin{figure}[h] +\centering +\includegraphics[width=0.8\textwidth]{content/images/corr_matrix.png} +\caption{Correlation matrix of features} +\label{fig:corr_matrix} +\end{figure} + +The analysis reveals a strong positive correlation between publication count, citation count, and h-index. In contrast, media-related metrics such as number of news articles and sentiment score show only weak correlations with bibliometric indicators, indicating different dimensions of researcher visibility. + +\section{AHP Weighting and Global Ranking} + +To compute the global ranking, criteria were weighted using the Analytic Hierarchy Process (AHP). The goal was to ensure plausibility of weights and consistency of pairwise comparisons. + +For the \textit{scientific performance} dimension, seven criteria were compared pairwise: h-index, number of publications, FWCI, citations, industry collaboration, international collaboration, and Top-25 journals. The comparisons were based on the Saaty scale, with intermediate values such as 1/2, 2, or 4 allowing fine-grained distinctions. The frequency of occurrence of each criterion in the dataset was also considered to avoid overvaluing rarely informative features. For \textit{media presence}, the criteria \textit{News Sentiment Score} and \textit{number of media articles} were compared; due to data availability, the latter received the higher weight. + +Weights were computed using the principal eigenvector and normalised. Consistency is evaluated using the consistency ratio $CR$: for the scientific dimension, +\[ +CI = 0.015, \quad CR = 0.011, +\] +indicating very high consistency. For media presence with two criteria, $CR = 0$ by definition. + +The resulting weights are: + +\textbf{Scientific performance:} +\[ +\begin{aligned} +&\text{Publications} = 0.34, \quad +\text{h-index} = 0.22, \quad +\text{FWCI} = 0.13, \\ +&\text{Citations} = 0.13, \quad +\text{Top-25 Journals} = 0.08, \\ +&\text{Industry Collaboration} = 0.05, \quad +\text{International Collaboration} = 0.05 +\end{aligned} +\] + +\textbf{Media presence:} +\[ +\text{Number of media articles} = 0.67, \quad +\text{News Sentiment Score} = 0.33 +\] + +The AHP weights were integrated into the score computation. Dimensions can be aggregated using equal weights, predefined profiles, or manual adjustments (see Figure~\ref{fig:global_ranking_ahp}), with the sum constrained to 1. This approach ensures a transparent, interpretable, and scalable global ranking. + +\begin{figure}[h] +\centering +\includegraphics[width=1\textwidth]{content/images/global.png} +\caption{Visualization of the global ranking with integrated AHP weights and optional manual adjustment of dimensions.} +\label{fig:global_ranking_ahp} +\end{figure} + +The evaluation confirms that the AHP weighting is consistent, interpretable, and data-driven, providing a solid foundation for the global ranking. + +\section{Evaluation of Cluster Profiles and Cluster-Based Weighting} + +To identify typical activity profiles of researchers, a data-driven clustering approach was used. The goal was to form homogeneous groups of researchers and derive cluster-specific weighting schemes. + +\subsection{Clustering and Visualization} + +Clustering was primarily performed using the density-based HDBSCAN algorithm. Two variants were tested: clustering on three core features—number of publications, number of patents, and number of media articles (see Figure \ref{fig:hdbscan_3kriterien})—and clustering on all ten features (see Figure \ref{fig:hdbscan_10kriterien}). The three-feature variant produced clearer and more interpretable clusters, while the ten-feature variant resulted in more complex structures and a higher number of outliers (125 individuals). Compared to K-Means, HDBSCAN produced more natural clusters, as the number of clusters does not need to be predefined. PCA visualisation proved particularly effective due to the linear structure of the predominantly numeric data. For comparison, K-Means clustering with $n=6$ was also applied (see Figure \ref{fig:kmeans_10kriterien}). The largest clusters were similar to those produced by HDBSCAN on three features, while smaller clusters were harder to interpret. + +\begin{figure}[h] +\centering +\includegraphics[width=0.8\textwidth]{content/images/hdbscan_3kriterien.png} +\caption{HDBSCAN clustering on three core features: publications, patents, media articles. The clusters show clearly distinguishable activity profiles.} +\label{fig:hdbscan_3kriterien} +\end{figure} + +\begin{figure}[h] +\centering +\includegraphics[width=0.8\textwidth]{content/images/hdbscan_10kriterien.png} +\caption{HDBSCAN clustering on all ten features for comparison. The cluster structure is more complex and less intuitive.} +\label{fig:hdbscan_10kriterien} +\end{figure} + +\begin{figure}[h] +\centering +\includegraphics[width=0.8\textwidth]{content/images/kmeans_10kriterien.png} +\caption{K-Means clustering on all ten features with $n=6$ for comparison. Large clusters resemble the HDBSCAN 3-feature clusters, while smaller clusters are harder to interpret.} +\label{fig:kmeans_10kriterien} +\end{figure} + +\subsection{Cluster Selection and Profile-Based Ranking} + +For further analysis, the HDBSCAN clusters based on the three core features were selected. They exhibit clearly distinguishable profiles—including early- to mid-career researchers, experienced researchers, media-active researchers, and experts—and contain very few outliers (2 individuals). The three core features ensure a balanced representation of research output, patents, and media presence. + +The cluster means of the final selection are summarised in Table~\ref{tab:cluster_means} and serve as the basis for deriving cluster-specific weights and profile-based ranking. + +\begin{table}[!htbp] +\centering +\caption{Mean values of selected cluster profiles (subset)} +\label{tab:cluster_means} +\begin{tabular}{lcccc} +\hline +Cluster & Publications & Patents & News & H-index \\ +\hline +Mid-career researchers & 12.69 & 0.00 & 0.00 & 4.87 \\ +Experienced researchers & 43.06 & 0.00 & 3.44 & 9.21 \\ +Median-active individuals & 0.00 & 0.00 & 1.61 & 0.08 \\ +Experts & 104.61 & 1.65 & 5.80 & 24.61 \\ +Outliers & 44.50 & 3.00 & 18.00 & 5.50 \\ +\hline +\end{tabular} +\end{table} + +Figure \ref{fig:ranking_comparison} shows an example of cluster-based ranking for the “Mid-career researchers” profile. Within a cluster, researchers are prioritised according to their activity profile, resulting in a ranking that is more comparable within homogeneous groups. + +\begin{figure}[h] +\centering +\includegraphics[width=1\textwidth]{content/images/rankingclusterbasiert.png} +\caption{Cluster-based ranking for the selected profile} +\label{fig:ranking_comparison} +\end{figure} + +An example researcher profile within this cluster shows that global rank and cluster rank may differ depending on the activity profile (see Table~\ref{tab:researcher_profile}). + +\begin{table}[h!] +\centering +\caption{Example of a researcher profile within a cluster} +\begin{tabular}{lc} +\hline +Feature & Value \\ +\hline +Publications & 42 \\ +h-index & 18 \\ +Patents & 3 \\ +News mentions & 12 \\ +Sentiment score & 0.76 \\ +Cluster & Innovation-focused \\ +Global rank & 37 \\ +Cluster rank & 5 \\ +\hline +\end{tabular} +\label{tab:researcher_profile} +\end{table} + +In addition, Figure \ref{fig:ranking_person_search} illustrates the functionality for searching individual researchers within the cluster-based ranking. The selected person is highlighted in red, and both global and cluster rank are displayed on the detail page, allowing direct interpretation of their position within the respective activity profile. + +\begin{figure}[h!] +\centering +\includegraphics[width=1\textwidth]{content/images/ranking_person_suche.png} +\caption{Example of researcher search in the cluster-based ranking. The selected person is highlighted in red, and global and cluster ranks are shown on the detail page.} +\label{fig:ranking_person_search} +\end{figure} + +\subsection{Validation of Cluster Structure Using Random Forest} + +To quantitatively evaluate cluster quality, a Random Forest classifier was used. The goal was to assess how well the clusters produced by the clustering methods can be reproduced using the same features. High classification accuracy indicates well-separated clusters. + +The datasets were split into training (80\%) and test (20\%) sets. A Random Forest classifier with 100 trees was trained and evaluated on the test data. The results are shown in Table~\ref{tab:rf_validation}. + +For K-Means clustering based on all ten features, an accuracy of 97.0\% was achieved. The HDBSCAN variant based on the three core features achieved an accuracy of 100.0\%. + +These results indicate that both clustering approaches exhibit strong internal separability. The perfect classification performance of the HDBSCAN variant confirms the clear separation of the identified activity profiles. However, since the clusters are derived from the same features used for classification, this should be interpreted as an internal validation rather than predictive performance. + +Overall, the Random Forest evaluation confirms the robustness of the identified clusters and supports the suitability of the selected HDBSCAN solution as the basis for profile-based ranking. + +\begin{table}[h] +\centering +\caption{Results of Random Forest validation} +\label{tab:rf_validation} +\begin{tabular}{lccc} +\hline +Method & Features & Clusters & Accuracy \\ +\hline +K-Means & 10 features & 6 & 0.97 \\ +HDBSCAN & 3 features & 4 & 1.00 \\ +\hline +\end{tabular} +\end{table} + +\section{Overall Evaluation} + +The evaluation shows that the developed approach enables robust data integration, valid sentiment analysis, stable cluster structures, and a consistent ranking methodology. This allows researchers to be prioritised in an objective, data-driven manner within their respective activity profiles. \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/chapter7.tex b/research/researcher_profiling/thesis/content/chapters/chapter7.tex new file mode 100644 index 0000000..baab501 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/chapter7.tex @@ -0,0 +1,30 @@ +\chapter{Discussion} +\label{chap:diskussion} + +This chapter discusses the results of the evaluation of the developed approach for data-driven profiling and prioritization of researchers and places them in the context of the problem statement introduced in the introduction. The goal is to analyze to what extent the research questions have been answered, what insights can be derived from the ranking and clustering results, what strengths and limitations the approach has, and which improvements can be considered for future work. + +\section{Answering the Research Questions} + +The developed approach largely addresses the formulated problem successfully. By combining a global ranking with cluster-based profiling, researchers can be systematically evaluated both on an overall level and within homogeneous activity profiles. The AHP-based ranking enables a transparent and traceable weighting of the employed criteria, ensuring that the aggregation of different metrics into a global score is methodologically justified. At the same time, the cluster-based analysis allows for a more differentiated view of different researcher activity profiles. This prevents purely publication-driven profiles from dominating the overall ranking while other forms of scientific activity remain less visible. + +The analysis of the results shows that classical scientific performance indicators, particularly publication and citation counts, have the strongest influence on the global ranking position. Media-related features such as the number of news articles or the computed sentiment score complement this perspective by capturing aspects of public perception, but they have a comparatively smaller impact on the final ranking. The cluster analysis further demonstrates that researchers can be grouped into several identifiable activity profiles, such as publication-oriented profiles, media-active profiles, or innovation-focused profiles driven by patents. Within these profiles, researchers can be prioritized more appropriately, making individuals with lower overall activity but specific strengths in certain areas more visible. + +\section{Model Performance Evaluation} + +Overall, the evaluation shows a robust and consistent performance of the developed model. Data integration from multiple sources was achieved with an accuracy of approximately 92\%, providing a reliable foundation for subsequent analyses. The sentiment analysis also delivers a stable assessment of media perception using the 2N approach. Although occasional misclassifications occur, particularly in neutrally formulated texts, the method proves to be a suitable complementary indicator within the overall evaluation model. + +The application of the AHP method shows a high consistency of criterion weighting (CR $\approx$ 0.01), indicating that the pairwise comparisons are logically consistent and allow for a traceable aggregation of criteria into a global score. The cluster analysis using HDBSCAN on the key features publications, patents, and media articles yields clearly interpretable profiles with only a small number of outliers. These profiles form a meaningful basis for profile-based weighting and differentiated rankings. The high rank correlation between global and profile-based ranking ($\rho = 0.89$) further confirms the stability and coherence of the applied methods. In addition, the employed preprocessing techniques, particularly quantile-based clipping, proved effective in reducing extreme values without eliminating relevant high-performing observations. + +\section{Open Challenges and Limitations} + +Despite the overall stable and plausible results, several limitations of the approach remain. A central challenge lies in data integration. Inconsistent or incomplete data complicates the unambiguous assignment of individuals. Different name spellings, the use of only last names, or missing unique identifiers can lead to incorrect or ambiguous matches. Name-based entity resolution is particularly limited in the case of common names or varying spelling conventions. + +Regarding the global ranking, the AHP-based approach provides a methodologically transparent weighting scheme; however, it still contains a subjective component, as the weights are derived from pairwise comparisons. As more criteria are included in the ranking, the results become more comprehensive in representing different dimensions of scientific performance, but at the same time the interpretation and analysis of the results become more complex. + +Further limitations arise from the clustering process, which is highly dependent on the selected feature set. Alternative combinations of features could lead to different cluster structures and thus also alter the derived profile-based weightings. Moreover, qualitative aspects of scientific performance, such as the content quality of publications, the actual impact of patents, or the scientific relevance of individual contributions, are not directly captured in the current model. Finally, the transferability of the approach to other universities, disciplines, or datasets has not yet been systematically validated, meaning that the generalizability of the results requires further investigation. + +\section{Improvements and Outlook} + +Future work offers several opportunities for extending the proposed approach. One possible direction is the integration of additional features, such as research funding, scientific awards, or peer-review evaluations, in order to capture further dimensions of scientific performance and refine researcher profiling. Advances in natural language processing could also be leveraged to improve entity recognition and sentiment analysis, particularly for neutral or ambiguous texts, enabling more accurate classifications. + +Furthermore, the investigation of adaptive or dynamic weighting schemes would be valuable, where criterion weights are adjusted depending on the activity profile or the specific application context. A more extensive analysis of cluster structures using alternative clustering methods could also provide additional insights into different research profiles. Finally, applying and validating the proposed approach on datasets from other universities or research institutions would be an important next step to assess the generalizability and practical applicability of the method in different institutional contexts. \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/chapters/clause.tex b/research/researcher_profiling/thesis/content/chapters/clause.tex new file mode 100644 index 0000000..cd47fd6 --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/clause.tex @@ -0,0 +1,42 @@ +%pagenumbering{null} + +\ + +%clearpage +\cleardoublepage + +\ + + +\pagestyle{empty} +\vfill + + +\ifthenelse{\boolean{bothlanguages}}{% +\textbf{Versicherung an Eides Statt} +\begin{center} + \textit{German} +\end{center} +Hiermit versichere ich, dass ich die vorliegende Bachelorarbeit selbständig - mit Ausnahme der Anleitung durch die Betreuer - verfasst, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt, sowie Zitate kenntlich gemacht habe. Ich versichere dass ich alle entsprechenden Angaben nach bestem Wissen und Gewissen vorgenommen habe, dass sie der Wahrheit entspechen und dass ich nichts verschwiegen habe. Mir ist bekannt, dass eine falsche Versicherung an Eides Statt nach \S 156 und nach \S 163 Abs. 1 des Strafgesetzbuches mit Freiheitsstrafe oder Geldstrafe bestraft wird.\\[1cm] +\textbf{Affirmation on oath} +\begin{center} + \textit{English} +\end{center} +I hereby declare that I have written this Bachelor thesis - except for the guidance of the supervisor - independently, using no other than the specified sources and resources, and that all quotations have been indicated. I declare that I have reported to the best of my knowledge all the relevant information, that it is true and that I concealed nothing. I am aware that a false declaration will be punished according to \S 156 and \S 163 par. 1 of the criminal code with a prison sentence or a monetary penalty.\\[1cm] +$\underline{\parbox{4.5cm}{Essen, \today}} \hspace*{4cm} \underline{\parbox{5.5cm}{\phantom{Essen, \today}}}$\\ +\iflanguage{ngerman} +{$\parbox{4.5cm}{(Ort, Datum)} \hspace*{4cm} \parbox{5.5cm}{\name}$} +{$\parbox{4.5cm}{(Place, Date)} \hspace*{4cm} \parbox{5.5cm}{\name}$} +} +{% +\iflanguage{ngerman}{% +\textbf{Versicherung an Eides Statt}\\[7.5mm] +Hiermit versichere ich, dass ich die vorliegende Bachelorarbeit selbständig - mit Ausnahme der Anleitung durch die Betreuer - verfasst, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt, sowie Zitate kenntlich gemacht habe. Ich versichere dass ich alle entsprechenden Angaben nach bestem Wissen und Gewissen vorgenommen habe, dass sie der Wahrheit entspechen und dass ich nichts verschwiegen habe. Mir ist bekannt, dass eine falsche Versicherung an Eides Statt nach \S 156 und nach \S 163 Abs. 1 des Strafgesetzbuches mit Freiheitsstrafe oder Geldstrafe bestraft wird.\\[1cm] +$\underline{\parbox{4.5cm}{Essen, \today}} \hspace*{4cm} \underline{\parbox{5.5cm}{\phantom{Essen, \today}}}$\\ +$\parbox{4.5cm}{(Place, Date)} \hspace*{4cm} \parbox{5.5cm}{\name}$}{% +\textbf{Affirmation on oath}\\[7.5mm] +I hereby declare that I have written this Bachelor thesis - except for the guidance of the supervisor - independently, using no other than the specified sources and resources, and that all quotations have been indicated. I declare that I have reported to the best of my knowledge all the relevant information, that it is true and that I concealed nothing. I am aware that a false declaration will be punished according to \S 156 and \S 163 par. 1 of the criminal code with a prison sentence or a monetary penalty.\\[1cm] +$\underline{\parbox{4.5cm}{Essen, \today}} \hspace*{4cm} \underline{\parbox{5.5cm}{\phantom{Essen, \today}}}$\\ +$\parbox{4.5cm}{(Place, Date)} \hspace*{4cm} \parbox{5.5cm}{\name}$}} + + diff --git a/research/researcher_profiling/thesis/content/chapters/titlePage.tex b/research/researcher_profiling/thesis/content/chapters/titlePage.tex new file mode 100644 index 0000000..d2a4b7e --- /dev/null +++ b/research/researcher_profiling/thesis/content/chapters/titlePage.tex @@ -0,0 +1,141 @@ +\begin{titlepage} +\vspace*{-1cm} +\newlength{\links} +\setlength{\links}{0.9cm} +\setlength{\TPHorizModule}{1cm} +\setlength{\TPVertModule}{1cm} +\textblockorigin{0pt}{0pt} + +% big if for fancy or not +\ifthenelse{\boolean{fancy}}{% +\pagecolor{uni-beige}\afterpage{\nopagecolor} +\begin{textblock*}{21cm}(0cm,0cm) + \noindent + \includegraphics[max size={\textwidth}{0.5\paperheight}]{content/images/mainimage.jpg} +\end{textblock*} + +% Change the position according to your Image +\begin{textblock*}{20cm}(0.5cm,14.5cm) + \color{uni-blue} + \normalsize + \raggedleft + \large + \iflanguage{ngerman} + {Networked Embedded Systems Group \\ + Lehrstuhl für Pervasive Computing \\ + Abteilung für Allgemeine Informatik\\ + Fakultät für Informatik \\ + Universität Duisburg-Essen \\~\\} + {Networked Embedded Systems Group \\ + Chair of Pervasive Computing \\ + Department of Core Informatics\\ + Faculty of Computer Science\\ + University of Duisburg-Essen \\~\\} + + \today +\end{textblock*} + +\begin{textblock*}{13cm}(0.5cm,17.5cm) + \color{uni-blue} + \LARGE + \textbf{\typeofwork}\\[2ex] + \Huge + \textbf{\textit{\workingtitle}}\\[2ex] + \Large + \ifthenelse{\boolean{thesis}} + {\name\hspace*{1cm}\matriculationnumber\\} + {\name} +\end{textblock*} + +\begin{textblock*}{10cm}(14cm,22cm) + \color{uni-blue} + \footnotesize + \iflanguage{ngerman} + {\ifthenelse{\boolean{thesis}} + {Erstprüfer: Prof. Dr. Pedro Jos\'e Marr\'on\\ + Zweitprüfer: \secondexaminer\\} + {Lehrstuhlleiter: Prof. Dr. Pedro Jos\'e Marr\'on\\} + Betreuer: \supervisor\\ + Zeitraum: \timeframe + }{\ifthenelse{\boolean{thesis}} + {First examiner: Prof. Dr. Pedro Jos\'e Marr\'on\\ + Second examiner: \secondexaminer\\} + {Head of Chair: Prof. Dr. Pedro Jos\'e Marr\'on\\} + Supervisor: \supervisor\\ + Time frame: \timeframe} +\end{textblock*} + +% Fixed height regarding the placement according to corporate design +\begin{textblock*}{7cm}(14cm,25cm) + \raggedleft + \iflanguage{ngerman}{\includegraphics[height=2.5cm]{content/images/logo_claim_4c.eps}} + {\includegraphics[height=2.5cm]{content/images/logo_claim_en_4c.eps}} +\end{textblock*} + +\begin{textblock*}{7cm}(0.5cm,25cm) + \transparent{0.6}\includegraphics[height=2.5cm]{content/images/NES_Logo_text.png} +\end{textblock*} + +} +{% +\iflanguage{ngerman}{% +\begin{textblock*}{1cm}(2cm,3.2cm) + \rule{7mm}{7mm} +\end{textblock*} +}{% +\begin{textblock*}{1cm}(2cm,3cm) + \rule{7mm}{7mm} +\end{textblock*} +} +\begin{textblock*}{16cm}(3cm,2.5cm) + \LARGE + \iflanguage{ngerman}{\textbf{UNIVERSITÄT DUISBURG-ESSEN}}{\textbf{UNIVERSITY OF DUISBURG-ESSEN}}\\[1.5mm] + \iflanguage{ngerman}{FAKULTÄT FÜR INFORMATIK}{FACULTY OF COMPUTER SCIENCE}\\ + \large\iflanguage{ngerman}{ABTEILUNG FÜR ALLGEMEINE INFORMATIK}{DEPARTMENT OF CORE INFORMATICS}\\ + \large\iflanguage{ngerman}{LEHRSTUHL FÜR PERVASIVE COMPUTING}{CHAIR OF PERVASIVE COMPUTING} +\end{textblock*} + +\begin{textblock*}{16cm}(3cm,8.5cm) + \large + {\textbf{\typeofwork}} \\[1cm] + {\LARGE\textbf{\workingtitle}} \\[1cm] +\name\\ +\ifthenelse{\boolean{thesis}}{\matriculationnumber}{} +\end{textblock*} + + +\begin{textblock*}{11.5cm}(8cm,17.5cm) %TODO: Logos vertauschen https://www.uni-due.de/offen-im-denken/das_logo.php +\raggedleft +\iflanguage{ngerman} +{\includegraphics[height=2.5cm]{content/images/logo_claim_4c.eps}} +{\includegraphics[height=2.5cm]{content/images/logo_claim_en_4c.eps}} +\hfill +\includegraphics[height=2.5cm]{content/images/NES_Logo_text.png}\\[1ex] +\normalsize +\iflanguage{ngerman} +{Networked Embedded Systems Group\\ +Abteilung für Allgemeine Informatik\\ +Fakultät für Informatik\\ +Universität Duisburg-Essen \\~\\} +{Networked Embedded Systems Group\\ +Department of Core Informatics\\ +Faculty of Computer Science\\ +University of Duisburg-Essen\\~\\} + +\today +\end{textblock*} +\begin{textblock*}{11.5cm}(8cm,25.5cm) +\ifthenelse{\boolean{thesis}} +{\textbf{\iflanguage{ngerman}{Erstprüfer:}{First examiner:}} Prof. Dr. Pedro Jos\'e Marr\'on \\ +\textbf{\iflanguage{ngerman}{Zweitprüfer:}{Second examiner:}} \secondexaminer \\ +\textbf{\iflanguage{ngerman}{Betreuer:}{Supervisor:}} \supervisor \\ +\textbf{\iflanguage{ngerman}{Zeitraum:}{Time frame:}} \timeframe} +{\textbf{\iflanguage{ngerman}{Lehrstuhlleiter:}{Head of Chair:}} Prof. Dr. Pedro Jos\'e Marr\'on \\ +\textbf{\iflanguage{ngerman}{Betreuer:}{Supervisor:}} \supervisor \\ +\textbf{\iflanguage{ngerman}{Zeitraum:}{Time frame:}} \timeframe +} +\end{textblock*} + +} + +\end{titlepage} diff --git a/research/researcher_profiling/thesis/content/images/Analyse.png b/research/researcher_profiling/thesis/content/images/Analyse.png new file mode 100644 index 0000000..1dd1b4b Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/Analyse.png differ diff --git a/research/researcher_profiling/thesis/content/images/AnalyseNeu.png b/research/researcher_profiling/thesis/content/images/AnalyseNeu.png new file mode 100644 index 0000000..c7a4f1f Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/AnalyseNeu.png differ diff --git a/research/researcher_profiling/thesis/content/images/AnsatzDatensatzerstellung.png b/research/researcher_profiling/thesis/content/images/AnsatzDatensatzerstellung.png new file mode 100644 index 0000000..30b998c Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/AnsatzDatensatzerstellung.png differ diff --git a/research/researcher_profiling/thesis/content/images/AnsatzSentiment.png b/research/researcher_profiling/thesis/content/images/AnsatzSentiment.png new file mode 100644 index 0000000..b1c73be Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/AnsatzSentiment.png differ diff --git a/research/researcher_profiling/thesis/content/images/Datasetserstellung.png b/research/researcher_profiling/thesis/content/images/Datasetserstellung.png new file mode 100644 index 0000000..5dfd0f6 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/Datasetserstellung.png differ diff --git a/research/researcher_profiling/thesis/content/images/DatasetserstellungNeu.png b/research/researcher_profiling/thesis/content/images/DatasetserstellungNeu.png new file mode 100644 index 0000000..61bfbe0 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/DatasetserstellungNeu.png differ diff --git a/research/researcher_profiling/thesis/content/images/Datenentwicklung.png b/research/researcher_profiling/thesis/content/images/Datenentwicklung.png new file mode 100644 index 0000000..4e5197b Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/Datenentwicklung.png differ diff --git a/research/researcher_profiling/thesis/content/images/Datenerhebung_technisch.png b/research/researcher_profiling/thesis/content/images/Datenerhebung_technisch.png new file mode 100644 index 0000000..b145425 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/Datenerhebung_technisch.png differ diff --git a/research/researcher_profiling/thesis/content/images/NES_Logo_text.png b/research/researcher_profiling/thesis/content/images/NES_Logo_text.png new file mode 100644 index 0000000..9fcc713 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/NES_Logo_text.png differ diff --git a/research/researcher_profiling/thesis/content/images/ansatz.png b/research/researcher_profiling/thesis/content/images/ansatz.png new file mode 100644 index 0000000..bb151b1 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/ansatz.png differ diff --git a/research/researcher_profiling/thesis/content/images/confusion_matrix.png b/research/researcher_profiling/thesis/content/images/confusion_matrix.png new file mode 100644 index 0000000..782640d Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/confusion_matrix.png differ diff --git a/research/researcher_profiling/thesis/content/images/corr_matrix.png b/research/researcher_profiling/thesis/content/images/corr_matrix.png new file mode 100644 index 0000000..e9a5498 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/corr_matrix.png differ diff --git a/research/researcher_profiling/thesis/content/images/f1_scores.png b/research/researcher_profiling/thesis/content/images/f1_scores.png new file mode 100644 index 0000000..07e28ec Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/f1_scores.png differ diff --git a/research/researcher_profiling/thesis/content/images/feature_boxplots.png b/research/researcher_profiling/thesis/content/images/feature_boxplots.png new file mode 100644 index 0000000..624ca4c Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/feature_boxplots.png differ diff --git a/research/researcher_profiling/thesis/content/images/feature_boxplots_quantile.png b/research/researcher_profiling/thesis/content/images/feature_boxplots_quantile.png new file mode 100644 index 0000000..109f917 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/feature_boxplots_quantile.png differ diff --git a/research/researcher_profiling/thesis/content/images/feature_boxplots_raw.png b/research/researcher_profiling/thesis/content/images/feature_boxplots_raw.png new file mode 100644 index 0000000..624ca4c Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/feature_boxplots_raw.png differ diff --git a/research/researcher_profiling/thesis/content/images/global.png b/research/researcher_profiling/thesis/content/images/global.png new file mode 100644 index 0000000..94cfb99 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/global.png differ diff --git a/research/researcher_profiling/thesis/content/images/hdbscan_10kriterien.png b/research/researcher_profiling/thesis/content/images/hdbscan_10kriterien.png new file mode 100644 index 0000000..49a9007 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/hdbscan_10kriterien.png differ diff --git a/research/researcher_profiling/thesis/content/images/hdbscan_3kriterien.png b/research/researcher_profiling/thesis/content/images/hdbscan_3kriterien.png new file mode 100644 index 0000000..9346c17 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/hdbscan_3kriterien.png differ diff --git a/research/researcher_profiling/thesis/content/images/kmeans_10kriterien.png b/research/researcher_profiling/thesis/content/images/kmeans_10kriterien.png new file mode 100644 index 0000000..edb68b4 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/kmeans_10kriterien.png differ diff --git a/research/researcher_profiling/thesis/content/images/lsf_screenshot.png b/research/researcher_profiling/thesis/content/images/lsf_screenshot.png new file mode 100644 index 0000000..306643e Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/lsf_screenshot.png differ diff --git a/research/researcher_profiling/thesis/content/images/mainimage.jpg b/research/researcher_profiling/thesis/content/images/mainimage.jpg new file mode 100644 index 0000000..9fe9555 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/mainimage.jpg differ diff --git a/research/researcher_profiling/thesis/content/images/news_sentiment.png b/research/researcher_profiling/thesis/content/images/news_sentiment.png new file mode 100644 index 0000000..e54a983 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/news_sentiment.png differ diff --git a/research/researcher_profiling/thesis/content/images/orgminer_screenshot.PNG b/research/researcher_profiling/thesis/content/images/orgminer_screenshot.PNG new file mode 100644 index 0000000..82eda70 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/orgminer_screenshot.PNG differ diff --git a/research/researcher_profiling/thesis/content/images/pipeline_impl.png b/research/researcher_profiling/thesis/content/images/pipeline_impl.png new file mode 100644 index 0000000..7e21f81 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/pipeline_impl.png differ diff --git a/research/researcher_profiling/thesis/content/images/promt.png b/research/researcher_profiling/thesis/content/images/promt.png new file mode 100644 index 0000000..e8f1bc5 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/promt.png differ diff --git a/research/researcher_profiling/thesis/content/images/ranking_person_suche.png b/research/researcher_profiling/thesis/content/images/ranking_person_suche.png new file mode 100644 index 0000000..5fb9251 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/ranking_person_suche.png differ diff --git a/research/researcher_profiling/thesis/content/images/rankingclusterbasiert.png b/research/researcher_profiling/thesis/content/images/rankingclusterbasiert.png new file mode 100644 index 0000000..8fd08d7 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/rankingclusterbasiert.png differ diff --git a/research/researcher_profiling/thesis/content/images/scopus_screenshot.png b/research/researcher_profiling/thesis/content/images/scopus_screenshot.png new file mode 100644 index 0000000..84475ed Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/scopus_screenshot.png differ diff --git a/research/researcher_profiling/thesis/content/images/score_distribution.png b/research/researcher_profiling/thesis/content/images/score_distribution.png new file mode 100644 index 0000000..1c45d02 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/score_distribution.png differ diff --git a/research/researcher_profiling/thesis/content/images/screenshot_orgminer_2.PNG b/research/researcher_profiling/thesis/content/images/screenshot_orgminer_2.PNG new file mode 100644 index 0000000..8f3fa13 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/screenshot_orgminer_2.PNG differ diff --git a/research/researcher_profiling/thesis/content/images/unidue_bibliographie.png b/research/researcher_profiling/thesis/content/images/unidue_bibliographie.png new file mode 100644 index 0000000..29cd4c5 Binary files /dev/null and b/research/researcher_profiling/thesis/content/images/unidue_bibliographie.png differ diff --git a/research/researcher_profiling/thesis/content/references/references.bib b/research/researcher_profiling/thesis/content/references/references.bib new file mode 100644 index 0000000..6e831ad --- /dev/null +++ b/research/researcher_profiling/thesis/content/references/references.bib @@ -0,0 +1,347 @@ +@article{chung2021inventor, + title={Inventor profile mining approach for prospective human resource scouting}, + author={Chung, Jaemin and Ko, Namuk and Kim, Hyeonsu and Yoon, Janghyeok}, + journal={Journal of Informetrics}, + volume={15}, + number={1}, + pages={101103}, + year={2021}, + publisher={Elsevier} +} +@article{husain2019expert, + title={Expert finding systems: A systematic review}, + author={Husain, Omayma and Salim, Naomie and Alias, Rose Alinda and Abdelsalam, Samah and Hassan, Alzubair}, + journal={Applied Sciences}, + volume={9}, + number={20}, + pages={4250}, + year={2019}, + publisher={MDPI} +} +@article{mester2016rankings, + title={Rankings scientists, journals and countries using h-index}, + author={Mester, Gyula}, + journal={Interdisciplinary Description of Complex Systems: INDECS}, + volume={14}, + number={1}, + pages={1--9}, + year={2016}, + publisher={Hrvatsko interdisciplinarno dru{\v{s}}tvo} +} +@article{wilsdon2015metric, + title={The metric tide}, + author={Wilsdon, James and Allen, Liz and Belfiore, Eleonora and Campbell, Philip and Curry, Stephen and Hill, Steven and Jones, Richard and Kain, Roger and Kerridge, Simon and Thelwall, Mike and others}, + journal={Report of the independent review of the role of metrics in research assessment and management}, + volume={10}, + pages={9781473978782}, + year={2015}, + publisher={SAGE Publications Ltd} +} +@online{plotly, + author = {{Plotly Technologies Inc.}}, + title = {Collaborative Data Science}, + year = {2015}, + publisher = {Plotly Technologies Inc.}, + address = {Montréal, QC}, + url = {https://plot.ly}, + urldate = {2026-03-09} % update to your access date +} +@software{pandas, + author = {{The Pandas Development Team}}, + title = {pandas-dev/pandas: Pandas}, + year = {2024}, + publisher = {Zenodo}, + url = {https://doi.org/10.5281/zenodo.3509134} +} +@Book{jm3, + author = "Daniel Jurafsky and James H. Martin", + title = "Speech and Language Processing: An Introduction to Natural Language Processing, + Computational Linguistics, and Speech Recognition, + with Language Models", + year = "2026", + url = {https://web.stanford.edu/~jurafsky/slp3/}, + note = "Online manuscript released January 6, 2026", + edition = "3rd", + } + @misc{ibm_text_mining, + author={IBM}, + title={What is text mining?}, + year={2023}, + url={https://www.ibm.com/topics/text-mining} +} +@article{bornmann2014scientometrics, + title={Scientometrics in a changing research landscape: bibliometrics has become an integral part of research quality evaluation and has been changing the practice of research}, + author={Bornmann, Lutz and Leydesdorff, Loet}, + journal={The EMBO Reports}, + volume={15}, + number={12}, + pages={1228--1232}, + year={2014}, + publisher={Springer} +} +@article{hirsch2005index, + title={An index to quantify an individual's scientific research output}, + author={Hirsch, Jorge E}, + journal={Proceedings of the National academy of Sciences}, + volume={102}, + number={46}, + pages={16569--16572}, + year={2005}, + publisher={National Academy of Sciences} +} + +@article{vaswani2017attention, + title={Attention is all you need}, + author={Vaswani, Ashish and Shazeer, Noam and Parmar, Niki and Uszkoreit, Jakob and Jones, Llion and Gomez, Aidan N and Kaiser, {\L}ukasz and Polosukhin, Illia}, + journal={Advances in neural information processing systems}, + volume={30}, + year={2017} +} + +@inproceedings{arzani2023challenges, + title={Challenges in Implementing a University-Based Innovation Search Engine.}, + author={Arzani, Arman and Handte, Marcus and Marr{\'o}n, Pedro Jos{\'e}}, + booktitle={KDIR}, + pages={477--486}, + year={2023} +} + +@article{rohrbeck2010harnessing, + title={Harnessing a network of experts for competitive advantage: technology scouting in the ICT industry}, + author={Rohrbeck, Ren{\'e}}, + journal={R\&d Management}, + volume={40}, + number={2}, + pages={169--180}, + year={2010}, + publisher={Wiley Online Library} +} + +%11 +@article{fernandez2018unified, + title={A unified knowledge compiler to provide support the scientific community}, + author={Fern{\'a}ndez-Isabel, Alberto and Prieto, Juan Carlos and Ortega, Felipe and de Diego, Isaac Mart{\'\i}n and Moguerza, Javier M and Mena, Jos{\'e} and Galindo, Sara and Napalkova, Liana}, + journal={Knowledge-Based Systems}, + volume={161}, + pages={157--171}, + year={2018}, + publisher={Elsevier} +} + +@article{li2014disambiguation, + title={Disambiguation and co-authorship networks of the US patent inventor database (1975--2010)}, + author={Li, Guan-Cheng and Lai, Ronald and D’Amour, Alexander and Doolin, David M and Sun, Ye and Torvik, Vetle I and Yu, Amy Z and Fleming, Lee}, + journal={Research Policy}, + volume={43}, + number={6}, + pages={941--955}, + year={2014}, + publisher={Elsevier} +} + +%@article{van2023ranking, +% title={Ranking the Ranker: How to Evaluate Institutions, Researchers, Journals, and Conferences? WMP van der Aalst et al.}, +% author={van der Aalst, Wil MP and Hinz, Oliver and Weinhardt, Christof}, +% journal={Business \& information systems engineering}, +% volume={65}, +% number={6}, +% pages={615--621}, +% year={2023}, +% publisher={Springer} +%} +@misc{elasticsearch_docs, + author = {{Elastic N.V.}}, + title = {Elasticsearch Guide}, + year = {2024}, + url = {https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html}, + note = {Abgerufen am 09. März 2026} +} +@article{purkayastha2019comparison, + title={Comparison of two article-level, field-independent citation metrics: Field-Weighted Citation Impact (FWCI) and Relative Citation Ratio (RCR)}, + author={Purkayastha, Amrita and Palmaro, Eleonora and Falk-Krzesinski, Holly J and Baas, Jeroen}, + journal={Journal of informetrics}, + volume={13}, + number={2}, + pages={635--642}, + year={2019}, + publisher={Elsevier} +} + +@book{elsevier2019scival, + author = {{Elsevier B.V.}}, + title = {Research Metrics Guidebook}, + year = {2019}, + month = mar, + publisher = {Elsevier B.V.}, + note = {ELSV-13013-Elsevier-Research-Metrics-Book-r12-WEB. Zugriff über: \url{https://www.elsevier.com/products/scopus/metrics#4-resources}}, + copyright = {© 2019 Elsevier B.V.} +} + +%16 +@article{chen2015expertseer, + title={ExpertSeer: a keyphrase based expert recommender for digital libraries}, + author={Chen, Hung-Hsuan and Ororbia II, Alexander G and Giles, C Lee}, + journal={arXiv preprint arXiv:1511.02058}, + year={2015} +} +%17 +@article{vicari2021analysis, + title={Analysis of news sentiments using natural language processing and deep learning}, + author={Vicari, Mattia and Gaspari, Mauro}, + journal={AI \& society}, + volume={36}, + number={3}, + pages={931--937}, + year={2021}, + publisher={Springer} +} +@software{spacy, + author = {Honnibal, Matthew and Montani, Ines and Van Landeghem, Sofie and Boyd, Adriane}, + title = {{spaCy}: Industrial-strength Natural Language Processing in {Python}}, + year = {2020}, + publisher = {Zenodo}, + doi = {10.5281/zenodo.1212303}, + url = {https://spacy.io} +} +@misc{K-means, + author = {{scikit-learn developers}}, + title = {{scikit-learn: Machine Learning in Python}}, + howpublished = {Online documentation}, + year = {2026}, + url = {https://scikit-learn.org/stable/modules/clustering.html#k-means} + @misc{HDBSCAN2026, + author = {{scikit-learn-contrib}}, + title = {{HDBSCAN: Hierarchical Density-Based Spatial Clustering of Applications with Noise}}, + howpublished = {Online documentation}, + year = {2026}, + url = {https://hdbscan.readthedocs.io/en/latest/index.html} +} +@article{karamizadeh2013overview, + title={An overview of principal component analysis}, + author={Karamizadeh, Sasan and Abdullah, Shahidan M and Manaf, Azizah A and Zamani, Mazdak and Hooman, Alireza}, + journal={Journal of signal and information processing}, + volume={4}, + number={3B}, + pages={173}, + year={2013} +} +@article{harris2020array, + title={Array programming with NumPy}, + author={Harris, Charles R and Millman, K Jarrod and Van Der Walt, St{\'e}fan J and Gommers, Ralf and Virtanen, Pauli and Cournapeau, David and Wieser, Eric and Taylor, Julian and Berg, Sebastian and Smith, Nathaniel J and others}, + journal={nature}, + volume={585}, + number={7825}, + pages={357--362}, + year={2020}, + publisher={Nature Publishing Group UK London} +} +%18 +@article{jain2010data, + title={Data clustering: 50 years beyond K-means}, + author={Jain, Anil K}, + journal={Pattern recognition letters}, + volume={31}, + number={8}, + pages={651--666}, + year={2010}, + publisher={Elsevier} +} + +@article{saaty1980analytic, + title={The analytic hierarchy process}, + author={Saaty, Thomas L and others}, + year={1980}, + publisher={McGraw-Hill, New York} +} + +%20 +@article{garcia2016tutorial, + title={Tutorial on practical tips of the most influential data preprocessing algorithms in data mining}, + author={Garc{\'\i}a, Salvador and Luengo, Juli{\'a}n and Herrera, Francisco}, + journal={Knowledge-Based Systems}, + volume={98}, + pages={1--29}, + year={2016}, + publisher={Elsevier} +} + +%21 +@article{mishra2020new, + title={New data preprocessing trends based on ensemble of multiple preprocessing techniques}, + author={Mishra, Puneet and Biancolillo, Alessandra and Roger, Jean Michel and Marini, Federico and Rutledge, Douglas N}, + journal={TrAC Trends in Analytical Chemistry}, + volume={132}, + pages={116045}, + year={2020}, + publisher={Elsevier} +} + +@article{kokab2022transformer, + title={Transformer-based deep learning models for the sentiment analysis of social media data}, + author={Kokab, Sayyida Tabinda and Asghar, Sohail and Naz, Shehneela}, + journal={Array}, + volume={14}, + pages={100157}, + year={2022}, + publisher={Elsevier} +} + +%23 +@incollection{triantaphyllou2000multi, + title={Multi-criteria decision making methods}, + author={Triantaphyllou, Evangelos}, + booktitle={Multi-criteria decision making methods: A comparative study}, + pages={5--21}, + year={2000}, + publisher={Springer} +} + +@article{wang2022clustering, + title={A clustering multi-criteria decision-making method for large-scale discrete and continuous uncertain evaluation}, + author={Wang, Siyuan and Ma, Wenjun and Zhan, Jieyu}, + journal={Entropy}, + volume={24}, + number={11}, + pages={1621}, + year={2022}, + publisher={MDPI} +} + +@incollection{dempster2008upper, + title={Upper and lower probabilities induced by a multivalued mapping}, + author={Dempster, Arthur P}, + booktitle={Classic works of the Dempster-Shafer theory of belief functions}, + pages={57--72}, + year={2008}, + publisher={Springer} +} + +@article{shafer2020mathematical, + title={A mathematical theory of evidence}, + author={Shafer, Glenn}, + year={2020}, + publisher={Princeton university press} +} + +@misc{ub-duisburg-essen, + author = {{Universit\"atsbibliothek Duisburg-Essen}}, + title = {{Universit\"atsbibliographie der universit\"at duisburg-essen}}, + howpublished = {\url{https://bibliographie.ub.uni-due.de/}}, + year = {2026}, + note = {Zugriff am 01.03.2026} +} + +@misc{scopus, + author = {{Scopus Datenbank}}, + title = {{Abstract- und Quellenangaben-Datenbank}}, + howpublished = {\url{https://www.scopus.com/pages/home#author}}, + year = {2026}, + note = {Zugriff am 27.02.2026} +} + +@article{touvron2023llama, + title={Llama: Open and efficient foundation language models}, + author={Touvron, Hugo and Lavril, Thibaut and Izacard, Gautier and Martinet, Xavier and Lachaux, Marie-Anne and Lacroix, Timoth{\'e}e and Rozi{\`e}re, Baptiste and Goyal, Naman and Hambro, Eric and Azhar, Faisal and others}, + journal={arXiv preprint arXiv:2302.13971}, + year={2023} +} \ No newline at end of file diff --git a/research/researcher_profiling/thesis/content/utility.tex b/research/researcher_profiling/thesis/content/utility.tex new file mode 100644 index 0000000..76ade0e --- /dev/null +++ b/research/researcher_profiling/thesis/content/utility.tex @@ -0,0 +1,167 @@ +% TODO: prevent warnings caused by included pdf files by increasing the output pdf version. Alternatively you can reduce versions of included pdfs. As long as you don't have any warnings related to pdf versions, you should not need this. +% \pdfminorversion=7 + +% draw a vertical bar to highlight overfull hboxes. This can make debugging overfull hboxes easier. +% TODO: Remove this for the final document (overfull hboxes should be removed anyway). +\overfullrule=5pt + +\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} +\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} +\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} + +% Accept different input encodings +\usepackage[utf8]{inputenc} + +% helps with the occasional warnings +\usepackage{scrhack} + +\usepackage{ifpdf} +\ifx\pdfoutput\undefined +\pdffalse %not PDFLaTeX +\else +\pdfoutput=1 +\pdftrue +\fi + +% for prettier tables +\usepackage{booktabs} + +% provides the \url{} command to pretty print urls +\usepackage{url} + +% needed for a german bibliography-style (s. below) +\usepackage{bibgerm} + +% allows text flowing around figures. +\usepackage{wrapfig} + +% allows to \includegraphics +\usepackage{graphicx} + +% defines some standard colornames like "black" etc. +\usepackage{color} + +% allows to color tablecells +\usepackage{colortbl} + +% provides an easier interface to if-then-else constructs in +% custom macros +\usepackage{ifthen} + +% allows tables to break over pages. +\usepackage{supertabular} + +% allows to have different kinds paper orientations in the same pdf-documnent +\usepackage{pdflscape} + +% allows to specify absolute texpos for textboxes. This is generally only important for the titlepage +\usepackage[absolute,overlay]{textpos} + +% allows to enumerate different figures with a) b) in the same figure-environment. +\usepackage{subcaption} + + +% Coloured boxes, for LaTeX examples and theorems, etc +\usepackage[most]{tcolorbox} + +% Graphics package-alike macros for “general” boxes +\usepackage[export]{adjustbox} + +% Simple arithmetic in LaTeX commands +\usepackage{calc} + +% Execute command after the next page break +\usepackage{afterpage} + +% Using a color stack for transparency with pdfTeX +\usepackage{transparent} + +% provides \todo and \missingfigure commands +\usepackage{todonotes} + +% provides pseudo-code environment +\usepackage{algorithm} +\usepackage{algpseudocode} + +% provides lstlisting useful for code +\usepackage{listings} +\lstset{% + tabsize = 4, + numbers = left, + keywordstyle = \color{blue}, + stringstyle = \color{blue}, + basicstyle = \small \ttfamily , + breaklines = true, + numberstyle = \tiny, + xleftmargin=2em,frame=single,framexleftmargin=1.5em +} + +% corporate desing colors +% primary color +\definecolor{uni-blue}{RGB}{0,76,147} +% secondary color +\definecolor{uni-beige}{RGB}{239,228,191} +% tertiary color +\definecolor{uni-lightblue}{RGB}{223,228,142} +\definecolor{uni-white}{RGB}{255,255,255} +% copy text color +\definecolor{uni-black}{RGB}{0,0,0} +% additional colors +\definecolor{uni-orange}{RGB}{236,114,6} +\definecolor{uni-green}{RGB}{97,162,124} +\definecolor{uni-red}{RGB}{184,16,59} +\definecolor{uni-yellow}{RGB}{254,202,0} +% colors for links +\definecolor{mygrey}{rgb}{0.45,0.45,0.45} +\definecolor{mydarkgrey}{rgb}{0.2,0.2,0.2} + +\ifpdf + +% TODO: +% Metadata and configuration of the pdf output: +% Do not forget to enter the correct title, author, subject und keywords + +% For screen viewing it is nice to have references marked in a slightly different +% color than the rest of the text. Since they will be hyperlinks to the +% referenced objects. +\usepackage[pdftex, + pdftitle={Profilierung und Priorisierung von Forschenden für das Innovationsscouting unter Verwendung integrierter Datenquellen und NLP-Techniken}, + colorlinks, + linkcolor={mydarkgrey}, + citecolor={mygrey}, + urlcolor={black}, + plainpages={false}, + bookmarksnumbered={true}, + pdfauthor={Yekaterina Dvinyanina}, + pdfsubject={Bachelorarbeit im Studiengang Angewandte Informatik, Universität Duisburg-Essen}, + pdfkeywords={Innovationsscouting, Forscherprofilierung, Clustering, NLP, Datenintegration}, + pdfstartview={FitBH}]{hyperref} + +% For the final printouts (remember - you need at least three - one for each examiner and one for the archive +% [ This might have changed - so contact the "Prüfungsamt" about the current regulations !! ] - it is better +% to have all text in the same color (namely black). +% +%\usepackage[pdftex, +% pdftitle={}, +% colorlinks, +% linkcolor={black}, +% citecolor={black}, +% urlcolor={black}, +% plainpages={false}, +% bookmarksnumbered={true}, +% pdfauthor={}, +% pdfsubject={}, +% pdfkeywords={}, +% pdfstartview={FitBH}]{hyperref} +\pdfcompresslevel=9 +\fi + +\usepackage{typearea} +\areaset[1.5cm]{418pt}{658pt} +\setlength{\headheight}{37pt} + + +% boolean for switching modes +\newboolean{fancy} +\newboolean{thesis} +\newboolean{bothlanguages} \ No newline at end of file diff --git a/research/tech_forecasting/submission/acmart.cls b/research/tech_forecasting/submission/acmart.cls new file mode 100644 index 0000000..1ba2ab9 --- /dev/null +++ b/research/tech_forecasting/submission/acmart.cls @@ -0,0 +1,3655 @@ +%% +%% This is file `acmart.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% acmart.dtx (with options: `class') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from acmart.cls. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file acmart.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{acmart} +[2025/08/27 v2.16 Typesetting articles for the Association for Computing Machinery] +\def\@classname{acmart} +\InputIfFileExists{acmart-preload-hook.tex}{% + \ClassWarning{\@classname}{% + I am loading acmart-preload-hook.tex. You are fully responsible + for any problems from now on.}}{} +\RequirePackage{xkeyval} +\RequirePackage{xstring} +\RequirePackage{iftex} +\define@choicekey*+{\@classname.cls}{format}[\ACM@format\ACM@format@nr]{% + manuscript, acmsmall, acmlarge, acmtog, sigconf, siggraph, + sigplan, sigchi, sigchi-a, acmengage, acmcp}[manuscript]{}{% + \ClassError{\@classname}{The option format must be manuscript, + acmsmall, acmlarge, acmtog, sigconf, siggraph, + sigplan, sigchi or sigchi-a}} +\def\@DeclareACMFormat#1{\DeclareOptionX{#1}{\setkeys{\@classname.cls}{format=#1}}} +\@DeclareACMFormat{manuscript} +\@DeclareACMFormat{acmsmall} +\@DeclareACMFormat{acmlarge} +\@DeclareACMFormat{acmtog} +\@DeclareACMFormat{sigconf} +\@DeclareACMFormat{siggraph} +\@DeclareACMFormat{sigplan} +\@DeclareACMFormat{sigchi} +\@DeclareACMFormat{sigchi-a} +\@DeclareACMFormat{acmengage} +\@DeclareACMFormat{acmcp} +\ExecuteOptionsX{format} +\define@boolkey+{\@classname.cls}[@ACM@]{screen}[true]{% + \if@ACM@screen + \PackageInfo{\@classname}{Using screen mode}% + \else + \PackageInfo{\@classname}{Not using screen mode}% + \fi}{\PackageError{\@classname}{The option screen can be either true or + false}} +\ExecuteOptionsX{screen=false} +\define@boolkey+{\@classname.cls}[@ACM@]{urlbreakonhyphens}[true]{% + \if@ACM@urlbreakonhyphens + \PackageInfo{\@classname}{Using breaking urls on hyphens}% + \else + \PackageInfo{\@classname}{Not breaking urls on hyphens}% + \fi}{\PackageError{\@classname}{The option urlbreakonhyphens can be either true or + false}} +\ExecuteOptionsX{urlbreakonhyphens=true} +\define@boolkey+{\@classname.cls}[@ACM@]{acmthm}[true]{% + \if@ACM@acmthm + \PackageInfo{\@classname}{Requiring acmthm}% + \else + \PackageInfo{\@classname}{Suppressing acmthm}% + \fi}{\PackageError{\@classname}{The option acmthm can be either true or + false}} +\ExecuteOptionsX{acmthm=true} +\define@boolkey+{\@classname.cls}[@ACM@]{review}[true]{% + \if@ACM@review + \PackageInfo{\@classname}{Using review mode}% + \AtBeginDocument{\@ACM@printfoliostrue}% + \else + \PackageInfo{\@classname}{Not using review mode}% + \fi}{\PackageError{\@classname}{The option review can be either true or + false}} +\ExecuteOptionsX{review=false} +\define@boolkey+{\@classname.cls}[@ACM@]{authorversion}[true]{% + \if@ACM@authorversion + \PackageInfo{\@classname}{Using authorversion mode}% + \else + \PackageInfo{\@classname}{Not using authorversion mode}% + \fi}{\PackageError{\@classname}{The option authorversion can be either true or + false}} +\ExecuteOptionsX{authorversion=false} +\define@boolkey+{\@classname.cls}[@ACM@]{nonacm}[true]{% + \if@ACM@nonacm + \PackageInfo{\@classname}{Using nonacm mode}% + \AtBeginDocument{\@ACM@printacmreffalse}% + % in 'nonacm' mode we disable the "ACM Reference Format" + % printing by default, but this can be re-enabled by the + % user using \settopmatter{printacmref=true} + \else + \PackageInfo{\@classname}{Not using nonacm mode}% + \fi}{\PackageError{\@classname}{The option nonacm can be either true or + false}} +\ExecuteOptionsX{nonacm=false} +\define@boolkey+{\@classname.cls}[@ACM@]{balance}[true]{}{% + \PackageError{\@classname}{The option balance can be either true or + false}} +\ExecuteOptionsX{balance} +\define@boolkey+{\@classname.cls}[@ACM@]{pbalance}[true]{}{% + \PackageError{\@classname}{The option pbalance can be either true or + false}} +\ExecuteOptionsX{pbalance=false} +\define@boolkey+{\@classname.cls}[@ACM@]{natbib}[true]{% + \if@ACM@natbib + \PackageInfo{\@classname}{Explicitly selecting natbib mode}% + \else + \PackageInfo{\@classname}{Explicitly deselecting natbib mode}% + \fi}{\PackageError{\@classname}{The option natbib can be either true or + false}} +\ExecuteOptionsX{natbib=true} +\define@boolkey+{\@classname.cls}[@ACM@]{anonymous}[true]{% + \if@ACM@anonymous + \PackageInfo{\@classname}{Using anonymous mode}% + \else + \PackageInfo{\@classname}{Not using anonymous mode}% + \fi}{\PackageError{\@classname}{The option anonymous can be either true or + false}} +\ExecuteOptionsX{anonymous=false} +\define@boolkey+{\@classname.cls}[@ACM@]{timestamp}[true]{% + \if@ACM@timestamp + \PackageInfo{\@classname}{Using timestamp mode}% + \else + \PackageInfo{\@classname}{Not using timestamp mode}% + \fi}{\PackageError{\@classname}{The option timestamp can be either true or + false}} +\ExecuteOptionsX{timestamp=false} +\define@boolkey+{\@classname.cls}[@ACM@]{authordraft}[true]{% + \if@ACM@authordraft + \PackageInfo{\@classname}{Using authordraft mode}% + \@ACM@timestamptrue + \@ACM@reviewtrue + \else + \PackageInfo{\@classname}{Not using authordraft mode}% + \fi}{\PackageError{\@classname}{The option authordraft can be either true or + false}} +\ExecuteOptionsX{authordraft=false} +\def\ACM@fontsize{} +\DeclareOptionX{8pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{9pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{10pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{11pt}{\edef\ACM@fontsize{\CurrentOption}} +\DeclareOptionX{12pt}{\edef\ACM@fontsize{\CurrentOption}} +\def\ACM@languages{} +\DeclareOptionX{language}{% + \ifx\ACM@languages\@empty + \gdef\ACM@languages{english}\fi + \g@addto@macro\ACM@languages{, #1}} +\DeclareOptionX{draft}{\PassOptionsToClass{\CurrentOption}{amsart}} +\DeclareOptionX{*}{\PassOptionsToClass{\CurrentOption}{amsart}} +\ProcessOptionsX +\ClassInfo{\@classname}{Using format \ACM@format, number \ACM@format@nr} +\newif\if@ACM@manuscript +\newif\if@ACM@journal +\newif\if@ACM@journal@bibstrip +\newif\if@ACM@journal@bibstrip@or@tog +\newif\if@ACM@sigchiamode +\newif\if@ACM@engage +\@ACM@engagefalse +\newif\if@ACM@acmcp +\@ACM@acmcpfalse +\ifnum\ACM@format@nr=5\relax % siggraph +\ClassWarning{\@classname}{% + The format siggraph is now obsolete.\MessageBreak + I am switching to sigconf.} + \setkeys{\@classname.cls}{format=sigconf} +\fi +\ifnum\ACM@format@nr=7\relax % sigchi +\ClassWarning{\@classname}{% + The format sigchi is now obsolete.\MessageBreak + I am switching to sigconf.} + \setkeys{\@classname.cls}{format=sigconf} +\fi +\ifnum\ACM@format@nr=8\relax % sigchi +\ClassWarning{\@classname}{% + ACM SIGCHI has retired the SIGCHI-A template\MessageBreak + effective immediately. ACM is keeping this template\MessageBreak + option available to authors who are working on legacy\MessageBreak + documents only. ACM will not, under any circumstances,\MessageBreak + accept documents in this format for publication and\MessageBreak + will not offer technical support to the authors who use\MessageBreak + this template.\MessageBreak + ACM SIGCHI is directing Conference leaders and\MessageBreak + authors to publish their articles using the SIGCONF\MessageBreak + template call.} +\fi +\ifnum\ACM@format@nr=0\relax + \@ACM@manuscripttrue +\else + \@ACM@manuscriptfalse +\fi +\@ACM@sigchiamodefalse +\ifcase\ACM@format@nr +\relax % manuscript + \@ACM@journaltrue +\or % acmsmall + \@ACM@journaltrue +\or % acmlarge + \@ACM@journaltrue +\or % acmtog + \@ACM@journaltrue + \@ACM@journal@bibstrip@or@togtrue +\or % sigconf + \@ACM@journalfalse +\or % siggraph + \@ACM@journalfalse + \or % sigplan + \@ACM@journalfalse + \or % sigchi + \@ACM@journalfalse +\or % sigchi-a + \@ACM@journalfalse + \@ACM@sigchiamodetrue +\or % acmengage + \@ACM@journalfalse + \@ACM@engagetrue +\or % acmcp + \@ACM@journaltrue + \@ACM@acmcptrue + \AtBeginDocument{\@ACM@printacmreffalse}% +\fi +\if@ACM@journal + \@ACM@journal@bibstriptrue + \@ACM@journal@bibstrip@or@togtrue +\else + \@ACM@journal@bibstripfalse +\fi +\ifx\ACM@fontsize\@empty + \ifcase\ACM@format@nr + \relax % manuscript + \def\ACM@fontsize{9pt}% + \or % acmsmall + \def\ACM@fontsize{10pt}% + \or % acmlarge + \def\ACM@fontsize{10pt}% + \or % acmtog + \def\ACM@fontsize{9pt}% + \or % sigconf + \def\ACM@fontsize{9pt}% + \or % siggraph + \def\ACM@fontsize{9pt}% + \or % sigplan + \def\ACM@fontsize{10pt}% + \or % sigchi + \def\ACM@fontsize{9pt}% + \or % sigchi-a + \def\ACM@fontsize{10pt}% + \or % acmengage + \def\ACM@fontsize{10pt}% + \or % acmcp + \def\ACM@fontsize{9pt}% + \fi +\fi +\ClassInfo{\@classname}{Using fontsize \ACM@fontsize} +\LoadClass[\ACM@fontsize, reqno]{amsart} +\RequirePackage{microtype} +\RequirePackage{etoolbox} +\RequirePackage{booktabs} +\RequirePackage{refcount} +\RequirePackage{totpages} +\RequirePackage{environ} +\if@ACM@manuscript +\RequirePackage{setspace} +\onehalfspacing +\fi +\if@ACM@acmcp +\RequirePackage{framed} +\RequirePackage{zref-savepos, zref-user} +\fi +\newdimen\@ACM@acmcp@delta +\@ACM@acmcp@delta=0pt\relax +\if@ACM@natbib + \RequirePackage{natbib} + \renewcommand{\bibsection}{% + \section*{\refname}% + \phantomsection\addcontentsline{toc}{section}{\refname}% + } + \renewcommand{\bibfont}{\bibliofont} + \renewcommand\setcitestyle[1]{ + \@for\@tempa:=#1\do + {\def\@tempb{round}\ifx\@tempa\@tempb + \renewcommand\NAT@open{(}\renewcommand\NAT@close{)}\fi + \def\@tempb{square}\ifx\@tempa\@tempb + \renewcommand\NAT@open{[}\renewcommand\NAT@close{]}\fi + \def\@tempb{angle}\ifx\@tempa\@tempb + \renewcommand\NAT@open{$<$}\renewcommand\NAT@close{$>$}\fi + \def\@tempb{curly}\ifx\@tempa\@tempb + \renewcommand\NAT@open{\{}\renewcommand\NAT@close{\}}\fi + \def\@tempb{semicolon}\ifx\@tempa\@tempb + \renewcommand\NAT@sep{;}\fi + \def\@tempb{colon}\ifx\@tempa\@tempb + \renewcommand\NAT@sep{;}\fi + \def\@tempb{comma}\ifx\@tempa\@tempb + \renewcommand\NAT@sep{,}\fi + \def\@tempb{authoryear}\ifx\@tempa\@tempb + \NAT@numbersfalse\fi + \def\@tempb{numbers}\ifx\@tempa\@tempb + \NAT@numberstrue\NAT@superfalse\fi + \def\@tempb{super}\ifx\@tempa\@tempb + \NAT@numberstrue\NAT@supertrue\fi + \def\@tempb{nobibstyle}\ifx\@tempa\@tempb + \let\bibstyle=\@gobble\fi + \def\@tempb{bibstyle}\ifx\@tempa\@tempb + \let\bibstyle=\@citestyle\fi + \def\@tempb{sort}\ifx\@tempa\@tempb + \def\NAT@sort{\@ne}\fi + \def\@tempb{nosort}\ifx\@tempa\@tempb + \def\NAT@sort{\z@}\fi + \def\@tempb{compress}\ifx\@tempa\@tempb + \def\NAT@cmprs{\@ne}\fi + \def\@tempb{nocompress}\ifx\@tempa\@tempb + \def\NAT@cmprs{\z@}\fi + \def\@tempb{sort&compress}\ifx\@tempa\@tempb + \def\NAT@sort{\@ne}\def\NAT@cmprs{\@ne}\fi + \def\@tempb{mcite}\ifx\@tempa\@tempb + \let\NAT@merge\@ne\fi + \def\@tempb{merge}\ifx\@tempa\@tempb + \@ifnum{\NAT@merge<\tw@}{\let\NAT@merge\tw@}{}\fi + \def\@tempb{elide}\ifx\@tempa\@tempb + \@ifnum{\NAT@merge<\thr@@}{\let\NAT@merge\thr@@}{}\fi + \def\@tempb{longnamesfirst}\ifx\@tempa\@tempb + \NAT@longnamestrue\fi + \def\@tempb{nonamebreak}\ifx\@tempa\@tempb + \def\NAT@nmfmt#1{\mbox{\NAT@up#1}}\fi + \expandafter\NAT@find@eq\@tempa=\relax\@nil + \if\@tempc\relax\else + \expandafter\NAT@rem@eq\@tempc + \def\@tempb{open}\ifx\@tempa\@tempb + \xdef\NAT@open{\@tempc}\fi + \def\@tempb{close}\ifx\@tempa\@tempb + \xdef\NAT@close{\@tempc}\fi + \def\@tempb{aysep}\ifx\@tempa\@tempb + \xdef\NAT@aysep{\@tempc}\fi + \def\@tempb{yysep}\ifx\@tempa\@tempb + \xdef\NAT@yrsep{\@tempc}\fi + \def\@tempb{notesep}\ifx\@tempa\@tempb + \xdef\NAT@cmt{\@tempc}\fi + \def\@tempb{citesep}\ifx\@tempa\@tempb + \xdef\NAT@sep{\@tempc}\fi + \fi + }% + \NAT@@setcites + } + \renewcommand\citestyle[1]{% + \ifcsname bibstyle@#1\endcsname% + \csname bibstyle@#1\endcsname\let\bibstyle\@gobble% + \else% + \@latex@error{Undefined `#1' citestyle}% + \fi + }% +\fi +\newcommand{\bibstyle@acmauthoryear}{% + \setcitestyle{% + authoryear,% + open={[},close={]},citesep={;},% + aysep={},yysep={,},% + notesep={, }}} +\newcommand{\bibstyle@acmnumeric}{% + \setcitestyle{% + numbers,sort&compress,% + open={[},close={]},citesep={,},% + notesep={, }}} +\if@ACM@natbib +\citestyle{acmnumeric} +\fi +\if@ACM@journal + \renewcommand\keywordsname{Additional Key Words and Phrases}% +\else + \renewcommand\keywordsname{Keywords}% +\fi +\if@ACM@engage + \renewcommand\abstractname{Synopsis}% +\fi +\ifx\ACM@languages\@empty +\else + \RequirePackage[\ACM@languages]{babel}% + \addto\captionsenglish{% + \if@ACM@journal + \renewcommand\keywordsname{Additional Key Words and Phrases}% + \else + \renewcommand\keywordsname{Keywords}% + \fi + \renewcommand\acksname{Acknowledgements}% + \if@ACM@engage + \renewcommand\abstractname{Synopsis}% + \fi + }% + \addto\captionsfrench{% + \if@ACM@journal + \renewcommand\keywordsname{Mots Clés et Phrases Supplémentaires}% + \else + \renewcommand\keywordsname{Mots clés}% + \fi + \renewcommand\acksname{Remerciements}% + }% + \addto\captionsgerman{% + \if@ACM@journal + \renewcommand\keywordsname{Zusätzliche Schlagwörter und Phrasen}% + \else + \renewcommand\keywordsname{Schlagwörter}% + \fi + \renewcommand\acksname{Danksagungen}% + }% + \addto\captionsspanish{% + \if@ACM@journal + \renewcommand\keywordsname{Palabras y Frases Claves Adicionales}% + \else + \renewcommand\keywordsname{Palabras claves}% + \fi + \renewcommand\acksname{Expresiones de gratitud}% + }% +\fi +\newcommand\ACM@lang@check[1]{% + \ifx\ACM@languages\@empty\relax + \ClassError{\@classname}{% + Command \string#1 \MessageBreak is used in monlingual document}{% + You used a command (\string#1) \MessageBreak + that does not have a meaning \MessageBreak + unless are languages are defined. \MessageBreak + Please choose the languages in \string\documentclass + \MessageBreak + (e.g. \string\documentclass[languages={french, english}]{acmart}), + \MessageBreak + or delete the command.}% + \fi} +\def\@translatedtitle{} +\newcommand\translatedtitle[2]{\ACM@lang@check{\translatedtitle}% +\g@addto@macro\@translatedtitle{\par\foreignlanguage{#1}{#2}}} +\def\@translatedsubtitle{} +\newcommand\translatedsubtitle[2]{\ACM@lang@check{\translatedsubtitle}% +\g@addto@macro\@translatedsubtitle{\par\foreignlanguage{#1}{#2}}} +\def\@translatedkeywords{} +\newcommand\translatedkeywords[2]{\ACM@lang@check{\translatedkeywords}% +\g@addto@macro\@translatedkeywords{\@mktranslatedkeywords{#1}{#2}}} +\def\@translatedabstracts{} +\newenvironment{translatedabstract}[1]{\Collect@Body + \@savetranslatedabstract\@mktranslatedabstract{#1}}{} +\long\def\@savetranslatedabstract#1{\if@ACM@maketitle@typeset + \ClassError{\@classname}{Abstract must be defined before maketitle + command. Please move it!}\fi + \ACM@lang@check{translatedabstract}% + \g@addto@macro\@translatedabstracts{\bgroup#1\egroup}} +\def\@startsection#1#2#3#4#5#6{% + \if@noskipsec \leavevmode \fi + \par + \@tempskipa #4\relax + \@afterindenttrue + \ifdim \@tempskipa <\z@ + \@tempskipa -\@tempskipa \@afterindentfalse + \fi + \if@nobreak + \everypar{}% + \else + \addpenalty\@secpenalty\addvspace\@tempskipa + \fi + \@ifstar + {\@ssect{#3}{#4}{#5}{#6}}% + {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}} +\def\@sect#1#2#3#4#5#6[#7]#8{% + \edef\@toclevel{\ifnum#2=\@m 0\else\number#2\fi}% + \ifnum #2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{#1}% + \protected@edef\@svsec{\@seccntformat{#1}\relax}% + \fi + \@tempskipa #5\relax + \ifdim \@tempskipa>\z@ + \begingroup + #6{% + \@hangfrom{\hskip #3\relax\@svsec}% + \interlinepenalty \@M #8\@@par}% + \endgroup + \csname #1mark\endcsname{#7}% + \ifnum #2>\c@secnumdepth \else + \@tochangmeasure{\csname the#1\endcsname}% + \fi + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}% + \else + \def\@svsechd{% + #6{\hskip #3\relax + \@svsec #8}% + \csname #1mark\endcsname{#7}% + \ifnum #2>\c@secnumdepth \else + \@tochangmeasure{\csname the#1\endcsname\space}% + \fi + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}}% + \fi + \@xsect{#5}} +\def\@xsect#1{% + \@tempskipa #1\relax + \ifdim \@tempskipa>\z@ + \par \nobreak + \vskip \@tempskipa + \@afterheading + \else + \@nobreakfalse + \global\@noskipsectrue + \everypar{% + \if@noskipsec + \global\@noskipsecfalse + {\setbox\z@\lastbox}% + \clubpenalty\@M + \begingroup \@svsechd \endgroup + \unskip + \@tempskipa #1\relax + \hskip -\@tempskipa + \else + \clubpenalty \@clubpenalty + \everypar{}% + \fi}% + \fi + \ignorespaces} +\def\@ssect#1#2#3#4#5{% + \@tempskipa #3\relax + \ifdim \@tempskipa>\z@ + \begingroup + #4{% + \@hangfrom{\hskip #1}% + \interlinepenalty \@M #5\@@par}% + \endgroup + \else + \def\@svsechd{#4{\hskip #1\relax #5}}% + \fi + \@xsect{#3}} +\def\@seccntformat#1{\csname the#1\endcsname\quad} +\def\@starttoc#1#2{\begingroup\makeatletter + \setTrue{#1}% + \par\removelastskip\vskip\z@skip + \@startsection{section}\@M\z@{\linespacing\@plus\linespacing}% + {.5\linespacing}{\centering\contentsnamefont}{#2}% + \@input{\jobname.#1}% + \if@filesw + \@xp\newwrite\csname tf@#1\endcsname + \immediate\@xp\openout\csname tf@#1\endcsname \jobname.#1\relax + \fi + \global\@nobreakfalse \endgroup + \addvspace{32\p@\@plus14\p@}% +} +\def\l@section{\@tocline{1}{0pt}{1pc}{2pc}{}} +\def\l@subsection{\@tocline{2}{0pt}{1pc}{3pc}{}} +\def\l@subsubsection{\@tocline{3}{0pt}{1pc}{5pc}{}} +\def\@makefntext{\noindent\@makefnmark} +\if@ACM@sigchiamode +\long\def\@footnotetext#1{\marginpar{% + \reset@font\small + \interlinepenalty\interfootnotelinepenalty + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark + }% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% + \color@endgroup}}% +\fi +\long\def\@mpfootnotetext#1{% + \global\setbox\@mpfootins\vbox{% + \unvbox\@mpfootins + \reset@font\footnotesize + \hsize\columnwidth + \@parboxrestore + \protected@edef\@currentlabel + {\csname p@mpfootnote\endcsname\@thefnmark}% + \color@begingroup\centering + \@makefntext{% + \rule\z@\footnotesep\ignorespaces#1\@finalstrut\strutbox}% + \color@endgroup}} +\def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}} +\let\@footnotemark@nolink\@footnotemark +\let\@footnotetext@nolink\@footnotetext +\RequirePackage[bookmarksnumbered,unicode]{hyperref} +\RequirePackage{hyperxmp} +\pdfstringdefDisableCommands{% + \def\addtocounter#1#2{}% + \def\unskip{}% + \def\textbullet{- }% + \def\textrightarrow{ -> }% + \def\footnotemark{}% +} +\urlstyle{rm} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \urlstyle{sf} +\or % sigchi +\or % sigchi-a + \urlstyle{sf} +\or % acmengage +\or % acmcp +\fi +\AtEndPreamble{% + \if@ACM@urlbreakonhyphens + \def\do@url@hyp{\do\-}% + \fi + \if@ACM@screen + \hypersetup{colorlinks, + linkcolor=ACMPurple, + citecolor=ACMPurple, + urlcolor=ACMDarkBlue, + filecolor=ACMDarkBlue} + \else + \hypersetup{hidelinks} + \fi + \hypersetup{pdflang={en}, + pdfdisplaydoctitle}} +\if@ACM@natbib + \let\citeN\cite + \let\cite\citep + \let\citeANP\citeauthor + \let\citeNN\citeyearpar + \let\citeyearNP\citeyear + \let\citeNP\citealt + \DeclareRobustCommand\citeA + {\begingroup\NAT@swafalse + \let\NAT@ctype\@ne\NAT@partrue\NAT@fullfalse\NAT@open\NAT@citetp}% + \providecommand\newblock{}% +\else + \AtBeginDocument{% + \let\shortcite\cite% + \providecommand\citename[1]{#1}} +\fi +\newcommand\shortcite[2][]{% + \ifNAT@numbers\cite[#1]{#2}\else\citeyearpar[#1]{#2}\fi} +\def\bibliographystyle#1{% + \ifx\@begindocumenthook\@undefined\else + \expandafter\AtBeginDocument + \fi + {\if@filesw + \immediate\write\@auxout{\string\bibstyle{#1}}% + \fi}} +\RequirePackage{graphicx} +\RequirePackage[prologue]{xcolor} +\definecolor[named]{ACMBlue}{cmyk}{1,0.1,0,0.1} +\definecolor[named]{ACMYellow}{cmyk}{0,0.16,1,0} +\definecolor[named]{ACMOrange}{cmyk}{0,0.42,1,0.01} +\definecolor[named]{ACMRed}{cmyk}{0,0.90,0.86,0} +\definecolor[named]{ACMLightBlue}{cmyk}{0.49,0.01,0,0} +\definecolor[named]{ACMGreen}{cmyk}{0.20,0,1,0.19} +\definecolor[named]{ACMPurple}{cmyk}{0.55,1,0,0.15} +\definecolor[named]{ACMDarkBlue}{cmyk}{1,0.58,0,0.21} +\if@ACM@authordraft + \RequirePackage{draftwatermark} + \SetWatermarkFontSize{0.5in} + \SetWatermarkColor[gray]{.9} + \SetWatermarkText{\parbox{12em}{\centering + Unpublished working draft.\\ + Not for distribution.}} +\else + \if@ACM@sigchiamode + \if@ACM@nonacm\else + \RequirePackage{draftwatermark} + \SetWatermarkFontSize{0.5in} + \SetWatermarkColor[gray]{.9} + \SetWatermarkText{\parbox{12em}{\centering + Legacy document. \\ + Not for publication in an ACM venue}} + \fi + \fi +\fi +\RequirePackage{geometry} +\ifcase\ACM@format@nr +\relax % manuscript + \geometry{letterpaper,head=13pt, + marginparwidth=6pc,heightrounded}% +\or % acmsmall + \geometry{twoside=true, + includeheadfoot, head=13pt, foot=2pc, + paperwidth=6.75in, paperheight=10in, + top=58pt, bottom=44pt, inner=46pt, outer=46pt, + marginparwidth=2pc,heightrounded + }% +\or % acmlarge + \geometry{twoside=true, head=13pt, foot=2pc, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, + top=78pt, bottom=114pt, inner=81pt, outer=81pt, + marginparwidth=4pc,heightrounded + }% +\or % acmtog + \geometry{twoside=true, head=13pt, foot=2pc, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=24pt, + top=52pt, bottom=75pt, inner=52pt, outer=52pt, + marginparwidth=2pc,heightrounded + }% +\or % sigconf + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=57pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % siggraph + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=57pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % sigplan + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot=false, columnsep=2pc, + top=1in, bottom=1in, inner=0.75in, outer=0.75in, + marginparwidth=2pc,heightrounded + }% +\or % sigchi + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=66pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % sigchi-a + \geometry{twoside=false, head=13pt, + paperwidth=11in, paperheight=8.5in, + includeheadfoot, marginparsep=72pt, + marginparwidth=170pt, columnsep=20pt, + top=72pt, bottom=72pt, left=314pt, right=72pt + }% + \@mparswitchfalse + \reversemarginpar +\or % acmengage + \geometry{twoside=true, head=13pt, + paperwidth=8.5in, paperheight=11in, + includeheadfoot, columnsep=2pc, + top=57pt, bottom=73pt, inner=54pt, outer=54pt, + marginparwidth=2pc,heightrounded + }% +\or % acmcp + \geometry{twoside=true, + includeheadfoot, head=13pt, foot=2pc, + paperwidth=6.75in, paperheight=10in, + top=58pt, bottom=44pt, inner=46pt, outer=46pt, + marginparwidth=2pc,heightrounded + }% +\fi +\setlength\parindent{10\p@} +\setlength\parskip{\z@} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog + \setlength\parindent{9\p@}% +\or % sigconf +\or % siggraph +\or % sigplan +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\setlength\normalparindent{\parindent} +\def\copyrightpermissionfootnoterule{\kern-3\p@ + \hrule \@width \columnwidth \kern 2.6\p@} +\RequirePackage{manyfoot} +\SelectFootnoteRule[2]{copyrightpermission} +\DeclareNewFootnote{authorsaddresses} +\SelectFootnoteRule[2]{copyrightpermission} +\DeclareNewFootnote{copyrightpermission} +\def\footnoterule{\kern-3\p@ + \hrule \@width 4pc \kern 2.6\p@} +\def\endminipage{% + \par + \unskip + \ifvoid\@mpfootins\else + \vskip\skip\@mpfootins + \normalcolor + \unvbox\@mpfootins + \fi + \@minipagefalse + \color@endgroup + \egroup + \expandafter\@iiiparbox\@mpargs{\unvbox\@tempboxa}} +\def\@textbottom{\vskip \z@ \@plus 1pt} +\let\@texttop\relax +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog + \flushbottom +\or % sigconf + \flushbottom +\or % siggraph + \flushbottom +\or % sigplan + \flushbottom +\or % sigchi + \flushbottom +\or % sigchi-a +\or % acmengage + \flushbottom +\or % acmcp + \flushbottom +\fi +\ifPDFTeX +\input{glyphtounicode} +\pdfglyphtounicode{f_f}{FB00} +\pdfglyphtounicode{f_f_i}{FB03} +\pdfglyphtounicode{f_f_l}{FB04} +\pdfglyphtounicode{f_i}{FB01} +\pdfglyphtounicode{t_t}{0074 0074} +\pdfglyphtounicode{f_t}{0066 0074} +\pdfglyphtounicode{T_h}{0054 0068} +\pdfgentounicode=1 +\RequirePackage{cmap} +\fi +\newif\if@ACM@newfonts +\@ACM@newfontstrue +\IfFileExists{libertine.sty}{}{\ClassWarning{\@classname}{You do not + have the libertine package installed. Please upgrade your + TeX}\@ACM@newfontsfalse} +\IfFileExists{zi4.sty}{}{\ClassWarning{\@classname}{You do not + have the inconsolata (zi4.sty) package installed. Please upgrade your + TeX}\@ACM@newfontsfalse} +\IfFileExists{newtxmath.sty}{}{\ClassWarning{\@classname}{You do not + have the newtxmath package installed. Please upgrade your + TeX}\@ACM@newfontsfalse} +\if@ACM@newfonts + \ifxetex + \RequirePackage{amssymb} + \RequirePackage{unicode-math} + \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf} + \setmathfont{latinmodern-math.otf}[range={cal}] + \RequirePackage[tt=false]{libertine} + \setmonofont[StylisticSet=3]{inconsolata} + \else + \ifluatex + \RequirePackage{amssymb} + \RequirePackage{unicode-math} + \setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf} + \setmathfont{latinmodern-math.otf}[range={cal}] + \RequirePackage[tt=false]{libertine} + \setmonofont[StylisticSet=3]{inconsolata} + \else + \RequirePackage[T1]{fontenc} + \RequirePackage[tt=false, type1=true]{libertine} + \RequirePackage[varqu]{zi4} + \RequirePackage[libertine]{newtxmath} + \fi + \fi +\fi +\let\liningnums\@undefined +\AtEndPreamble{% + \DeclareTextFontCommand{\liningnums}{\libertineLF}} +\if@ACM@sigchiamode + \renewcommand{\familydefault}{\sfdefault} +\fi +\newif\if@Description@present +\@Description@presenttrue +\newif\if@undescribed@images +\@undescribed@imagesfalse +\newcommand\Description[2][]{\global\@Description@presenttrue\ignorespaces} +\AtEndDocument{\if@undescribed@images + \ClassWarningNoLine{\@classname}{Some images may lack + descriptions.\MessageBreak + ACM is committed to complying with the upcoming US ADA + https://accessiblyapp.com/accessibility-compliance/ada/ and European + Accessibility Act + (EAA) https://accessiblyapp.com/accessibility-compliance/eaa/ + regulations by actively working to ensure our publications and + application services are accessible to individuals with + disabilities, adhering to the WCAG guidelines to provide a seamless + experience for all users, and regularly reviewing our accessibility + practices to maintain compliance with evolving standards. \MessageBreak + To this end, we strongly encourage our authors to provide + alternative text and captions for images and multimedia content. It + is also important to optimize color contrast for the visually + impaired. Taking these important steps when creating your papers + will ensure that the widest possible audience can ingest your + work.}\fi} +\AtBeginEnvironment{figure}{\@Description@presentfalse + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{figure*}{\@Description@presentfalse + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtEndEnvironment{figure}{\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description}\fi} +\AtEndEnvironment{figure*}{\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description}\fi} +\AtBeginEnvironment{table}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{table*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{algorithm}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{algorithm*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstlisting}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstlisting*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{minted}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{minted*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{listing}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{listing*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstinputlisting}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} +\AtBeginEnvironment{lstinputlisting*}{\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig} + +\RequirePackage{caption, float} +\captionsetup[table]{position=top} +\if@ACM@journal + \captionsetup{labelfont={sf, small}, + textfont={sf, small}, margin=\z@} + \captionsetup[figure]{name={Fig.}} +\else + \captionsetup{labelfont={bf}, + textfont={bf}, labelsep=colon, margin=\z@} + \ifcase\ACM@format@nr + \relax % manuscript + \or % acmsmall + \or % acmlarge + \or % acmtog + \or % sigconf + \or % siggraph + \captionsetup{textfont={it}} + \or % sigplan + \captionsetup{labelfont={bf}, + textfont={normalfont}, labelsep=period, margin=\z@} + \or % sigchi + \captionsetup[figure]{labelfont={bf, small}, + textfont={bf, small}} + \captionsetup[table]{labelfont={bf, small}, + textfont={bf, small}} + \or % sigchi-a + \captionsetup[figure]{labelfont={bf, small}, + textfont={bf, small}} + \captionsetup[table]{labelfont={bf, small}, + textfont={bf, small}} + \or % acmengage + \or % acmcp + \fi +\fi +\newfloat{sidebar}{}{sbar} +\floatname{sidebar}{Sidebar} +\renewenvironment{sidebar}{\Collect@Body\@sidebar}{} +\long\def\@sidebar#1{\bgroup\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig\captionsetup{type=sidebar}% + \marginpar{\small#1}\egroup} +\newenvironment{marginfigure}{\Collect@Body\@marginfigure}{} +\long\def\@marginfigure#1{\bgroup + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \captionsetup{type=figure}% + \marginpar{\@Description@presentfalse\centering + \small#1\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without description} + \fi}% + \egroup} +\newenvironment{margintable}{\Collect@Body\@margintable}{} +\long\def\@margintable#1{\bgroup\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig\captionsetup{type=table}% + \marginpar{\centering\small#1}\egroup} +\newdimen\fulltextwidth +\fulltextwidth=\dimexpr(\textwidth+\marginparwidth+\marginparsep) +\if@ACM@sigchiamode +\def\@dblfloat{\bgroup\let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig\columnwidth=\fulltextwidth + \let\@endfloatbox\@endwidefloatbox + \def\@fpsadddefault{\def\@fps{tp}}% + \@float} +\fi +\if@ACM@sigchiamode +\def\end@dblfloat{% + \end@float\egroup} +\fi +\def\@endwidefloatbox{% + \par\vskip\z@skip + \@minipagefalse + \outer@nobreak + \egroup + \color@endbox + \global\setbox\@currbox=\vbox{\moveleft + \dimexpr(\fulltextwidth-\textwidth)\box\@currbox}% + \wd\@currbox=\textwidth +} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan +\def\labelenumi{\theenumi.} +\def\labelenumii{\theenumii.} +\def\labelenumiii{\theenumiii.} +\def\labelenumiv{\theenumiv.} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\newdimen\@ACM@labelwidth +\AtBeginDocument{% + \setlength\labelsep{4pt} + \setlength{\@ACM@labelwidth}{6.5pt} + + %% First-level list: when beginning after the first line of an + %% indented paragraph or ending before an indented paragraph, labels + %% should not hang to the left of the preceding/following text. + \setlength\leftmargini{\z@} + \addtolength\leftmargini{\parindent} + \addtolength\leftmargini{2\labelsep} + \addtolength\leftmargini{\@ACM@labelwidth} + + %% Second-level and higher lists. + \setlength\leftmarginii{\z@} + \addtolength\leftmarginii{0.5\labelsep} + \addtolength\leftmarginii{\@ACM@labelwidth} + \setlength\leftmarginiii{\leftmarginii} + \setlength\leftmarginiv{\leftmarginiii} + \setlength\leftmarginv{\leftmarginiv} + \setlength\leftmarginvi{\leftmarginv} + \@listi} +\newskip\listisep +\listisep\smallskipamount +\def\@listI{\leftmargin\leftmargini + \labelwidth\leftmargini \advance\labelwidth-\labelsep + \listparindent\z@ + \topsep\listisep} +\let\@listi\@listI +\def\@listii{\leftmargin\leftmarginii + \labelwidth\leftmarginii \advance\labelwidth-\labelsep + \topsep\z@skip} +\def\@listiii{\leftmargin\leftmarginiii + \labelwidth\leftmarginiii \advance\labelwidth-\labelsep} +\def\@listiv{\leftmargin\leftmarginiv + \labelwidth\leftmarginiv \advance\labelwidth-\labelsep} +\def\@listv{\leftmargin\leftmarginv + \labelwidth\leftmarginv \advance\labelwidth-\labelsep} +\def\@listvi{\leftmargin\leftmarginvi + \labelwidth\leftmarginvi \advance\labelwidth-\labelsep} +\renewcommand{\descriptionlabel}[1]{\upshape\bfseries #1} +\renewenvironment{description}{\list{}{% + \labelwidth\@ACM@labelwidth + \let\makelabel\descriptionlabel}% +}{ + \endlist +} +\let\enddescription=\endlist % for efficiency +\newif\if@ACM@maketitle@typeset +\@ACM@maketitle@typesetfalse +\define@choicekey*+{ACM}{acmJournal}[\@journalCode\@journalCode@nr]{% + ACMJCSS,% + ACMJDS,% + AILET,% + CIE,% + CSUR,% + DGOV,% + DLT,% + DTRAP,% + FAC,% + GAMES,% + HEALTH,% + IMWUT,% + JACM,% + JATS,% + JDIQ,% + JDS,% + JEA,% + JERIC,% + JETC,% + JOCCH,% + JRC,% + PACMCGIT,% + PACMHCI,% + PACMMOD,% + PACMNET,% + PACMPL,% + PACMSE,% + POMACS,% + TAAS,% + TACCESS,% + TACO,% + TAIS,% + TAISAP,% + TALG,% + TALLIP,% + TAP,% + TCPS,% + TDS,% + TEAC,% + TECS,% + TELO,% + THRI,% + TIIS,% + TIOT,% + TISSEC,% + TIST,% + TKDD,% + TMIS,% + TOCE,% + TOCHI,% + TOCL,% + TOCS,% + TOCT,% + TODAES,% + TODS,% + TOG,% + TOIS,% + TOIT,% + TOMACS,% + TOMM,% + TOMPECS,% + TOMS,% + TOPC,% + TOPLAS,% + TOPML,% + TOPS,% + TORS,% + TOS,% + TOSEM,% + TOSN,% + TQC,% + TRETS,% + TSAS,% + TSC,% + TSLP,% + TWEB,% + FACMP% +}{% +\ifcase\@journalCode@nr +\relax % ACMJCSS + \def\@journalName{ACM Journal on Computing and Sustainable Societies}% + \def\@journalNameShort{ACM J. Comput. Sustain. Soc.}% + \def\@permissionCodeOne{2834-5533}% + \def\@permissionCodeTwo{2834-5533}% +\or % ACMJCDS + \def\@journalName{ACM Journal of Data Science}% + \def\@journalNameShort{ACM J. Data Sci.}% + \def\@permissionCodeOne{0000-0000}% + \def\@permissionCodeTwo{0000-0000}% +\or % AILET + \def\@journalName{ACM AI Letters}% + \def\@journalNameShort{ACM AI Lett.}% + \def\@permissionCodeOne{3068-8590}% + \def\@permissionCodeTwo{3068-8590}% +\or % CIE + \def\@journalName{ACM Computers in Entertainment}% + \def\@journalNameShort{ACM Comput. Entertain.}% + \def\@permissionCodeOne{1544-3574}% +\or % CSUR + \def\@journalName{ACM Computing Surveys}% + \def\@journalNameShort{ACM Comput. Surv.}% + \def\@permissionCodeOne{0360-0300}% + \def\@permissionCodeTwo{1557-7341}% +\or % DGOV + \def\@journalName{Digital Government: Research and Practice}% + \def\@journalNameShort{Digit. Gov. Res. Pract.}% + \def\@permissionCodeOne{2639-0175}% + \def\@permissionCodeTwo{2639-0175}% +\or % DLT + \def\@journalName{Distributed Ledger Technologies: Research and Practice}% + \def\@journalNameShort{Distrib. Ledger Technol.}% + \def\@permissionCodeOne{2769-6472}% + \def\@permissionCodeTwo{2769-6480}% +\or % DTRAP + \def\@journalName{Digital Threats: Research and Practice}% + \def\@journalNameShort{Digit. Threat. Res. Pract.}% + \def\@permissionCodeOne{2576-5337}% + \def\@permissionCodeTwo{2576-5337}% +\or % FAC + \def\@journalName{Formal Aspects of Computing}% + \def\@journalNameShort{Form. Asp. Comput.}% + \def\@permissionCodeOne{0934-5043}% + \def\@permissionCodeTwo{1433-299X}% +\or % GAMES + \def\@journalName{ACM Games: Research and Practice}% + \def\@journalNameShort{ACM Games}% + \def\@permissionCodeOne{2832-5516}% + \def\@permissionCodeTwo{2832-5516}% +\or % HEALTH + \def\@journalName{ACM Transactions on Computing for Healthcare}% + \def\@journalNameShort{ACM Trans. Comput. Healthcare}% + \def\@permissionCodeOne{2637-8051}% + \def\@permissionCodeTwo{2637-8051}% +\or % IMWUT + \def\@journalName{Proceedings of the ACM on Interactive, Mobile, + Wearable and Ubiquitous Technologies}% + \def\@journalNameShort{Proc. ACM Interact. Mob. Wearable Ubiquitous Technol.}% + \def\@permissionCodeOne{2474-9567}% + \def\@permissionCodeTwo{2474-9567}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % JACM + \def\@journalName{Journal of the ACM}% + \def\@journalNameShort{J. ACM}% + \def\@permissionCodeOne{0004-5411}% + \def\@permissionCodeTwo{1557-735X}% +\or % JATS + \def\@journalName{Journal on Autonomous Transportation Systems}% + \def\@journalNameShort{ACM J. Auton. Transport. Syst.}% + \def\@permissionCodeOne{2833-0528}% + \def\@permissionCodeTwo{2833-0528}% +\or % JDIQ + \def\@journalName{ACM Journal of Data and Information Quality}% + \def\@journalNameShort{ACM J. Data Inform. Quality}% + \def\@permissionCodeOne{1936-1955}% + \def\@permissionCodeTwo{1936-1963}% +\or % JDS + \def\@journalName{ACM/IMS Journal of Data Science}% + \def\@journalNameShort{ACM/IMS J. Data Sci.}% + \def\@permissionCodeOne{2831-3194}% + \def\@permissionCodeTwo{2831-3194}% +\or % JEA + \def\@journalName{ACM Journal of Experimental Algorithmics}% + \def\@journalNameShort{ACM J. Exp. Algor.}% + \def\@permissionCodeOne{1084-6654}% + \def\@permissionCodeTwo{1084-6654}% +\or % JERIC + \def\@journalName{ACM Journal of Educational Resources in Computing}% + \def\@journalNameShort{ACM J. Edu. Resources in Comput.}% + \def\@permissionCodeOne{1073-0516}% +\or % JETC + \def\@journalName{ACM Journal on Emerging Technologies in Computing Systems}% + \def\@journalNameShort{ACM J. Emerg. Technol. Comput. Syst.}% + \def\@permissionCodeOne{1550-4832}% + \def\@permissionCodeTwo{1550-4840}% +\or % JOCCH + \def\@journalName{ACM Journal on Computing and Cultural Heritage}% + \def\@journalNameShort{ACM J. Comput. Cult. Herit.}% + \def\@permissionCodeOne{1556-4673}% + \def\@permissionCodeTwo{1556-4711}% +\or % JRC + \def\@journalName{ACM Journal on Responsible Computing}% + \def\@journalNameShort{ACM J. Responsib. Comput.}% + \def\@permissionCodeOne{2832-0565}% + \def\@permissionCodeTwo{2832-0565}% +\or % PACMCGIT + \def\@journalName{Proceedings of the ACM on Computer Graphics and Interactive Techniques}% + \def\@journalNameShort{Proc. ACM Comput. Graph. Interact. Tech.}% + \def\@permissionCodeOne{2577-6193}% + \def\@permissionCodeTwo{2577-6193}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % PACMHCI + \def\@journalName{Proceedings of the ACM on Human-Computer Interaction}% + \def\@journalNameShort{Proc. ACM Hum.-Comput. Interact.}% + \def\@permissionCodeOne{2573-0142}% + \def\@permissionCodeTwo{2573-0142}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % PACMMOD + \def\@journalName{Proceedings of the ACM on Management of Data}% + \def\@journalNameShort{Proc. ACM Manag. Data}% + \def\@permissionCodeOne{2836-6573}% + \def\@permissionCodeTwo{2836-6573}% +\or % PACMNET + \def\@journalName{Proceedings of the ACM on Networkng}% + \def\@journalNameShort{Proc. ACM Netw.}% + \def\@permissionCodeOne{2834-5509}% + \def\@permissionCodeTwo{2834-5509}% +\or % PACMPL + \def\@journalName{Proceedings of the ACM on Programming Languages}% + \def\@journalNameShort{Proc. ACM Program. Lang.}% + \def\@permissionCodeOne{2475-1421}% + \def\@permissionCodeTwo{2475-1421}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % PACMSE + \def\@journalName{Proceedings of the ACM on Software Engineering}% + \def\@journalNameShort{Proc. ACM Softw. Eng.}% + \def\@permissionCodeOne{2994-970X}% + \def\@permissionCodeTwo{2994-970X}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % POMACS + \def\@journalName{Proceedings of the ACM on Measurement and Analysis of Computing Systems}% + \def\@journalNameShort{Proc. ACM Meas. Anal. Comput. Syst.}% + \def\@permissionCodeOne{2476-1249}% + \def\@permissionCodeTwo{2476-1249}% + \@ACM@screentrue + \PackageInfo{\@classname}{Using screen mode due to \@journalCode}% +\or % TAAS + \def\@journalName{ACM Transactions on Autonomous and Adaptive Systems}% + \def\@journalNameShort{ACM Trans. Autonom. Adapt. Syst.}% + \def\@permissionCodeOne{1556-4665}% + \def\@permissionCodeTwo{1556-4703}% +\or % TACCESS + \def\@journalName{ACM Transactions on Accessible Computing}% + \def\@journalNameShort{ACM Trans. Access. Comput.}% + \def\@permissionCodeOne{1936-7228}% + \def\@permissionCodeTwo{1936-7236}% +\or % TACO + \def\@journalName{ACM Transactions on Architecture and Code Optimization}% + \def\@journalNameShort{ACM Trans. Arch. Code Optim.}% + \def\@permissionCodeOne{1544-3566}% + \def\@permissionCodeTwo{1544-3973}% +\or % TAIS + \def\@journalName{ACM Transactions on AI for Science}% + \def\@journalNameShort{ACM Trans. AI Sci.}% + \def\@permissionCodeOne{3066-4438}% + \def\@permissionCodeTwo{3066-4438}% +\or % TAISAP + \def\@journalName{ACM Transactions on AI Security and Privacy}% + \def\@journalNameShort{ACM Trans. AI Secur. Priv.}% + \def\@permissionCodeOne{3068-3564}% + \def\@permissionCodeTwo{3068-3564}% +\or % TALG + \def\@journalName{ACM Transactions on Algorithms}% + \def\@journalNameShort{ACM Trans. Algor.}% + \def\@permissionCodeOne{1549-6325}% + \def\@permissionCodeTwo{1549-6333}% +\or % TALLIP + \def\@journalName{ACM Transactions on Asian and Low-Resource Language Information Processing}% + \def\@journalNameShort{ACM Trans. Asian Low-Resour. Lang. Inf. Process.}% + \def\@permissionCodeOne{2375-4699}% + \def\@permissionCodeTwo{2375-4702}% +\or % TAP + \def\@journalName{ACM Transactions on Applied Perception}% + \def\@journalNameShort{ACM Trans. Appl. Percept.}% + \def\@permissionCodeOne{1544-3558}% + \def\@permissionCodeTwo{1544-3965}% +\or % TCPS + \def\@journalName{ACM Transactions on Cyber-Physical Systems}% + \def\@journalNameShort{ACM Trans. Cyber-Phys. Syst.}% + \def\@permissionCodeOne{2378-962X}% + \def\@permissionCodeTwo{2378-9638}% +\or % TDS + \def\@journalName{ACM/IMS Transactions on Data Science}% + \def\@journalNameShort{ACM/IMS Trans. Data Sci.}% + \def\@permissionCodeOne{2577-3224}% +\or % TEAC + \def\@journalName{ACM Transactions on Economics and Computation}% + \def\@journalNameShort{ACM Trans. Econ. Comput.}% + \def\@permissionCodeOne{2167-8375}% + \def\@permissionCodeTwo{2167-8383}% +\or % TECS + \def\@journalName{ACM Transactions on Embedded Computing Systems}% + \def\@journalNameShort{ACM Trans. Embedd. Comput. Syst.}% + \def\@permissionCodeOne{1539-9087}% + \def\@permissionCodeTwo{1558-3465}% +\or % TELO + \def\@journalName{ACM Transactions on Evolutionary Learning and Optimization}% + \def\@journalNameShort{ACM Trans. Evol. Learn. Optim.}% + \def\@permissionCodeOne{2688-299X}% + \def\@permissionCodeTwo{2688-3007}% +\or % THRI + \def\@journalName{ACM Transactions on Human-Robot Interaction}% + \def\@journalNameShort{ACM Trans. Hum.-Robot Interact.}% + \def\@permissionCodeOne{2573-9522}% + \def\@permissionCodeTwo{2573-9522}% +\or % TIIS + \def\@journalName{ACM Transactions on Interactive Intelligent Systems}% + \def\@journalNameShort{ACM Trans. Interact. Intell. Syst.}% + \def\@permissionCodeOne{2160-6455}% + \def\@permissionCodeTwo{2160-6463}% +\or % TIOT + \def\@journalName{ACM Transactions on Internet of Things}% + \def\@journalNameShort{ACM Trans. Internet Things}% + \def\@permissionCodeOne{2577-6207}% + \def\@permissionCodeTwo{2577-6207}% +\or % TISSEC + \def\@journalName{ACM Transactions on Information and System Security}% + \def\@journalNameShort{ACM Trans. Info. Syst. Sec.}% + \def\@permissionCodeOne{1094-9224}% +\or % TIST + \def\@journalName{ACM Transactions on Intelligent Systems and Technology}% + \def\@journalNameShort{ACM Trans. Intell. Syst. Technol.}% + \def\@permissionCodeOne{2157-6904}% + \def\@permissionCodeTwo{2157-6912}% +\or % TKDD + \def\@journalName{ACM Transactions on Knowledge Discovery from Data}% + \def\@journalNameShort{ACM Trans. Knowl. Discov. Data.}% + \def\@permissionCodeOne{1556-4681}% + \def\@permissionCodeTwo{1556-472X}% +\or % TMIS + \def\@journalName{ACM Transactions on Management Information Systems}% + \def\@journalNameShort{ACM Trans. Manag. Inform. Syst.}% + \def\@permissionCodeOne{2158-656X}% + \def\@permissionCodeTwo{2158-6578}% +\or % TOCE + \def\@journalName{ACM Transactions on Computing Education}% + \def\@journalNameShort{ACM Trans. Comput. Educ.}% + \def\@permissionCodeOne{1946-6226}% + \def\@permissionCodeTwo{1946-6226}% +\or % TOCHI + \def\@journalName{ACM Transactions on Computer-Human Interaction}% + \def\@journalNameShort{ACM Trans. Comput.-Hum. Interact.}% + \def\@permissionCodeOne{1073-0516}% + \def\@permissionCodeTwo{1557-7325}% +\or % TOCL + \def\@journalName{ACM Transactions on Computational Logic}% + \def\@journalNameShort{ACM Trans. Comput. Logic}% + \def\@permissionCodeOne{1529-3785}% + \def\@permissionCodeTwo{1557-945X}% +\or % TOCS + \def\@journalName{ACM Transactions on Computer Systems}% + \def\@journalNameShort{ACM Trans. Comput. Syst.}% + \def\@permissionCodeOne{0734-2071}% + \def\@permissionCodeTwo{1557-7333}% +\or % TOCT + \def\@journalName{ACM Transactions on Computation Theory}% + \def\@journalNameShort{ACM Trans. Comput. Theory}% + \def\@permissionCodeOne{1942-3454}% + \def\@permissionCodeTwo{1942-3462}% +\or % TODAES + \def\@journalName{ACM Transactions on Design Automation of Electronic Systems}% + \def\@journalNameShort{ACM Trans. Des. Autom. Electron. Syst.}% + \def\@permissionCodeOne{1084-4309}% + \def\@permissionCodeTwo{1557-7309}% +\or % TODS + \def\@journalName{ACM Transactions on Database Systems}% + \def\@journalNameShort{ACM Trans. Datab. Syst.}% + \def\@permissionCodeOne{0362-5915}% + \def\@permissionCodeTwo{1557-4644}% +\or % TOG + \def\@journalName{ACM Transactions on Graphics}% + \def\@journalNameShort{ACM Trans. Graph.}% + \def\@permissionCodeOne{0730-0301}% + \def\@permissionCodeTwo{1557-7368}% +\or % TOIS + \def\@journalName{ACM Transactions on Information Systems}% + \def\@journalNameShort{ACM Trans. Inf. Syst.}% + \def\@permissionCodeOne{1046-8188}% + \def\@permissionCodeTwo{1558-2868}% +\or % TOIT + \def\@journalName{ACM Transactions on Internet Technology}% + \def\@journalNameShort{ACM Trans. Internet Technol.}% + \def\@permissionCodeOne{1533-5399}% + \def\@permissionCodeTwo{1557-6051}% +\or % TOMACS + \def\@journalName{ACM Transactions on Modeling and Computer Simulation}% + \def\@journalNameShort{ACM Trans. Model. Comput. Simul.}% + \def\@permissionCodeOne{1049-3301}% + \def\@permissionCodeTwo{1558-1195}% +\or % TOMM + \def\@journalName{ACM Transactions on Multimedia Computing, Communications and Applications}% + \def\@journalNameShort{ACM Trans. Multimedia Comput. Commun. Appl.}% + \def\@permissionCodeOne{1551-6857}% + \def\@permissionCodeTwo{1551-6865}% +\or % TOMPECS + \def\@journalName{ACM Transactions on Modeling and Performance Evaluation of Computing Systems}% + \def\@journalNameShort{ACM Trans. Model. Perform. Eval. Comput. Syst.}% + \def\@permissionCodeOne{2376-3639}% + \def\@permissionCodeTwo{2376-3647}% +\or % TOMS + \def\@journalName{ACM Transactions on Mathematical Software}% + \def\@journalNameShort{ACM Trans. Math. Softw.}% + \def\@permissionCodeOne{0098-3500}% + \def\@permissionCodeTwo{1557-7295}% +\or % TOPC + \def\@journalName{ACM Transactions on Parallel Computing}% + \def\@journalNameShort{ACM Trans. Parallel Comput.}% + \def\@permissionCodeOne{2329-4949}% + \def\@permissionCodeTwo{2329-4957}% +\or % TOPLAS + \def\@journalName{ACM Transactions on Programming Languages and Systems}% + \def\@journalNameShort{ACM Trans. Program. Lang. Syst.}% + \def\@permissionCodeOne{0164-0925}% + \def\@permissionCodeTwo{1558-4593}% +\or % TOPML + \def\@journalName{ACM Transactions on Probabilistic Machine Learning}% + \def\@journalNameShort{ACM Trans. Probab. Mach. Learn.}% + \def\@permissionCodeOne{2836-8924}% + \def\@permissionCodeTwo{2836-8924}% +\or % TOPS + \def\@journalName{ACM Transactions on Privacy and Security}% + \def\@journalNameShort{ACM Trans. Priv. Sec.}% + \def\@permissionCodeOne{2471-2566}% + \def\@permissionCodeTwo{2471-2574}% +\or % TORS + \def\@journalName{ACM Transactions on Recommender Systems}% + \def\@journalNameShort{ACM Trans. Recomm. Syst.}% + \def\@permissionCodeOne{2770-6699}% + \def\@permissionCodeTwo{2770-6699}% +\or % TOS + \def\@journalName{ACM Transactions on Storage}% + \def\@journalNameShort{ACM Trans. Storage}% + \def\@permissionCodeOne{1553-3077}% + \def\@permissionCodeTwo{1553-3093}% +\or % TOSEM + \def\@journalName{ACM Transactions on Software Engineering and Methodology}% + \def\@journalNameShort{ACM Trans. Softw. Eng. Methodol.}% + \def\@permissionCodeOne{1049-331X}% + \def\@permissionCodeTwo{1557-7392}% +\or % TOSN + \def\@journalName{ACM Transactions on Sensor Networks}% + \def\@journalNameShort{ACM Trans. Sensor Netw.}% + \def\@permissionCodeOne{1550-4859}% + \def\@permissionCodeTwo{1550-4867}% +\or % TQC + \def\@journalName{ACM Transactions on Quantum Computing}% + \def\@journalNameShort{ACM Trans. Quantum Comput.}% + \def\@permissionCodeOne{2643-6817}% + \def\@permissionCodeTwo{2643-6817}% +\or % TRETS + \def\@journalName{ACM Transactions on Reconfigurable Technology and Systems}% + \def\@journalNameShort{ACM Trans. Reconfig. Technol. Syst.}% + \def\@permissionCodeOne{1936-7406}% + \def\@permissionCodeTwo{1936-7414}% +\or % TSAS + \def\@journalName{ACM Transactions on Spatial Algorithms and Systems}% + \def\@journalNameShort{ACM Trans. Spatial Algorithms Syst.}% + \def\@permissionCodeOne{2374-0353}% + \def\@permissionCodeTwo{2374-0361}% +\or % TSC + \def\@journalName{ACM Transactions on Social Computing}% + \def\@journalNameShort{ACM Trans. Soc. Comput.}% + \def\@permissionCodeOne{2469-7818}% + \def\@permissionCodeTwo{2469-7826}% +\or % TSLP + \def\@journalName{ACM Transactions on Speech and Language Processing}% + \def\@journalNameShort{ACM Trans. Speech Lang. Process.}% + \def\@permissionCodeOne{1550-4875}% + \def\@permissionCodeTwo{2329-9304}% +\or % TWEB + \def\@journalName{ACM Transactions on the Web}% + \def\@journalNameShort{ACM Trans. Web}% + \def\@permissionCodeOne{1559-1131}% + \def\@permissionCodeTwo{1559-114X}% +\else % FACMP, a dummy journal + \def\@journalName{ACM Just Accepted}% + \def\@journalNameShort{ACM Accepted}% + \def\@permissionCodeOne{XXXX-XXXX}% +\fi +\ClassInfo{\@classname}{Using journal code \@journalCode}% +}{% + \ClassError{\@classname}{Incorrect journal #1}% +}% +\def\acmJournal#1{\setkeys{ACM}{acmJournal=#1}% + \global\@ACM@journal@bibstriptrue + \global\@ACM@journal@bibstrip@or@togtrue} +\def\@journalCode@nr{0} +\def\@journalName{}% +\def\@journalNameShort{\@journalName}% +\def\@permissionCodeOne{XXXX-XXXX}% +\def\@permissionCodeTwo{\@permissionCodeOne}% +\newcommand\acmConference[4][]{% + \gdef\acmConference@shortname{#1}% + \gdef\acmConference@name{#2}% + \gdef\acmConference@date{#3}% + \gdef\acmConference@venue{#4}% + \ifx\acmConference@shortname\@empty + \gdef\acmConference@shortname{#2}% + \fi + \global\@ACM@journal@bibstripfalse + \ifx\@acmBooktitle\@empty\relax + \acmBooktitle{Proceedings of \acmConference@name + \ifx\acmConference@name\acmConference@shortname\else + \ (\acmConference@shortname)\fi}% + \fi +} +\if@ACM@journal\else +\acmConference[Conference'17]{ACM Conference}{July 2017}{Washington, + DC, USA}% +\fi +\def\acmBooktitle#1{\gdef\@acmBooktitle{#1}} +\acmBooktitle{} +\def\@editorsAbbrev{(Ed.)} +\def\@acmEditors{} +\def\editor#1{\ifx\@acmEditors\@empty + \gdef\@acmEditors{#1}% + \else + \gdef\@editorsAbbrev{(Eds.)}% + \g@addto@macro\@acmEditors{\and#1}% +\fi} +\def\subtitle#1{\def\@subtitle{#1}} +\subtitle{} +\newcount\num@authorgroups +\num@authorgroups=0\relax +\newcount\num@authors +\num@authors=0\relax +\newif\if@insideauthorgroup +\@insideauthorgroupfalse +\renewcommand\author[2][]{% + \IfSubStr{\detokenize{#2}}{,}{\ClassWarning{\@classname}{Do not put several + authors in the same \string\author\space macro!}}{}% + \global\advance\num@authors by 1\relax + \if@insideauthorgroup\else + \global\advance\num@authorgroups by 1\relax + \global\@insideauthorgrouptrue + \fi + \ifx\addresses\@empty + \if@ACM@anonymous + \gdef\addresses{\@author{Anonymous Author(s)% + \ifx\@acmSubmissionID\@empty\else\\Submission Id: + \@acmSubmissionID\fi}}% + \gdef\authors{Anonymous Author(s)}% + \else + \expandafter\gdef\expandafter\addresses\expandafter{% + \expandafter\@author\expandafter{% + \csname typeset@author\the\num@authors\endcsname{#2}}}% + \gdef\authors{#2}% + \fi + \else + \if@ACM@anonymous\else + \expandafter\g@addto@macro\expandafter\addresses\expandafter{% + \expandafter\and\expandafter\@author\expandafter{% + \csname typeset@author\the\num@authors\endcsname{#2}}}% + \g@addto@macro\authors{\and#2}% + \fi + \fi + \if@ACM@anonymous + \ifx\shortauthors\@empty + \gdef\shortauthors{Anon. + \ifx\@acmSubmissionID\@empty\else Submission Id: + \@acmSubmissionID\fi}% + \fi + \else + \def\@tempa{#1}% + \ifx\@tempa\@empty + \ifx\shortauthors\@empty + \gdef\shortauthors{#2}% + \else + \g@addto@macro\shortauthors{\and#2}% + \fi + \else + \ifx\shortauthors\@empty + \gdef\shortauthors{#1}% + \else + \g@addto@macro\shortauthors{\and#1}% + \fi + \fi + \fi} +\newcommand{\affiliation}[2][]{% + \global\@insideauthorgroupfalse + \if@ACM@anonymous\else + \g@addto@macro\addresses{\affiliation{#1}{#2}}% + \fi} +\define@boolkey+{@ACM@affiliation@}[@ACM@affiliation@]{obeypunctuation}% +[true]{}{\ClassError{\@classname}{The option obeypunctuation can be either true or false}} +\def\additionalaffiliation#1{\authornote{\@additionalaffiliation{#1}}} +\def\@additionalaffiliation#1{\bgroup + \def\position##1{\ignorespaces}% + \def\institution##1{##1\ignorespaces}% + \def\department{\@ifnextchar[{\@department}{\@department[]}}% + \def\@department[##1]##2{##2, \ignorespaces}% + \let\city\position + \let\state\position + \let\country\position + Also with #1\unskip.\egroup} +\renewcommand{\email}[2][]{% + \IfSubStr{#2}{,}{\ClassWarning{\@classname}{Do not put several + addresses in the same \string\email\space macro!}}{}% + \if@ACM@anonymous\else + \g@addto@macro\addresses{\email{#1}{#2}}% + \fi} +\def\orcid#1{\unskip\ignorespaces% + \protected\def\orcidsite{https://orcid.org/}% + \IfBeginWith{#1}{http}{% + \expandafter\gdef\csname + typeset@author\the\num@authors\endcsname##1{% + \href{#1}{##1}}}{% + \expandafter\gdef\csname + typeset@author\the\num@authors\endcsname##1{% + \href{\orcidsite#1}{##1}}}} +\def\authorsaddresses#1{\def\@authorsaddresses{#1}} +\authorsaddresses{\@mkauthorsaddresses} +\newcommand\@mktranslatedkeywords[2]{\bgroup + \selectlanguage{#1}% + {\@specialsection{\keywordsname}% + \noindent#2\par}\egroup} +\def\@titlenotes{} +\def\titlenote#1{% + \g@addto@macro\@title{\footnotemark}% + \if@ACM@anonymous + \g@addto@macro\@titlenotes{% + \stepcounter{footnote}\footnotetext{Title note}}% + \else + \g@addto@macro\@titlenotes{\stepcounter{footnote}\footnotetext{#1}}% + \fi} +\def\@subtitlenotes{} +\def\subtitlenote#1{% + \g@addto@macro\@subtitle{\footnotemark}% + \if@ACM@anonymous + \g@addto@macro\@subtitlenotes{% + \stepcounter{footnote}\footnotetext{Subtitle note}}% + \else + \g@addto@macro\@subtitlenotes{% + \stepcounter{footnote}\footnotetext{#1}}% + \fi} +\def\@authornotes{} +\def\authornote#1{% + \if@ACM@anonymous\else + \g@addto@macro\addresses{\@authornotemark}% + \g@addto@macro\@authornotes{% + \stepcounter{footnote}\footnotetext{#1}}% + \fi} +\newcommand\authornotemark[1][\relax]{% + \if@ACM@anonymous\else + \ifx#1\relax\relax\relax + \g@addto@macro\addresses{\@authornotemark}% + \else + \g@addto@macro\addresses{\@@authornotemark{#1}}% + \fi + \fi} +\def\acmVolume#1{\def\@acmVolume{#1}} +\acmVolume{1} +\def\acmNumber#1{\def\@acmNumber{#1}} +\acmNumber{1} +\def\acmArticle#1{\def\@acmArticle{#1}} +\acmArticle{} +\def\acmArticleSeq#1{\def\@acmArticleSeq{#1}} +\acmArticleSeq{\@acmArticle} +\def\acmYear#1{\def\@acmYear{#1}} +\acmYear{\the\year} +\def\acmMonth#1{\def\@acmMonth{#1}} +\acmMonth{\the\month} +\def\@acmPubDate{\ifcase\@acmMonth\or + January\or February\or March\or April\or May\or June\or + July\or August\or September\or October\or November\or + December\fi~\@acmYear} +\def\acmPrice#1{\ClassWarning{\@classname}{The macro \string\acmPrice + is obsolete. ACM no longer prints the price in bibstrip.}} +\def\acmSubmissionID#1{\def\@acmSubmissionID{#1}} +\acmSubmissionID{} +\def\acmISBN#1{\def\@acmISBN{#1}} +\acmISBN{978-x-xxxx-xxxx-x/YYYY/MM} +\def\acmDOI#1{\def\@acmDOI{#1}} +\acmDOI{10.1145/nnnnnnn.nnnnnnn} +\newlength\@ACM@badge@width +\setlength\@ACM@badge@width{3pc} +\newlength\@ACM@title@width +\newlength\@ACM@badge@skip +\setlength\@ACM@badge@skip{1pt} +\def\@acmBadgeR{} +\def\@acmBadgeL{} +\newcommand\acmBadgeR[2][]{% + \ifx\@acmBadgeR\@empty + \gdef\@acmBadgeR{% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \else + \g@addto@macro{\@acmBadgeR}{% + \hspace{\@ACM@badge@skip}% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \fi} +\newcommand\acmBadgeL[2][]{% + \ifx\@acmBadgeL\@empty + \gdef\@acmBadgeL{% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \else + \g@addto@macro{\@acmBadgeL}{% + \hspace{\@ACM@badge@skip}% + \smash{% + \raisebox{0.5\height}{% + \href{#1}{\includegraphics[width=\@ACM@badge@width]{#2}}}}}% + \fi} +\let\acmBadge=\acmBadgeR +\def\startPage#1{\def\@startPage{#1}} +\startPage{} +\def\terms#1{\ClassWarning{\@classname}{The command \string\terms{} is + obsolete. I am going to ignore it}} +\def\keywords#1{\def\@keywords{#1}} +\let\@keywords\@empty +\AtEndDocument{\if@ACM@nonacm\else\ifx\@keywords\@empty + \ifnum\getrefnumber{TotPages}>2\relax + \ClassWarningNoLine{\@classname}{ACM keywords are mandatory + for papers over two pages}% + \fi\fi\fi} +\renewenvironment{abstract}{\Collect@Body\@saveabstract}{} +\long\def\@saveabstract#1{\if@ACM@maketitle@typeset + \ClassError{\@classname}{Abstract must be defined before maketitle + command. Please move it!}\fi + \long\gdef\@abstract{#1}} +\@saveabstract{} +\long\def\@lempty{} +\define@boolkey+{@ACM@topmatter@}[@ACM@]{printccs}[true]{% + \if@ACM@printccs + \ClassInfo{\@classname}{Printing CCS}% + \else + \ClassInfo{\@classname}{Suppressing CCS}% + \fi}{\ClassError{\@classname}{The option printccs can be either true or false}} +\define@boolkey+{@ACM@topmatter@}[@ACM@]{printacmref}[true]{% + \if@ACM@printacmref + \ClassInfo{\@classname}{Printing bibformat}% + \else + \ClassInfo{\@classname}{Suppressing bibformat}% + \fi}{\ClassError{\@classname}{The option printacmref can be either true or false}} +\AtEndDocument{\if@ACM@nonacm\else\if@ACM@printacmref\else + \ifnum\getrefnumber{TotPages}>1\relax + \ClassWarningNoLine{\@classname}{% + ACM reference format is mandatory \MessageBreak + for papers over one page. \MessageBreak + Please add printacmref=true to the \MessageBreak + \string\settopmatter\space command.}% + \fi\fi\fi} +\define@boolkey+{@ACM@topmatter@}[@ACM@]{printfolios}[true]{% + \if@ACM@printfolios + \ClassInfo{\@classname}{Printing folios}% + \else + \ClassInfo{\@classname}{Suppressing folios}% + \fi}{\ClassError{\@classname}{The option printfolios can be either true or false}} +\define@cmdkey{@ACM@topmatter@}[@ACM@]{authorsperrow}[0]{% + \IfInteger{#1}{\ClassInfo{\@classname}{Setting authorsperrow to + #1}}{\ClassWarning{\@classname}{The parameter authorsperrow must be + numerical. Ignoring the input #1}\gdef\@ACM@authorsperrow{0}}} +\def\settopmatter#1{\setkeys{@ACM@topmatter@}{#1}} +\settopmatter{printccs=true, printacmref=true} +\if@ACM@manuscript + \settopmatter{printfolios=true} +\else + \if@ACM@journal + \settopmatter{printfolios=true} + \else + \settopmatter{printfolios=false} + \fi +\fi +\settopmatter{authorsperrow=0} +\def\@received{} +\newcommand\received[2][]{\def\@tempa{#1}% + \ifx\@tempa\@empty + \ifx\@received\@empty + \gdef\@received{Received #2}% + \else + \g@addto@macro{\@received}{; revised #2}% + \fi + \else + \ifx\@received\@empty + \gdef\@received{#1 #2}% + \else + \g@addto@macro{\@received}{; #1 #2}% + \fi + \fi} +\AtEndDocument{% + \ifx\@received\@empty\else + \par\bigskip\noindent{\small\normalfont\@received\par}% + \fi} +\define@choicekey+{ACM}{articletype}[\ACM@ArticleType\ACM@ArticleType@nr]{% + Research,Review,Discussion,Invited,Position}[Review]{% + \ifcase\ACM@ArticleType@nr + \relax % Research + \colorlet{@ACM@Article@color}{ACMBlue}% + \or % Review + \colorlet{@ACM@Article@color}{ACMOrange}% + \or % Discussion + \colorlet{@ACM@Article@color}{ACMGreen}% + \or % Invited + \colorlet{@ACM@Article@color}{ACMPurple}% + \or % Position + \colorlet{@ACM@Article@color}{ACMRed}% + \fi +}{% + \ClassError{\@classname}{Article Type must be Research, Review,\MessageBreak + Discussion, Invited, or Position}} +\def\acmArticleType#1{\setkeys{ACM}{articletype=#1}} +\if@ACM@acmcp +\acmArticleType{Research}% +\fi + % \end{macrocode} +\newenvironment{@ACM@color@frame}{% + \def\FrameCommand{\hspace*{-6.5pc}% + \colorbox{@ACM@Article@color!10!white}}% + \MakeFramed {\advance\hsize + -6.5pc\relax\FrameRestore}}{\zsaveposy{@ACM@acmcpframe@y}% + \endMakeFramed} +\def\acmCodeLink#1{% + \ifx\@acmCodeDataLink\@empty + \gdef\@acmCodeDataLink{\url{#1}}% + \else + \g@addto@macro{\@acmCodeDataLink}{\\ \url{#1}}% + \fi} +\def\@acmCodeDataLink{} +\def\acmContributions#1{\gdef\@acmContributions{#1}} +\acmContributions{} +\let\acmDataLink\acmCodeLink +\RequirePackage{comment} +\excludecomment{CCSXML} +\let\@concepts\@empty +\newcounter{@concepts} +\newcommand\ccsdesc[2][100]{% + \ccsdesc@parse#1~#2~~\ccsdesc@parse@end} +\def\textrightarrow{$\rightarrow$} +\def\ccsdesc@parse#1~#2~#3~{% + \stepcounter{@concepts}% + \expandafter\ifx\csname CCS@General@#2\endcsname\relax + \expandafter\gdef\csname CCS@General@#2\endcsname{\textbullet\ + \textbf{#2}}% + \expandafter\gdef\csname CCS@Punctuation@#2\endcsname{; }% + \expandafter\gdef\csname CCS@Specific@#2\endcsname{}% + \g@addto@macro{\@concepts}{\csname CCS@General@#2\endcsname + \csname CCS@Punctuation@#2\endcsname + \csname CCS@Specific@#2\endcsname}% + \fi + \ifx#3\relax\relax\else + \expandafter\gdef\csname CCS@Punctuation@#2\endcsname{ + \textrightarrow\ }% + \expandafter\g@addto@macro\expandafter{\csname CCS@Specific@#2\endcsname}{% + \addtocounter{@concepts}{-1}% + \ifnum#1>499\textbf{#3}\else + \ifnum#1>299\textit{#3}\else + #3\fi\fi\ifnum\value{@concepts}=0.\else; \fi}% + \fi +\ccsdesc@parse@finish} +\AtEndDocument{\if@ACM@nonacm\else\ifx\@concepts\@empty\relax + \ifnum\getrefnumber{TotPages}>2\relax + \ClassWarningNoLine{\@classname}{CCS concepts are mandatory + for papers over two pages}% + \fi\fi\fi} +\def\ccsdesc@parse@finish#1\ccsdesc@parse@end{} +\newif\if@printcopyright +\@printcopyrighttrue +\newif\if@printpermission +\@printpermissiontrue +\newif\if@acmowned +\@acmownedtrue +\define@choicekey*{ACM@}{acmcopyrightmode}[% + \acm@copyrightinput\acm@copyrightmode]{none,% + acmcopyright,acmlicensed,rightsretained,% + usgov,usgovmixed,cagov,cagovmixed,licensedusgovmixed,% + licensedcagov,licensedcagovmixed,othergov,licensedothergov,% + iw3c2w3,iw3c2w3g,cc}{% + \@printpermissiontrue + \@printcopyrighttrue + \@acmownedtrue + \ifnum\acm@copyrightmode=0\relax % none + \@printpermissionfalse + \@printcopyrightfalse + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=2\relax % acmlicensed + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=3\relax % rightsretained + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=4\relax % usgov + \@printpermissiontrue + \@printcopyrightfalse + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=6\relax % cagov + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=8\relax % licensedusgovmixed + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=9\relax % licensedcagov + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=10\relax % licensedcagovmixed + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=11\relax % othergov + \@acmownedtrue + \fi + \ifnum\acm@copyrightmode=12\relax % licensedothergov + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=13\relax % iw3c2w3 + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=14\relax % iw3c2w3g + \@acmownedfalse + \fi + \ifnum\acm@copyrightmode=15\relax % cc + \@acmownedfalse + \fi} +\def\setcopyright#1{\setkeys{ACM@}{acmcopyrightmode=#1}} +\setcopyright{acmlicensed} +\newcommand\setcctype[2][4.0]{% + \def\ACM@cc@version{#1}% + \def\ACM@cc@type{#2}} +\setcctype{by} +\def\@copyrightowner{% + \ifcase\acm@copyrightmode\relax % none + \or % acmcopyright + ACM\@. + \or % acmlicensed + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % rightsretained + Copyright held by the owner/author(s). + \or % usgov + \or % usgovmixed + Copyright held by the owner/author(s). + \or % cagov + Copyright Crown in Right of Canada. + \or %cagovmixed + Copyright held by the owner/author(s). + \or %licensedusgovmixed + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % licensedcagov + Copyright held by the owner/author(s). + \or %licensedcagovmixed + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % othergov + Copyright held by the owner/author(s). + \or % licensedothergov + Copyright held by the owner/author(s). Publication rights licensed to + ACM\@. + \or % ic2w3www + IW3C2 (International World Wide Web Conference Committee), published + under Creative Commons CC-BY~4.0 License. + \or % ic2w3wwwgoogle + IW3C2 (International World Wide Web Conference Committee), published + under Creative Commons CC-BY-NC-ND~4.0 License. + \or % cc + Copyright held by the owner/author(s). + \fi} +\def\@formatdoi#1{\url{https://doi.org/#1}} +\def\@copyrightpermission{% + \ifcase\acm@copyrightmode\relax % none + \or % acmcopyright + Permission to make digital or hard copies of all or part of this + work for personal or classroom use is granted without fee provided + that copies are not made or distributed for profit or commercial + advantage and that copies bear this notice and the full citation on + the first page. Copyrights for components of this work owned by + others than ACM must be honored. Abstracting with credit is + permitted. To copy otherwise, or republish, to post on servers or + to redistribute to lists, requires prior specific permission + and\hspace*{.5pt}/or + a fee. Request permissions from permissions@acm.org. + \or % acmlicensed + Permission to make digital or hard copies of all or part of this + work for personal or classroom use is granted without fee provided + that copies are not made or distributed for profit or commercial + advantage and that copies bear this notice and the full citation on + the first page. Copyrights for components of this work owned by + others than the author(s) must be honored. Abstracting with credit + is permitted. To copy otherwise, or republish, to post on servers + or to redistribute to lists, requires prior specific permission + and\hspace*{.5pt}/or a fee. Request permissions from + permissions@acm.org. + \or % rightsretained + Permission to make digital or hard copies of all or part of this + work for personal or classroom use is granted without fee provided + that copies are not made or distributed for profit or commercial + advantage and that copies bear this notice and the full citation on + the first page. Copyrights for third-party components of this work + must be honored. For all other uses, contact the + owner\hspace*{.5pt}/author(s). + \or % usgov + This paper is authored by an employee(s) of the United States + Government and is in the public domain. Non-exclusive copying or + redistribution is allowed, provided that the article citation is + given and the authors and agency are clearly identified as its + source. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % usgovmixed + ACM acknowledges that this contribution was authored or co-authored + by an employee, contractor, or affiliate of the United States + government. As such, the United States government retains a + nonexclusive, royalty-free right to publish or reproduce this + article, or to allow others to do so, for government purposes + only. Request permissions from owner\hspace*{.5pt}/author(s). + \or % cagov + This article was authored by employees of the Government of + Canada. As such, the Canadian government retains all interest in + the copyright to this work and grants to ACM a nonexclusive, + royalty-free right to publish or reproduce this article, or to + allow others to do so, provided that clear attribution is given + both to the authors and the Canadian government agency employing + them. Permission to make digital or hard copies for personal or + classroom use is granted. Copies must bear this notice and the full + citation on the first page. Copyrights for components of this work + owned by others than the Canadian Government must be honored. To + copy otherwise, distribute, republish, or post, requires prior + specific permission and/or a fee. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % cagovmixed + ACM acknowledges that this contribution was co-authored by an + affiliate of the national government of Canada. As such, the Crown + in Right of Canada retains an equal interest in the + copyright. Reprints must include clear attribution to ACM and the + author’s government agency affiliation. Permission to make digital + or hard copies for personal or classroom use is granted. Copies + must bear this notice and the full citation on the first + page. Copyrights for components of this work owned by others than + ACM must be honored. To copy otherwise, distribute, republish, or + post, requires prior specific permission and/or a fee. Request + permissions from owner\hspace*{.5pt}/author(s). + \or % licensedusgovmixed + Publication rights licensed to ACM\@. ACM acknowledges that this + contribution was authored or co-authored by an employee, contractor + or affiliate of the United States government. As such, the + Government retains a nonexclusive, royalty-free right to publish or + reproduce this article, or to allow others to do so, for Government + purposes only. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % licensedcagov + This article was authored by employees of the Government of + Canada. As such, the Canadian government retains all interest in + the copyright to this work and grants to ACM a nonexclusive, + royalty-free right to publish or reproduce this article, or to + allow others to do so, provided that clear attribution is given + both to the authors and the Canadian government agency employing + them. Permission to make digital or hard copies for personal or + classroom use is granted. Copies must bear this notice and the full + citation on the first page. Copyrights for components of this work + owned by others than the Canadian Government must be honored. To + copy otherwise, distribute, republish, or post, requires prior + specific permission and/or a fee. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % licensedcagovmixed + Publication rights licensed to ACM. ACM acknowledges that this + contribution was authored or co-authored by an employee, contractor + or affiliate of the national government of Canada. As such, the + Government retains a nonexclusive, royalty-free right to publish or + reproduce this article, or to allow others to do so, for Government + purposes only. Request permissions from + owner\hspace*{.5pt}/author(s). + \or % othergov + ACM acknowledges that this contribution was authored or co-authored + by an employee, contractor or affiliate of a national + government. As such, the Government retains a nonexclusive, + royalty-free right to publish or reproduce this article, or to + allow others to do so, for Government purposes only. Request + permissions from owner\hspace*{.5pt}/author(s). + \or % licensedothergov + Publication rights licensed to ACM\@. ACM acknowledges that this + contribution was authored or co-authored by an employee, contractor + or affiliate of a national government. As such, the Government + retains a nonexclusive, royalty-free right to publish or reproduce + this article, or to allow others to do so, for Government purposes + only. Request permissions from owner\hspace*{.5pt}/author(s). + \or % iw3c2w3 + This paper is published under the Creative Commons Attribution~4.0 + International (CC-BY~4.0) license. Authors reserve their rights to + disseminate the work on their personal and corporate Web sites with + the appropriate attribution. + \or % iw3c2w3g + This paper is published under the Creative Commons + Attribution-NonCommercial-NoDerivs~4.0 International + (CC-BY-NC-ND~4.0) license. Authors reserve their rights to + disseminate the work on their personal and corporate Web sites with + the appropriate attribution. + \or % CC + \IfEq{\ACM@cc@type}{zero}{% + \def\ACM@CC@Url{https://creativecommons.org/publicdomain/zero/1.0}}{% + \edef\ACM@CC@Url{https://creativecommons.org/licenses/\ACM@cc@type/\ACM@cc@version}}% + \href{\ACM@CC@Url}{\includegraphics[height=5ex]{doclicense-CC-\ACM@cc@type-88x31}}\\ + \href{\ACM@CC@Url}{% + This work is licensed under a Creative Commons + \IfEq{\ACM@cc@type}{zero}{CC0 1.0 Universal}{% + \IfEq{\ACM@cc@type}{by}{Attribution}{}% + \IfEq{\ACM@cc@type}{by-sa}{Attribution-ShareAlike}{}% + \IfEq{\ACM@cc@type}{by-nd}{Attribution-NoDerivatives}{}% + \IfEq{\ACM@cc@type}{by-nc}{Attribution-NonCommercial}{}% + \IfEq{\ACM@cc@type}{by-nc-sa}{Attribution-NonCommercial-ShareAlike}{}% + \IfEq{\ACM@cc@type}{by-nc-nd}{Attribution-NonCommercial-NoDerivatives}{}% + ~\IfEq{\ACM@cc@version}{4.0}{4.0 International}{3.0 Unported}% + } + License.}% + \fi} +%% +\def\copyrightyear#1{\def\@copyrightyear{#1}} +\copyrightyear{\@acmYear} +\def\@teaserfigures{} +\newenvironment{teaserfigure}{\Collect@Body\@saveteaser}{} +\long\def\@saveteaser#1{\g@addto@macro\@teaserfigures{\@teaser{#1}}} +\renewcommand{\thanks}[1]{% + \@ifnotempty{#1}{% + \if@ACM@anonymous + \g@addto@macro\thankses{\thanks{A note}}% + \else + \g@addto@macro\thankses{\thanks{#1}}% + \fi}} +\newcommand{\anon}[2][ANONYMIZED]{% + \if@ACM@anonymous% + {\color{ACMOrange}#1}% + \else% + #2% + \fi} +\ifx\@beginmaketitlehook\@undefined + \let\@beginmaketitlehook\@empty +\fi +\def\AtBeginMaketitle{\g@addto@macro\@beginmaketitlehook} +\def\@acmengagemetadata{} +\def\setengagemetadata#1#2{% + \g@addto@macro{\@acmengagemetadata}{% + \@setengagemetadata{#1}{#2}}} +\newbox\mktitle@bx +\def\maketitle{\@beginmaketitlehook + \@ACM@maketitle@typesettrue + \if@ACM@anonymous + % Anonymize omission of \author-s + \ifnum\num@authorgroups=0\author{}\fi + \fi + \begingroup + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \let\@footnotemark\@footnotemark@nolink + \let\@footnotetext\@footnotetext@nolink + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \hsize=\textwidth + \def\@makefnmark{\hbox{\@textsuperscript{\@thefnmark}}}% + \@mktitle\if@ACM@sigchiamode\else\@mkauthors\fi\@mkteasers + \@printtopmatter + \if@ACM@sigchiamode\@mkauthors\fi + \setcounter{footnote}{0}% + \def\@makefnmark{\hbox{\@textsuperscript{\normalfont\@thefnmark}}}% + \@titlenotes + \@subtitlenotes + \@authornotes + \let\@makefnmark\relax + \let\@thefnmark\relax + \let\@makefntext\noindent + \ifx\@empty\thankses\else + \footnotetextauthorsaddresses{% + \def\par{\let\par\@par}\parindent\z@\@setthanks}% + \fi + \if@ACM@acmcp\else + \ifx\@empty\@authorsaddresses\else + \if@ACM@anonymous\else + \if@ACM@journal@bibstrip@or@tog + \footnotetextauthorsaddresses{% + \def\par{\let\par\@par}\parindent\z@\@setauthorsaddresses}% + \fi + \fi + \fi + \fi + \if@ACM@nonacm + \ifnum\acm@copyrightmode=15\relax % cc + \footnotetextcopyrightpermission{\@copyrightpermission}% + \fi + \else + \if@ACM@acmcp\else + \footnotetextcopyrightpermission{% + \if@ACM@authordraft + \raisebox{-2ex}[\z@][\z@]{\makebox[0pt][l]{\large\bfseries + Unpublished working draft. Not for distribution.}}% + \color[gray]{0.9}% + \fi + \parindent\z@\parskip0.1\baselineskip + \if@ACM@authorversion\else + \if@printpermission\@copyrightpermission\par\fi + \fi + \if@ACM@manuscript\else + \if@ACM@journal@bibstrip\else % Print the conference information + \if@ACM@engage + {\itshape \@acmBooktitle, \@acmYear.}\par + \else + {\itshape \acmConference@shortname, \acmConference@venue}\par + \fi + \fi + \fi + \if@printcopyright + \copyright\ \@copyrightyear\ \@copyrightowner\\ + \else + \ifx\@copyrightyear\@empty\else + \@copyrightyear.\ + \fi + \fi + \if@ACM@manuscript + Manuscript submitted to ACM\\ + \else + \if@ACM@authorversion + This is the author's version of the work. It is posted here for + your personal use. Not for redistribution. The definitive Version + of Record was published in + \if@ACM@journal@bibstrip + \emph{\@journalName}% + \else + \emph{\@acmBooktitle}% + \fi + \ifx\@acmDOI\@empty + . + \else + , \@formatdoi{\@acmDOI}. + \fi\\ + \else + \if@ACM@nonacm\else + \if@ACM@journal@bibstrip + ACM~\@permissionCodeTwo/\@acmYear/\@acmMonth-ART\@acmArticle\\ + \@formatdoi{\@acmDOI}% + \else % Conference + \ifx\@acmISBN\@empty\else ACM~ISBN~\@acmISBN\\\fi + \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi% + \fi + \fi + \fi + \fi}% + \fi + \fi + \endgroup + \if@ACM@engage\@typesetengagemetadata\fi + \setcounter{footnote}{0}% + \@mkabstract + \ifx\@translatedabstracts\@empty\else + \@translatedabstracts\fi + \if@ACM@printccs + \ifx\@concepts\@empty\else\bgroup + {\@specialsection{CCS Concepts}% + \noindent\@concepts\par}\egroup + \fi + \fi + \if@ACM@acmcp\else + \ifx\@keywords\@empty\else\bgroup + {\@specialsection{\keywordsname}% + \noindent\@keywords\par}\egroup + \fi + \ifx\@translatedkeywords\@empty\else + \@translatedkeywords + \fi + \fi + \let\metadata@authors=\authors + \nxandlist{, }{, }{, }\metadata@authors + \def\@ACM@checkaffil{}% + \hypersetup{% + pdfauthor={\metadata@authors}, + pdftitle={\@title}, + pdfsubject={\@concepts}, + pdfkeywords={\@keywords}, + pdfcreator={LaTeX with acmart + \csname ver@\@classname.cls\endcsname\space + and hyperref + \csname ver@hyperref.sty\endcsname}}% + \andify\authors + \andify\shortauthors + \global\let\authors=\authors + \global\let\shortauthors=\shortauthors + \if@ACM@printacmref + \@mkbibcitation + \fi + \global\@topnum\z@ % this prevents floats from falling + % at the top of page 1 + \global\@botnum\z@ % we do not want them to be on the bottom either + \@printendtopmatter + \@afterindentfalse + \@afterheading + \if@ACM@acmcp + \set@ACM@acmcpbox + \AtEndDocument{\end@ACM@color@frame}% + \@ACM@color@frame + \fi +} +\newbox\@ACM@acmcpbox +\def\set@ACM@acmcpbox{% + \bgroup + \hsize=5pc + \global\setbox\@ACM@acmcpbox=\vbox{% + \setlength{\parindent}{\z@}% + {\includegraphics[width=\hsize]{acm-jdslogo}\par}% + \scriptsize + \ifnum\getrefnumber{TotPages}>1\else + \zrefused{@ACM@acmcpbox@y}% + \zrefused{@ACM@acmcpframe@y}% + \@tempdima=\dimexpr\zposy{@ACM@acmcpbox@y}sp - + \zposy{@ACM@acmcpframe@y}sp+0.3\FrameSep+ + \@ACM@acmcp@delta\relax + \ifdim\@tempdima>0pt\relax + \vspace*{\@tempdima}% + \protected@write\@auxout{}% + {\string\global\@ACM@acmcp@delta=\the\@tempdima\relax}% + \fi + \fi + \ifx\@acmCodeDataLink\@empty\else\bigskip + Code and data links:\\ \@acmCodeDataLink\par\bigskip + \fi + \ifx\@keywords\@empty\else\bigskip + Keywords: \@keywords\par + \fi + \ifx\@acmContributions\@empty\else\bigskip + \@acmContributions\par + \fi + \ifx\@empty\@authorsaddresses\else\bigskip\@setauthorsaddresses\fi + \zsaveposy{@ACM@acmcpbox@y}% + \par + } +\egroup} +\def\@specialsection#1{% + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \ifcase\ACM@format@nr + \relax % manuscript + \par\medskip\small\noindent#1: % + \or % acmsmall + \par\medskip\small\noindent#1: % + \or % acmlarge + \par\medskip\small\noindent#1: % + \or % acmtog + \par\medskip\small\noindent#1: % + \or % sigconf + \section*{#1}% + \or % siggraph + \section*{#1}% + \or % sigplan + \noindentparagraph*{#1:~}% + \or % sigchi + \section*{#1}% + \or % sigchi-a + \section*{#1}% + \or % acmengage + \section*{#1}% + \or % acmcp + \section*{#1}% + \fi + \let\@vspace\@vspace@acm + \let\@vspacer\@vspacer@acm +} +\def\@printtopmatter{% + \ifx\@startPage\@empty + \gdef\@startPage{1}% + \else + \setcounter{page}{\@startPage}% + \fi + \@tempdima=\ht\mktitle@bx + \advance\@tempdima by \dp\mktitle@bx + \ifdim\@tempdima>0.9\textheight + \loop + \setbox\@tempboxa=\vsplit \mktitle@bx to 0.9\textheight + \thispagestyle{firstpagestyle}% + \noindent\unvbox\@tempboxa + \clearpage + \@tempdima=\ht\mktitle@bx + \advance\@tempdima by \dp\mktitle@bx + \ifdim\@tempdima>0.9\textheight\repeat + \fi + \thispagestyle{firstpagestyle}% + \noindent + \ifcase\ACM@format@nr + \relax % manuscript + \box\mktitle@bx\par + \or % acmsmall + \box\mktitle@bx\par + \or % acmlarge + \box\mktitle@bx\par + \or % acmtog + \twocolumn[\box\mktitle@bx]% + \or % sigconf + \twocolumn[\box\mktitle@bx]% + \or % siggraph + \twocolumn[\box\mktitle@bx]% + \or % sigplan + \twocolumn[\box\mktitle@bx]% + \or % sigchi + \twocolumn[\box\mktitle@bx]% + \or % sigchi-a + \par\box\mktitle@bx\par\bigskip + \or % acmengage + \twocolumn[\box\mktitle@bx]% + \or % acmcp + \box\mktitle@bx\par + \fi +} +\def\@mktitle{% + \ifcase\ACM@format@nr + \relax % manuscript + \@mktitle@i + \or % acmsmall + \@mktitle@i + \or % acmlarge + \@mktitle@i + \or % acmtog + \@mktitle@i + \or % sigconf + \@mktitle@iii + \or % siggraph + \@mktitle@iii + \or % sigplan + \@mktitle@iii + \or % sigchi + \@mktitle@iii + \or % sigchi-a + \@mktitle@iv + \or % acmengage + \@mktitle@iii + \or % acmcp + \@mktitle@i + \fi +} +\def\@titlefont{% + \ifcase\ACM@format@nr + \relax % manuscript + \LARGE\sffamily\bfseries + \or % acmsmall + \LARGE\sffamily\bfseries + \or % acmlarge + \LARGE\sffamily\bfseries + \or % acmtog + \Huge\sffamily + \or % sigconf + \Huge\sffamily\bfseries + \or % siggraph + \Huge\sffamily\bfseries + \or % sigplan + \Huge\bfseries + \or % sigchi + \Huge\sffamily\bfseries + \or % sigchi-a + \Huge\bfseries + \or % acmengage + \Huge\sffamily\bfseries + \or % acmcp + \LARGE\sffamily\bfseries + \fi} +\def\@subtitlefont{\normalsize + \ifcase\ACM@format@nr + \relax % manuscript + \mdseries + \or % acmsmall + \mdseries + \or % acmlarge + \mdseries + \or % acmtog + \LARGE + \or % sigconf + \LARGE\mdseries + \or % siggraph + \LARGE\mdseries + \or % sigplan + \LARGE\mdseries + \or % sigchi + \LARGE\mdseries + \or % sigchi-a + \mdseries + \or % acmengage + \LARGE\mdseries + \or % acmcp + \mdseries + \fi} +\def\@mktitle@i{\hsize=\textwidth + \if@ACM@acmcp + \advance\hsize by -6pc% + \fi + \@ACM@title@width=\hsize + \setbox\mktitle@bx=\vbox{\noindent\@titlefont + \parbox[t]{\@ACM@title@width}{\raggedright + \@titlefont\noindent + \@title\@translatedtitle% + \ifx\@subtitle\@empty\else + \par\noindent{\@subtitlefont\@subtitle\@translatedsubtitle}% + \fi}% + \par\bigskip}}% +\def\@mktitle@iii{\hsize=\textwidth + \setbox\mktitle@bx=\vbox{\@titlefont\centering + \@ACM@title@width=\hsize + \parbox[t]{\@ACM@title@width}{\centering\@titlefont + \@title\@translatedtitle% + \ifx\@subtitle\@empty\else + \par\noindent{\@subtitlefont\@subtitle\@translatedsubtitle} + \fi + }% + \par\bigskip}}% +\def\@mktitle@iv{\hsize=\textwidth + \setbox\mktitle@bx=\vbox{\raggedright\leftskip5pc\@titlefont + \noindent\leavevmode\leaders\hrule height 2pt\hfill\kern0pt\par + \noindent\@title\@translatedtitle% + \ifx\@subtitle\@empty\else + \par\noindent\@subtitlefont\@subtitle\@translatedsubtitle% + \fi + \par\bigskip}}% +\newbox\@ACM@commabox +\def\@ACM@addtoaddress#1{% + \ifvmode\else + \if@ACM@affiliation@obeypunctuation\else + \setbox\@ACM@commabox=\hbox{, }% + \unskip\cleaders\copy\@ACM@commabox\hskip\wd\@ACM@commabox + \fi\fi + #1} +\def\streetaddress#1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your street + address}\unskip\ignorespaces} +\def\postcode#1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your postal + code}\unskip\ignorespaces} +\if@ACM@journal + \def\position#1{\unskip\ignorespaces} + \def\institution#1{\global\@ACM@instpresenttrue + \unskip~#1\ignorespaces} + \def\city#1{\global\@ACM@citypresenttrue\unskip\ignorespaces} + \def\state#1{\unskip\ignorespaces} + \newcommand\department[2][0]{\unskip\ignorespaces} + \def\country#1{\StrDel{#1}{ }[\@tempa]% + \ifx\@tempa\@empty\else + \global\@ACM@countrypresenttrue\fi + \if@ACM@affiliation@obeypunctuation\else, \fi#1\ignorespaces} +\else + \def\position#1{\if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% + \def\institution#1{\global\@ACM@instpresenttrue + \if@ACM@affiliation@obeypunctuation#1\else#1\par\fi}% + \newcommand\department[2][0]{\if@ACM@affiliation@obeypunctuation + #2\else#2\par\fi}% + \def\city#1{\global\@ACM@citypresenttrue\@ACM@addtoaddress{#1}}% + \let\state\@ACM@addtoaddress + \def\country#1{\global\@ACM@countrypresenttrue\@ACM@addtoaddress{#1}}% +\fi +\def\@mkauthors{\begingroup + \hsize=\textwidth + \ifcase\ACM@format@nr + \relax % manuscript + \@mkauthors@i + \or % acmsmall + \@mkauthors@i + \or % acmlarge + \@mkauthors@i + \or % acmtog + \@mkauthors@i + \or % sigconf + \@mkauthors@iii + \or % siggraph + \@mkauthors@iii + \or % sigplan + \@mkauthors@iii + \or % sigchi + \@mkauthors@iii + \or % sigchi-a + \@mkauthors@iv + \or % acmengage + \@mkauthors@iii + \or % acmcp + \@mkauthors@i + \fi + \endgroup +} +\def\@authorfont{\Large\sffamily} +\def\@affiliationfont{\normalsize\normalfont} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall + \def\@authorfont{\large\sffamily} + \def\@affiliationfont{\small\normalfont} +\or % acmlarge +\or % acmtog + \def\@authorfont{\LARGE\sffamily} + \def\@affiliationfont{\large} +\or % sigconf + \def\@authorfont{\LARGE} + \def\@affiliationfont{\large} +\or % siggraph + \def\@authorfont{\normalsize\normalfont} + \def\@affiliationfont{\normalsize\normalfont} +\or % sigplan + \def\@authorfont{\Large\normalfont} + \def\@affiliationfont{\normalsize\normalfont} +\or % sigchi + \def\@authorfont{\bfseries} + \def\@affiliationfont{\mdseries} +\or % sigchi-a + \def\@authorfont{\bfseries} + \def\@affiliationfont{\mdseries} +\or % acmengage + \def\@authorfont{\LARGE} + \def\@affiliationfont{\large} +\or % acmcp + \def\@authorfont{\large\sffamily} + \def\@affiliationfont{\small\normalfont} +\fi +\def\@typeset@author@line{% + \andify\@currentauthors\par\noindent + \@currentauthors\def\@currentauthors{}% + \ifx\@currentaffiliations\@empty\else + \andify\@currentaffiliations + \unskip, {\@currentaffiliations}\par + \fi + \def\@currentaffiliations{}} +\newif\if@ACM@instpresent +\@ACM@instpresenttrue +\newif\if@ACM@citypresent +\@ACM@citypresenttrue +\newif\if@ACM@countrypresent +\@ACM@countrypresenttrue +\def\@ACM@resetaffil{% + \global\@ACM@instpresentfalse + \global\@ACM@citypresentfalse + \global\@ACM@countrypresentfalse +} +\def\@ACM@checkaffil{% + \if@ACM@instpresent\else + \ClassWarningNoLine{\@classname}{No institution present for an affiliation}% + \fi + \if@ACM@citypresent\else + \ClassWarningNoLine{\@classname}{No city present for an affiliation}% + \fi + \if@ACM@countrypresent\else + \ClassError{\@classname}{No country present for an affiliation}{ACM + requires each author to indicate their country using country macro.}% + \fi +} +\def\@mkauthors@i{% + \def\@currentauthors{}% + \def\@currentaffiliations{}% + \global\let\and\@typeset@author@line + \def\@author##1{% + \ifx\@currentauthors\@empty + \gdef\@currentauthors{\@authorfont\MakeUppercase{##1}}% + \else + \g@addto@macro{\@currentauthors}{\and\MakeUppercase{##1}}% + \fi + \gdef\and{}}% + \def\email##1##2{}% + \def\affiliation##1##2{% + \def\@tempa{##2}\ifx\@tempa\@empty\else + \ifx\@currentaffiliations\@empty + \gdef\@currentaffiliations{% + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}% + \@ACM@resetaffil + \@affiliationfont##2\@ACM@checkaffil}% + \else + \g@addto@macro{\@currentaffiliations}{\and + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \fi + \fi + \global\let\and\@typeset@author@line}% + \if@ACM@acmcp + \advance\hsize by -6pc% + \fi + \global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par\medskip + \noindent\addresses\@typeset@author@line + \par\medskip}% +} +\newbox\author@bx +\newdimen\author@bx@wd +\newskip\author@bx@sep +\author@bx@sep=1pc\relax +\def\@typeset@author@bx{\bgroup\hsize=\author@bx@wd + \def\and{\par}\normalbaselines + \global\setbox\author@bx=\vtop{\if@ACM@sigchiamode\else\centering\fi + \@authorfont\@currentauthors\par\@affiliationfont + \@currentaffiliation}\egroup + \box\author@bx\hspace{\author@bx@sep}% + \gdef\@currentauthors{}% + \gdef\@currentaffiliation{}} +\def\@mkauthors@iii{% + \author@bx@wd=\textwidth\relax + \advance\author@bx@wd by -\author@bx@sep\relax + \ifnum\@ACM@authorsperrow>0\relax + \divide\author@bx@wd by \@ACM@authorsperrow\relax + \else + \ifcase\num@authorgroups + \relax % 0? + \or % 1=one author per row + \or % 2=two authors per row + \divide\author@bx@wd by \num@authorgroups\relax + \or % 3=three authors per row + \divide\author@bx@wd by \num@authorgroups\relax + \or % 4=two authors per row (!) + \divide\author@bx@wd by 2\relax + \else % three authors per row + \divide\author@bx@wd by 3\relax + \fi + \fi + \advance\author@bx@wd by -\author@bx@sep\relax + \gdef\@currentauthors{}% + \gdef\@currentaffiliation{}% + \def\@author##1{\ifx\@currentauthors\@empty + \gdef\@currentauthors{\par##1}% + \else + \g@addto@macro\@currentauthors{\par##1}% + \fi + \gdef\and{}}% + \def\email##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{\bgroup + \mathchardef\UrlBreakPenalty=10000\nolinkurl{##2}\egroup}% + \else + \g@addto@macro\@currentaffiliation{\par\bgroup + \mathchardef\UrlBreakPenalty=10000\nolinkurl{##2}\egroup}% + \fi}% + \def\affiliation##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{% + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \else + \g@addto@macro\@currentaffiliation{\par + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \fi + \global\let\and\@typeset@author@bx +}% + \hsize=\textwidth + \global\setbox\mktitle@bx=\vbox{\noindent + \unvbox\mktitle@bx\par\medskip\leavevmode + \lineskip=1pc\relax\centering\hspace*{-1em}% + \addresses\let\and\@typeset@author@bx\and\par\bigskip}} +\def\@mkauthors@iv{% + \author@bx@wd=\columnwidth\relax + \advance\author@bx@wd by -\author@bx@sep\relax + \ifnum\@ACM@authorsperrow>0\relax + \divide\author@bx@wd by \@ACM@authorsperrow\relax + \else + \ifcase\num@authorgroups + \relax % 0? + \or % 1=one author per row + \else % 2=two authors per row + \divide\author@bx@wd by 2\relax + \fi + \fi + \advance\author@bx@wd by -\author@bx@sep\relax + \gdef\@currentauthors{}% + \gdef\@currentaffiliation{}% + \def\@author##1{\ifx\@currentauthors\@empty + \gdef\@currentauthors{\par##1}% + \else + \g@addto@macro\@currentauthors{\par##1}% + \fi + \gdef\and{}}% + \def\email##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{\nolinkurl{##2}}% + \else + \g@addto@macro\@currentaffiliation{\par\nolinkurl{##2}}% + \fi}% + \def\affiliation##1##2{\ifx\@currentaffiliation\@empty + \gdef\@currentaffiliation{% + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \else + \g@addto@macro\@currentaffiliation{\par + \setkeys{@ACM@affiliation@}{obeypunctuation=false}% + \setkeys{@ACM@affiliation@}{##1}\@ACM@resetaffil + ##2\@ACM@checkaffil}% + \fi + \global\let\and\@typeset@author@bx}% + \bgroup\hsize=\columnwidth + \par\raggedright\leftskip=\z@ + \lineskip=1pc\noindent + \addresses\let\and\@typeset@author@bx\and\par\bigskip\egroup} +\def\@mkauthorsaddresses{% + \ifnum\num@authors>1\relax + Authors' \else Author's \fi + Contact Information: + \bgroup + \def\streetaddress##1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your street + address}\unskip\ignorespaces}% + \def\postcode##1{\ClassWarning{\@classname}{ACM no longer collects + authors' postal addresses. I am ignoring your postal + code}\unskip\ignorespaces}% + \def\position##1{\unskip\ignorespaces}% + \gdef\@ACM@institution@separator{, }% + \def\institution##1{\unskip\@ACM@institution@separator ##1\gdef\@ACM@institution@separator{ and }}% + \def\city##1{\unskip, ##1}% + \def\state##1{\unskip, ##1}% + \renewcommand\department[2][0]{\unskip\@addpunct, ##2}% + \def\country##1{\unskip, ##1}% + \def\and{\unskip; \gdef\@ACM@institution@separator{, }}% + \def\@author##1{##1}% + \def\email##1##2{\unskip, \nolinkurl{##2}}% + \addresses + \egroup} +\AtEndDocument{\if@ACM@nonacm\else\if@ACM@journal + \ifx\@authorsaddresses\@empty + \ClassWarningNoLine{\@classname}{Authors' + addresses are mandatory for ACM journals}% + \fi\fi\fi} +\def\@setaddresses{} +\def\@authornotemark{\g@addto@macro\@currentauthors{% + \advance\hfuzz by 5pt\relax\footnotemark\relax}} +\def\@@authornotemark#1{\g@addto@macro\@currentauthors{% + \advance\hfuzz by 5pt\relax\footnotemark[#1]}} +\def\@mkteasers{% + \ifx\@teaserfigures\@empty\else + \def\@teaser##1{\par\bigskip\bgroup + \captionsetup{type=figure}##1\egroup\par} + \global\setbox\mktitle@bx=\vbox{\noindent\unvbox\mktitle@bx\par + \noindent\@Description@presentfalse + \@teaserfigures\par\if@Description@present\else + \global\@undescribed@imagestrue + \ClassWarning{\@classname}{A possible image without + description}\fi + \medskip}% + \fi} +\def\@mkabstract{\bgroup + \ifx\@abstract\@lempty\else + {\phantomsection\addcontentsline{toc}{section}{\abstractname}% + \if@ACM@journal + \everypar{\setbox\z@\lastbox\everypar{}}\small + \else + \section*{\abstractname}% + \fi + \ignorespaces\@abstract\par}% + \fi\egroup} +\def\@mktranslatedabstract#1{\selectlanguage{#1}% + \if@ACM@journal + \everypar{\setbox\z@\lastbox\everypar{}}\small + \else + \section*{\abstractname}% + \fi + \ignorespaces} +\def\@mkbibcitation{\bgroup + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \def\@pages@word{\ifnum\getrefnumber{TotPages}=1\relax page\else pages\fi}% + \def\footnotemark{}% + \def\\{\unskip{} \ignorespaces}% + \def\footnote{\ClassError{\@classname}{Please do not use footnotes + inside a \string\title{} or \string\author{} command! Use + \string\titlenote{} or \string\authornote{} instead!}}% + \def\@article@string{\ifx\@acmArticle\@empty{\ }\else, + Article~\@acmArticle\ \fi}% + \par\medskip\small\noindent{\bfseries ACM Reference Format:}\par\nobreak + \noindent\bgroup + \def\\{\unskip{}, \ignorespaces}\authors\egroup. \@acmYear. \@title + \ifx\@subtitle\@empty. \else: \@subtitle. \fi + \if@ACM@nonacm\else + % The 'nonacm' option disables 'printacmref' by default, + % and the present \@mkbibcitation definition is never used + % in this case. The conditional remains useful if the user + % explicitly sets \settopmatter{printacmref=true}. + \if@ACM@journal@bibstrip + \textit{\@journalNameShort} + \@acmVolume, \@acmNumber \@article@string (\@acmPubDate), + \ref{TotPages}~\@pages@word. + \else + In \textit{\@acmBooktitle}% + \ifx\@acmEditors\@empty\textit{.}\else + \andify\@acmEditors\textit{, }\@acmEditors~\@editorsAbbrev.% + \fi\ + ACM, Rome, Italy% + \@article@string\unskip, \ref{TotPages}~\@pages@word. + \fi + \fi + \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi +\par\egroup} +\def\@printendtopmatter{% + \let\@vspace\@vspace@orig + \let\@vspacer\@vspacer@orig + \par\bigskip + \let\@vspace\@vspace@acm + \let\@vspacer\@vspacer@acm + } +\def\@setthanks{\long\def\thanks##1{\par##1\@addpunct.}\thankses} +\def\@setauthorsaddresses{\@authorsaddresses\unskip\@addpunct.} +\def\@typesetengagemetadata{% + \def\@setengagemetadata##1##2{\par\noindent\textbf{##1} ##2\par}% + \@acmengagemetadata} +\RequirePackage{fancyhdr} +\let\ACM@ps@plain\ps@plain +\let\ACM@ps@myheadings\ps@myheadings +\let\ACM@ps@headings\ps@headings +\def\ACM@restore@pagestyle{% + \let\ps@plain\ACM@ps@plain + \let\ps@myheadings\ACM@ps@myheadings + \let\ps@headings\ACM@ps@headings} +\AtBeginDocument{\ACM@restore@pagestyle} +\if@ACM@review + \newsavebox{\ACM@linecount@bx} + \newlength\ACM@linecount@bxht + \newcount\ACM@linecount + \ACM@linecount\@ne\relax + \def\ACM@mk@linecount{% + \savebox{\ACM@linecount@bx}[4em][t]{\parbox[t]{4em}{\normalfont + \normalsize + \setlength{\ACM@linecount@bxht}{0pt}% + \loop{\color{red}\scriptsize\the\ACM@linecount}\\ + \global\advance\ACM@linecount by \@ne + \addtolength{\ACM@linecount@bxht}{\baselineskip}% + \ifdim\ACM@linecount@bxht<\textheight\repeat + {\color{red}\scriptsize\the\ACM@linecount}\hfill + \global\advance\ACM@linecount by \@ne}}} +\fi +\def\ACM@linecountL{% + \if@ACM@review + \ACM@mk@linecount + \begin{picture}(0,0)% + \put(-26,-22){\usebox{\ACM@linecount@bx}}% + \end{picture}% + \fi} +\def\ACM@linecountR{% + \if@ACM@review + \ifcase\ACM@format@nr + \relax % manuscript + \relax + \or % acmsmall + \relax + \or % acmlarge + \relax + \or % acmtog + \ACM@mk@linecount + \or % sigconf + \ACM@mk@linecount + \or % siggraph + \ACM@mk@linecount + \or % sigplan + \ACM@mk@linecount + \or % sigchi + \ACM@mk@linecount + \or % sigchi-a + \ACM@mk@linecount + \or % acmengage + \ACM@mk@linecount + \or % acmcp + \relax + \fi + \begin{picture}(0,0)% + \put(20,-22){\usebox{\ACM@linecount@bx}}% + \end{picture}% + \fi} +\if@ACM@timestamp + % Subtracting 30 from \time gives us the effect of rounding down despite + % \numexpr rounding to nearest + \newcounter{ACM@time@hours} + \setcounter{ACM@time@hours}{\numexpr (\time - 30) / 60 \relax} + \newcounter{ACM@time@minutes} + \setcounter{ACM@time@minutes}{\numexpr \time - \theACM@time@hours * 60 \relax} + \newcommand\ACM@timestamp{% + \footnotesize% + \ifx\@acmSubmissionID\@empty\relax\else + Submission ID: \@acmSubmissionID.{ }% + \fi + \the\year-\two@digits{\the\month}-\two@digits{\the\day}{ }% + \two@digits{\theACM@time@hours}:\two@digits{\theACM@time@minutes}{. }% + Page \thepage\ of \@startPage--\pageref*{TotPages}.% + } +\fi +\def\@shortauthors{% + \if@ACM@anonymous + Anon. + \ifx\@acmSubmissionID\@empty\else Submission Id: \@acmSubmissionID\fi + \else\shortauthors\fi} +\def\@headfootfont{\sffamily\footnotesize} +\AtBeginDocument{% +\fancypagestyle{standardpagestyle}{% + \fancyhf{}% + \renewcommand{\headrulewidth}{\z@}% + \renewcommand{\footrulewidth}{\z@}% + \def\@acmArticlePage{% + \ifx\@acmArticle\empty% + \if@ACM@printfolios\thepage\fi% + \else% + \@acmArticle\if@ACM@printfolios:\thepage\fi% + \fi% + }% + \if@ACM@journal@bibstrip@or@tog + \ifcase\ACM@format@nr + \relax % manuscript + \fancyhead[LE]{\ACM@linecountL\if@ACM@printfolios\thepage\fi}% + \fancyhead[RO]{\if@ACM@printfolios\thepage\fi}% + \fancyhead[RE]{\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL\shorttitle}% + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize Manuscript submitted to ACM} + \fi% + \or % acmsmall + \fancyhead[LE]{\ACM@linecountL\@headfootfont\@acmArticlePage}% + \fancyhead[RO]{\@headfootfont\@acmArticlePage}% + \fancyhead[RE]{\@headfootfont\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: \@acmPubDate.}% + \fi + \or % acmlarge + \fancyhead[LE]{\ACM@linecountL\@headfootfont + \@acmArticlePage\quad\textbullet\quad\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL}% + \fancyhead[RO]{\@headfootfont + \shorttitle\quad\textbullet\quad\@acmArticlePage}% + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: \@acmPubDate.}% + \fi + \or % acmtog + \fancyhead[LE]{\ACM@linecountL\@headfootfont + \@acmArticlePage\quad\textbullet\quad\@shortauthors}% + \fancyhead[LO]{\ACM@linecountL}% + \fancyhead[RE]{\ACM@linecountR}% + \fancyhead[RO]{\@headfootfont + \shorttitle\quad\textbullet\quad\@acmArticlePage\ACM@linecountR}% + \if@ACM@nonacm\else + \if@ACM@journal@bibstrip + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, + Vol. \@acmVolume, No.~\@acmNumber, Article \@acmArticle. + Publication date: \@acmPubDate.}% + \else + \fancyfoot[RO,LE]{\footnotesize \acmConference@shortname, + \acmConference@date, \acmConference@venue.}% + \fi + \fi + \else % Proceedings + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% + \fancyhead[RE]{\@headfootfont\@shortauthors\ACM@linecountR}% + \if@ACM@nonacm + \fancyhead[LE]{\ACM@linecountL}% + \fancyhead[RO]{\ACM@linecountR}% + \else% + \if@ACM@engage + \fancyhead[LE]{\ACM@linecountL\@headfootfont\footnotesize + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi}% + \fancyhead[RO]{\@headfootfont + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi + \ACM@linecountR}% + \else + \fancyhead[LE]{\ACM@linecountL\@headfootfont\footnotesize + \acmConference@shortname, + \acmConference@date, \acmConference@venue}% + \fancyhead[RO]{\@headfootfont + \acmConference@shortname, + \acmConference@date, \acmConference@venue\ACM@linecountR}% + \fi + \fi + \fi + \else % Proceedings + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fancyhead[LO]{\ACM@linecountL\@headfootfont\shorttitle}% + \fancyhead[RE]{\@headfootfont\@shortauthors\ACM@linecountR}% + \if@ACM@nonacm + \fancyhead[LE]{\ACM@linecountL}% + \fancyhead[RO]{\ACM@linecountR}% + \else% + \if@ACM@engage + \fancyhead[LE]{\ACM@linecountL\@headfootfont + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi}% + \fancyhead[RO]{\@headfootfont + EngageCSEdu. \ifx\@acmDOI\@empty\else\@formatdoi{\@acmDOI}\fi + \ACM@linecountR}% + \else + \fancyhead[LE]{\ACM@linecountL\@headfootfont + \acmConference@shortname, + \acmConference@date, \acmConference@venue}% + \fancyhead[RO]{\@headfootfont + \acmConference@shortname, + \acmConference@date, \acmConference@venue\ACM@linecountR}% + \fi + \fi + \fi + \if@ACM@sigchiamode + \fancyheadoffset[L]{\dimexpr(\marginparsep+\marginparwidth)}% + \fi + \if@ACM@timestamp + \fancyfoot[LO,RE]{\ACM@timestamp} + \fi + \if@ACM@acmcp + \renewcommand{\footrulewidth}{0.1\p@}% + \fancyheadoffset[L]{46pt}% + \fancyhead[L]{\makebox[\z@][l]{% + \raisebox{-\dimexpr(0.2\textheight*(\ACM@ArticleType@nr-2))}{% + \rotatebox{90}{\colorbox{@ACM@Article@color}{\color{white}% + \strut\ACM@ArticleType~Article}}}}% + \ACM@linecountL}% + \fancyhead[R]{\makebox[\z@][r]{\box\@ACM@acmcpbox}}% + \fancyfoot[L,C]{}% + \fancyfoot[R]{\footnotesize + \@journalName, Volume~\@acmVolume, Issue~\@acmNumber, + \ifx\@acmArticle\@empty\else Article~\@acmArticle\fi\space + (\@acmPubDate)\ifx\@acmDOI\@empty\else\\\@formatdoi{\@acmDOI}\fi} + \fi +}% +\pagestyle{standardpagestyle} +} +\AtBeginDocument{% +\fancypagestyle{firstpagestyle}{% + \fancyhf{}% + \renewcommand{\headrulewidth}{\z@}% + \renewcommand{\footrulewidth}{\z@}% + \if@ACM@journal@bibstrip@or@tog + \ifcase\ACM@format@nr + \relax % manuscript + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR}% + \fancyfoot[RO,LE]{\if@ACM@printfolios\small\thepage\fi}% + \if@ACM@nonacm\else% + \fancyfoot[RE,LO]{\footnotesize Manuscript submitted to ACM}% + \fi% + \or % acmsmall + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: + \@acmPubDate.}% + \fi% + \fancyhead[LE]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[LO]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[RO]{\@acmBadgeR}% + \fancyhead[RE]{\@acmBadgeR}% + \or % acmlarge + \if@ACM@nonacm\else% + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, Vol. \@acmVolume, No. + \@acmNumber, Article \@acmArticle. Publication date: + \@acmPubDate.}% + \fi% + \fancyhead[RO]{\@acmBadgeR}% + \fancyhead[RE]{\@acmBadgeR}% + \fancyhead[LE]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[LO]{\ACM@linecountL\@acmBadgeL}% + \or % acmtog + \if@ACM@nonacm\else% + \if@ACM@journal@bibstrip + \fancyfoot[RO,LE]{\footnotesize \@journalNameShort, + Vol. \@acmVolume, No.~\@acmNumber, Article \@acmArticle. + Publication date: \@acmPubDate.}% + \else + \fancyfoot[RO,LE]{\footnotesize \acmConference@shortname, + \acmConference@date, \acmConference@venue.}% + \fi + \fi% + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\ACM@linecountR}% + \else % Conference proceedings + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\ACM@linecountR}% + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fi + \else + \fancyhead[L]{\ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\ACM@linecountR}% + \fancyfoot[C]{\if@ACM@printfolios\footnotesize\thepage\fi}% + \fi + \if@ACM@timestamp + \ifnum\ACM@format@nr=0\relax % Manuscript + \fancyfoot[LO,RE]{\ACM@timestamp\quad + \if@ACM@nonacm\else + \footnotesize Manuscript submitted to ACM + \fi} + \else + \fancyfoot[LO,RE]{\ACM@timestamp} + \fi + \fi + \if@ACM@acmcp + \renewcommand{\footrulewidth}{0.1\p@}% + \fancyheadoffset[L]{46pt}% + \fancyhead[L]{\makebox[\z@][l]{% + \raisebox{-\dimexpr(0.2\textheight*(\ACM@ArticleType@nr-2))}{% + \rotatebox{90}{\colorbox{@ACM@Article@color}{\color{white}% + \strut\ACM@ArticleType~Article}}}}% + \ACM@linecountL\@acmBadgeL}% + \fancyhead[R]{\@acmBadgeR\makebox[\z@][r]{\box\@ACM@acmcpbox}}% + \fancyfoot[L,C]{}% + \fancyfoot[R]{\footnotesize + \@journalName, Volume~\@acmVolume, Issue~\@acmNumber, + \ifx\@acmArticle\@empty\else Article~\@acmArticle\fi\space + (\@acmPubDate)\ifx\@acmDOI\@empty\else\\\@formatdoi{\@acmDOI}\fi} + \fi +}} +\def\ACM@NRadjust#1{% + \begingroup + \expandafter\ifx\csname Sectionformat\endcsname\relax + % do nothing when \Sectionformat is unknown + \def\next{\endgroup #1}% + \else + \def\next{\endgroup + \let\realSectionformat\Sectionformat + \def\ACM@sect@format@{#1}% + \let\Sectionformat\ACM@NR@adjustedSectionformat + %% next lines added 2018-06-17 to ensure section number is styled + \let\real@adddotafter\@adddotafter + \let\@adddotafter\ACM@adddotafter + #1{}% imposes the styles, but nullifies \MakeUppercase + \let\@adddotafter\real@adddotafter + }% + \fi \next +} +\def\ACM@NR@adjustedSectionformat#1#2{% + \realSectionformat{\ACM@sect@format{#1}}{#2}% + \let\Sectionformat\realSectionformat} +\DeclareRobustCommand{\ACM@sect@format}{\ACM@sect@format@} +\def\ACM@sect@format@null#1{#1} +\let\ACM@sect@format@\ACM@sect@format@null +\AtBeginDocument{% + \expandafter\ifx\csname LTX@adddotafter\endcsname\relax + \let\LTX@adddotafter\@adddotafter + \fi +} +\def\ACM@adddotafter#1{\ifx\relax#1\relax\else\LTX@adddotafter{#1}\fi} +\renewcommand\section{\def\@toclevel{1}% + \@startsection{section}{1}{\z@}% + {-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {.25\baselineskip}% + {\ACM@NRadjust\@secfont}} +\renewcommand\subsection{\def\@toclevel{2}% + \@startsection{subsection}{2}{\z@}% + {-.75\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {.25\baselineskip}% + {\ACM@NRadjust\@subsecfont}} +\renewcommand\subsubsection{\def\@toclevel{3}% + \@startsection{subsubsection}{3}{\z@}% + {-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {-3.5\p@}% + {\ACM@NRadjust{\@subsubsecfont\@adddotafter}}} +\renewcommand\paragraph{\def\@toclevel{4}% + \@startsection{paragraph}{4}{\parindent}% + {-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {-3.5\p@}% + {\ACM@NRadjust{\@parfont\@adddotafter}}} +\newcommand\noindentparagraph{\def\@toclevel{4}% + \@startsection{paragraph}{4}{\z@}% + {-.5\baselineskip \@plus -2\p@ \@minus -.2\p@}% + {-3.5\p@}% + {\ACM@NRadjust{\@parfont}}} +\renewcommand\part{\def\@toclevel{9}% + \@startsection{part}{9}{\z@}% + {-10\p@ \@plus -4\p@ \@minus -2\p@}% + {4\p@}% + {\ACM@NRadjust\@parfont}} +\def\section@raggedright{\@rightskip\@flushglue + \rightskip\@rightskip + \leftskip\z@skip + \parindent\z@} +\def\@secfont{\sffamily\bfseries\section@raggedright} +\def\@subsecfont{\sffamily\bfseries\section@raggedright} +\def\@subsubsecfont{\sffamily\itshape} +\def\@parfont{\itshape} +\setcounter{secnumdepth}{3} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge + \def\@secfont{\sffamily\large\section@raggedright} + \def\@subsecfont{\sffamily\large\section@raggedright} +\or % acmtog + \def\@secfont{\sffamily\large\section@raggedright} + \def\@subsecfont{\sffamily\large\section@raggedright} +\or % sigconf + \def\@secfont{\bfseries\Large\section@raggedright} + \def\@subsecfont{\bfseries\Large\section@raggedright} +\or % siggraph + \def\@secfont{\sffamily\bfseries\Large\section@raggedright} + \def\@subsecfont{\sffamily\bfseries\Large\section@raggedright} +\or % sigplan + \def\@secfont{\bfseries\Large\section@raggedright} + \def\@subsecfont{\bfseries\section@raggedright} + \def\@subsubsecfont{\bfseries\section@raggedright} + \def\@parfont{\bfseries\itshape} + \def\@subparfont{\itshape} +\or % sigchi + \setcounter{secnumdepth}{1} + \def\@secfont{\sffamily\bfseries\section@raggedright} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} +\or % sigchi-a + \setcounter{secnumdepth}{0} + \def\@secfont{\sffamily\bfseries\section@raggedright} + \def\@subsecfont{\sffamily\bfseries\section@raggedright} +\or % acmengage + \def\@secfont{\bfseries\Large\section@raggedright} + \def\@subsecfont{\bfseries\Large\section@raggedright} +\or %acmcp +\fi +\AtBeginDocument{% + \@for\@tempa:=-1,0,1,2,3,4,5\do{% + \@ifundefined{r@tocindent\@tempa}{% + \@xp\gdef\csname r@tocindent\@tempa\endcsname{0pt}}{}% + }% +} +\def\@writetocindents{% + \begingroup + \@for\@tempa:=-1,0,1,2,3,4,5\do{% + \immediate\write\@auxout{% + \string\newlabel{tocindent\@tempa}{% + \csname r@tocindent\@tempa\endcsname}}% + }% + \endgroup} +\def\@adddotafter#1{#1\@addpunct{.}} +\def\@addspaceafter#1{#1\@addpunct{\enspace}} +\if@ACM@acmcp + \setcounter{secnumdepth}{-1}% +\fi +\providecommand*\@dotsep{4.5} +\def\@acmplainbodyfont{\itshape} +\def\@acmplainindent{\parindent} +\def\@acmplainheadfont{\scshape} +\def\@acmplainnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmplainbodyfont{\itshape} + \def\@acmplainindent{\z@} + \def\@acmplainheadfont{\bfseries} + \def\@acmplainnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\newtheoremstyle{acmplain}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmplainbodyfont}% body font + {\@acmplainindent}% indent amount + {\@acmplainheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmplainnotefont(#3)}}}% head spec +\def\@acmdefinitionbodyfont{\normalfont} +\def\@acmdefinitionindent{\parindent} +\def\@acmdefinitionheadfont{\itshape} +\def\@acmdefinitionnotefont{\@empty} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@acmdefinitionbodyfont{\normalfont} + \def\@acmdefinitionindent{\z@} + \def\@acmdefinitionheadfont{\bfseries} + \def\@acmdefinitionnotefont{\normalfont} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\newtheoremstyle{acmdefinition}% + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space above + {.5\baselineskip\@plus.2\baselineskip + \@minus.2\baselineskip}% space below + {\@acmdefinitionbodyfont}% body font + {\@acmdefinitionindent}% indent amount + {\@acmdefinitionheadfont}% head font + {.}% punctuation after head + {.5em}% spacing after head + {\thmname{#1}\thmnumber{ #2}\thmnote{ {\@acmdefinitionnotefont(#3)}}}% head spec +\theoremstyle{acmplain} +\AtEndPreamble{% + \if@ACM@acmthm + \theoremstyle{acmplain} + \@ifundefined{theorem}{% + \newtheorem{theorem}{Theorem}[section] + }{} + \@ifundefined{conjecture}{% + \newtheorem{conjecture}[theorem]{Conjecture} + }{} + \@ifundefined{proposition}{% + \newtheorem{proposition}[theorem]{Proposition} + }{} + \@ifundefined{lemma}{% + \newtheorem{lemma}[theorem]{Lemma} + }{} + \@ifundefined{corollary}{% + \newtheorem{corollary}[theorem]{Corollary} + }{} + \theoremstyle{acmdefinition} + \@ifundefined{example}{% + \newtheorem{example}[theorem]{Example} + }{} + \@ifundefined{definition}{% + \newtheorem{definition}[theorem]{Definition} + }{} + \fi + \theoremstyle{acmplain} +} +\def\@proofnamefont{\scshape} +\def\@proofindent{\indent} +\ifcase\ACM@format@nr +\relax % manuscript +\or % acmsmall +\or % acmlarge +\or % acmtog +\or % sigconf +\or % siggraph +\or % sigplan + \def\@proofnamefont{\itshape} + \def\@proofindent{\noindent} +\or % sigchi +\or % sigchi-a +\or % acmengage +\or % acmcp +\fi +\renewenvironment{proof}[1][\proofname]{\par + \pushQED{\qed}% + \normalfont \topsep6\p@\@plus6\p@\relax + \trivlist + \item[\@proofindent\hskip\labelsep + {\@proofnamefont #1\@addpunct{.}}]\ignorespaces +}{% + \popQED\endtrivlist\@endpefalse +} +\AtEndPreamble{% + \if@ACM@pbalance + \global\@ACM@balancefalse + \ifcase\ACM@format@nr + \relax % manuscript + \or % acmsmall + \or % acmlarge + \or % acmtog + \RequirePackage{pbalance}% + \or % sigconf + \RequirePackage{pbalance}% + \or % siggraph + \RequirePackage{pbalance}% + \or % sigplan + \RequirePackage{pbalance}% + \or % sigchi + \RequirePackage{pbalance}% + \or % sigchi-a + \or % acmengage + \RequirePackage{pbalance}% + \or % acmcp + \fi + \fi + \if@ACM@balance + \ifcase\ACM@format@nr + \relax % manuscript + \global\@ACM@balancefalse + \or % acmsmall + \global\@ACM@balancefalse + \or % acmlarge + \global\@ACM@balancefalse + \or % acmtog + \RequirePackage{balance}% + \or % sigconf + \RequirePackage{balance}% + \or % siggraph + \RequirePackage{balance}% + \or % sigplan + \RequirePackage{balance}% + \or % sigchi + \RequirePackage{balance}% + \or % sigchi-a + \global\@ACM@balancefalse + \or % acmengage + \RequirePackage{balance}% + \or % acmcp + \global\@ACM@balancefalse + \fi + \fi +} +\AtEndDocument{% + \if@ACM@balance + \if@twocolumn + \balance + \fi\fi} +\newcommand\acksname{Acknowledgments} +\specialcomment{acks}{% + \begingroup + \section*{\acksname} + \phantomsection\addcontentsline{toc}{section}{\acksname} +}{% + \endgroup +} +\def\grantsponsor#1#2#3{#2} +\newcommand\grantnum[3][]{#3% + \def\@tempa{#1}\ifx\@tempa\@empty\else\space(\url{#1})\fi} +\AtEndPreamble{% +\if@ACM@screen + \includecomment{screenonly} + \excludecomment{printonly} +\else + \excludecomment{screenonly} + \includecomment{printonly} +\fi +\if@ACM@anonymous + \excludecomment{anonsuppress} + \excludecomment{acks} +\else + \includecomment{anonsuppress} +\fi} +\newcommand\showeprint[2][arxiv]{% + \def\@tempa{#1}% + \ifx\@tempa\@empty\def\@tempa{arxiv}\fi + \def\@tempb{arxiv}% + \ifx\@tempa\@tempb\relax + arXiv:\href{https://arxiv.org/abs/#2}{#2}% + \else + \def\@tempb{arXiv}% + \ifx\@tempa\@tempb\relax + arXiv:\href{https://arxiv.org/abs/#2}{#2}% + \else + #1:#2% + \fi + \fi} +\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi + \columnseprule\z@ \columnsep 35\p@ + \@indextitlestyle + \let\item\@idxitem + \parindent\z@ \parskip\z@\@plus.3\p@\relax + \raggedright + \hyphenpenalty\@M + \footnotesize} +\let\@vspace@orig=\@vspace +\let\@vspacer@orig=\@vspacer +\apptocmd{\@vspace}{\ClassWarning{\@classname}{\string\vspace\space should + only be used to provide space above/below surrounding + objects}}{}{} +\apptocmd{\@vspacer}{\ClassWarning{\@classname}{\string\vspace\space should + only be used to provide space above/below surrounding + objects}}{}{} +\let\@vspace@acm=\@vspace +\let\@vspacer@acm=\@vspacer +\let\ACM@origbaselinestretch\baselinestretch +\AtEndDocument{\ifx\baselinestretch\ACM@origbaselinestretch\else + \ClassError{\@classname}{An attempt to redefine + \string\baselinestretch\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origsection\section +\AtEndDocument{\ifx\section\ACM@origsection\else + \ClassError{\@classname}{An attempt to redefine + \string\section\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origsubsection\subsection +\AtEndDocument{\ifx\subsection\ACM@origsubsection\else + \ClassError{\@classname}{An attempt to redefine + \string\subsection\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origsubsubsection\subsubsection +\AtEndDocument{\ifx\subsubsection\ACM@origsubsubsection\else + \ClassError{\@classname}{An attempt to redefine + \string\subsubsection\space detected. Please do not do this for + ACM submissions!}\fi} +\let\ACM@origparagraph\paragraph +\AtEndDocument{\ifx\paragraph\ACM@origparagraph\else + \ClassError{\@classname}{An attempt to redefine + \string\paragraph\space detected. Please do not do this for + ACM submissions!}\fi} +\normalsize\normalfont\frenchspacing +\endinput +%% +%% End of file `acmart.cls'. diff --git a/research/tech_forecasting/submission/figures/10_percantage_graph_at_5_years.png b/research/tech_forecasting/submission/figures/10_percantage_graph_at_5_years.png new file mode 100644 index 0000000..8168ddc Binary files /dev/null and b/research/tech_forecasting/submission/figures/10_percantage_graph_at_5_years.png differ diff --git a/research/tech_forecasting/submission/figures/B65F3_20.png b/research/tech_forecasting/submission/figures/B65F3_20.png new file mode 100644 index 0000000..dbd4a31 Binary files /dev/null and b/research/tech_forecasting/submission/figures/B65F3_20.png differ diff --git a/research/tech_forecasting/submission/figures/B65F3_20_marked_2.png b/research/tech_forecasting/submission/figures/B65F3_20_marked_2.png new file mode 100644 index 0000000..b9fb694 Binary files /dev/null and b/research/tech_forecasting/submission/figures/B65F3_20_marked_2.png differ diff --git a/research/tech_forecasting/submission/figures/all_trends.png b/research/tech_forecasting/submission/figures/all_trends.png new file mode 100644 index 0000000..b7e18b9 Binary files /dev/null and b/research/tech_forecasting/submission/figures/all_trends.png differ diff --git a/research/tech_forecasting/submission/figures/bar_k_dbscan.png b/research/tech_forecasting/submission/figures/bar_k_dbscan.png new file mode 100644 index 0000000..259f81a Binary files /dev/null and b/research/tech_forecasting/submission/figures/bar_k_dbscan.png differ diff --git a/research/tech_forecasting/submission/figures/error_sorted_by_original_length.png b/research/tech_forecasting/submission/figures/error_sorted_by_original_length.png new file mode 100644 index 0000000..3321b6e Binary files /dev/null and b/research/tech_forecasting/submission/figures/error_sorted_by_original_length.png differ diff --git a/research/tech_forecasting/submission/figures/error_sorted_by_prediction_depths.png b/research/tech_forecasting/submission/figures/error_sorted_by_prediction_depths.png new file mode 100644 index 0000000..3c6a52d Binary files /dev/null and b/research/tech_forecasting/submission/figures/error_sorted_by_prediction_depths.png differ diff --git a/research/tech_forecasting/submission/figures/example_prediction_deprecated.png b/research/tech_forecasting/submission/figures/example_prediction_deprecated.png new file mode 100644 index 0000000..d33ece9 Binary files /dev/null and b/research/tech_forecasting/submission/figures/example_prediction_deprecated.png differ diff --git a/research/tech_forecasting/submission/figures/flows.png b/research/tech_forecasting/submission/figures/flows.png new file mode 100644 index 0000000..80d5334 Binary files /dev/null and b/research/tech_forecasting/submission/figures/flows.png differ diff --git a/research/tech_forecasting/submission/figures/forecasting_classification_example_plot.png b/research/tech_forecasting/submission/figures/forecasting_classification_example_plot.png new file mode 100644 index 0000000..51025ad Binary files /dev/null and b/research/tech_forecasting/submission/figures/forecasting_classification_example_plot.png differ diff --git a/research/tech_forecasting/submission/figures/implementation_pipeline.png b/research/tech_forecasting/submission/figures/implementation_pipeline.png new file mode 100644 index 0000000..cbb5a9f Binary files /dev/null and b/research/tech_forecasting/submission/figures/implementation_pipeline.png differ diff --git a/research/tech_forecasting/submission/figures/ipcs/all_trends.png b/research/tech_forecasting/submission/figures/ipcs/all_trends.png new file mode 100644 index 0000000..501f8ab Binary files /dev/null and b/research/tech_forecasting/submission/figures/ipcs/all_trends.png differ diff --git a/research/tech_forecasting/submission/figures/label_bird.png b/research/tech_forecasting/submission/figures/label_bird.png new file mode 100644 index 0000000..40e1897 Binary files /dev/null and b/research/tech_forecasting/submission/figures/label_bird.png differ diff --git a/research/tech_forecasting/submission/figures/pie.png b/research/tech_forecasting/submission/figures/pie.png new file mode 100644 index 0000000..263c395 Binary files /dev/null and b/research/tech_forecasting/submission/figures/pie.png differ diff --git a/research/tech_forecasting/submission/figures/pipeline.png b/research/tech_forecasting/submission/figures/pipeline.png new file mode 100644 index 0000000..9a567f8 Binary files /dev/null and b/research/tech_forecasting/submission/figures/pipeline.png differ diff --git a/research/tech_forecasting/submission/figures/pipeline_v1.png b/research/tech_forecasting/submission/figures/pipeline_v1.png new file mode 100644 index 0000000..4497d10 Binary files /dev/null and b/research/tech_forecasting/submission/figures/pipeline_v1.png differ diff --git a/research/tech_forecasting/submission/figures/universal_dba.png b/research/tech_forecasting/submission/figures/universal_dba.png new file mode 100644 index 0000000..36775a9 Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_dba.png differ diff --git a/research/tech_forecasting/submission/figures/universal_dba_v1.png b/research/tech_forecasting/submission/figures/universal_dba_v1.png new file mode 100644 index 0000000..dde466b Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_dba_v1.png differ diff --git a/research/tech_forecasting/submission/figures/universal_gmm.png b/research/tech_forecasting/submission/figures/universal_gmm.png new file mode 100644 index 0000000..7edb698 Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_gmm.png differ diff --git a/research/tech_forecasting/submission/figures/universal_gmm_v1.png b/research/tech_forecasting/submission/figures/universal_gmm_v1.png new file mode 100644 index 0000000..216fa11 Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_gmm_v1.png differ diff --git a/research/tech_forecasting/submission/figures/universal_lstm.png b/research/tech_forecasting/submission/figures/universal_lstm.png new file mode 100644 index 0000000..0fda84b Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_lstm.png differ diff --git a/research/tech_forecasting/submission/figures/universal_lstm_v1.png b/research/tech_forecasting/submission/figures/universal_lstm_v1.png new file mode 100644 index 0000000..655c5c1 Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_lstm_v1.png differ diff --git a/research/tech_forecasting/submission/figures/universal_trend_ideal.png b/research/tech_forecasting/submission/figures/universal_trend_ideal.png new file mode 100644 index 0000000..791ff9b Binary files /dev/null and b/research/tech_forecasting/submission/figures/universal_trend_ideal.png differ diff --git a/research/tech_forecasting/submission/results_code/classification/__init__.py b/research/tech_forecasting/submission/results_code/classification/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/research/tech_forecasting/submission/results_code/classification/aeon_classifiers.py b/research/tech_forecasting/submission/results_code/classification/aeon_classifiers.py new file mode 100644 index 0000000..2c578b4 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/classification/aeon_classifiers.py @@ -0,0 +1,68 @@ +""" +aeon toolkit classifiers — pre-built time series classification models. +These use the aeon library's unified API. +""" +import numpy as np + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, NUM_CLASSES + + +class AeonWrapper: + """ + Wraps any aeon classifier for the experiment runner interface. + aeon expects X shape (n_samples, n_channels, n_timepoints) for multivariate, + or (n_samples, n_timepoints) for univariate. + + For seq2seq evaluation, we predict a single label per sample + and expand to (N, 45) by repeating. + """ + def __init__(self, classifier): + self.clf = classifier + + def fit(self, X, y): + # Use majority label for segment-level classification + y_seg = np.array([np.bincount(row, minlength=NUM_CLASSES).argmax() for row in y]) + # aeon wants (n_samples, n_channels, n_timepoints) + X_aeon = X.transpose(0, 2, 1) # (N, F, T) + self.clf.fit(X_aeon, y_seg) + return self + + def predict(self, X): + X_aeon = X.transpose(0, 2, 1) + preds = self.clf.predict(X_aeon) + # Expand to (N, 45) + return np.repeat(preds[:, np.newaxis], TIMESTEPS, axis=1) + + +def rocket_factory(X_train, y_train): + from aeon.classification.convolution_based import RocketClassifier + w = AeonWrapper(RocketClassifier(n_kernels=10000, random_state=42)) + w.fit(X_train, y_train) + return w + + +def hivecote_factory(X_train, y_train): + from aeon.classification.hybrid import HIVECOTEV2 + # Use univariate (time series values only) for HIVECOTE — it's expensive + X_uni = X_train[:, :, 0:1].transpose(0, 2, 1) # (N, 1, 45) + y_seg = np.array([np.bincount(row, minlength=NUM_CLASSES).argmax() for row in y_train]) + clf = HIVECOTEV2(time_limit_in_minutes=30, random_state=42) + clf.fit(X_uni, y_seg) + + class _HiveWrapper: + def __init__(self, clf_): + self.clf = clf_ + def predict(self, X): + X_uni = X[:, :, 0:1].transpose(0, 2, 1) + preds = self.clf.predict(X_uni) + return np.repeat(preds[:, np.newaxis], TIMESTEPS, axis=1) + return _HiveWrapper(clf) + + +def drcif_factory(X_train, y_train): + from aeon.classification.interval_based import DrCIFClassifier + w = AeonWrapper(DrCIFClassifier(n_estimators=500, random_state=42)) + w.fit(X_train, y_train) + return w diff --git a/research/tech_forecasting/submission/results_code/classification/cnn_classifiers.py b/research/tech_forecasting/submission/results_code/classification/cnn_classifiers.py new file mode 100644 index 0000000..a63aa4d --- /dev/null +++ b/research/tech_forecasting/submission/results_code/classification/cnn_classifiers.py @@ -0,0 +1,257 @@ +""" +1D-CNN classifiers: InceptionTime and Temporal Convolutional Network (TCN). +""" +import numpy as np +import torch +import torch.nn as nn +import torch.nn.functional as F +from torch.utils.data import TensorDataset, DataLoader + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, NUM_CLASSES, DEFAULT_BATCH_SIZE, DEVICE +from shared.data_utils import compute_class_weights + + +# ═══════════════════════════════════════════════════════════════════════════ +# InceptionTime Module +# ═══════════════════════════════════════════════════════════════════════════ + +class InceptionBlock(nn.Module): + def __init__(self, in_channels, n_filters=32, bottleneck_size=32): + super().__init__() + self.bottleneck = nn.Conv1d(in_channels, bottleneck_size, 1, bias=False) + self.conv10 = nn.Conv1d(bottleneck_size, n_filters, 10, padding=4, bias=False) + self.conv20 = nn.Conv1d(bottleneck_size, n_filters, 20, padding=9, bias=False) + self.conv40 = nn.Conv1d(bottleneck_size, n_filters, 40, padding=19, bias=False) + self.maxpool = nn.MaxPool1d(3, stride=1, padding=1) + self.conv_pool = nn.Conv1d(in_channels, n_filters, 1, bias=False) + self.bn = nn.BatchNorm1d(n_filters * 4) + + def forward(self, x): + b = self.bottleneck(x) + c1 = self.conv10(b) + c2 = self.conv20(b) + c3 = self.conv40(b) + cp = self.conv_pool(self.maxpool(x)) + # Align lengths by trimming to min + min_len = min(c1.size(2), c2.size(2), c3.size(2), cp.size(2)) + out = torch.cat([c1[:, :, :min_len], c2[:, :, :min_len], + c3[:, :, :min_len], cp[:, :, :min_len]], dim=1) + return F.relu(self.bn(out)) + + +class InceptionTimeClassifier(nn.Module): + """Seq2Seq InceptionTime: per-timestep classification via 1D convolutions.""" + def __init__(self, input_dim, n_filters=32, n_blocks=3, num_classes=NUM_CLASSES): + super().__init__() + blocks = [InceptionBlock(input_dim, n_filters)] + for _ in range(n_blocks - 1): + blocks.append(InceptionBlock(n_filters * 4, n_filters)) + self.blocks = nn.ModuleList(blocks) + self.fc = nn.Linear(n_filters * 4, num_classes) + + def forward(self, x): + # x: (batch, T, F) -> (batch, F, T) for Conv1d + x = x.transpose(1, 2) + for block in self.blocks: + x = block(x) + # x: (batch, C, T') -> (batch, T', C) + x = x.transpose(1, 2) + return self.fc(x) # (batch, T', num_classes) + + +# ═══════════════════════════════════════════════════════════════════════════ +# TCN (Temporal Convolutional Network) with dilated causal convolutions +# ═══════════════════════════════════════════════════════════════════════════ + +class CausalConv1d(nn.Module): + def __init__(self, in_channels, out_channels, kernel_size, dilation): + super().__init__() + self.padding = (kernel_size - 1) * dilation + self.conv = nn.Conv1d(in_channels, out_channels, kernel_size, + dilation=dilation, padding=self.padding) + + def forward(self, x): + out = self.conv(x) + return out[:, :, :x.size(2)] # trim future + + +class TCNBlock(nn.Module): + def __init__(self, in_channels, out_channels, kernel_size, dilation, dropout=0.1): + super().__init__() + self.conv1 = CausalConv1d(in_channels, out_channels, kernel_size, dilation) + self.bn1 = nn.BatchNorm1d(out_channels) + self.conv2 = CausalConv1d(out_channels, out_channels, kernel_size, dilation) + self.bn2 = nn.BatchNorm1d(out_channels) + self.dropout = nn.Dropout(dropout) + self.residual = nn.Conv1d(in_channels, out_channels, 1) if in_channels != out_channels else nn.Identity() + + def forward(self, x): + res = self.residual(x) + out = F.relu(self.bn1(self.conv1(x))) + out = self.dropout(out) + out = F.relu(self.bn2(self.conv2(out))) + out = self.dropout(out) + return F.relu(out + res) + + +class TCNClassifier(nn.Module): + """Seq2Seq TCN for per-timestep phase classification.""" + def __init__(self, input_dim, channels=(64, 128, 128), kernel_size=3, num_classes=NUM_CLASSES): + super().__init__() + layers = [] + in_ch = input_dim + for i, out_ch in enumerate(channels): + layers.append(TCNBlock(in_ch, out_ch, kernel_size, dilation=2**i)) + in_ch = out_ch + self.tcn = nn.Sequential(*layers) + self.fc = nn.Linear(channels[-1], num_classes) + + def forward(self, x): + x = x.transpose(1, 2) # (batch, F, T) + x = self.tcn(x) + x = x.transpose(1, 2) # (batch, T, C) + return self.fc(x) + + +# ═══════════════════════════════════════════════════════════════════════════ +# Wrapper classes for experiment runner +# ═══════════════════════════════════════════════════════════════════════════ + +class _CNNWrapper: + def __init__(self, model_class, input_dim, epochs=50, lr=1e-3, batch_size=DEFAULT_BATCH_SIZE, **kwargs): + self.model_class = model_class + self.input_dim = input_dim + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.kwargs = kwargs + self.model = None + + def fit(self, X, y): + self.model = self.model_class(self.input_dim, **self.kwargs).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + weights = compute_class_weights(y) + criterion = nn.CrossEntropyLoss(weight=torch.tensor(weights, device=DEVICE)) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + + dataset = TensorDataset( + torch.tensor(X, dtype=torch.float32), + torch.tensor(y, dtype=torch.long), + ) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss = 0 + for xb, yb in loader: + xb, yb = xb.to(DEVICE), yb.to(DEVICE) + optimizer.zero_grad() + logits = self.model(xb) # (batch, T', C) + # Handle potential length mismatch from convolutions + T_out = logits.size(1) + T_target = yb.size(1) + if T_out < T_target: + yb = yb[:, :T_out] + elif T_out > T_target: + logits = logits[:, :T_target, :] + logits_flat = logits.reshape(-1, NUM_CLASSES) + yb_flat = yb.reshape(-1) + loss = criterion(logits_flat, yb_flat) + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + scheduler.step() + if (epoch + 1) % 10 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} loss={total_loss/len(dataset):.4f}") + return self + + def predict(self, X): + self.model.eval() + preds = [] + dataset = TensorDataset(torch.tensor(X, dtype=torch.float32)) + loader = DataLoader(dataset, batch_size=self.batch_size) + with torch.no_grad(): + for (xb,) in loader: + xb = xb.to(DEVICE) + logits = self.model(xb) + T_out = logits.size(1) + pred = logits.argmax(dim=-1).cpu().numpy() + # Pad back to TIMESTEPS if needed + if T_out < TIMESTEPS: + pad = np.zeros((pred.shape[0], TIMESTEPS - T_out), dtype=pred.dtype) + pred = np.concatenate([pad, pred], axis=1) + elif T_out > TIMESTEPS: + pred = pred[:, :TIMESTEPS] + preds.append(pred) + return np.concatenate(preds, axis=0) + + +def inception_factory(X_train, y_train): + w = _CNNWrapper(InceptionTimeClassifier, input_dim=X_train.shape[-1], epochs=50) + w.fit(X_train, y_train) + return w + + +def tcn_factory(X_train, y_train): + w = _CNNWrapper(TCNClassifier, input_dim=X_train.shape[-1], epochs=50) + w.fit(X_train, y_train) + return w + + +# ═══════════════════════════════════════════════════════════════════════════ +# ResNet for time series (PyTorch, seq2seq per-timestep classification) +# ═══════════════════════════════════════════════════════════════════════════ + +class ResNetBlock(nn.Module): + """Residual block with 3 convolutional layers (kernel sizes 8, 5, 3).""" + def __init__(self, in_channels, out_channels): + super().__init__() + self.conv1 = nn.Conv1d(in_channels, out_channels, 8, padding=3, bias=False) + self.bn1 = nn.BatchNorm1d(out_channels) + self.conv2 = nn.Conv1d(out_channels, out_channels, 5, padding=2, bias=False) + self.bn2 = nn.BatchNorm1d(out_channels) + self.conv3 = nn.Conv1d(out_channels, out_channels, 3, padding=1, bias=False) + self.bn3 = nn.BatchNorm1d(out_channels) + self.residual = nn.Conv1d(in_channels, out_channels, 1, bias=False) if in_channels != out_channels else nn.Identity() + self.bn_res = nn.BatchNorm1d(out_channels) if in_channels != out_channels else nn.Identity() + + def forward(self, x): + res = self.bn_res(self.residual(x)) + out = F.relu(self.bn1(self.conv1(x))) + out = F.relu(self.bn2(self.conv2(out))) + out = self.bn3(self.conv3(out)) + # Align lengths + min_len = min(out.size(2), res.size(2)) + return F.relu(out[:, :, :min_len] + res[:, :, :min_len]) + + +class ResNetClassifier(nn.Module): + """Seq2Seq ResNet for per-timestep phase classification. + + Architecture follows the Time Series ResNet from: + Wang et al., "Time Series Classification from Scratch with + Deep Neural Networks: A Strong Baseline" (2017). + """ + def __init__(self, input_dim, channels=(64, 128, 128), num_classes=NUM_CLASSES): + super().__init__() + blocks = [] + in_ch = input_dim + for out_ch in channels: + blocks.append(ResNetBlock(in_ch, out_ch)) + in_ch = out_ch + self.blocks = nn.Sequential(*blocks) + self.fc = nn.Linear(channels[-1], num_classes) + + def forward(self, x): + x = x.transpose(1, 2) # (batch, F, T) + x = self.blocks(x) + x = x.transpose(1, 2) # (batch, T, C) + return self.fc(x) + + +def resnet_factory(X_train, y_train): + w = _CNNWrapper(ResNetClassifier, input_dim=X_train.shape[-1], epochs=50) + w.fit(X_train, y_train) + return w diff --git a/research/tech_forecasting/submission/results_code/classification/lstm_classifiers.py b/research/tech_forecasting/submission/results_code/classification/lstm_classifiers.py new file mode 100644 index 0000000..47ed459 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/classification/lstm_classifiers.py @@ -0,0 +1,196 @@ +""" +LSTM-based classifiers for technology phase classification. + +Model A: Standard LSTM → single-label per segment (categorical CE) +Model B: Seq2Seq LSTM → per-timestep label (sparse categorical CE) +""" +import numpy as np +import torch +import torch.nn as nn +from torch.utils.data import TensorDataset, DataLoader + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, NUM_CLASSES, DEFAULT_BATCH_SIZE, DEVICE +from shared.data_utils import compute_class_weights + + +# ═══════════════════════════════════════════════════════════════════════════ +# MODEL A — Segment-level LSTM classifier +# ═══════════════════════════════════════════════════════════════════════════ + +class LSTMClassifier(nn.Module): + def __init__(self, input_dim, hidden_dims=(128, 128, 256), num_classes=NUM_CLASSES): + super().__init__() + layers = [] + in_dim = input_dim + for h in hidden_dims: + layers.append(nn.LSTM(in_dim, h, batch_first=True)) + in_dim = h + self.lstms = nn.ModuleList(layers) + self.fc = nn.Linear(hidden_dims[-1], num_classes) + + def forward(self, x): + for lstm in self.lstms: + x, _ = lstm(x) + out = x[:, -1, :] # last timestep + return self.fc(out) + + +class LSTMClassifierWrapper: + """Wraps the PyTorch model for the experiment runner interface.""" + + def __init__(self, input_dim, epochs=50, lr=1e-3, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, X, y): + """X: (N, 45, F), y: (N, 45) — use majority label per sample.""" + # For segment-level: use majority label + y_seg = np.array([np.bincount(row, minlength=NUM_CLASSES).argmax() for row in y]) + + self.model = LSTMClassifier(self.input_dim).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + weights = compute_class_weights(y_seg) + criterion = nn.CrossEntropyLoss(weight=torch.tensor(weights, device=DEVICE)) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + + dataset = TensorDataset( + torch.tensor(X, dtype=torch.float32), + torch.tensor(y_seg, dtype=torch.long), + ) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss = 0 + for xb, yb in loader: + xb, yb = xb.to(DEVICE), yb.to(DEVICE) + optimizer.zero_grad() + logits = self.model(xb) + loss = criterion(logits, yb) + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + scheduler.step() + if (epoch + 1) % 10 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} loss={total_loss/len(dataset):.4f}") + return self + + def predict(self, X): + """Returns (N, 45) by repeating segment prediction across all timesteps.""" + self.model.eval() + preds = [] + dataset = TensorDataset(torch.tensor(X, dtype=torch.float32)) + loader = DataLoader(dataset, batch_size=self.batch_size) + with torch.no_grad(): + for (xb,) in loader: + xb = xb.to(DEVICE) + logits = self.model(xb) + pred = logits.argmax(dim=-1).cpu().numpy() + # Expand to (batch, 45) + pred_expanded = np.repeat(pred[:, np.newaxis], TIMESTEPS, axis=1) + preds.append(pred_expanded) + return np.concatenate(preds, axis=0) + + +# ═══════════════════════════════════════════════════════════════════════════ +# MODEL B — Seq2Seq LSTM classifier (per-timestep) +# ═══════════════════════════════════════════════════════════════════════════ + +class Seq2SeqLSTMClassifier(nn.Module): + def __init__(self, input_dim, hidden_dims=(128, 128, 256, 256), + dense_hidden=128, num_classes=NUM_CLASSES): + super().__init__() + layers = [] + in_dim = input_dim + for h in hidden_dims: + layers.append(nn.LSTM(in_dim, h, batch_first=True)) + in_dim = h + self.lstms = nn.ModuleList(layers) + self.dense1 = nn.Linear(hidden_dims[-1], dense_hidden) + self.relu = nn.ReLU() + self.dense2 = nn.Linear(dense_hidden, num_classes) + + def forward(self, x): + for lstm in self.lstms: + x, _ = lstm(x) + # TimeDistributed: apply dense to each timestep + x = self.relu(self.dense1(x)) + return self.dense2(x) # (batch, T, num_classes) + + +class Seq2SeqLSTMWrapper: + """Seq2Seq LSTM for per-timestep phase classification.""" + + def __init__(self, input_dim, epochs=50, lr=1e-3, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, X, y): + """X: (N, 45, F), y: (N, 45) per-timestep labels.""" + self.model = Seq2SeqLSTMClassifier(self.input_dim).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + weights = compute_class_weights(y) + criterion = nn.CrossEntropyLoss(weight=torch.tensor(weights, device=DEVICE)) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + + dataset = TensorDataset( + torch.tensor(X, dtype=torch.float32), + torch.tensor(y, dtype=torch.long), + ) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss = 0 + for xb, yb in loader: + xb, yb = xb.to(DEVICE), yb.to(DEVICE) + optimizer.zero_grad() + logits = self.model(xb) # (batch, T, C) + logits_flat = logits.view(-1, NUM_CLASSES) + yb_flat = yb.view(-1) + loss = criterion(logits_flat, yb_flat) + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + scheduler.step() + if (epoch + 1) % 10 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} loss={total_loss/len(dataset):.4f}") + return self + + def predict(self, X): + """Returns (N, 45) per-timestep predictions.""" + self.model.eval() + preds = [] + dataset = TensorDataset(torch.tensor(X, dtype=torch.float32)) + loader = DataLoader(dataset, batch_size=self.batch_size) + with torch.no_grad(): + for (xb,) in loader: + xb = xb.to(DEVICE) + logits = self.model(xb) + pred = logits.argmax(dim=-1).cpu().numpy() + preds.append(pred) + return np.concatenate(preds, axis=0) + + +# ═══════════════════════════════════════════════════════════════════════════ +# Factory functions for experiment runner +# ═══════════════════════════════════════════════════════════════════════════ + +def lstm_segment_factory(X_train, y_train): + wrapper = LSTMClassifierWrapper(input_dim=X_train.shape[-1], epochs=50) + wrapper.fit(X_train, y_train) + return wrapper + + +def lstm_seq2seq_factory(X_train, y_train): + wrapper = Seq2SeqLSTMWrapper(input_dim=X_train.shape[-1], epochs=50) + wrapper.fit(X_train, y_train) + return wrapper diff --git a/research/tech_forecasting/submission/results_code/classification/run_all.py b/research/tech_forecasting/submission/results_code/classification/run_all.py new file mode 100644 index 0000000..46896d5 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/classification/run_all.py @@ -0,0 +1,112 @@ +""" +Main script: run ALL classification experiments. + +Usage: + python -m experiments.classification.run_all + python -m experiments.classification.run_all --models lstm_seq2seq,tcn,transformer +""" +import argparse +import sys +import os + +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) + +from experiments.shared.data_utils import build_classification_dataset, augment_subsequences +from experiments.shared.runner import run_classification_cv + + +def get_model_registry(): + """Lazy-loaded model factories to avoid importing everything upfront.""" + registry = {} + + def _add(name, module_path, factory_name): + registry[name] = (module_path, factory_name) + + # LSTM models + _add("lstm_segment", "experiments.classification.lstm_classifiers", "lstm_segment_factory") + _add("lstm_seq2seq", "experiments.classification.lstm_classifiers", "lstm_seq2seq_factory") + + # CNN models + _add("inception_time", "experiments.classification.cnn_classifiers", "inception_factory") + _add("tcn", "experiments.classification.cnn_classifiers", "tcn_factory") + + # Transformer + _add("transformer_seq2seq", "experiments.classification.transformer_classifier", "transformer_seq2seq_factory") + + # ResNet (PyTorch) + _add("resnet", "experiments.classification.cnn_classifiers", "resnet_factory") + + # aeon models (CPU-only classical methods — no TensorFlow needed) + #_add("rocket", "experiments.classification.aeon_classifiers", "rocket_factory") + #_add("hivecote", "experiments.classification.aeon_classifiers", "hivecote_factory") + #_add("drcif", "experiments.classification.aeon_classifiers", "drcif_factory") + + return registry + + +def load_factory(module_path, factory_name): + import importlib + mod = importlib.import_module(module_path) + return getattr(mod, factory_name) + + +def main(): + parser = argparse.ArgumentParser(description="Run classification experiments") + parser.add_argument("--models", type=str, default=None, + help="Comma-separated model names to run. Default: all.") + parser.add_argument("--folds", type=int, default=5) + args = parser.parse_args() + + registry = get_model_registry() + models_to_run = list(registry.keys()) + if args.models: + models_to_run = [m.strip() for m in args.models.split(",")] + + print("Loading dataset...") + X, y, ipcs, majority = build_classification_dataset() + print(f"Dataset: X={X.shape}, y={y.shape}, classes={len(set(majority))}") + + results = {} + for model_name in models_to_run: + if model_name not in registry: + print(f"WARNING: Unknown model '{model_name}', skipping.") + continue + + module_path, factory_name = registry[model_name] + print(f"\n{'#'*70}") + print(f"# Running: {model_name}") + print(f"{'#'*70}") + + factory = load_factory(module_path, factory_name) + + # Only augment seq2seq models (segment-level models don't benefit) + seq2seq_models = {"lstm_seq2seq", "tcn", "transformer_seq2seq", + "inception_time", "resnet"} + aug_fn = augment_subsequences if model_name in seq2seq_models else None + + result = run_classification_cv( + model_name=model_name, + model_factory=factory, + X=X, y=y, + majority_labels=majority, + n_folds=args.folds, + augment_fn=aug_fn, + ) + results[model_name] = result + + # Summary table + print(f"\n{'='*80}") + print(f"{'MODEL':<25} {'F1-macro':>10} {'F1-weighted':>12} {'Kappa':>10} {'Time(s)':>10}") + print(f"{'='*80}") + for name, r in results.items(): + agg = r["aggregate"] + print(f"{name:<25} " + f"{agg['f1_macro']['mean']:>10.4f} " + f"{agg['f1_weighted']['mean']:>12.4f} " + f"{agg['cohen_kappa']['mean']:>10.4f} " + f"{agg['train_time_mean']:>10.1f}") + print(f"{'='*80}") + + +if __name__ == "__main__": + main() diff --git a/research/tech_forecasting/submission/results_code/classification/transformer_classifier.py b/research/tech_forecasting/submission/results_code/classification/transformer_classifier.py new file mode 100644 index 0000000..e735e17 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/classification/transformer_classifier.py @@ -0,0 +1,116 @@ +""" +Transformer-based classifier for technology phase classification. +Uses a standard Transformer encoder with positional encoding for +per-timestep (seq2seq) phase prediction. +""" +import math +import numpy as np +import torch +import torch.nn as nn +from torch.utils.data import TensorDataset, DataLoader + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, NUM_CLASSES, DEFAULT_BATCH_SIZE, DEVICE +from shared.data_utils import compute_class_weights + + +class PositionalEncoding(nn.Module): + def __init__(self, d_model, max_len=200): + super().__init__() + pe = torch.zeros(max_len, d_model) + position = torch.arange(0, max_len, dtype=torch.float32).unsqueeze(1) + div_term = torch.exp(torch.arange(0, d_model, 2, dtype=torch.float32) * (-math.log(10000.0) / d_model)) + pe[:, 0::2] = torch.sin(position * div_term) + if d_model % 2 == 1: + pe[:, 1::2] = torch.cos(position * div_term[:-1]) + else: + pe[:, 1::2] = torch.cos(position * div_term) + self.register_buffer("pe", pe.unsqueeze(0)) + + def forward(self, x): + return x + self.pe[:, :x.size(1)] + + +class TransformerSeq2SeqClassifier(nn.Module): + """ + Transformer encoder for per-timestep technology phase classification. + Input: (batch, 45, input_dim) + Output: (batch, 45, num_classes) + """ + def __init__(self, input_dim, d_model=128, nhead=4, num_layers=3, + d_ff=256, dropout=0.1, num_classes=NUM_CLASSES): + super().__init__() + self.input_proj = nn.Linear(input_dim, d_model) + self.pos_enc = PositionalEncoding(d_model, max_len=TIMESTEPS + 10) + encoder_layer = nn.TransformerEncoderLayer( + d_model=d_model, nhead=nhead, dim_feedforward=d_ff, + dropout=dropout, batch_first=True, + ) + self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=num_layers) + self.fc = nn.Linear(d_model, num_classes) + + def forward(self, x): + x = self.input_proj(x) + x = self.pos_enc(x) + x = self.encoder(x) + return self.fc(x) + + +class TransformerClassifierWrapper: + def __init__(self, input_dim, epochs=60, lr=1e-3, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, X, y): + self.model = TransformerSeq2SeqClassifier(self.input_dim).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + weights = compute_class_weights(y) + criterion = nn.CrossEntropyLoss(weight=torch.tensor(weights, device=DEVICE)) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + + dataset = TensorDataset( + torch.tensor(X, dtype=torch.float32), + torch.tensor(y, dtype=torch.long), + ) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss = 0 + for xb, yb in loader: + xb, yb = xb.to(DEVICE), yb.to(DEVICE) + optimizer.zero_grad() + logits = self.model(xb) # (batch, T, C) + logits_flat = logits.view(-1, NUM_CLASSES) + yb_flat = yb.view(-1) + loss = criterion(logits_flat, yb_flat) + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + scheduler.step() + if (epoch + 1) % 10 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} loss={total_loss/len(dataset):.4f}") + return self + + def predict(self, X): + self.model.eval() + preds = [] + dataset = TensorDataset(torch.tensor(X, dtype=torch.float32)) + loader = DataLoader(dataset, batch_size=self.batch_size) + with torch.no_grad(): + for (xb,) in loader: + xb = xb.to(DEVICE) + logits = self.model(xb) + pred = logits.argmax(dim=-1).cpu().numpy() + preds.append(pred) + return np.concatenate(preds, axis=0) + + +def transformer_seq2seq_factory(X_train, y_train): + w = TransformerClassifierWrapper(input_dim=X_train.shape[-1], epochs=60) + w.fit(X_train, y_train) + return w diff --git a/research/tech_forecasting/submission/results_code/classification_RESULTS.md b/research/tech_forecasting/submission/results_code/classification_RESULTS.md new file mode 100644 index 0000000..ecdcf70 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/classification_RESULTS.md @@ -0,0 +1,341 @@ +# Classification Experiment Results & Changelog + +> Last updated: 2026-03-31 + +## Overview + +This document tracks the results of the technology lifecycle phase classification experiments +and all modifications made to improve performance. + +**Task**: Per-timestep classification of 45-year patent count time series into 9 lifecycle +phases (0–8) for 2,774 IPC technologies. Input shape: `(N, 45, 9)` — 1 patent-count value + +8-dim IPC section one-hot repeated per timestep. Output: `(N, 45)` per-timestep phase labels. + +**Evaluation**: 5-fold stratified K-fold CV (stratified by majority phase per sample). +Metrics: accuracy, F1-macro, F1-weighted, Cohen's kappa, per-class F1. + +--- + +## Dataset Description + +### Raw Data + +- **2,774 IPC technology time series** loaded from `8_phase_classification/labeling_results.json` +- Each sample has: + - `values`: 45 yearly patent counts (1 per year) + - `ipc`: IPC code string (e.g. `"A01B33/14"`) + - `segments`: list of labeled phase segments with `{start, end, class}` + +### Feature Tensor `X` — shape `(2774, 45, 9)` + +| Channel | Content | +|---|---| +| 0 | Raw patent count value (not normalized) | +| 1–8 | IPC section one-hot (A–H), repeated identically at every timestep | + +The IPC one-hot is static per sample — it doesn't vary over time. Only channel 0 carries temporal signal. + +### Label Tensor `y` — shape `(2774, 45)` + +Per-timestep phase labels (integers 0–8), built via `segments_to_label_sequence()` in +`shared/data_utils.py`. Each of the 45 timesteps gets exactly one class label. +Special handling: peak classes (2, 7) at segment boundaries are not overwritten. + +### CV Split + +**5-fold stratified K-fold**, stratified by each sample's **majority phase** (most frequent +label across 45 timesteps): + +| Fold | Train samples | Test samples | +|---|---|---| +| Each fold | ~2,219 (80%) | ~555 (20%) | + +The stratification variable (`majority_labels`) is computed as: +```python +majority = np.array([np.bincount(row, minlength=9).argmax() for row in y]) +``` +This means stratification is by the dominant phase — **not** by all classes present. +Rare phases (4, 7, 8) that are never the majority label for any sample get no +stratification guarantee. + +### Estimated Per-Timestep Class Distribution (2,774 × 45 = 124,830 total labels) + +| Class | Phase | Relative frequency | Notes | +|---|---|---|---| +| 0 | Pre-emergence | **High** | Many technologies start with long zero-count periods | +| 1 | Growth | **High** | Common | +| 2 | First peak | **Low** | Single-timestep peak markers | +| 3 | Maturity / plateau | **High** | Common | +| 4 | Revival / second growth | **Very low** | Rare lifecycle pattern — worst-performing class | +| 5 | Decline | **High** | Many technologies end in decline | +| 6 | Second growth | **Low** | Subset of technologies | +| 7 | Second peak | **Very low** | Single-timestep markers, rare | +| 8 | Second decline | **Low** | Subset of technologies | + +Classes 2 and 7 are inherently rare because they mark single-timestep peaks. +Class 4 is rare because few technologies exhibit a revival pattern. + +### Augmented Training Data (v1, seq2seq models only) + +Sub-sequences generated at lengths 5, 8, 11, 14, ..., 44 → **14 additional left-padded +copies** of each sample, plus the original → **15× total**: + +- Per fold: ~2,219 raw → **~33,285 augmented training samples** +- Test set is **never augmented** — always the original ~555 full-length samples + +> **Caveat**: Padding timesteps receive label 0, so augmentation disproportionately inflates +> class 0. Short sub-sequences (length 5, 8) mostly contain early phases (0, 1). Late-lifecycle +> classes (6, 7, 8) only appear in longer sub-sequences. The class-weighted CE loss partially +> compensates, but weights are computed on the augmented distribution. + +### What's NOT in the data pipeline + +- **No train/validation split for early stopping** — models train for a fixed number of + epochs on all training data. No held-out validation set within each fold. +- **No feature normalization** — patent counts are raw integers (can be 0–1000+), not + standardized or min-max scaled. +- **No temporal features** — no year index, no derivatives, no rolling statistics. +- **No sample weighting** — only loss-level class weights. Samples where rare classes + dominate aren't upweighted. + +--- + +## Baseline Results (v0 — initial run) + +These are the results from the first experiment run with default hyperparameters, +unweighted `CrossEntropyLoss`, no data augmentation, and conservative epoch counts. + +| Model | Accuracy | F1-macro | F1-weighted | Kappa | Train Time (s) | +|---|---|---|---|---|---| +| **transformer_seq2seq** | **0.883** | **0.696** | **0.880** | **0.850** | 8.1 | +| lstm_seq2seq | 0.734 | 0.464 | 0.721 | 0.655 | 5.1 | +| tcn | 0.715 | 0.421 | 0.696 | 0.627 | 6.5 | +| inception_time | 0.658 | 0.341 | 0.641 | 0.552 | 6.8 | +| resnet | 0.651 | 0.374 | 0.645 | 0.553 | 6.4 | +| rocket (aeon) | 0.395 | 0.199 | 0.374 | 0.204 | 26.8 | +| lstm_segment | 0.373 | 0.181 | 0.353 | 0.178 | 4.9 | + +### Baseline training configuration + +| Model | Epochs | LR | Scheduler | Loss | Augmentation | +|---|---|---|---|---|---| +| transformer_seq2seq | 25 | 1e-3 | None | CrossEntropyLoss (unweighted) | None | +| lstm_seq2seq | 15 | 1e-3 | None | CrossEntropyLoss (unweighted) | None | +| lstm_segment | 15 | 1e-3 | None | CrossEntropyLoss (unweighted) | None | +| inception_time | 20 | 1e-3 | None | CrossEntropyLoss (unweighted) | None | +| tcn | 20 | 1e-3 | None | CrossEntropyLoss (unweighted) | None | +| resnet | 20 | 1e-3 | None | CrossEntropyLoss (unweighted) | None | +| rocket (aeon) | N/A | N/A | N/A | N/A | None | + +### Baseline per-class F1 (transformer_seq2seq, best fold / worst fold) + +| Class | Fold 0 | Fold 1 | Fold 2 | Fold 3 | Fold 4 | Notes | +|---|---|---|---|---|---|---| +| 0 | 0.916 | 0.928 | 0.891 | 0.894 | 0.918 | Majority class — well-served | +| 1 | 0.912 | 0.916 | 0.903 | 0.903 | 0.909 | Well-served | +| 2 | 0.789 | 0.783 | 0.787 | 0.783 | 0.774 | Peak phase — decent | +| 3 | 0.857 | 0.852 | 0.855 | 0.859 | 0.853 | Well-served | +| 4 | 0.353 | **0.059** | 0.200 | 0.274 | 0.196 | **Rare class — catastrophic** | +| 5 | 0.923 | 0.933 | 0.924 | 0.939 | 0.928 | Well-served | +| 6 | 0.606 | 0.647 | 0.684 | 0.663 | 0.533 | Minority — poor | +| 7 | 0.612 | 0.442 | 0.575 | 0.668 | 0.494 | Minority — poor | +| 8 | 0.538 | 0.477 | 0.440 | 0.441 | 0.534 | Minority — poor | + +### Key observations from baseline + +1. **Severe class imbalance** is the dominant bottleneck. The gap between F1-macro (0.696) + and F1-weighted (0.880) on the Transformer proves the model is strong on majority classes + but struggles on rare phases (4, 6, 7, 8). + +2. **Seq2Seq > segment-level**: `lstm_segment` (single majority label per 45-step window) is + the worst PyTorch model. Per-timestep classification is clearly superior. + +3. **Rocket (aeon)** underperforms because it's designed for univariate single-label + classification, not seq2seq per-timestep labeling. + +4. **CNNs are mid-tier** with high fold variance (ResNet std=0.048 on F1-macro). + +5. **Training is fast** (all under 30s), leaving room for more epochs and tuning. + +--- + +## Improvement Round 1 (v1) + +Three changes applied simultaneously to all PyTorch models: + +### Change 1: Class-weighted CrossEntropyLoss + +**Problem**: Unweighted CE treats all classes equally, so the optimizer focuses on majority +classes (0, 1, 3, 5) and ignores rare phases (4, 7, 8). + +**Solution**: Compute inverse-frequency weights from training labels and pass them to +`nn.CrossEntropyLoss(weight=...)`. + +**Implementation** (`shared/data_utils.py`): +```python +def compute_class_weights(labels, num_classes=NUM_CLASSES): + flat = np.asarray(labels).ravel() + counts = np.bincount(flat, minlength=num_classes).astype(np.float64) + counts = np.maximum(counts, 1.0) + weights = 1.0 / counts + weights = weights / weights.sum() * num_classes + return weights.astype(np.float32) +``` + +**Files modified**: +- `shared/data_utils.py` — added `compute_class_weights()` +- `classification/transformer_classifier.py` — weights from per-timestep labels +- `classification/lstm_classifiers.py` — segment model uses majority-label weights; seq2seq uses per-timestep +- `classification/cnn_classifiers.py` — weights from per-timestep labels + +### Change 2: Sub-sequence data augmentation + +**Problem**: Only 2,774 training samples. Minority classes are underrepresented. + +**Solution**: Generate left-padded prefix sub-sequences at stride=3 (lengths 5, 8, 11, ..., 44), +producing ~14x more training data. Applied only to seq2seq models; segment-level models +(`lstm_segment`) and aeon classifiers are excluded. + +**Implementation** (`shared/data_utils.py`): +```python +def augment_subsequences(X, y, min_len=5, stride=3): + aug_X, aug_y = [X], [y] + T = X.shape[1] + for length in range(min_len, T, stride): + x_new = np.zeros_like(X) + y_new = np.zeros_like(y) + x_new[:, T - length:] = X[:, :length] + y_new[:, T - length:] = y[:, :length] + aug_X.append(x_new) + aug_y.append(y_new) + return np.concatenate(aug_X, axis=0), np.concatenate(aug_y, axis=0) +``` + +**Files modified**: +- `shared/data_utils.py` — added `augment_subsequences()` +- `shared/runner.py` — added `augment_fn` parameter to `run_classification_cv()`, applied before training +- `classification/run_all.py` — passes `augment_fn=augment_subsequences` for seq2seq models only + +**Models receiving augmentation**: `transformer_seq2seq`, `lstm_seq2seq`, `tcn`, `inception_time`, `resnet` +**Models excluded**: `lstm_segment` (single-label, sub-sequences would skew majority labels), aeon classifiers + +### Change 3: More epochs + CosineAnnealingLR scheduler + +**Problem**: Low epoch counts (15–25) likely cause underfitting. Flat LR is suboptimal. + +**Solution**: Increase epochs 2–3x and add `CosineAnnealingLR` scheduler (LR decays +following a cosine curve from initial LR to ~0 over `T_max` epochs). + +| Model | Epochs (before → after) | Scheduler | +|---|---|---| +| transformer_seq2seq | 25 → **60** | CosineAnnealingLR(T_max=60) | +| lstm_seq2seq | 15 → **50** | CosineAnnealingLR(T_max=50) | +| lstm_segment | 15 → **50** | CosineAnnealingLR(T_max=50) | +| inception_time | 20 → **50** | CosineAnnealingLR(T_max=50) | +| tcn | 20 → **50** | CosineAnnealingLR(T_max=50) | +| resnet | 20 → **50** | CosineAnnealingLR(T_max=50) | + +**Files modified**: +- `classification/transformer_classifier.py` — epochs=60, added scheduler +- `classification/lstm_classifiers.py` — epochs=50 (both models), added scheduler +- `classification/cnn_classifiers.py` — epochs=50, added scheduler + +### v1 training configuration (current) + +| Model | Epochs | LR | Scheduler | Loss | Augmentation | +|---|---|---|---|---|---| +| transformer_seq2seq | 60 | 1e-3 | CosineAnnealingLR | Weighted CE | Sub-sequences (stride=3) | +| lstm_seq2seq | 50 | 1e-3 | CosineAnnealingLR | Weighted CE | Sub-sequences (stride=3) | +| lstm_segment | 50 | 1e-3 | CosineAnnealingLR | Weighted CE | None | +| inception_time | 50 | 1e-3 | CosineAnnealingLR | Weighted CE | Sub-sequences (stride=3) | +| tcn | 50 | 1e-3 | CosineAnnealingLR | Weighted CE | Sub-sequences (stride=3) | +| resnet | 50 | 1e-3 | CosineAnnealingLR | Weighted CE | Sub-sequences (stride=3) | + +### v1 results (full 5-fold run) + +| Model | Accuracy | F1-macro | F1-weighted | Kappa | Train Time (s) | +|---|---|---|---|---|---| +| **transformer_seq2seq** | **0.8795** | **0.7265** | **0.8822** | **0.8473** | 281.8 | +| lstm_seq2seq | 0.6921 | 0.4757 | 0.6921 | 0.6048 | 249.3 | +| tcn | 0.6339 | 0.4475 | 0.6565 | 0.5460 | 203.1 | +| inception_time | 0.5853 | 0.3546 | 0.5992 | 0.4780 | 186.7 | +| resnet | 0.5750 | 0.3148 | 0.5689 | 0.4523 | 222.3 | +| lstm_segment | 0.3654 | 0.2158 | 0.3611 | 0.1895 | 17.8 | + +### v0 → v1 change (Δ per model) + +| Model | Δ Accuracy | Δ F1-macro | Δ F1-weighted | Δ Kappa | +|---|---|---|---|---| +| transformer_seq2seq | −0.003 | **+0.031** | +0.002 | −0.003 | +| lstm_seq2seq | −0.042 | **+0.012** | −0.029 | −0.050 | +| tcn | −0.081 | **+0.026** | −0.040 | −0.081 | +| inception_time | −0.073 | **+0.014** | −0.042 | −0.074 | +| resnet | −0.076 | −0.059 | −0.076 | −0.101 | +| lstm_segment | −0.008 | **+0.035** | +0.008 | +0.011 | + +### v1 per-class F1 (mean ± std across 5 folds) + +| Class | Phase | transformer | lstm_seq2seq | tcn | resnet | inception_time | +|---|---|---|---|---|---|---| +| 0 | Pre-emergence | 0.898±0.007 | 0.768±0.007 | 0.782±0.008 | 0.647±0.038 | 0.682±0.030 | +| 1 | Growth | 0.914±0.007 | 0.654±0.011 | 0.606±0.023 | 0.674±0.022 | 0.750±0.016 | +| 2 | First peak | 0.767±0.014 | 0.377±0.007 | 0.352±0.025 | 0.048±0.012 | 0.095±0.016 | +| 3 | Maturity | 0.857±0.006 | 0.636±0.007 | 0.618±0.035 | 0.467±0.058 | 0.579±0.037 | +| 4 | Revival | 0.259±0.090 | 0.025±0.041 | 0.042±0.040 | 0.039±0.038 | 0.013±0.007 | +| 5 | Decline | 0.934±0.002 | 0.884±0.007 | 0.809±0.054 | 0.672±0.038 | 0.549±0.039 | +| 6 | Second growth | 0.682±0.010 | 0.178±0.036 | 0.168±0.059 | 0.157±0.036 | 0.289±0.108 | +| 7 | Second peak | 0.594±0.032 | 0.343±0.026 | 0.302±0.058 | 0.025±0.025 | 0.049±0.038 | +| 8 | Second decline | 0.633±0.026 | 0.416±0.044 | 0.349±0.059 | 0.104±0.046 | 0.185±0.099 | + +### Analysis of v0 → v1 changes + +**What improved:** + +- **F1-macro increased for all models except ResNet** — the primary objective of the class-weighted loss was achieved. The weighted CE forces the model to predict rare classes (4, 6, 7, 8); previously it could ignore them while maintaining high accuracy on majority classes. +- **Transformer_seq2seq F1-macro: +4.5% (0.696 → 0.727)** — The best model improved further. Per-class F1 on minority classes rose noticeably: class 6 (0.647 → 0.682), class 8 (0.527 → 0.633). However, class 4 (revival) declined slightly (0.297 → 0.259) — this rare class (estimated <1% of timesteps) remains the hardest. +- **lstm_segment F1-macro: +19.3%** — The segment-level model benefited most *proportionally* from weighted CE since the unweighted baseline was essentially predicting only majority classes. + +**What degraded:** + +- **Accuracy dropped for all deep models (−4% to −8%)** — this is the expected trade-off from weighted CE. Class weights push the model to predict rare phases more aggressively, meaning it occasionally mislabels majority-class timesteps. A −8% accuracy drop is significant but justified when the goal is phase transition detection, not per-timestep accuracy. +- **ResNet F1-macro: −15.8% (0.374 → 0.315)** — ResNet is the only model to regress on F1-macro too. The likely cause: ResNet's residual connections make it sensitive to the learning rate schedule at 50 epochs. With 5× more epochs and class-weighted loss pulling in multiple directions, the model may not converge stably. ResNet's high fold variance (std=0.025 on F1-macro) supports this instability hypothesis. +- **Training time increased 30–40×** — from ~5–8 seconds to 200–280 seconds per model. This is almost entirely due to the epoch increase (50–60 epochs) combined with augmentation (15× data expansion), which increases each epoch's work proportionally. The combination results in ~50 epochs × 15× data ≈ 750× more gradient steps than v0. + +**Key finding — Accuracy vs. F1 trade-off:** + +The classification results confirm a fundamental tension in imbalanced multi-class problems: **accuracy and F1-macro are inversely influenced by class weighting.** A model optimised for accuracy will predict only majority classes reliably (v0 Transformer: accuracy=0.883, F1-macro=0.696), while weighted CE shifts the operating point toward minority-class recall at the cost of accuracy (v1: accuracy=0.879, F1-macro=0.727). For the downstream combined pipeline task — detecting *when* a phase transition occurs — F1-macro is the correct optimisation target: missing a phase transition entirely (zero detection rate for class 4) is far more damaging than a 1-year timing offset. + +**Why ResNet degrades:** + +ResNet at 50 epochs with augmented data and weighted CE shows F1-macro regression (−15.8%) and maintains high fold variance (std=0.025). This is consistent with the known sensitivity of residual architectures to learning rate schedules on small datasets: the residual shortcuts help early in training but can create oscillation when the scheduler drives LR to near-zero before the model has stabilised. A learning rate warmup period or fewer epochs (30) may recover performance. + +--- + +## Future improvements (not yet implemented) + +| Priority | Improvement | Expected impact | +|---|---|---| +| 4 | **Focal Loss** — Replace CE with $\text{FL} = -\alpha_t(1-p_t)^\gamma \log(p_t)$ to focus on hard/minority examples | +2–5% F1-macro | +| 5 | **Larger Transformer** — `d_model=256, nhead=8, num_layers=4, d_ff=512` | +2–4% F1-macro | +| 6 | **CRF / transition constraints** — Enforce valid phase orderings via CRF layer or Viterbi decoding | +1–3% F1-macro | +| 7 | **Ensemble** — Voting/stacking of Transformer + LSTM_seq2seq | +1–3% F1-macro | +| 8 | **Label smoothing** — `CrossEntropyLoss(label_smoothing=0.1)` for better generalization near phase boundaries | +1–2% F1-macro | +| 9 | **Feature engineering** — Add derivatives (first/second difference), rolling stats, cumulative sum | +1–3% F1-macro | +| 10 | **Pre-training** — Pre-train Transformer as a forecaster, fine-tune for classification | Unknown | + +--- + +## File index + +| File | Purpose | +|---|---| +| `shared/config.py` | Global constants (TIMESTEPS=45, NUM_CLASSES=9, CV_FOLDS=5, etc.) | +| `shared/data_utils.py` | Data loading, class weights, augmentation, CV splits | +| `shared/metrics.py` | Classification & forecasting metric functions | +| `shared/runner.py` | CV loop, result serialization | +| `classification/run_all.py` | Main entry point — runs all models | +| `classification/transformer_classifier.py` | Transformer encoder seq2seq classifier | +| `classification/lstm_classifiers.py` | LSTM segment + LSTM seq2seq classifiers | +| `classification/cnn_classifiers.py` | InceptionTime, TCN, ResNet classifiers | +| `classification/aeon_classifiers.py` | Rocket, HIVECOTE, DrCIF (aeon library) | +| `results/classification/*.json` | Per-model result JSONs (auto-generated) | diff --git a/research/tech_forecasting/submission/results_code/combined/__init__.py b/research/tech_forecasting/submission/results_code/combined/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/research/tech_forecasting/submission/results_code/combined/plot_results.py b/research/tech_forecasting/submission/results_code/combined/plot_results.py new file mode 100644 index 0000000..1f68878 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined/plot_results.py @@ -0,0 +1,290 @@ +""" +Analyze and visualize combined pipeline results. + +Run AFTER `python -m experiments.combined.run_pipeline` completes. + +Usage: + python -m experiments.combined.plot_results +""" +import json +import os +import glob +import numpy as np +import matplotlib +matplotlib.use("Agg") +import matplotlib.pyplot as plt + +RESULTS_DIR = os.path.join(os.path.dirname(__file__), "..", "results", "combined_v1") +OUTPUT_DIR = os.path.join(RESULTS_DIR, "figures") + +FORECASTER_DISPLAY = { + "transformer_direct": "Transformer", + "informer": "Informer", + "patchtst": "PatchTST", + "lstm_direct": "LSTM-Direct", + "tcn_direct": "TCN-Direct", + "prophet": "Prophet", +} + +CLASSIFIER_DISPLAY = { + "transformer_seq2seq": "Transf-Seq2Seq", + "lstm_seq2seq": "LSTM-Seq2Seq", + "tcn": "TCN", + "resnet": "ResNet", + "inception_time": "InceptionTime", +} + + +def load_all_results(): + """Load all combo result JSONs and the summary.""" + results = [] + for fpath in glob.glob(os.path.join(RESULTS_DIR, "*__*.json")): + with open(fpath) as f: + data = json.load(f) + results.append(data) + + summary_path = os.path.join(RESULTS_DIR, "summary.json") + summary = [] + if os.path.exists(summary_path): + with open(summary_path) as f: + summary = json.load(f) + return results, summary + + +# ── Figure 1: Heatmap — Forecaster × Classifier year-delta ────────────── + +def plot_heatmap(summary): + forecasters = list(dict.fromkeys(r["forecaster"] for r in summary)) + classifiers = list(dict.fromkeys(r["classifier"] for r in summary)) + + data = np.full((len(forecasters), len(classifiers)), np.nan) + for r in summary: + i = forecasters.index(r["forecaster"]) + j = classifiers.index(r["classifier"]) + data[i, j] = r["year_delta_mean"] + + fig, ax = plt.subplots(figsize=(10, 6)) + cax = ax.imshow(data, cmap="YlOrRd", aspect="auto") + ax.set_xticks(range(len(classifiers))) + ax.set_xticklabels([CLASSIFIER_DISPLAY.get(c, c) for c in classifiers], rotation=30, ha="right", fontsize=10) + ax.set_yticks(range(len(forecasters))) + ax.set_yticklabels([FORECASTER_DISPLAY.get(f, f) for f in forecasters], fontsize=10) + + for i in range(len(forecasters)): + for j in range(len(classifiers)): + if not np.isnan(data[i, j]): + color = "white" if data[i, j] > np.nanmedian(data) else "black" + ax.text(j, i, f"{data[i, j]:.2f}", ha="center", va="center", fontsize=10, + fontweight="bold", color=color) + + cb = fig.colorbar(cax, ax=ax, shrink=0.8) + cb.set_label("Year-Delta (mean) ↓", fontsize=11) + ax.set_title("Year-Delta: Forecaster × Classifier", fontsize=14, fontweight="bold") + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig1_heatmap.png"), dpi=200) + plt.close(fig) + print(" ✓ fig1_heatmap.png") + + +# ── Figure 2: Bar chart — best classifier per forecaster ───────────────── + +def plot_best_per_forecaster(summary): + from collections import defaultdict + best = {} + for r in summary: + fc = r["forecaster"] + if fc not in best or r["year_delta_mean"] < best[fc]["year_delta_mean"]: + best[fc] = r + + # Sort by year-delta + items = sorted(best.values(), key=lambda x: x["year_delta_mean"]) + labels = [f"{FORECASTER_DISPLAY.get(r['forecaster'], r['forecaster'])}\n+ {CLASSIFIER_DISPLAY.get(r['classifier'], r['classifier'])}" for r in items] + deltas = [r["year_delta_mean"] for r in items] + + fig, ax = plt.subplots(figsize=(10, 5)) + colors = ["#2ca02c" if r["forecaster"] != "prophet" else "#d62728" for r in items] + bars = ax.bar(range(len(deltas)), deltas, color=colors, edgecolor="white", width=0.6) + for i, v in enumerate(deltas): + ax.text(i, v + max(deltas) * 0.01, f"{v:.3f}", ha="center", fontsize=9, fontweight="bold") + + ax.set_xticks(range(len(labels))) + ax.set_xticklabels(labels, fontsize=9) + ax.set_ylabel("Year-Delta (mean) ↓", fontsize=12) + ax.set_title("Best Pipeline per Forecaster", fontsize=14, fontweight="bold") + ax.grid(axis="y", alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig2_best_per_forecaster.png"), dpi=200) + plt.close(fig) + print(" ✓ fig2_best_per_forecaster.png") + + +# ── Figure 3: Error decomposition — oracle vs predicted ────────────────── + +def plot_error_decomposition(summary): + rows = [r for r in summary if r.get("oracle_year_delta") is not None] + if not rows: + print(" ✗ fig3 skipped (no oracle data)") + return + + # Sort by predicted delta + rows.sort(key=lambda r: r["year_delta_mean"]) + + labels = [f"{FORECASTER_DISPLAY.get(r['forecaster'], r['forecaster'])[:6]}\n{CLASSIFIER_DISPLAY.get(r['classifier'], r['classifier'])[:6]}" for r in rows] + oracle = [r["oracle_year_delta"] for r in rows] + predicted = [r["year_delta_mean"] for r in rows] + + x = np.arange(len(rows)) + w = 0.35 + + fig, ax = plt.subplots(figsize=(max(12, len(rows) * 0.5), 6)) + ax.bar(x - w/2, oracle, w, label="Oracle (GT values)", color="#4472C4", edgecolor="white") + ax.bar(x + w/2, predicted, w, label="Predicted (forecasted)", color="#ED7D31", edgecolor="white") + + ax.set_xticks(x) + ax.set_xticklabels(labels, rotation=45, ha="right", fontsize=7) + ax.set_ylabel("Year-Delta (mean) ↓", fontsize=12) + ax.set_title("Error Decomposition: Oracle vs. Predicted", fontsize=14, fontweight="bold") + ax.legend(fontsize=10) + ax.grid(axis="y", alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig3_error_decomposition.png"), dpi=200) + plt.close(fig) + print(" ✓ fig3_error_decomposition.png") + + +# ── Figure 4: Year-delta by part_length for top combos ─────────────────── + +def plot_delta_by_pl(results): + if not results: + print(" ✗ fig4 skipped (no data)") + return + + # Find top-5 combos by predicted mean delta + combos = [] + for r in results: + pred = r.get("predicted", r) + fc = pred.get("forecaster", "?") + clf = pred.get("classifier", "?") + yd = pred.get("year_delta_overall", {}).get("mean_delta") + if yd is not None: + combos.append((yd, fc, clf, pred)) + combos.sort(key=lambda x: x[0]) + top = combos[:5] + + pls = ["10", "15", "20", "25", "30"] + fig, ax = plt.subplots(figsize=(10, 6)) + cmap = plt.cm.tab10 + for idx, (_, fc, clf, pred) in enumerate(top): + vals = [] + for pl in pls: + entry = pred.get("year_delta_by_part_length", {}).get(pl, {}) + vals.append(entry.get("mean_delta")) + ax.plot(pls, vals, "o-", label=f"{FORECASTER_DISPLAY.get(fc, fc)} + {CLASSIFIER_DISPLAY.get(clf, clf)}", + color=cmap(idx), linewidth=2, markersize=6) + + ax.set_xlabel("Observation Window (part_length)", fontsize=12) + ax.set_ylabel("Year-Delta (mean) ↓", fontsize=12) + ax.set_title("Year-Delta by Observation Window (Top-5 Pipelines)", fontsize=14, fontweight="bold") + ax.legend(fontsize=9) + ax.grid(alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig4_delta_by_pl.png"), dpi=200) + plt.close(fig) + print(" ✓ fig4_delta_by_pl.png") + + +# ── Figure 5: Transition detection rate heatmap ────────────────────────── + +def plot_detection_rate(summary): + forecasters = list(dict.fromkeys(r["forecaster"] for r in summary)) + classifiers = list(dict.fromkeys(r["classifier"] for r in summary)) + + data = np.full((len(forecasters), len(classifiers)), np.nan) + for r in summary: + i = forecasters.index(r["forecaster"]) + j = classifiers.index(r["classifier"]) + data[i, j] = r.get("transition_detection_rate", np.nan) + + fig, ax = plt.subplots(figsize=(10, 6)) + cax = ax.imshow(data, cmap="YlGn", aspect="auto", vmin=0.5, vmax=1.0) + ax.set_xticks(range(len(classifiers))) + ax.set_xticklabels([CLASSIFIER_DISPLAY.get(c, c) for c in classifiers], rotation=30, ha="right", fontsize=10) + ax.set_yticks(range(len(forecasters))) + ax.set_yticklabels([FORECASTER_DISPLAY.get(f, f) for f in forecasters], fontsize=10) + + for i in range(len(forecasters)): + for j in range(len(classifiers)): + if not np.isnan(data[i, j]): + ax.text(j, i, f"{data[i, j]:.3f}", ha="center", va="center", fontsize=9, fontweight="bold") + + cb = fig.colorbar(cax, ax=ax, shrink=0.8) + cb.set_label("Transition Detection Rate ↑", fontsize=11) + ax.set_title("Transition Detection Rate: Forecaster × Classifier", fontsize=14, fontweight="bold") + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig5_detection_rate.png"), dpi=200) + plt.close(fig) + print(" ✓ fig5_detection_rate.png") + + +# ── Figure 6: Classifier effect — grouped by classifier ───────────────── + +def plot_classifier_effect(summary): + from collections import defaultdict + by_clf = defaultdict(list) + for r in summary: + if r["forecaster"] != "prophet": # exclude baseline for clean comparison + by_clf[r["classifier"]].append(r["year_delta_mean"]) + + clf_names = sorted(by_clf.keys(), key=lambda c: np.mean(by_clf[c])) + means = [np.mean(by_clf[c]) for c in clf_names] + stds = [np.std(by_clf[c]) for c in clf_names] + labels = [CLASSIFIER_DISPLAY.get(c, c) for c in clf_names] + + fig, ax = plt.subplots(figsize=(8, 5)) + ax.barh(range(len(labels)), means, xerr=stds, color="#4472C4", edgecolor="white", + height=0.5, capsize=3) + for i, v in enumerate(means): + ax.text(v + max(means) * 0.01, i, f"{v:.3f}", va="center", fontsize=10) + ax.set_yticks(range(len(labels))) + ax.set_yticklabels(labels, fontsize=11) + ax.set_xlabel("Mean Year-Delta ↓ (averaged across forecasters)", fontsize=11) + ax.set_title("Classifier Effect on Year-Delta\n(averaged over top-5 neural forecasters)", fontsize=13, fontweight="bold") + ax.invert_yaxis() + ax.grid(axis="x", alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig6_classifier_effect.png"), dpi=200) + plt.close(fig) + print(" ✓ fig6_classifier_effect.png") + + +# ── Main ────────────────────────────────────────────────────────────────── + +def main(): + os.makedirs(OUTPUT_DIR, exist_ok=True) + results, summary = load_all_results() + + if not summary: + print("No results found. Run `python -m experiments.combined.run_pipeline` first.") + return + + print(f"Loaded {len(summary)} combinations.\n") + print("Generating figures...") + plot_heatmap(summary) + plot_best_per_forecaster(summary) + plot_error_decomposition(summary) + plot_delta_by_pl(results) + plot_detection_rate(summary) + plot_classifier_effect(summary) + print(f"\nAll figures saved to {OUTPUT_DIR}") + + +if __name__ == "__main__": + main() diff --git a/research/tech_forecasting/submission/results_code/combined/run_pipeline.py b/research/tech_forecasting/submission/results_code/combined/run_pipeline.py new file mode 100644 index 0000000..288a2e0 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined/run_pipeline.py @@ -0,0 +1,425 @@ +""" +Combined Pipeline: Forecaster → Classifier → Year-Delta Evaluation. + +Runs the top-5 forecasting models × top-5 classification models (25 combos) +plus a ground-truth baseline (perfect forecaster) for proper ablation. + +Three evaluation modes: + 1. "oracle" — ground-truth values → classifier → year-delta + (isolates classifier error; upper bound on pipeline quality) + 2. "predicted" — forecasted values → classifier → year-delta + (the actual end-to-end pipeline) + 3. Both are run automatically so the delta between them + quantifies the forecasting error's downstream impact. + +Evaluation metrics (designed for a scientific time-series paper): + • Year-delta (mean): average temporal offset (in years) between predicted + and true phase transitions — THE primary combined metric + • Year-delta (median): robust to outliers; important when distributions are skewed + • Transition detection rate: 1 − (missings / total_transitions) + — did the pipeline even FIND the right lifecycle phase? + • Classification accuracy on forecasted data: how well classification + generalises to imperfect (predicted) inputs + • Accuracy degradation: Δ accuracy between oracle and predicted modes + • Error decomposition: how much of the year-delta is from forecasting vs classification + +Usage: + python -m experiments.combined.run_pipeline # all 25 combos + python -m experiments.combined.run_pipeline --forecaster transformer_direct --classifier transformer_seq2seq +""" +import argparse +import importlib +import json +import os +import sys +import time +import numpy as np +from collections import defaultdict + +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) + +from experiments.shared.config import ( + TIMESTEPS, NUM_CLASSES, IPC_SECTIONS, RESULTS_DIR, PART_LENGTHS, +) +from experiments.shared.data_utils import ( + ipc_one_hot, build_classification_dataset, augment_subsequences, +) +from experiments.shared.metrics import year_delta, classification_metrics +from experiments.shared.runner import ensure_results_dir + + +# ═══════════════════════════════════════════════════════════════════════════ +# Top-5 models (from v1 experiments) +# ═══════════════════════════════════════════════════════════════════════════ + +# By MAE (v1 results) +TOP_FORECASTERS = [ + "transformer_direct", # MAE 7.78 (best) + "informer", # MAE 7.79 + "patchtst", # MAE 7.81 + "lstm_direct", # MAE 7.85 + "tcn_direct", # MAE 7.85 +] + +# By F1-macro (classification results) +TOP_CLASSIFIERS = [ + "transformer_seq2seq", # F1 0.696 (best) + "lstm_seq2seq", # F1 0.464 + "tcn", # F1 0.421 + "resnet", # F1 0.374 + "inception_time", # F1 0.341 +] + +# Baselines for ablation: worst forecaster (prophet) to show pipeline value +BASELINE_FORECASTER = "prophet" + +# Use v1 predictions +FORECAST_VERSION = "forecasting_v1" + + +# ═══════════════════════════════════════════════════════════════════════════ +# Data loading +# ═══════════════════════════════════════════════════════════════════════════ + +def load_forecaster_predictions(forecaster_name, version=FORECAST_VERSION): + """Load saved predictions from a forecasting model.""" + path = os.path.join(RESULTS_DIR, version, f"{forecaster_name}_predictions.json") + if not os.path.exists(path): + raise FileNotFoundError(f"No predictions found for forecaster '{forecaster_name}' at {path}") + with open(path) as f: + return json.load(f) + + +def prepare_classifier_input(predictions, use_ground_truth=False): + """ + Convert forecaster predictions into classifier input format. + + Parameters + ---------- + predictions : list of dicts from forecaster + use_ground_truth : bool — if True, use original_values instead of + pred_values (oracle mode for ablation) + + Returns + ------- + X (N, 45, 9), y_labels (N, 45), metadata list + """ + X_list, y_list, meta = [], [], [] + for pred in predictions: + ipc = pred["ipc"] + if use_ground_truth: + values = np.array(pred["original_values"], dtype=np.float32) + else: + values = np.array(pred["pred_values"], dtype=np.float32) + label_seq = np.array(pred["label_sequence"], dtype=np.int64) + + # Build (45, 9) input: values + IPC one-hot + ohe = ipc_one_hot(ipc) + x = np.zeros((TIMESTEPS, 9), dtype=np.float32) + n = min(len(values), TIMESTEPS) + x[:n, 0] = values[:n] + x[:, 1:9] = np.tile(ohe, (TIMESTEPS, 1)) + + X_list.append(x) + y_list.append(label_seq[:TIMESTEPS]) + meta.append({ + "ipc": ipc, + "part_length": pred["part_length"], + "original_values": pred["original_values"], + "pred_values": pred["pred_values"], + }) + + return np.array(X_list), np.array(y_list), meta + + +# ═══════════════════════════════════════════════════════════════════════════ +# Evaluation +# ═══════════════════════════════════════════════════════════════════════════ + +def run_combined_evaluation(classifier, X, y_true, meta): + """ + Run classifier on data, compute year-delta and rich evaluation metrics. + + Returns dict with: + - classification metrics (accuracy, F1, kappa) + - year_delta overall (mean, median, std) + - transition detection rate + - breakdowns by part_length and future_horizon + """ + y_pred = classifier.predict(X) + + cls_metrics = classification_metrics(y_true, y_pred) + + # ── Year-delta with richer stats ────────────────────────────────── + futures = [5, 10, 15, 20, 25, 30, 35] + results_by_pl = defaultdict(list) + results_by_future = defaultdict(list) + results_by_pl_future = defaultdict(list) + all_deltas = [] + all_per_sample_means = [] # For median / std computation + + for i in range(len(y_pred)): + pred = y_pred[i] + truth = y_true[i] + pl = meta[i]["part_length"] + + delta = year_delta(truth, pred, pl) + results_by_pl[pl].append(delta) + all_deltas.append(delta) + + if delta["count"] > 0: + all_per_sample_means.append(delta["mean"]) + + for fh in futures: + if pl + fh > TIMESTEPS: + continue + delta_fh = year_delta(truth, pred, pl, fh) + results_by_pl_future[(pl, fh)].append(delta_fh) + results_by_future[fh].append(delta_fh) + + # ── Aggregation helpers ─────────────────────────────────────────── + def agg_deltas(delta_list): + total_sum = sum(d["sum"] for d in delta_list) + total_count = sum(d["count"] for d in delta_list) + total_miss = sum(d["missings"] for d in delta_list) + per_sample_means = [d["mean"] for d in delta_list if d["count"] > 0] + total_transitions = total_count + total_miss + return { + "mean_delta": round(total_sum / total_count, 4) if total_count > 0 else None, + "median_delta": round(float(np.median(per_sample_means)), 4) if per_sample_means else None, + "std_delta": round(float(np.std(per_sample_means)), 4) if per_sample_means else None, + "total_transitions": total_transitions, + "total_matched": total_count, + "total_missings": total_miss, + "transition_detection_rate": round(total_count / total_transitions, 4) if total_transitions > 0 else None, + } + + eval_results = { + "classification_on_forecasted": cls_metrics, + "year_delta_overall": agg_deltas(all_deltas), + "year_delta_by_part_length": { + str(pl): agg_deltas(dl) for pl, dl in sorted(results_by_pl.items()) + }, + "year_delta_by_future_horizon": { + str(fh): agg_deltas(dl) for fh, dl in sorted(results_by_future.items()) + }, + "year_delta_by_pl_future": { + f"{pl}_{fh}": agg_deltas(dl) + for (pl, fh), dl in sorted(results_by_pl_future.items()) + }, + } + + return eval_results + + +# ═══════════════════════════════════════════════════════════════════════════ +# Classifier construction +# ═══════════════════════════════════════════════════════════════════════════ + +# Per-model epoch defaults matching the v1 classification experiment +_CLASSIFIER_EPOCHS = { + "transformer_seq2seq": 60, + "lstm_seq2seq": 50, + "tcn": 50, + "resnet": 50, + "inception_time": 50, +} + + +def build_classifier(name, epochs=None): + """Instantiate a classifier by name (unfitted). + + If ``epochs`` is None, use the same epoch count as the v1 classification + experiment so the combined pipeline is consistent with the reported results. + """ + n_epochs = epochs if epochs is not None else _CLASSIFIER_EPOCHS.get(name, 50) + if name == "transformer_seq2seq": + from experiments.classification.transformer_classifier import TransformerClassifierWrapper + return TransformerClassifierWrapper(input_dim=9, epochs=n_epochs) + elif name == "lstm_seq2seq": + from experiments.classification.lstm_classifiers import Seq2SeqLSTMWrapper + return Seq2SeqLSTMWrapper(input_dim=9, epochs=n_epochs) + elif name == "tcn": + from experiments.classification.cnn_classifiers import _CNNWrapper, TCNClassifier + return _CNNWrapper(TCNClassifier, input_dim=9, epochs=n_epochs) + elif name == "resnet": + from experiments.classification.cnn_classifiers import _CNNWrapper, ResNetClassifier + return _CNNWrapper(ResNetClassifier, input_dim=9, epochs=n_epochs) + elif name == "inception_time": + from experiments.classification.cnn_classifiers import _CNNWrapper, InceptionTimeClassifier + return _CNNWrapper(InceptionTimeClassifier, input_dim=9, epochs=n_epochs) + else: + raise ValueError(f"Unknown classifier: {name}") + + +# ═══════════════════════════════════════════════════════════════════════════ +# Main +# ═══════════════════════════════════════════════════════════════════════════ + +def main(): + parser = argparse.ArgumentParser(description="Combined forecaster→classifier pipeline") + parser.add_argument("--forecaster", type=str, default=None, + help="Single forecaster name. Default: run all top-5 + baseline.") + parser.add_argument("--classifier", type=str, default=None, + help="Single classifier name. Default: run all top-5.") + parser.add_argument("--classifier-epochs", type=int, default=None, + help="Training epochs for all classifiers. Defaults to per-model v1 settings " + "(transformer=60, others=50).") + parser.add_argument("--skip-oracle", action="store_true", + help="Skip oracle (ground-truth) evaluation") + args = parser.parse_args() + + out_dir = ensure_results_dir("combined_v1") + + # Determine which models to run + forecasters = [args.forecaster] if args.forecaster else TOP_FORECASTERS + [BASELINE_FORECASTER] + classifiers = [args.classifier] if args.classifier else TOP_CLASSIFIERS + + print(f"Combined pipeline: {len(forecasters)} forecasters × {len(classifiers)} classifiers") + print(f" Forecasters: {forecasters}") + print(f" Classifiers: {classifiers}") + epochs_display = args.classifier_epochs if args.classifier_epochs is not None else "model-specific defaults" + print(f" Classifier epochs: {epochs_display}") + print(f" Oracle mode: {'skip' if args.skip_oracle else 'yes'}") + print() + + # ── Load ground-truth classification data for training classifiers ── + print("Loading ground-truth classification data...") + X_gt, y_gt, _, _ = build_classification_dataset() + X_gt_aug, y_gt_aug = augment_subsequences(X_gt, y_gt) + print(f" Ground truth: {X_gt.shape}, augmented: {X_gt_aug.shape}") + + # ── Train each classifier ONCE (reuse across forecasters) ───────── + trained_classifiers = {} + for clf_name in classifiers: + print(f"\n{'─'*60}") + print(f"Training classifier: {clf_name}") + print(f"{'─'*60}") + clf = build_classifier(clf_name, epochs=args.classifier_epochs) + t0 = time.time() + # Use augmented data for seq2seq models (matching classification experiment setup) + if clf_name in ("transformer_seq2seq", "lstm_seq2seq", "tcn", "resnet", "inception_time"): + clf.fit(X_gt_aug, y_gt_aug) + else: + clf.fit(X_gt, y_gt) + train_time = time.time() - t0 + print(f" Trained in {train_time:.1f}s") + trained_classifiers[clf_name] = (clf, train_time) + + # ── Run all combinations ────────────────────────────────────────── + all_results = [] + summary_table = [] + + for fc_name in forecasters: + print(f"\n{'═'*60}") + print(f"Forecaster: {fc_name}") + print(f"{'═'*60}") + + try: + predictions = load_forecaster_predictions(fc_name) + except FileNotFoundError as e: + print(f" SKIP: {e}") + continue + + # Prepare predicted and oracle inputs + X_pred, y_true, meta_pred = prepare_classifier_input(predictions, use_ground_truth=False) + X_oracle, _, meta_oracle = prepare_classifier_input(predictions, use_ground_truth=True) + print(f" {len(predictions)} predictions, X={X_pred.shape}") + + for clf_name in classifiers: + clf, clf_train_time = trained_classifiers[clf_name] + combo_name = f"{fc_name}__{clf_name}" + + # ── Predicted mode (actual pipeline) ────────────────────── + print(f"\n → {fc_name} → {clf_name} (predicted)...") + t0 = time.time() + eval_pred = run_combined_evaluation(clf, X_pred, y_true, meta_pred) + eval_pred["forecaster"] = fc_name + eval_pred["classifier"] = clf_name + eval_pred["mode"] = "predicted" + eval_pred["classifier_train_time_s"] = round(clf_train_time, 2) + eval_time = time.time() - t0 + print(f" Year-delta: {eval_pred['year_delta_overall']['mean_delta']:.4f} " + f"(median {eval_pred['year_delta_overall']['median_delta']:.4f}), " + f"detect rate: {eval_pred['year_delta_overall']['transition_detection_rate']:.4f}, " + f"cls-acc: {eval_pred['classification_on_forecasted']['accuracy']:.4f}") + + # ── Oracle mode (ground-truth values) ───────────────────── + eval_oracle = None + if not args.skip_oracle: + eval_oracle = run_combined_evaluation(clf, X_oracle, y_true, meta_oracle) + eval_oracle["forecaster"] = fc_name + eval_oracle["classifier"] = clf_name + eval_oracle["mode"] = "oracle" + print(f" Oracle: {eval_oracle['year_delta_overall']['mean_delta']:.4f} " + f"(median {eval_oracle['year_delta_overall']['median_delta']:.4f}), " + f"cls-acc: {eval_oracle['classification_on_forecasted']['accuracy']:.4f}") + + # ── Error decomposition ─────────────────────────────────── + if eval_oracle: + yd_pred = eval_pred["year_delta_overall"]["mean_delta"] + yd_oracle = eval_oracle["year_delta_overall"]["mean_delta"] + acc_pred = eval_pred["classification_on_forecasted"]["accuracy"] + acc_oracle = eval_oracle["classification_on_forecasted"]["accuracy"] + eval_pred["error_decomposition"] = { + "oracle_year_delta": yd_oracle, + "predicted_year_delta": yd_pred, + "forecasting_impact": round(yd_pred - yd_oracle, 4) if yd_pred and yd_oracle else None, + "oracle_accuracy": round(acc_oracle, 4), + "predicted_accuracy": round(acc_pred, 4), + "accuracy_degradation": round(acc_oracle - acc_pred, 4), + } + print(f" Forecasting impact: +{eval_pred['error_decomposition']['forecasting_impact']:.4f} " + f"year-delta, accuracy degradation: {eval_pred['error_decomposition']['accuracy_degradation']:.4f}") + + # ── Save individual result ──────────────────────────────── + combined_result = {"predicted": eval_pred} + if eval_oracle: + combined_result["oracle"] = eval_oracle + + fpath = os.path.join(out_dir, f"{combo_name}.json") + with open(fpath, "w") as f: + json.dump(combined_result, f, indent=2, default=str) + + all_results.append(combined_result) + summary_table.append({ + "forecaster": fc_name, + "classifier": clf_name, + "year_delta_mean": eval_pred["year_delta_overall"]["mean_delta"], + "year_delta_median": eval_pred["year_delta_overall"]["median_delta"], + "transition_detection_rate": eval_pred["year_delta_overall"]["transition_detection_rate"], + "cls_accuracy": round(eval_pred["classification_on_forecasted"]["accuracy"], 4), + "cls_f1_macro": round(eval_pred["classification_on_forecasted"]["f1_macro"], 4), + "oracle_year_delta": eval_oracle["year_delta_overall"]["mean_delta"] if eval_oracle else None, + "forecasting_impact": eval_pred.get("error_decomposition", {}).get("forecasting_impact"), + }) + + # ── Save summary table ──────────────────────────────────────────── + summary_path = os.path.join(out_dir, "summary.json") + with open(summary_path, "w") as f: + json.dump(summary_table, f, indent=2, default=str) + + # ── Print final summary ─────────────────────────────────────────── + print(f"\n\n{'═'*80}") + print(f"COMBINED PIPELINE SUMMARY — {len(summary_table)} combinations") + print(f"{'═'*80}") + print(f"{'Forecaster':<22} {'Classifier':<22} {'YΔ mean':>8} {'YΔ med':>8} " + f"{'DetRate':>8} {'Acc':>6} {'F1':>6} {'Oracle':>8} {'FC-impact':>10}") + print(f"{'─'*22} {'─'*22} {'─'*8} {'─'*8} {'─'*8} {'─'*6} {'─'*6} {'─'*8} {'─'*10}") + + # Sort by year_delta_mean + for row in sorted(summary_table, key=lambda r: r["year_delta_mean"] or 999): + fc_impact = f"{row['forecasting_impact']:+.4f}" if row["forecasting_impact"] is not None else "—" + oracle = f"{row['oracle_year_delta']:.4f}" if row["oracle_year_delta"] is not None else "—" + print(f"{row['forecaster']:<22} {row['classifier']:<22} " + f"{row['year_delta_mean']:8.4f} {row['year_delta_median']:8.4f} " + f"{row['transition_detection_rate']:8.4f} " + f"{row['cls_accuracy']:6.4f} {row['cls_f1_macro']:6.4f} " + f"{oracle:>8} {fc_impact:>10}") + + print(f"\nResults saved to {out_dir}") + print(f"Summary: {summary_path}") + + +if __name__ == "__main__": + main() diff --git a/research/tech_forecasting/submission/results_code/combined/run_pipeline_split.py b/research/tech_forecasting/submission/results_code/combined/run_pipeline_split.py new file mode 100644 index 0000000..1aa4e5d --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined/run_pipeline_split.py @@ -0,0 +1,644 @@ +""" +Combined Pipeline (Split): Forecaster -> Classifier -> Year-Delta Evaluation. + +This variant mirrors experiments.combined.run_pipeline but adds a strict +reproducible 80/20 train/test split for classifier training, removing leakage +between classifier training data and combined-pipeline evaluation data. + +Key behavior +------------ +1) Train classifiers only on the training IPC split. +2) Evaluate only on predictions from held-out IPCs. +3) Keep all combined metrics unchanged (year-delta, TDR, classification metrics, + oracle-vs-predicted decomposition). +4) Save a split + CV manifest for reproducibility. + +Usage: + python -m experiments.combined.run_pipeline_split + python -m experiments.combined.run_pipeline_split --forecaster transformer_direct --classifier lstm_seq2seq +""" +import argparse +import json +import os +import sys +import time +from collections import defaultdict + +import numpy as np +from sklearn.model_selection import train_test_split + +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) + +from experiments.shared.config import ( + TIMESTEPS, + NUM_CLASSES, + RESULTS_DIR, + RANDOM_STATE, + CV_FOLDS, +) +from experiments.shared.data_utils import ( + ipc_one_hot, + build_classification_dataset, + augment_subsequences, + get_cv_splits, +) +from experiments.shared.metrics import year_delta, classification_metrics +from experiments.shared.runner import ensure_results_dir + + +# =========================================================================== +# Top models (same as combined_v1) +# =========================================================================== + +# By MAE (v1 results) +TOP_FORECASTERS = [ + "transformer_direct", # MAE 7.78 (best) + "informer", # MAE 7.79 + "patchtst", # MAE 7.81 + "lstm_direct", # MAE 7.85 + "tcn_direct", # MAE 7.85 +] + +# By F1-macro (classification results) +TOP_CLASSIFIERS = [ + "transformer_seq2seq", # F1 0.696 (best) + "lstm_seq2seq", # F1 0.464 + "tcn", # F1 0.421 + "resnet", # F1 0.374 + "inception_time", # F1 0.341 +] + +BASELINE_FORECASTER = "prophet" + +# Use v1 predictions by default +FORECAST_VERSION = "forecasting_v1" + + +# =========================================================================== +# Data loading helpers +# =========================================================================== + +def load_forecaster_predictions(forecaster_name, version=FORECAST_VERSION): + """Load saved predictions from a forecasting model.""" + path = os.path.join(RESULTS_DIR, version, f"{forecaster_name}_predictions.json") + if not os.path.exists(path): + raise FileNotFoundError(f"No predictions found for forecaster '{forecaster_name}' at {path}") + with open(path) as f: + return json.load(f) + + +def prepare_classifier_input(predictions, use_ground_truth=False): + """ + Convert forecaster predictions into classifier input format. + + Parameters + ---------- + predictions : list[dict] from forecaster prediction JSON + use_ground_truth : bool + True -> use original_values (oracle mode), + False -> use pred_values (predicted mode) + + Returns + ------- + X : np.ndarray (N, 45, 9) + y_labels : np.ndarray (N, 45) + metadata : list[dict] + """ + X_list, y_list, meta = [], [], [] + + for pred in predictions: + ipc = pred["ipc"] + values = np.array( + pred["original_values"] if use_ground_truth else pred["pred_values"], + dtype=np.float32, + ) + label_seq = np.array(pred["label_sequence"], dtype=np.int64) + + # Build (45, 9): values + IPC one-hot + ohe = ipc_one_hot(ipc) + x = np.zeros((TIMESTEPS, 9), dtype=np.float32) + n = min(len(values), TIMESTEPS) + x[:n, 0] = values[:n] + x[:, 1:9] = np.tile(ohe, (TIMESTEPS, 1)) + + X_list.append(x) + y_list.append(label_seq[:TIMESTEPS]) + meta.append( + { + "ipc": ipc, + "part_length": pred["part_length"], + "original_values": pred["original_values"], + "pred_values": pred["pred_values"], + } + ) + + return np.array(X_list), np.array(y_list), meta + + +def _label_distribution(labels): + """Return count/ratio per majority class for reporting split balance.""" + counts = np.bincount(np.asarray(labels, dtype=np.int64), minlength=NUM_CLASSES) + total = int(np.sum(counts)) + if total == 0: + return {str(i): {"count": 0, "ratio": 0.0} for i in range(NUM_CLASSES)} + return { + str(i): {"count": int(c), "ratio": round(float(c) / total, 4)} + for i, c in enumerate(counts) + } + + +def build_train_test_split( + ipcs, + majority_labels, + test_size=0.2, + random_state=RANDOM_STATE, + stratify=False, +): + """ + Build index-based train/test split for classification data. + + With stratify=False (default), this reproduces the forecasting_v1 split style. + """ + idx = np.arange(len(ipcs)) + stratify_arg = majority_labels if stratify else None + train_idx, test_idx = train_test_split( + idx, + test_size=test_size, + random_state=random_state, + stratify=stratify_arg, + ) + return np.sort(train_idx), np.sort(test_idx) + + +def build_cv_manifest(train_majority_labels, n_folds): + """Build a fold manifest using the shared stratified CV splitter.""" + folds = [] + for fold_i, (tr_idx, val_idx) in enumerate( + get_cv_splits(len(train_majority_labels), train_majority_labels, n_folds=n_folds) + ): + folds.append( + { + "fold": fold_i + 1, + "train_size": int(len(tr_idx)), + "val_size": int(len(val_idx)), + "train_majority_distribution": _label_distribution(train_majority_labels[tr_idx]), + "val_majority_distribution": _label_distribution(train_majority_labels[val_idx]), + } + ) + return { + "cv_folds": n_folds, + "strategy": "StratifiedKFold on train split majority labels", + "folds": folds, + } + + +def filter_predictions_by_ipcs(predictions, allowed_ipcs): + """Keep only predictions whose IPC belongs to allowed_ipcs.""" + allowed = set(allowed_ipcs) + filtered = [p for p in predictions if p["ipc"] in allowed] + filtered_ipcs = {p["ipc"] for p in filtered} + missing = sorted(list(allowed - filtered_ipcs)) + extras = sorted(list({p["ipc"] for p in predictions} - allowed)) + return filtered, missing, extras + + +# =========================================================================== +# Evaluation +# =========================================================================== + +def run_combined_evaluation(classifier, X, y_true, meta): + """ + Run classifier on data and compute rich combined metrics. + + Returns dict with: + - classification metrics (accuracy, F1, kappa, etc.) + - year_delta overall (mean, median, std) + - transition detection rate + - breakdowns by part_length and future_horizon + """ + y_pred = classifier.predict(X) + cls_metrics = classification_metrics(y_true, y_pred) + + futures = [5, 10, 15, 20, 25, 30, 35] + results_by_pl = defaultdict(list) + results_by_future = defaultdict(list) + results_by_pl_future = defaultdict(list) + all_deltas = [] + + for i in range(len(y_pred)): + pred = y_pred[i] + truth = y_true[i] + pl = meta[i]["part_length"] + + delta = year_delta(truth, pred, pl) + results_by_pl[pl].append(delta) + all_deltas.append(delta) + + for fh in futures: + if pl + fh > TIMESTEPS: + continue + delta_fh = year_delta(truth, pred, pl, fh) + results_by_pl_future[(pl, fh)].append(delta_fh) + results_by_future[fh].append(delta_fh) + + def agg_deltas(delta_list): + total_sum = sum(d["sum"] for d in delta_list) + total_count = sum(d["count"] for d in delta_list) + total_miss = sum(d["missings"] for d in delta_list) + per_sample_means = [d["mean"] for d in delta_list if d["count"] > 0] + total_transitions = total_count + total_miss + return { + "mean_delta": round(total_sum / total_count, 4) if total_count > 0 else None, + "median_delta": round(float(np.median(per_sample_means)), 4) if per_sample_means else None, + "std_delta": round(float(np.std(per_sample_means)), 4) if per_sample_means else None, + "total_transitions": total_transitions, + "total_matched": total_count, + "total_missings": total_miss, + "transition_detection_rate": ( + round(total_count / total_transitions, 4) if total_transitions > 0 else None + ), + } + + return { + "classification_on_forecasted": cls_metrics, + "year_delta_overall": agg_deltas(all_deltas), + "year_delta_by_part_length": { + str(pl): agg_deltas(dl) for pl, dl in sorted(results_by_pl.items()) + }, + "year_delta_by_future_horizon": { + str(fh): agg_deltas(dl) for fh, dl in sorted(results_by_future.items()) + }, + "year_delta_by_pl_future": { + f"{pl}_{fh}": agg_deltas(dl) + for (pl, fh), dl in sorted(results_by_pl_future.items()) + }, + } + + +# =========================================================================== +# Classifier construction +# =========================================================================== + +_CLASSIFIER_EPOCHS = { + "transformer_seq2seq": 60, + "lstm_seq2seq": 50, + "tcn": 50, + "resnet": 50, + "inception_time": 50, +} + + +def build_classifier(name, epochs=None): + """Instantiate a classifier by name (unfitted).""" + n_epochs = epochs if epochs is not None else _CLASSIFIER_EPOCHS.get(name, 50) + if name == "transformer_seq2seq": + from experiments.classification.transformer_classifier import TransformerClassifierWrapper + + return TransformerClassifierWrapper(input_dim=9, epochs=n_epochs) + if name == "lstm_seq2seq": + from experiments.classification.lstm_classifiers import Seq2SeqLSTMWrapper + + return Seq2SeqLSTMWrapper(input_dim=9, epochs=n_epochs) + if name == "tcn": + from experiments.classification.cnn_classifiers import _CNNWrapper, TCNClassifier + + return _CNNWrapper(TCNClassifier, input_dim=9, epochs=n_epochs) + if name == "resnet": + from experiments.classification.cnn_classifiers import _CNNWrapper, ResNetClassifier + + return _CNNWrapper(ResNetClassifier, input_dim=9, epochs=n_epochs) + if name == "inception_time": + from experiments.classification.cnn_classifiers import _CNNWrapper, InceptionTimeClassifier + + return _CNNWrapper(InceptionTimeClassifier, input_dim=9, epochs=n_epochs) + raise ValueError(f"Unknown classifier: {name}") + + +# =========================================================================== +# Main +# =========================================================================== + +def main(): + parser = argparse.ArgumentParser(description="Combined forecaster->classifier pipeline (80/20 split)") + parser.add_argument( + "--forecaster", + type=str, + default=None, + help="Single forecaster name. Default: run all top-5 + baseline.", + ) + parser.add_argument( + "--classifier", + type=str, + default=None, + help="Single classifier name. Default: run all top-5.", + ) + parser.add_argument( + "--classifier-epochs", + type=int, + default=None, + help=( + "Training epochs for all classifiers. Defaults to per-model v1 settings " + "(transformer=60, others=50)." + ), + ) + parser.add_argument( + "--skip-oracle", + action="store_true", + help="Skip oracle (ground-truth values) evaluation.", + ) + parser.add_argument( + "--test-size", + type=float, + default=0.2, + help="Holdout ratio for classifier split. Default: 0.2.", + ) + parser.add_argument( + "--split-random-state", + type=int, + default=RANDOM_STATE, + help=f"Random seed for train/test split. Default: {RANDOM_STATE}.", + ) + parser.add_argument( + "--split-stratify", + action="store_true", + help="Use stratified train/test split by majority label (off by default for forecasting_v1 compatibility).", + ) + parser.add_argument( + "--cv-folds", + type=int, + default=CV_FOLDS, + help=f"Number of stratified CV folds to describe in split manifest. Default: {CV_FOLDS}.", + ) + parser.add_argument( + "--results-subdir", + type=str, + default="combined_split_v1", + help="Output subdirectory under experiments/results.", + ) + args = parser.parse_args() + + out_dir = ensure_results_dir(args.results_subdir) + + forecasters = [args.forecaster] if args.forecaster else TOP_FORECASTERS + [BASELINE_FORECASTER] + classifiers = [args.classifier] if args.classifier else TOP_CLASSIFIERS + + print(f"Combined split pipeline: {len(forecasters)} forecasters x {len(classifiers)} classifiers") + print(f" Forecasters: {forecasters}") + print(f" Classifiers: {classifiers}") + epochs_display = args.classifier_epochs if args.classifier_epochs is not None else "model-specific defaults" + print(f" Classifier epochs: {epochs_display}") + print(f" Oracle mode: {'skip' if args.skip_oracle else 'yes'}") + print( + f" Split: train={1.0 - args.test_size:.0%}, test={args.test_size:.0%}, " + f"seed={args.split_random_state}, stratify={args.split_stratify}" + ) + print() + + # ---- Build classification split ---- + print("Loading classification data and building train/test split...") + X_gt, y_gt, ipcs_gt, majority = build_classification_dataset() + + train_idx, test_idx = build_train_test_split( + ipcs=ipcs_gt, + majority_labels=majority, + test_size=args.test_size, + random_state=args.split_random_state, + stratify=args.split_stratify, + ) + + train_ipcs = [ipcs_gt[i] for i in train_idx] + test_ipcs = [ipcs_gt[i] for i in test_idx] + train_ipcs_set = set(train_ipcs) + test_ipcs_set = set(test_ipcs) + + overlap = train_ipcs_set.intersection(test_ipcs_set) + if overlap: + raise RuntimeError(f"Split leakage detected: {len(overlap)} IPCs overlap train and test.") + + X_train, y_train = X_gt[train_idx], y_gt[train_idx] + majority_train = majority[train_idx] + majority_test = majority[test_idx] + + X_train_aug, y_train_aug = augment_subsequences(X_train, y_train) + print(f" Full dataset: {X_gt.shape}, train: {X_train.shape}, test: {len(test_idx)} IPCs") + print(f" Augmented train set: {X_train_aug.shape}") + + cv_manifest = build_cv_manifest(majority_train, n_folds=args.cv_folds) + split_manifest = { + "split": { + "strategy": "train_test_split on IPC index", + "test_size": args.test_size, + "train_size": 1.0 - args.test_size, + "random_state": args.split_random_state, + "stratify": args.split_stratify, + "n_total_ipcs": int(len(ipcs_gt)), + "n_train_ipcs": int(len(train_idx)), + "n_test_ipcs": int(len(test_idx)), + "majority_distribution_total": _label_distribution(majority), + "majority_distribution_train": _label_distribution(majority_train), + "majority_distribution_test": _label_distribution(majority_test), + }, + "cv": cv_manifest, + "train_ipcs": train_ipcs, + "test_ipcs": test_ipcs, + } + split_manifest_path = os.path.join(out_dir, "split_manifest.json") + with open(split_manifest_path, "w") as f: + json.dump(split_manifest, f, indent=2) + print(f" Split manifest saved to {split_manifest_path}") + + # ---- Train each classifier ONCE on training split ---- + trained_classifiers = {} + for clf_name in classifiers: + print(f"\n{'-' * 60}") + print(f"Training classifier on train split: {clf_name}") + print(f"{'-' * 60}") + clf = build_classifier(clf_name, epochs=args.classifier_epochs) + t0 = time.time() + + # Keep augmentation behavior identical to combined_v1: seq2seq/cnn models use augmented data + if clf_name in ("transformer_seq2seq", "lstm_seq2seq", "tcn", "resnet", "inception_time"): + clf.fit(X_train_aug, y_train_aug) + else: + clf.fit(X_train, y_train) + + train_time = time.time() - t0 + print(f" Trained in {train_time:.1f}s") + trained_classifiers[clf_name] = (clf, train_time) + + # ---- Run all combinations ---- + all_results = [] + summary_table = [] + + for fc_name in forecasters: + print(f"\n{'=' * 60}") + print(f"Forecaster: {fc_name}") + print(f"{'=' * 60}") + + try: + predictions_all = load_forecaster_predictions(fc_name) + except FileNotFoundError as exc: + print(f" SKIP: {exc}") + continue + + predictions, missing_ipcs, extras = filter_predictions_by_ipcs(predictions_all, test_ipcs_set) + if missing_ipcs: + print(f" WARNING: Missing predictions for {len(missing_ipcs)} held-out IPCs") + if extras: + print(f" NOTE: Ignoring {len(extras)} IPCs outside held-out split") + + if not predictions: + print(" SKIP: No predictions available for held-out split") + continue + + X_pred, y_true, meta_pred = prepare_classifier_input(predictions, use_ground_truth=False) + X_oracle, _, meta_oracle = prepare_classifier_input(predictions, use_ground_truth=True) + + eval_ipcs = {p["ipc"] for p in predictions} + leaked_ipcs = sorted(list(eval_ipcs.intersection(train_ipcs_set))) + if leaked_ipcs: + raise RuntimeError( + f"Evaluation leakage detected for forecaster '{fc_name}': " + f"{len(leaked_ipcs)} IPCs appear in classifier training split." + ) + + print( + f" Using {len(predictions)} held-out prediction samples " + f"across {len(eval_ipcs)} IPCs, X={X_pred.shape}" + ) + + for clf_name in classifiers: + clf, clf_train_time = trained_classifiers[clf_name] + combo_name = f"{fc_name}__{clf_name}" + + print(f"\n -> {fc_name} -> {clf_name} (predicted)...") + t0 = time.time() + eval_pred = run_combined_evaluation(clf, X_pred, y_true, meta_pred) + eval_pred["forecaster"] = fc_name + eval_pred["classifier"] = clf_name + eval_pred["mode"] = "predicted" + eval_pred["classifier_train_time_s"] = round(clf_train_time, 2) + eval_pred["eval_time_s"] = round(time.time() - t0, 2) + eval_pred["split_info"] = { + "train_ipcs": len(train_ipcs_set), + "heldout_ipcs": len(test_ipcs_set), + "evaluated_ipcs": len(eval_ipcs), + "evaluated_samples": len(predictions), + } + + yd_pred_mean = eval_pred["year_delta_overall"]["mean_delta"] + yd_pred_med = eval_pred["year_delta_overall"]["median_delta"] + det_rate = eval_pred["year_delta_overall"]["transition_detection_rate"] + cls_acc = eval_pred["classification_on_forecasted"]["accuracy"] + print( + f" Year-delta: {yd_pred_mean:.4f} " + f"(median {yd_pred_med:.4f}), detect rate: {det_rate:.4f}, cls-acc: {cls_acc:.4f}" + ) + + eval_oracle = None + if not args.skip_oracle: + eval_oracle = run_combined_evaluation(clf, X_oracle, y_true, meta_oracle) + eval_oracle["forecaster"] = fc_name + eval_oracle["classifier"] = clf_name + eval_oracle["mode"] = "oracle" + print( + f" Oracle: {eval_oracle['year_delta_overall']['mean_delta']:.4f} " + f"(median {eval_oracle['year_delta_overall']['median_delta']:.4f}), " + f"cls-acc: {eval_oracle['classification_on_forecasted']['accuracy']:.4f}" + ) + + if eval_oracle is not None: + yd_oracle = eval_oracle["year_delta_overall"]["mean_delta"] + acc_pred = eval_pred["classification_on_forecasted"]["accuracy"] + acc_oracle = eval_oracle["classification_on_forecasted"]["accuracy"] + eval_pred["error_decomposition"] = { + "oracle_year_delta": yd_oracle, + "predicted_year_delta": yd_pred_mean, + "forecasting_impact": ( + round(yd_pred_mean - yd_oracle, 4) + if yd_pred_mean is not None and yd_oracle is not None + else None + ), + "oracle_accuracy": round(acc_oracle, 4), + "predicted_accuracy": round(acc_pred, 4), + "accuracy_degradation": round(acc_oracle - acc_pred, 4), + } + fi = eval_pred["error_decomposition"]["forecasting_impact"] + ad = eval_pred["error_decomposition"]["accuracy_degradation"] + fi_str = f"{fi:+.4f}" if fi is not None else "None" + print(f" Forecasting impact: {fi_str} year-delta, accuracy degradation: {ad:.4f}") + + combined_result = { + "predicted": eval_pred, + "split": { + "test_size": args.test_size, + "random_state": args.split_random_state, + "stratify": args.split_stratify, + "train_ipcs": len(train_ipcs_set), + "heldout_ipcs": len(test_ipcs_set), + "evaluated_ipcs": len(eval_ipcs), + "evaluated_samples": len(predictions), + }, + } + if eval_oracle is not None: + combined_result["oracle"] = eval_oracle + + out_path = os.path.join(out_dir, f"{combo_name}.json") + with open(out_path, "w") as f: + json.dump(combined_result, f, indent=2, default=str) + + all_results.append(combined_result) + summary_table.append( + { + "forecaster": fc_name, + "classifier": clf_name, + "year_delta_mean": yd_pred_mean, + "year_delta_median": yd_pred_med, + "transition_detection_rate": det_rate, + "cls_accuracy": round(cls_acc, 4), + "cls_f1_macro": round(eval_pred["classification_on_forecasted"]["f1_macro"], 4), + "oracle_year_delta": ( + eval_oracle["year_delta_overall"]["mean_delta"] if eval_oracle else None + ), + "forecasting_impact": eval_pred.get("error_decomposition", {}).get("forecasting_impact"), + "heldout_ipcs": len(eval_ipcs), + "heldout_samples": len(predictions), + } + ) + + # ---- Save summary ---- + summary_path = os.path.join(out_dir, "summary.json") + with open(summary_path, "w") as f: + json.dump(summary_table, f, indent=2, default=str) + + print(f"\n\n{'=' * 90}") + print(f"COMBINED SPLIT PIPELINE SUMMARY - {len(summary_table)} combinations") + print(f"{'=' * 90}") + print( + f"{'Forecaster':<22} {'Classifier':<22} {'Yd mean':>8} {'Yd med':>8} " + f"{'DetRate':>8} {'Acc':>6} {'F1':>6} {'Oracle':>8} {'FC-impact':>10}" + ) + print(f"{'-' * 22} {'-' * 22} {'-' * 8} {'-' * 8} {'-' * 8} {'-' * 6} {'-' * 6} {'-' * 8} {'-' * 10}") + + for row in sorted(summary_table, key=lambda r: r["year_delta_mean"] if r["year_delta_mean"] is not None else 999): + yd_mean = row["year_delta_mean"] if row["year_delta_mean"] is not None else float("nan") + yd_med = row["year_delta_median"] if row["year_delta_median"] is not None else float("nan") + dr = row["transition_detection_rate"] if row["transition_detection_rate"] is not None else float("nan") + + fc_impact = row["forecasting_impact"] + fc_impact_str = f"{fc_impact:+.4f}" if fc_impact is not None else "-" + oracle = row["oracle_year_delta"] + oracle_str = f"{oracle:.4f}" if oracle is not None else "-" + + print( + f"{row['forecaster']:<22} {row['classifier']:<22} " + f"{yd_mean:8.4f} {yd_med:8.4f} {dr:8.4f} " + f"{row['cls_accuracy']:6.4f} {row['cls_f1_macro']:6.4f} " + f"{oracle_str:>8} {fc_impact_str:>10}" + ) + + print(f"\nResults saved to {out_dir}") + + +if __name__ == "__main__": + main() diff --git a/research/tech_forecasting/submission/results_code/combined/summary.json b/research/tech_forecasting/submission/results_code/combined/summary.json new file mode 100644 index 0000000..5fabfc0 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined/summary.json @@ -0,0 +1,542 @@ +[ + { + "forecaster": "transformer_direct", + "classifier": "transformer_seq2seq", + "year_delta_mean": 3.0264, + "year_delta_median": 0.8667, + "year_delta_p60": 1.488, + "year_delta_p70": 2.64, + "year_delta_p80": 4.6, + "year_delta_p90": 7.3743, + "year_delta_p95": 10.1348, + "transition_detection_rate": 0.796, + "cls_accuracy": 0.6285, + "cls_f1_macro": 0.3788, + "oracle_year_delta": 0.3714, + "forecasting_impact": 2.655, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "transformer_direct", + "classifier": "lstm_seq2seq", + "year_delta_mean": 1.7544, + "year_delta_median": 0.65, + "year_delta_p60": 1.0381, + "year_delta_p70": 1.56, + "year_delta_p80": 2.367, + "year_delta_p90": 4.24, + "year_delta_p95": 6.0933, + "transition_detection_rate": 0.7237, + "cls_accuracy": 0.5785, + "cls_f1_macro": 0.3456, + "oracle_year_delta": 1.0511, + "forecasting_impact": 0.7033, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "transformer_direct", + "classifier": "tcn", + "year_delta_mean": 1.94, + "year_delta_median": 0.92, + "year_delta_p60": 1.35, + "year_delta_p70": 1.8962, + "year_delta_p80": 2.8013, + "year_delta_p90": 4.364, + "year_delta_p95": 6.3767, + "transition_detection_rate": 0.8457, + "cls_accuracy": 0.5878, + "cls_f1_macro": 0.3618, + "oracle_year_delta": 0.9861, + "forecasting_impact": 0.9539, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "transformer_direct", + "classifier": "resnet", + "year_delta_mean": 3.2597, + "year_delta_median": 1.75, + "year_delta_p60": 2.4675, + "year_delta_p70": 3.5215, + "year_delta_p80": 4.8828, + "year_delta_p90": 7.3866, + "year_delta_p95": 9.8141, + "transition_detection_rate": 0.7982, + "cls_accuracy": 0.4875, + "cls_f1_macro": 0.2613, + "oracle_year_delta": 1.5607, + "forecasting_impact": 1.699, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "transformer_direct", + "classifier": "inception_time", + "year_delta_mean": 2.8227, + "year_delta_median": 1.3636, + "year_delta_p60": 2.0, + "year_delta_p70": 2.9467, + "year_delta_p80": 4.375, + "year_delta_p90": 6.7429, + "year_delta_p95": 8.8, + "transition_detection_rate": 0.7347, + "cls_accuracy": 0.483, + "cls_f1_macro": 0.2665, + "oracle_year_delta": 1.399, + "forecasting_impact": 1.4237, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "informer", + "classifier": "transformer_seq2seq", + "year_delta_mean": 3.054, + "year_delta_median": 0.9069, + "year_delta_p60": 1.5, + "year_delta_p70": 2.75, + "year_delta_p80": 4.6038, + "year_delta_p90": 7.4033, + "year_delta_p95": 10.1693, + "transition_detection_rate": 0.7969, + "cls_accuracy": 0.628, + "cls_f1_macro": 0.3801, + "oracle_year_delta": 0.3714, + "forecasting_impact": 2.6826, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "informer", + "classifier": "lstm_seq2seq", + "year_delta_mean": 1.8032, + "year_delta_median": 0.6667, + "year_delta_p60": 1.0588, + "year_delta_p70": 1.6132, + "year_delta_p80": 2.4412, + "year_delta_p90": 4.4059, + "year_delta_p95": 6.2736, + "transition_detection_rate": 0.7252, + "cls_accuracy": 0.5766, + "cls_f1_macro": 0.3453, + "oracle_year_delta": 1.0511, + "forecasting_impact": 0.7521, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "informer", + "classifier": "tcn", + "year_delta_mean": 1.9638, + "year_delta_median": 0.913, + "year_delta_p60": 1.375, + "year_delta_p70": 1.9683, + "year_delta_p80": 2.9206, + "year_delta_p90": 4.4, + "year_delta_p95": 6.3767, + "transition_detection_rate": 0.8448, + "cls_accuracy": 0.5863, + "cls_f1_macro": 0.3611, + "oracle_year_delta": 0.9861, + "forecasting_impact": 0.9777, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "informer", + "classifier": "resnet", + "year_delta_mean": 3.2972, + "year_delta_median": 1.84, + "year_delta_p60": 2.5371, + "year_delta_p70": 3.541, + "year_delta_p80": 4.9217, + "year_delta_p90": 7.5, + "year_delta_p95": 9.8846, + "transition_detection_rate": 0.8011, + "cls_accuracy": 0.4868, + "cls_f1_macro": 0.262, + "oracle_year_delta": 1.5607, + "forecasting_impact": 1.7365, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "informer", + "classifier": "inception_time", + "year_delta_mean": 2.8162, + "year_delta_median": 1.3333, + "year_delta_p60": 2.0, + "year_delta_p70": 2.9473, + "year_delta_p80": 4.3714, + "year_delta_p90": 6.686, + "year_delta_p95": 8.8458, + "transition_detection_rate": 0.733, + "cls_accuracy": 0.4826, + "cls_f1_macro": 0.2669, + "oracle_year_delta": 1.399, + "forecasting_impact": 1.4172, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "patchtst", + "classifier": "transformer_seq2seq", + "year_delta_mean": 3.0064, + "year_delta_median": 0.9633, + "year_delta_p60": 1.5714, + "year_delta_p70": 2.724, + "year_delta_p80": 4.5771, + "year_delta_p90": 7.235, + "year_delta_p95": 10.0183, + "transition_detection_rate": 0.803, + "cls_accuracy": 0.6294, + "cls_f1_macro": 0.3823, + "oracle_year_delta": 0.3714, + "forecasting_impact": 2.635, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "patchtst", + "classifier": "lstm_seq2seq", + "year_delta_mean": 1.8166, + "year_delta_median": 0.7143, + "year_delta_p60": 1.1176, + "year_delta_p70": 1.6696, + "year_delta_p80": 2.5269, + "year_delta_p90": 4.3708, + "year_delta_p95": 6.1039, + "transition_detection_rate": 0.724, + "cls_accuracy": 0.5744, + "cls_f1_macro": 0.3421, + "oracle_year_delta": 1.0511, + "forecasting_impact": 0.7655, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "patchtst", + "classifier": "tcn", + "year_delta_mean": 1.9111, + "year_delta_median": 0.9429, + "year_delta_p60": 1.3957, + "year_delta_p70": 1.9429, + "year_delta_p80": 2.7933, + "year_delta_p90": 4.2667, + "year_delta_p95": 6.0, + "transition_detection_rate": 0.8484, + "cls_accuracy": 0.586, + "cls_f1_macro": 0.3628, + "oracle_year_delta": 0.9861, + "forecasting_impact": 0.925, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "patchtst", + "classifier": "resnet", + "year_delta_mean": 3.1799, + "year_delta_median": 1.6733, + "year_delta_p60": 2.4, + "year_delta_p70": 3.375, + "year_delta_p80": 4.8, + "year_delta_p90": 7.0655, + "year_delta_p95": 9.6387, + "transition_detection_rate": 0.7897, + "cls_accuracy": 0.488, + "cls_f1_macro": 0.261, + "oracle_year_delta": 1.5607, + "forecasting_impact": 1.6192, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "patchtst", + "classifier": "inception_time", + "year_delta_mean": 2.8392, + "year_delta_median": 1.4, + "year_delta_p60": 2.0575, + "year_delta_p70": 3.0, + "year_delta_p80": 4.4667, + "year_delta_p90": 6.8, + "year_delta_p95": 8.8084, + "transition_detection_rate": 0.733, + "cls_accuracy": 0.4812, + "cls_f1_macro": 0.2657, + "oracle_year_delta": 1.399, + "forecasting_impact": 1.4402, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "lstm_direct", + "classifier": "transformer_seq2seq", + "year_delta_mean": 2.8736, + "year_delta_median": 1.0, + "year_delta_p60": 1.6, + "year_delta_p70": 2.6353, + "year_delta_p80": 4.2012, + "year_delta_p90": 6.9213, + "year_delta_p95": 9.5365, + "transition_detection_rate": 0.8175, + "cls_accuracy": 0.6359, + "cls_f1_macro": 0.39, + "oracle_year_delta": 0.3714, + "forecasting_impact": 2.5022, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "lstm_direct", + "classifier": "lstm_seq2seq", + "year_delta_mean": 1.8205, + "year_delta_median": 0.75, + "year_delta_p60": 1.1333, + "year_delta_p70": 1.72, + "year_delta_p80": 2.5385, + "year_delta_p90": 4.3714, + "year_delta_p95": 6.0, + "transition_detection_rate": 0.7277, + "cls_accuracy": 0.5749, + "cls_f1_macro": 0.3428, + "oracle_year_delta": 1.0511, + "forecasting_impact": 0.7694, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "lstm_direct", + "classifier": "tcn", + "year_delta_mean": 1.9061, + "year_delta_median": 1.0286, + "year_delta_p60": 1.4214, + "year_delta_p70": 1.9486, + "year_delta_p80": 2.8081, + "year_delta_p90": 4.2503, + "year_delta_p95": 6.0, + "transition_detection_rate": 0.8558, + "cls_accuracy": 0.586, + "cls_f1_macro": 0.3647, + "oracle_year_delta": 0.9861, + "forecasting_impact": 0.92, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "lstm_direct", + "classifier": "resnet", + "year_delta_mean": 3.0288, + "year_delta_median": 1.6667, + "year_delta_p60": 2.2821, + "year_delta_p70": 3.1762, + "year_delta_p80": 4.5444, + "year_delta_p90": 6.8921, + "year_delta_p95": 9.0, + "transition_detection_rate": 0.7843, + "cls_accuracy": 0.4929, + "cls_f1_macro": 0.2619, + "oracle_year_delta": 1.5607, + "forecasting_impact": 1.4681, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "lstm_direct", + "classifier": "inception_time", + "year_delta_mean": 2.8185, + "year_delta_median": 1.4, + "year_delta_p60": 2.0667, + "year_delta_p70": 3.0414, + "year_delta_p80": 4.4817, + "year_delta_p90": 6.7424, + "year_delta_p95": 8.63, + "transition_detection_rate": 0.731, + "cls_accuracy": 0.4822, + "cls_f1_macro": 0.2647, + "oracle_year_delta": 1.399, + "forecasting_impact": 1.4195, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "tcn_direct", + "classifier": "transformer_seq2seq", + "year_delta_mean": 2.9841, + "year_delta_median": 1.0, + "year_delta_p60": 1.5333, + "year_delta_p70": 2.632, + "year_delta_p80": 4.504, + "year_delta_p90": 7.2857, + "year_delta_p95": 9.9743, + "transition_detection_rate": 0.8015, + "cls_accuracy": 0.6287, + "cls_f1_macro": 0.3855, + "oracle_year_delta": 0.3714, + "forecasting_impact": 2.6127, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "tcn_direct", + "classifier": "lstm_seq2seq", + "year_delta_mean": 1.7926, + "year_delta_median": 0.6842, + "year_delta_p60": 1.1, + "year_delta_p70": 1.6471, + "year_delta_p80": 2.4667, + "year_delta_p90": 4.2333, + "year_delta_p95": 6.0312, + "transition_detection_rate": 0.7276, + "cls_accuracy": 0.5757, + "cls_f1_macro": 0.3458, + "oracle_year_delta": 1.0511, + "forecasting_impact": 0.7415, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "tcn_direct", + "classifier": "tcn", + "year_delta_mean": 1.9759, + "year_delta_median": 1.0, + "year_delta_p60": 1.4286, + "year_delta_p70": 2.0, + "year_delta_p80": 2.9173, + "year_delta_p90": 4.36, + "year_delta_p95": 6.3767, + "transition_detection_rate": 0.8483, + "cls_accuracy": 0.58, + "cls_f1_macro": 0.3616, + "oracle_year_delta": 0.9861, + "forecasting_impact": 0.9898, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "tcn_direct", + "classifier": "resnet", + "year_delta_mean": 3.2621, + "year_delta_median": 1.8261, + "year_delta_p60": 2.5, + "year_delta_p70": 3.4608, + "year_delta_p80": 4.9029, + "year_delta_p90": 7.4, + "year_delta_p95": 9.5297, + "transition_detection_rate": 0.7949, + "cls_accuracy": 0.481, + "cls_f1_macro": 0.2601, + "oracle_year_delta": 1.5607, + "forecasting_impact": 1.7014, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "tcn_direct", + "classifier": "inception_time", + "year_delta_mean": 2.8416, + "year_delta_median": 1.4, + "year_delta_p60": 2.0909, + "year_delta_p70": 2.9633, + "year_delta_p80": 4.4, + "year_delta_p90": 6.625, + "year_delta_p95": 8.9525, + "transition_detection_rate": 0.7335, + "cls_accuracy": 0.4802, + "cls_f1_macro": 0.2652, + "oracle_year_delta": 1.399, + "forecasting_impact": 1.4426, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "prophet", + "classifier": "transformer_seq2seq", + "year_delta_mean": 4.5529, + "year_delta_median": 3.0625, + "year_delta_p60": 4.0, + "year_delta_p70": 5.2667, + "year_delta_p80": 6.8, + "year_delta_p90": 9.76, + "year_delta_p95": 12.6, + "transition_detection_rate": 0.7003, + "cls_accuracy": 0.52, + "cls_f1_macro": 0.3142, + "oracle_year_delta": 0.3714, + "forecasting_impact": 4.1815, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "prophet", + "classifier": "lstm_seq2seq", + "year_delta_mean": 2.8588, + "year_delta_median": 1.5, + "year_delta_p60": 2.2311, + "year_delta_p70": 3.0667, + "year_delta_p80": 4.4533, + "year_delta_p90": 6.4329, + "year_delta_p95": 8.461, + "transition_detection_rate": 0.6284, + "cls_accuracy": 0.4906, + "cls_f1_macro": 0.2922, + "oracle_year_delta": 1.0511, + "forecasting_impact": 1.8077, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "prophet", + "classifier": "tcn", + "year_delta_mean": 2.9978, + "year_delta_median": 1.7778, + "year_delta_p60": 2.5213, + "year_delta_p70": 3.5, + "year_delta_p80": 4.7086, + "year_delta_p90": 6.6767, + "year_delta_p95": 9.0, + "transition_detection_rate": 0.6104, + "cls_accuracy": 0.4438, + "cls_f1_macro": 0.2885, + "oracle_year_delta": 0.9861, + "forecasting_impact": 2.0117, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "prophet", + "classifier": "resnet", + "year_delta_mean": 3.9686, + "year_delta_median": 2.2222, + "year_delta_p60": 3.1443, + "year_delta_p70": 4.4286, + "year_delta_p80": 6.0, + "year_delta_p90": 8.55, + "year_delta_p95": 11.2143, + "transition_detection_rate": 0.5158, + "cls_accuracy": 0.3951, + "cls_f1_macro": 0.196, + "oracle_year_delta": 1.5607, + "forecasting_impact": 2.4079, + "heldout_ipcs": 555, + "heldout_samples": 2775 + }, + { + "forecaster": "prophet", + "classifier": "inception_time", + "year_delta_mean": 3.2713, + "year_delta_median": 2.0, + "year_delta_p60": 2.8929, + "year_delta_p70": 3.9333, + "year_delta_p80": 5.2778, + "year_delta_p90": 7.4429, + "year_delta_p95": 9.7734, + "transition_detection_rate": 0.5191, + "cls_accuracy": 0.4133, + "cls_f1_macro": 0.2115, + "oracle_year_delta": 1.399, + "forecasting_impact": 1.8723, + "heldout_ipcs": 555, + "heldout_samples": 2775 + } +] \ No newline at end of file diff --git a/research/tech_forecasting/submission/results_code/combined_RESULTS_percentiles_v2.md b/research/tech_forecasting/submission/results_code/combined_RESULTS_percentiles_v2.md new file mode 100644 index 0000000..02ab44a --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined_RESULTS_percentiles_v2.md @@ -0,0 +1,195 @@ +# Combined Split Pipeline Results (Percentile Extension) + +## 1. Objective + +This report extends the combined split evaluation by adding year-delta percentiles beyond the existing median (50th percentile), specifically: + +- 60th percentile (p60) +- 70th percentile (p70) +- 80th percentile (p80) +- 90th percentile (p90) +- 95th percentile (p95) + +All metrics are computed for the same strict 80/20 IPC holdout protocol used in combined split evaluation. + +## 2. Percentile Definition + +For each evaluation bucket (overall, by part length, by horizon), define per-sample year-delta means: + +$$ +\Delta_i = \text{year-delta mean for sample } i +$$ + +Then percentile metrics are computed as: + +$$ +\text{p}q = \operatorname{Percentile}\left(\{\Delta_i\}, q\right), \quad q \in \{50,60,70,80,90,95\} +$$ + +Notes: + +- `median_delta` is identical to `p50_delta`. +- Percentiles are computed on per-sample means (not directly on per-transition residuals). + +## 3. Experimental Setup (unchanged) + +- Forecasters: transformer_direct, informer, patchtst, lstm_direct, tcn_direct, prophet +- Classifiers: transformer_seq2seq, lstm_seq2seq, tcn, resnet, inception_time +- Total combinations: 30 +- Holdout: 555 IPCs (2775 evaluated samples = 555 x 5 part lengths) +- Split random state: 42 +- Oracle mode retained for decomposition + +## 4. Overall Percentile Summary (30 combinations average) + +| Metric | Value | +|---|---:| +| Year-delta mean | 2.7148 | +| Year-delta p50 (median) | 1.3074 | +| Year-delta p60 | 1.9101 | +| Year-delta p70 | 2.7839 | +| Year-delta p80 | 4.0818 | +| Year-delta p90 | 6.2728 | +| Year-delta p95 | 8.4806 | +| Transition detection rate | 0.7498 | +| Classification accuracy | 0.5355 | +| Classification F1-macro | 0.3129 | +| Forecasting impact | 1.6411 | + +Interpretation: + +- The strong gap between p50 and p95 indicates heavy-tailed timing error behavior. +- Typical performance (p50) is materially better than worst-tail behavior (p95). + +## 5. Top 10 Combinations by Year-Delta Mean + +| Rank | Forecaster | Classifier | YD mean | p50 | p60 | p70 | p80 | p90 | p95 | TDR | Acc | F1-m | +|---:|---|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| +| 1 | transformer_direct | lstm_seq2seq | 1.7544 | 0.6500 | 1.0381 | 1.5600 | 2.3670 | 4.2400 | 6.0933 | 0.7237 | 0.5785 | 0.3456 | +| 2 | tcn_direct | lstm_seq2seq | 1.7926 | 0.6842 | 1.1000 | 1.6471 | 2.4667 | 4.2333 | 6.0312 | 0.7276 | 0.5757 | 0.3458 | +| 3 | informer | lstm_seq2seq | 1.8032 | 0.6667 | 1.0588 | 1.6132 | 2.4412 | 4.4059 | 6.2736 | 0.7252 | 0.5766 | 0.3453 | +| 4 | patchtst | lstm_seq2seq | 1.8166 | 0.7143 | 1.1176 | 1.6696 | 2.5269 | 4.3708 | 6.1039 | 0.7240 | 0.5744 | 0.3421 | +| 5 | lstm_direct | lstm_seq2seq | 1.8205 | 0.7500 | 1.1333 | 1.7200 | 2.5385 | 4.3714 | 6.0000 | 0.7277 | 0.5749 | 0.3428 | +| 6 | lstm_direct | tcn | 1.9061 | 1.0286 | 1.4214 | 1.9486 | 2.8081 | 4.2503 | 6.0000 | 0.8558 | 0.5860 | 0.3647 | +| 7 | patchtst | tcn | 1.9111 | 0.9429 | 1.3957 | 1.9429 | 2.7933 | 4.2667 | 6.0000 | 0.8484 | 0.5860 | 0.3628 | +| 8 | transformer_direct | tcn | 1.9400 | 0.9200 | 1.3500 | 1.8962 | 2.8013 | 4.3640 | 6.3767 | 0.8457 | 0.5878 | 0.3618 | +| 9 | informer | tcn | 1.9638 | 0.9130 | 1.3750 | 1.9683 | 2.9206 | 4.4000 | 6.3767 | 0.8448 | 0.5863 | 0.3611 | +| 10 | tcn_direct | tcn | 1.9759 | 1.0000 | 1.4286 | 2.0000 | 2.9173 | 4.3600 | 6.3767 | 0.8483 | 0.5800 | 0.3616 | + +## 6. Aggregate by Classifier + +| Classifier | YD mean | p50 | p60 | p70 | p80 | p90 | p95 | TDR | Acc | F1-m | FC impact | +|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| +| lstm_seq2seq | 1.9744 | 0.8275 | 1.2798 | 1.8794 | 2.7989 | 4.6757 | 6.4938 | 0.7094 | 0.5618 | 0.3356 | 0.9233 | +| tcn | 2.1158 | 1.0971 | 1.5820 | 2.2093 | 3.1582 | 4.7196 | 6.6883 | 0.8089 | 0.5616 | 0.3501 | 1.1297 | +| inception_time | 2.9016 | 1.4828 | 2.1847 | 3.1387 | 4.5621 | 6.8399 | 8.9684 | 0.6974 | 0.4704 | 0.2568 | 1.5026 | +| transformer_seq2seq | 3.2496 | 1.2999 | 1.9488 | 3.1080 | 4.8810 | 7.6633 | 10.4055 | 0.7859 | 0.6118 | 0.3718 | 2.8782 | +| resnet | 3.3327 | 1.8297 | 2.5552 | 3.5838 | 5.0086 | 7.4657 | 9.8469 | 0.7473 | 0.4719 | 0.2504 | 1.7720 | + +Key classifier finding: + +- `lstm_seq2seq` remains best for end-to-end timing (lowest mean and lowest high-percentiles among strong performers). +- `transformer_seq2seq` has strong classification scores but much worse tail timing under forecast noise (high p90/p95 and highest forecasting impact). + +## 7. Aggregate by Forecaster + +| Forecaster | YD mean | p50 | p60 | p70 | p80 | p90 | p95 | TDR | Acc | F1-m | FC impact | +|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| +| lstm_direct | 2.4895 | 1.1691 | 1.7007 | 2.5043 | 3.7148 | 5.8355 | 7.8333 | 0.7833 | 0.5544 | 0.3248 | 1.4158 | +| patchtst | 2.5506 | 1.1388 | 1.7084 | 2.5423 | 3.8328 | 5.9476 | 8.1139 | 0.7796 | 0.5518 | 0.3228 | 1.4770 | +| transformer_direct | 2.5606 | 1.1101 | 1.6687 | 2.5129 | 3.8052 | 6.0216 | 8.2438 | 0.7797 | 0.5531 | 0.3228 | 1.4870 | +| tcn_direct | 2.5713 | 1.1821 | 1.7306 | 2.5406 | 3.8382 | 5.9808 | 8.1729 | 0.7812 | 0.5491 | 0.3236 | 1.4976 | +| informer | 2.5869 | 1.1320 | 1.6942 | 2.5640 | 3.8517 | 6.0790 | 8.3100 | 0.7802 | 0.5521 | 0.3231 | 1.5132 | +| prophet | 3.5299 | 2.1125 | 2.9579 | 4.0391 | 5.4479 | 7.7725 | 10.2097 | 0.5948 | 0.4526 | 0.2605 | 2.4562 | + +Key forecaster finding: + +- Neural forecasters remain tightly clustered in both central and tail percentiles. +- Prophet is consistently and substantially worse, with tail errors rising above 10 years at p95 on average. + +## 8. Neural vs Prophet Tail-Risk Contrast + +| Group | YD mean | p50 | p60 | p70 | p80 | p90 | p95 | TDR | Acc | F1-m | FC impact | +|---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| +| Neural forecasters (25 combos) | 2.5518 | 1.1464 | 1.7005 | 2.5328 | 3.8085 | 5.9729 | 8.1348 | 0.7808 | 0.5521 | 0.3234 | 1.4781 | +| Prophet (5 combos) | 3.5299 | 2.1125 | 2.9579 | 4.0391 | 5.4479 | 7.7725 | 10.2097 | 0.5948 | 0.4526 | 0.2605 | 2.4562 | + +Interpretation: + +- Prophet increases both center and tail error, and substantially reduces transition detection rate. +- The p95 gap (about 2.07 years) is practically important for high-risk forecast scenarios. + +## 9. Best Combination Detailed Analysis + +Best by predicted mean year-delta: + +- Forecaster: `transformer_direct` +- Classifier: `lstm_seq2seq` +- Predicted: mean 1.7544, p50 0.6500, p95 6.0933, TDR 0.7237 +- Oracle: mean 1.0511, p50 0.4000, p95 4.3253, TDR 0.9224 + +### 9.1 By Part Length (best combination, predicted mode) + +| Part length | Mean | p50 | p90 | p95 | TDR | +|---:|---:|---:|---:|---:|---:| +| 10 | 1.9507 | 0.7941 | 4.2071 | 6.2484 | 0.6093 | +| 15 | 2.1215 | 0.8750 | 4.9792 | 6.6942 | 0.7017 | +| 20 | 1.8338 | 0.8400 | 4.4200 | 6.1570 | 0.7604 | +| 25 | 1.5587 | 0.6000 | 4.5732 | 6.3450 | 0.7983 | +| 30 | 0.9682 | 0.2667 | 2.5406 | 4.4000 | 0.8739 | + +Observation: longer observed history consistently improves central and tail timing error. + +### 9.2 By Forecast Horizon (best combination, predicted mode) + +| Horizon | Mean | p50 | p90 | p95 | TDR | +|---:|---:|---:|---:|---:|---:| +| 5 | 1.9590 | 0.4000 | 6.0000 | 9.0000 | 0.8589 | +| 10 | 2.1187 | 0.6667 | 6.5000 | 8.5000 | 0.8184 | +| 15 | 2.0311 | 0.7143 | 5.4667 | 8.1433 | 0.7925 | +| 20 | 2.1720 | 0.8333 | 5.5500 | 7.6500 | 0.7472 | +| 25 | 2.2028 | 0.9091 | 5.4000 | 7.4257 | 0.7080 | +| 30 | 2.1611 | 0.8750 | 4.9467 | 6.9800 | 0.6626 | +| 35 | 1.9507 | 0.7941 | 4.2071 | 6.2484 | 0.6093 | + +Observation: detection and central error degrade as effective forecasting depth increases, while tails remain substantial. + +## 10. Technical Discussion (Scientific Perspective) + +The percentile extension changes the interpretation of combined pipeline quality in an important way. Mean and median alone suggest moderate performance, but p90/p95 reveal heavy tails in temporal misalignment. This implies that while many trajectories are timed reasonably, a non-trivial subset has much larger phase-transition timing error. For decision support scenarios, especially where late or early transition calls are costly, these upper-tail percentiles are essential. + +Classifier-level analysis indicates two distinct behavior modes. `lstm_seq2seq` and `tcn` deliver low-to-moderate tails alongside competitive central tendency, suggesting better robustness under forecast perturbations. In contrast, `transformer_seq2seq` has strong timestep-level classification accuracy and F1 but substantially worse tail timing and the largest forecasting impact. This is consistent with a noise-sensitivity effect: high clean-data discriminative capacity does not guarantee temporal stability on forecasted inputs. + +Forecaster-level differences among the neural group remain relatively small compared with classifier-induced spread. Prophet, however, is clearly separated from the neural set in center and tail statistics, confirming that poor forecasting quality propagates to larger downstream temporal uncertainty. The neural-vs-prophet p95 gap quantitatively supports this. + +The best pair in this run (`transformer_direct` + `lstm_seq2seq`) shows that part-length expansion improves both central and tail behavior, supporting the practical recommendation to prefer longer observation windows when available. Yet even in the best pair, p95 remains several years above p50, indicating residual uncertainty and motivating risk-aware reporting. + +## 11. Strengths, Shortcomings, and Assumptions + +### 11.1 Strengths + +- Adds tail-risk visibility (p60-p95) while preserving all existing metrics. +- Maintains leakage-safe 80/20 IPC holdout design. +- Percentiles are available consistently across overall, part-length, and horizon analyses. +- Enables risk-sensitive model selection (not only mean-optimal selection). + +### 11.2 Shortcomings + +- Single split run: no confidence intervals for percentile estimates. +- Severe class imbalance remains, which can destabilize tails for minority-transition patterns. +- Percentiles are computed on per-sample means; this may smooth transition-level extremes. +- Results are still from decoupled forecaster/classifier training rather than joint optimization. + +### 11.3 Assumptions + +- Forecast predictions are taken from `forecasting_v1` and considered fixed inputs. +- Train/test partition is IPC-level with seed 42 and non-stratified holdout. +- Percentile interpretation assumes per-sample deltas are the operational unit of risk. +- Comparisons are descriptive; no formal hypothesis testing is applied in this report. + +## 12. Artifacts + +- Combination summary with percentile fields: `summary.json` +- Per-combination JSON outputs with percentile fields in year-delta blocks +- Split/CV manifest: `split_manifest.json` +- This report: `RESULTS_PERCENTILES.md` diff --git a/research/tech_forecasting/submission/results_code/combined_RESULTS_split_v1.md b/research/tech_forecasting/submission/results_code/combined_RESULTS_split_v1.md new file mode 100644 index 0000000..68dab03 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined_RESULTS_split_v1.md @@ -0,0 +1,233 @@ +# Combined Split Pipeline Results (combined_split_v1) + +## 1. What changed from combined_v1 + +This run keeps the same combined evaluation metrics and model grid as combined_v1, but changes the training protocol to enforce a strict holdout split for classifier training. + +- New script: experiments/combined/run_pipeline_split.py +- Output folder: experiments/results/combined_split_v1 +- Model grid: 6 forecasters x 5 classifiers = 30 combinations +- Forecast inputs: loaded from forecasting_v1 prediction files +- Classifier training data: only train split (80%) +- Combined evaluation data: only held-out test split (20%) +- Oracle and predicted modes are both preserved + +Metrics kept unchanged relative to run_pipeline.py: + +- Year-delta mean, median, std +- Transition detection rate +- Classification metrics (accuracy, macro/weighted F1, precision/recall, kappa) +- Error decomposition: + - Forecasting impact = YearDelta(predicted) - YearDelta(oracle) + - Accuracy degradation = Accuracy(oracle) - Accuracy(predicted) + +## 2. Train/Test split and CV protocol + +### 2.1 Holdout split + +Split metadata is saved in split_manifest.json. + +- Total IPC series: 2774 +- Train IPCs: 2219 (80%) +- Test IPCs: 555 (20%) +- Random seed: 42 +- Stratification for holdout split: disabled (matches forecasting_v1 split style) +- Leakage guard: enforced (train/test IPC overlap is checked and must be zero) + +Every forecaster prediction file is filtered to the held-out IPC set before evaluation. +Each run therefore evaluates exactly 2775 samples (555 IPCs x 5 part lengths). + +### 2.2 CV manifest + +To document CV behavior, the script also generates a train-side CV manifest using the existing shared splitter: + +- Splitter: StratifiedKFold +- Folds: 5 +- Stratification target: majority class per training IPC sequence +- Fold sizes: 1775 train / 444 validation in each fold + +Important note: this CV is currently used for split diagnostics/reporting, not for repeated retraining of combined models in this script. Final reported combined metrics are from one 80/20 holdout run per model pair. + +### 2.3 Class balance caveat + +Class imbalance remains severe: + +- Majority class 2 and class 7 each appear only 2 times in the full dataset. +- With non-stratified 80/20 holdout, some rare classes are absent in test-majority counts. +- sklearn warns that the least populated class has fewer members than n_splits. + +This is expected from the data distribution and should be considered when interpreting macro metrics and per-class behavior. + +## 3. Headline combined results + +### 3.1 Best and worst combinations (by predicted year-delta mean) + +- Best: informer + lstm_seq2seq + - Year-delta mean: 1.8979 + - Year-delta median: 0.6667 + - Detection rate: 0.7341 + - Accuracy: 0.5756 + - F1 macro: 0.3318 + +- Worst: prophet + transformer_seq2seq + - Year-delta mean: 4.1955 + - Year-delta median: 2.7333 + - Detection rate: 0.7495 + - Accuracy: 0.5317 + - F1 macro: 0.3272 + +### 3.2 Top 10 combinations (predicted mode, sorted by year-delta mean) + +| Rank | Forecaster | Classifier | YD mean | YD median | TDR | Acc | F1 macro | +|---:|---|---|---:|---:|---:|---:|---:| +| 1 | informer | lstm_seq2seq | 1.8979 | 0.6667 | 0.7341 | 0.5756 | 0.3318 | +| 2 | transformer_direct | tcn | 1.9109 | 0.9000 | 0.8198 | 0.5756 | 0.3541 | +| 3 | transformer_direct | lstm_seq2seq | 1.9134 | 0.6511 | 0.7353 | 0.5762 | 0.3329 | +| 4 | patchtst | tcn | 1.9305 | 1.0000 | 0.8164 | 0.5702 | 0.3535 | +| 5 | tcn_direct | lstm_seq2seq | 1.9321 | 0.7241 | 0.7361 | 0.5732 | 0.3336 | +| 6 | patchtst | lstm_seq2seq | 1.9434 | 0.6830 | 0.7333 | 0.5731 | 0.3312 | +| 7 | informer | tcn | 1.9509 | 0.9200 | 0.8219 | 0.5749 | 0.3543 | +| 8 | lstm_direct | tcn | 1.9591 | 1.0000 | 0.8175 | 0.5688 | 0.3569 | +| 9 | lstm_direct | lstm_seq2seq | 1.9670 | 0.6667 | 0.7268 | 0.5696 | 0.3303 | +| 10 | tcn_direct | tcn | 1.9833 | 1.0000 | 0.8191 | 0.5672 | 0.3540 | + +## 4. Aggregated analysis + +### 4.1 Average by classifier (across all 6 forecasters) + +| Classifier | YD mean | YD median | TDR | Acc | F1 macro | Oracle YD | Forecasting impact | +|---|---:|---:|---:|---:|---:|---:|---:| +| tcn | 2.1567 | 1.1033 | 0.7712 | 0.5472 | 0.3408 | 1.0840 | 1.0727 | +| lstm_seq2seq | 2.1790 | 0.8403 | 0.7041 | 0.5551 | 0.3212 | 1.0784 | 1.1006 | +| resnet | 2.7036 | 1.1746 | 0.7686 | 0.5224 | 0.2583 | 1.1928 | 1.5108 | +| transformer_seq2seq | 3.2485 | 1.1593 | 0.8047 | 0.6220 | 0.3788 | 0.3872 | 2.8613 | +| inception_time | 3.4533 | 1.7668 | 0.6382 | 0.4343 | 0.2594 | 1.3805 | 2.0728 | + +Interpretation: + +- On holdout data, tcn and lstm_seq2seq are the strongest end-to-end choices by year-delta. +- transformer_seq2seq still has the best oracle quality (lowest oracle year-delta), but has the largest forecasting impact, indicating strong sensitivity to forecast noise. + +### 4.2 Average by forecaster (across all 5 classifiers) + +| Forecaster | YD mean | YD median | TDR | Acc | F1 macro | Forecasting impact | +|---|---:|---:|---:|---:|---:|---:| +| lstm_direct | 2.5607 | 1.0871 | 0.7651 | 0.5516 | 0.3231 | 1.5362 | +| patchtst | 2.6025 | 1.0637 | 0.7654 | 0.5518 | 0.3211 | 1.5779 | +| transformer_direct | 2.6353 | 1.0214 | 0.7661 | 0.5530 | 0.3209 | 1.6107 | +| tcn_direct | 2.6394 | 1.0897 | 0.7671 | 0.5504 | 0.3221 | 1.6148 | +| informer | 2.6447 | 1.0347 | 0.7663 | 0.5523 | 0.3204 | 1.6201 | +| prophet | 3.4068 | 1.9567 | 0.5941 | 0.4581 | 0.2625 | 2.3822 | + +Interpretation: + +- Neural forecasters remain tightly clustered. +- Prophet is still clearly weaker across all combined metrics. + +### 4.3 Neural forecasters vs Prophet baseline + +| Metric | Neural average (25 combos) | Prophet average (5 combos) | Absolute delta | +|---|---:|---:|---:| +| Year-delta mean | 2.6165 | 3.4068 | -0.7903 | +| Year-delta median | 1.0593 | 1.9567 | -0.8974 | +| Transition detection rate | 0.7660 | 0.5941 | +0.1719 | +| Accuracy | 0.5518 | 0.4581 | +0.0937 | +| F1 macro | 0.3215 | 0.2625 | +0.0590 | +| Forecasting impact | 1.5919 | 2.3822 | -0.7903 | + +## 5. Detailed behavior on the best split model + +Best split model: informer + lstm_seq2seq. + +### 5.1 Part-length trend (predicted mode) + +| Part length | YD mean | YD median | TDR | +|---:|---:|---:|---:| +| 10 | 2.2789 | 0.9412 | 0.6073 | +| 15 | 2.3662 | 1.0742 | 0.7136 | +| 20 | 1.9422 | 0.8297 | 0.7728 | +| 25 | 1.5054 | 0.5000 | 0.8205 | +| 30 | 0.9601 | 0.2183 | 0.8913 | + +Trend is consistent with prior experiments: longer observed history improves transition timing and detection. + +### 5.2 Horizon trend (predicted mode) + +| Horizon | YD mean | YD median | TDR | +|---:|---:|---:|---:| +| 5 | 2.0099 | 0.4000 | 0.8586 | +| 10 | 2.1669 | 0.6000 | 0.8190 | +| 15 | 2.1236 | 0.6667 | 0.7950 | +| 20 | 2.3454 | 0.9000 | 0.7495 | +| 25 | 2.4611 | 1.0000 | 0.7088 | +| 30 | 2.4684 | 1.0455 | 0.6645 | +| 35 | 2.2789 | 0.9412 | 0.6073 | + +Longer horizons remain harder, especially for transition detection. + +## 6. Comparison vs original combined_v1 + +Average across all 30 combinations: + +| Metric | combined_v1 | combined_split_v1 | Delta (split - v1) | +|---|---:|---:|---:| +| Year-delta mean | 2.6578 | 2.7482 | +0.0904 | +| Year-delta median | 1.1446 | 1.2089 | +0.0643 | +| Transition detection rate | 0.7752 | 0.7373 | -0.0378 | +| Accuracy | 0.5895 | 0.5362 | -0.0533 | +| F1 macro | 0.3903 | 0.3117 | -0.0786 | +| Forecasting impact | 2.0616 | 1.7236 | -0.3380 | + +Most degraded combinations by year-delta after adding holdout split: + +- prophet + lstm_seq2seq: +1.2230 +- transformer_direct + lstm_seq2seq: +1.0000 +- tcn_direct + lstm_seq2seq: +0.9886 +- informer + lstm_seq2seq: +0.9699 +- patchtst + lstm_seq2seq: +0.9665 + +Most improved combinations by year-delta after adding holdout split: + +- prophet + inception_time: -0.8834 +- lstm_direct + transformer_seq2seq: -0.4702 +- transformer_direct + transformer_seq2seq: -0.4652 +- informer + transformer_seq2seq: -0.4435 +- patchtst + transformer_seq2seq: -0.4396 + +Interpretation: + +- The holdout split removes the optimistic bias from train-on-all setups. +- Rankings are not uniformly shifted; model robustness to distribution shift determines whether performance drops or occasionally improves. +- The largest degradation is concentrated in lstm_seq2seq pairings that were strongest in combined_v1. + +## 7. Strengths and shortcomings + +### 7.1 Strengths + +- Leakage control is now explicit and enforced by IPC-level holdout filtering. +- Metric continuity is preserved, so split and non-split results are directly comparable. +- Oracle/predicted decomposition still gives clear stage-wise attribution. +- The new split manifest makes train/test and CV structure fully reproducible. +- Neural forecasters still show clear value over the Prophet baseline. + +### 7.2 Shortcomings + +- Single holdout split only: no confidence intervals for combined metrics yet. +- Rare-class scarcity remains severe; some rare classes disappear in test-majority counts. +- Distribution shift remains large because classifiers train on ground-truth series and infer on forecasted series. +- CV in this script is descriptive (manifest only), not used for repeated combined training/evaluation. +- Some model rankings are unstable across split protocols, so pairwise significance is still uncertain. + +## 8. Recommended next steps + +1. Add repeated holdout runs (multiple seeds) to estimate uncertainty bands. +2. Add stratified holdout option for the final report run (split_stratify true) and compare stability. +3. Add true fold-wise combined CV (train on fold-train, evaluate on fold-val predictions) if compute budget allows. +4. Explore forecast-noise-aware classifier training to reduce oracle-to-predicted degradation. + +## 9. Artifacts generated + +- split protocol and CV manifest: split_manifest.json +- per-combination results: __.json (30 files) +- summary table: summary.json +- this report: RESULTS.md diff --git a/research/tech_forecasting/submission/results_code/combined_RESULTS_v0.md b/research/tech_forecasting/submission/results_code/combined_RESULTS_v0.md new file mode 100644 index 0000000..3888f91 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/combined_RESULTS_v0.md @@ -0,0 +1,313 @@ +# Combined Pipeline Results: Forecaster → Classifier → Year-Delta + +## Overview + +**Goal**: Predict when a technology will transition between lifecycle phases (emergence → growth → maturity → decline, etc.), given only partial historical patent time series. + +**Pipeline**: Observe the first `part_length` years → **Forecaster** predicts the remaining years → **Classifier** labels each year with a lifecycle phase → **Year-delta** measures how accurately phase transitions are timed. + +This is a two-stage pipeline where errors compound: forecasting errors produce imperfect time series, which the classifier must then interpret. The evaluation quantifies both the total pipeline error and each stage's contribution. + +--- + +## Evaluation Framework + +### Why year-delta is the primary metric + +In technology lifecycle analysis, stakeholders need to know **when** a phase transition will occur (e.g., "technology X will enter maturity in ~5 years"). Standard classification metrics (accuracy, F1) only measure whether the correct phase label was assigned at each timestep, without penalizing *how far off* the timing is. A prediction that misses a transition by 1 year should be treated differently from one that misses it by 10 years. + +**Year-delta** (Δ years) measures the average temporal distance between each true phase transition and the nearest matching predicted transition. Formally: + +For each timestep $t$ in the forecast window where the true label is class $c$, find the nearest timestep $t'$ where the predicted label is also $c$, and compute $|t - t'|$. The year-delta is the average of these distances across all forecast timesteps. + +- **Δ = 0**: perfect temporal alignment of all phase transitions +- **Δ = 1–2**: transitions are predicted within 1–2 years (practically useful) +- **Δ > 5**: transitions are substantially misaligned (limited utility) + +### Supplementary metrics + +| Metric | What it measures | Why it matters | +|---|---|---| +| **Transition Detection Rate** | Fraction of true transition timesteps where the predicted class exists *anywhere* in the prediction | A classifier that never predicts rare phases (e.g., "decline") will have 0% detection for those phases, regardless of timing accuracy | +| **Year-delta median** | Median per-sample Δ (robust to outliers) | Mean Δ can be inflated by a few catastrophic failures; median shows typical-case performance | +| **Classification accuracy on forecasted data** | Standard timestep-level accuracy when classifier runs on predicted (not ground-truth) values | Measures how robust the classifier is to input noise from the forecaster | +| **Accuracy degradation** | Accuracy(oracle) − Accuracy(predicted) | Isolates how much the forecaster's errors degrade downstream classification | +| **Forecasting impact** | Δ_predicted − Δ_oracle | Decomposes year-delta into: (1) classifier error (oracle Δ) and (2) additional error from forecast noise | + +### Oracle baseline and error decomposition + +To disentangle forecasting vs. classification errors, we run each classifier in two modes: + +1. **Oracle mode**: classifier receives *ground-truth* time series → year-delta reflects pure classification error +2. **Predicted mode**: classifier receives *forecasted* time series → year-delta reflects end-to-end pipeline error + +The difference (**forecasting impact** = Δ_predicted − Δ_oracle) quantifies how much the forecaster hurts downstream phase prediction. If this is near zero, the classifier is robust to forecast noise; if large, better forecasting would improve the pipeline. + +### What scientific papers typically evaluate in combined forecasting+classification pipelines + +1. **Year-delta / temporal offset** — the primary metric we use (standard in technology lifecycle literature) +2. **Confusion matrices at different horizons** — to show which phase transitions are hardest +3. **Ablation studies** — oracle vs. predicted mode, varying forecasters/classifiers independently +4. **Sensitivity to observation window** — how Δ changes across part_lengths (PL=10 vs PL=30) +5. **Sensitivity to forecast horizon** — how Δ degrades as we predict further into the future +6. **Baseline comparison** — statistical forecaster (Prophet) vs. neural, and weak classifier vs. strong +7. **Heatmaps** — Forecaster × Classifier interaction matrix colored by year-delta + +### Models used + +**Top-5 Forecasters** (by MAE, v1 results): + +| Rank | Model | Overall MAE | +|---|---|---| +| 1 | Transformer-Direct | 7.78 | +| 2 | Informer | 7.79 | +| 3 | PatchTST | 7.81 | +| 4 | LSTM-Direct | 7.85 | +| 5 | TCN-Direct | 7.85 | +| baseline | Prophet | 17.89 | + +**Top-5 Classifiers** (by F1-macro, classification results): + +| Rank | Model | F1-macro | Accuracy | +|---|---|---|---| +| 1 | Transformer-Seq2Seq | 0.696 | 0.883 | +| 2 | LSTM-Seq2Seq | 0.464 | 0.734 | +| 3 | TCN | 0.421 | 0.715 | +| 4 | ResNet | 0.374 | 0.651 | +| 5 | InceptionTime | 0.341 | 0.658 | + +Prophet serves as the **forecasting baseline** — if a neural forecaster doesn't improve year-delta over Prophet, the added complexity is unjustified. Similarly, InceptionTime and ResNet serve as **classification baselines** against the top-performing Transformer-Seq2Seq. + +--- + +## Results + +### 4.1 Overall Year-Delta (all 30 combinations, sorted by mean Δ ↑) + +| Rank | Forecaster | Classifier | Δ mean | Δ median | Δ std | TDR | CLS Acc | CLS F1-m | Oracle Δ | Forecasting Impact | +|---:|---|---|---:|---:|---:|---:|---:|---:|---:|---:| +| 1 | Transformer-Direct | LSTM-Seq2Seq | **0.913** | **0.235** | 1.288 | 0.740 | 0.735 | 0.552 | 0.005 | 0.908 | +| 2 | Informer | LSTM-Seq2Seq | 0.928 | 0.214 | — | 0.740 | 0.735 | 0.549 | 0.005 | 0.923 | +| 3 | TCN-Direct | LSTM-Seq2Seq | 0.944 | 0.250 | — | 0.740 | 0.733 | 0.553 | 0.005 | 0.939 | +| 4 | PatchTST | LSTM-Seq2Seq | 0.977 | 0.250 | — | 0.740 | 0.732 | 0.550 | 0.005 | 0.972 | +| 5 | LSTM-Direct | LSTM-Seq2Seq | 1.008 | 0.300 | — | 0.741 | 0.730 | 0.545 | 0.005 | 1.003 | +| 6 | Transformer-Direct | TCN | 1.818 | 0.875 | — | 0.830 | 0.598 | 0.426 | 0.783 | 1.035 | +| 7 | Informer | TCN | 1.846 | 0.894 | — | 0.831 | 0.597 | 0.424 | 0.783 | 1.063 | +| 8 | PatchTST | TCN | 1.863 | 1.000 | — | 0.827 | 0.593 | 0.423 | 0.783 | 1.080 | +| 9 | TCN-Direct | TCN | 1.875 | 1.000 | — | 0.825 | 0.589 | 0.422 | 0.783 | 1.093 | +| 10 | LSTM-Direct | TCN | 1.887 | 1.033 | — | 0.817 | 0.585 | 0.419 | 0.783 | 1.104 | +| 11 | Prophet | LSTM-Seq2Seq | 2.197 | 0.750 | 2.747 | 0.663 | 0.639 | 0.471 | 0.005 | 2.192 | +| 12 | LSTM-Direct | ResNet | 2.653 | 1.400 | — | 0.852 | 0.570 | 0.325 | 0.863 | 1.791 | +| 13 | PatchTST | ResNet | 2.754 | 1.400 | — | 0.847 | 0.567 | 0.321 | 0.863 | 1.891 | +| 14 | Informer | ResNet | 2.794 | 1.400 | — | 0.850 | 0.568 | 0.319 | 0.863 | 1.932 | +| 15 | Prophet | TCN | 2.709 | 1.342 | — | 0.534 | 0.457 | 0.327 | 0.783 | 1.926 | +| 16 | Transformer-Direct | ResNet | 2.822 | 1.360 | — | 0.849 | 0.570 | 0.320 | 0.863 | 1.960 | +| 17 | TCN-Direct | ResNet | 2.861 | 1.480 | — | 0.841 | 0.557 | 0.317 | 0.863 | 1.998 | +| 18 | Prophet | ResNet | 3.155 | 2.000 | — | 0.662 | 0.487 | 0.272 | 0.863 | 2.293 | +| 19 | LSTM-Direct | Transformer-S2S | 3.406 | 1.000 | — | 0.850 | 0.644 | 0.414 | 0.161 | 3.245 | +| 20 | LSTM-Direct | InceptionTime | 3.425 | 1.500 | — | 0.759 | 0.492 | 0.308 | 1.170 | 2.256 | +| 21 | PatchTST | InceptionTime | 3.466 | 1.471 | — | 0.759 | 0.492 | 0.300 | 1.170 | 2.296 | +| 22 | Informer | InceptionTime | 3.476 | 1.500 | — | 0.773 | 0.496 | 0.299 | 1.170 | 2.306 | +| 23 | PatchTST | Transformer-S2S | 3.498 | 0.885 | — | 0.838 | 0.641 | 0.412 | 0.161 | 3.337 | +| 24 | Transformer-Direct | InceptionTime | 3.500 | 1.483 | — | 0.772 | 0.495 | 0.299 | 1.170 | 2.330 | +| 25 | TCN-Direct | Transformer-S2S | 3.511 | 0.933 | — | 0.837 | 0.641 | 0.413 | 0.161 | 3.349 | +| 26 | TCN-Direct | InceptionTime | 3.548 | 1.500 | — | 0.758 | 0.489 | 0.300 | 1.170 | 2.378 | +| 27 | Informer | Transformer-S2S | 3.558 | 0.840 | — | 0.834 | 0.640 | 0.412 | 0.161 | 3.397 | +| 28 | Transformer-Direct | Transformer-S2S | 3.563 | 0.833 | — | 0.834 | 0.640 | 0.410 | 0.161 | 3.402 | +| 29 | Prophet | InceptionTime | 4.224 | 2.250 | — | 0.541 | 0.426 | 0.254 | 1.170 | 3.054 | +| 30 | Prophet | Transformer-S2S | 4.557 | 2.958 | — | 0.775 | 0.548 | 0.352 | 0.161 | 4.395 | + +**Best overall**: Transformer-Direct + LSTM-Seq2Seq (Δ = 0.913 years, median = 0.235). +**Worst neural**: TCN-Direct + InceptionTime (Δ = 3.548 years). **Worst overall**: Prophet + Transformer-Seq2Seq (Δ = 4.557 years). + +### 4.2 Aggregated Results by Classifier + +Averages taken across all 6 forecasters (5 neural + Prophet): + +| Classifier | Δ mean | Δ median | TDR | Pred. Acc | Pred. F1-m | Oracle Δ | Forecasting Impact | +|---|---:|---:|---:|---:|---:|---:|---:| +| **LSTM-Seq2Seq** | **1.161** | **0.333** | 0.727 | 0.717 | 0.537 | 0.005 | 1.156 | +| TCN | 2.000 | 1.024 | 0.777 | 0.570 | 0.407 | 0.783 | 1.217 | +| ResNet | 2.840 | 1.507 | 0.817 | 0.553 | 0.313 | 0.863 | 1.977 | +| InceptionTime | 3.606 | 1.617 | 0.727 | 0.482 | 0.294 | 1.170 | 2.437 | +| Transformer-S2S | 3.682 | 1.242 | 0.828 | 0.626 | 0.402 | 0.161 | 3.521 | + +### 4.3 Aggregated Results by Forecaster + +Averages taken across all 5 classifiers: + +| Forecaster | Δ mean | Δ median | TDR | Pred. Acc | Pred. F1-m | Forecasting Impact | +|---|---:|---:|---:|---:|---:|---:| +| **LSTM-Direct** | **2.476** | 1.047 | 0.804 | 0.604 | 0.402 | 1.880 | +| Informer | 2.520 | 0.970 | 0.805 | 0.607 | 0.401 | 1.924 | +| Transformer-Direct | 2.523 | 0.957 | 0.805 | 0.608 | 0.402 | 1.927 | +| PatchTST | 2.512 | 1.001 | 0.802 | 0.605 | 0.401 | 1.915 | +| TCN-Direct | 2.548 | 1.033 | 0.800 | 0.602 | 0.401 | 1.951 | +| **Prophet** | **3.368** | **1.860** | **0.635** | 0.512 | 0.335 | **2.772** | + +### 4.4 Year-Delta by Part Length (best combination: Transformer-Direct + LSTM-Seq2Seq) + +| Part Length | Δ mean | Δ median | Δ std | TDR | +|---:|---:|---:|---:|---:| +| 10 | 1.374 | 0.500 | 1.595 | 0.626 | +| 15 | 1.168 | 0.349 | 1.498 | 0.710 | +| 20 | 0.805 | 0.250 | 1.084 | 0.766 | +| 25 | 0.575 | 0.150 | 1.104 | 0.826 | +| 30 | 0.336 | 0.067 | 0.840 | 0.906 | + +### 4.5 Year-Delta by Future Horizon (best combination: Transformer-Direct + LSTM-Seq2Seq) + +| Future Horizon (years) | Δ mean | Δ median | Δ std | TDR | +|---:|---:|---:|---:|---:| +| 5 | 0.404 | 0.000 | 1.255 | 0.913 | +| 10 | 0.714 | 0.100 | 1.515 | 0.857 | +| 15 | 0.853 | 0.200 | 1.592 | 0.816 | +| 20 | 1.066 | 0.300 | 1.662 | 0.762 | +| 25 | 1.233 | 0.400 | 1.673 | 0.717 | +| 30 | 1.350 | 0.452 | 1.687 | 0.675 | +| 35 | 1.374 | 0.500 | 1.595 | 0.626 | + +### 4.6 Oracle (Error Decomposition) + +Oracle mode feeds ground-truth time series to the classifier, isolating pure classification error from forecasting noise. + +| Classifier | Oracle Acc | Oracle F1-m | Oracle Δ mean | Oracle Δ median | Oracle TDR | +|---|---:|---:|---:|---:|---:| +| LSTM-Seq2Seq | 0.968 | 0.980 | 0.005 | 0.000 | 1.000 | +| Transformer-S2S | 0.922 | 0.885 | 0.161 | 0.050 | 0.999 | +| TCN | 0.712 | 0.663 | 0.783 | 0.360 | 0.990 | +| ResNet | 0.702 | 0.510 | 0.863 | 0.600 | 0.988 | +| InceptionTime | 0.628 | 0.430 | 1.170 | 0.714 | 0.884 | + +Oracle Δ by part length (selected classifiers): + +| Classifier | PL=10 | PL=15 | PL=20 | PL=25 | PL=30 | +|---|---:|---:|---:|---:|---:| +| LSTM-Seq2Seq | 0.016 | 0.003 | 0.000 | 0.000 | 0.000 | +| Transformer-S2S | 0.165 | 0.162 | 0.157 | 0.161 | 0.157 | +| TCN | 0.902 | 0.842 | 0.759 | 0.673 | 0.568 | +| ResNet | 0.879 | 0.879 | 0.865 | 0.849 | 0.806 | +| InceptionTime | 1.272 | 1.209 | 1.136 | 1.083 | 0.998 | + +### 4.7 Per-Class F1 on Forecasted Data (Transformer-Direct + selected classifiers) + +| Class | Phase | LSTM-Seq2Seq | Transformer-S2S | TCN | InceptionTime | +|---:|---|---:|---:|---:|---:| +| 0 | Emergence-1 | 0.864 | 0.747 | 0.739 | 0.607 | +| 1 | Emergence-2 | 0.752 | 0.632 | 0.679 | 0.615 | +| 2 | Growth-1 | 0.606 | 0.390 | 0.389 | 0.076 | +| 3 | Growth-2 | 0.701 | 0.601 | 0.641 | 0.537 | +| 4 | Maturity-peak | 0.222 | 0.000 | 0.187 | 0.007 | +| 5 | Maturity-plateau | 0.755 | 0.724 | 0.699 | 0.506 | +| 6 | Decline-1 | 0.521 | 0.166 | 0.278 | 0.132 | +| 7 | Decline-2 | 0.262 | 0.175 | 0.155 | 0.041 | +| 8 | Decline-3 | 0.286 | 0.257 | 0.212 | 0.173 | + +### 4.8 Neural Forecasters vs. Prophet Baseline + +| Metric | Neural (avg over 5 × 5) | Prophet (avg over 5) | Δ Change | Relative | +|---|---:|---:|---:|---:| +| Year-delta mean | 2.516 | 3.368 | −0.852 | −25.3% | +| Year-delta median | 1.002 | 1.860 | −0.858 | −46.1% | +| TDR | 0.803 | 0.635 | +0.168 | +26.5% | +| Forecasting impact | 1.920 | 2.772 | −0.852 | −30.7% | + +--- + +## 5. Discussion + +The combined forecasting→classification pipeline produces 30 model combinations (6 forecasters × 5 classifiers), and the results reveal several non-obvious findings about how these two stages interact in the technology lifecycle prediction task. + +### 5.1 The Classifier Dominates Pipeline Performance + +The single most consequential design decision is the classifier, not the forecaster. Across all 30 combinations, the LSTM-Seq2Seq classifier with *any* neural forecaster achieves Δ = 0.91–1.01 years, while the best forecaster (Transformer-Direct) paired with InceptionTime yields Δ = 3.50 years — a 3.8× worse result. The aggregated results in Section 4.2 make this explicit: the spread across classifiers (Δ = 1.16 to 3.68) is an order of magnitude larger than the spread across neural forecasters (Δ = 2.48 to 2.55, a range of merely 0.07 years). + +This dominance is quantified by the error decomposition (Section 4.6). In oracle mode, LSTM-Seq2Seq achieves near-perfect classification (Δ_oracle = 0.005, effectively zero), meaning that when given clean input, the classifier correctly labels virtually every timestep. The Transformer-Seq2Seq — which is the strongest standalone classifier by accuracy (92.2% on ground-truth) — achieves Δ_oracle = 0.161, an order of magnitude worse. The paradox is that the classifier with the *highest* accuracy in standalone evaluation becomes *the worst* combined pipeline component. This motivates a closer examination in Section 5.2. + +### 5.2 The Accuracy-Robustness Paradox: Why the Best Standalone Classifier Fails in the Pipeline + +The Transformer-Seq2Seq achieves 92.2% accuracy and F1-macro = 0.885 in oracle mode, making it the most accurate classifier by a wide margin. Yet in the predicted-data pipeline it produces the *worst* year-delta (Δ = 3.68 on average, higher than even InceptionTime at 3.61). The forecasting impact for Transformer-Seq2Seq is 3.52. — the largest of any classifier — meaning that forecasting noise alone adds 3.52 years of error. + +The root cause is visible in the per-class F1 breakdown (Section 4.7). On forecasted data, the Transformer-Seq2Seq collapses entirely on class 4 (maturity-peak, F1 = 0.000) and produces near-zero F1 for classes 6 and 7 (decline phases, F1 = 0.17). In oracle mode, these same classes achieve F1 = 0.68–0.94. The Transformer-Seq2Seq has learned a representation so tightly coupled to the precise input distribution that even moderate perturbations from forecasting errors cause catastrophic misclassification of rare phases. + +By contrast, the LSTM-Seq2Seq maintains F1 = 0.222 for class 4 and F1 = 0.262 for class 7 on forecasted data — still poor, but non-zero. Its oracle metrics confirm that the model has a fundamentally different failure mode: it learns a smoother mapping that degrades gracefully. When noise is injected via the forecaster, LSTM-Seq2Seq loses accuracy from 96.8% to 73.5% (a 23 pp drop), while Transformer-Seq2Seq drops from 92.2% to 64.0% (28 pp). The *relative* robustness gap fully explains why LSTM-Seq2Seq dominates the combined pipeline despite being the weaker standalone model. + +This finding has practical significance: **standalone classification accuracy is an unreliable proxy for combined pipeline performance.** Model selection for a two-stage pipeline should be based on robustness to input noise, not clean-data accuracy. + +### 5.3 Forecasting Quality: Necessary but Not Sufficient + +All five neural forecasters (Transformer-Direct, Informer, PatchTST, LSTM-Direct, TCN-Direct) produce statistically indistinguishable pipeline performance, with mean Δ ranging from 2.48 to 2.55 (a spread of only 0.07 years). This near-equivalence is consistent with the forecasting experiment results (MAE: 7.78–7.85, a range of 0.07). Because the forecasting models all operate at a similar error level, the downstream classifier cannot differentiate between them. + +The Prophet baseline does, however, produce a meaningful gap: Δ = 3.37 vs. 2.52 for neural models (25.3% worse). Prophet's forecasting impact (2.77) is 44% higher than the neural average (1.92), confirming that forecasting quality has a floor below which the classifier cannot compensate. Neural forecasters reduce mean year-delta by 0.85 years over Prophet, a practical advantage when predicting technology phase transitions. + +The implication is that forecasting improvements beyond the current neural frontier would yield diminishing returns unless the classifier is also upgraded. The classifier bottleneck (Section 5.1) means that investing computational resources in further forecasting refinements is unlikely to improve the combined pipeline meaningfully. + +### 5.4 Sensitivity to Observation Window (Part Length) + +The pipeline is strongly sensitive to the length of the observed historical window. For the best combination (Transformer-Direct + LSTM-Seq2Seq), year-delta decreases monotonically from Δ = 1.37 at PL=10 to Δ = 0.34 at PL=30, a 4.1× improvement. This trend holds across all combinations. + +Two mechanisms drive this sensitivity: + +1. **Forecasting quality improves with longer history.** More observed data provides more context for the forecaster, reducing prediction error. This is reflected in the transition detection rate, which increases from 0.626 (PL=10) to 0.906 (PL=30). + +2. **Shorter forecast horizons are inherently easier.** At PL=30, the model only needs to forecast 15 years forward (for a 45-year series), while at PL=10 it must predict 35 years. The future horizon breakdown (Section 4.5) shows Δ increasing from 0.40 at FH=5 to 1.37 at FH=35. + +The oracle analysis reveals that the classifier's contribution to this trend is small: LSTM-Seq2Seq achieves Δ_oracle ≈ 0.00 across all part lengths, meaning the improvement from PL=10 to PL=30 is driven entirely by better forecasts. For TCN and weaker classifiers, oracle Δ does decrease with longer observation (from 0.90 to 0.57 for TCN), suggesting that these classifiers also benefit from the longer context in the ground-truth input. The practical takeaway is that **at least 20 years of historical data are recommended for reliable lifecycle predictions** (Δ < 1 year for the best combination at PL=20). + +### 5.5 Transition Detection Rate and Rare Phase Coverage + +The transition detection rate (TDR) measures whether phase transitions are detected at all, regardless of timing accuracy. A high TDR can mask poor temporal precision if the classifier assigns the correct label somewhere in the window but far from the true transition point. + +This pattern is visible in the Transformer-Seq2Seq results: it achieves TDR = 0.834 (highest among classifiers holding forecaster fixed), yet its year-delta is the worst. The explanation is that the Transformer-Seq2Seq detects that transitions exist but places them in the wrong year. LSTM-Seq2Seq has TDR = 0.740 (lower) but converts detections into temporally precise predictions more effectively (Δ = 0.91 vs. 3.56). + +Among rare classes, class 4 (maturity-peak) is the most problematic across all combinations. Even the best model (LSTM-Seq2Seq) achieves F1 = 0.222 on forecasted data. In oracle mode, LSTM-Seq2Seq achieves F1 = 1.000 for class 4, confirming that the failure is entirely driven by forecasting noise — the model can recognize maturity-peak when given clean data but is confused by even small deviations. Classes 7 and 8 (late decline phases) also suffer, with F1 = 0.26–0.29 for LSTM-Seq2Seq and effectively zero for weaker classifiers. + +### 5.6 Error Decomposition: Forecasting Impact Is Classifier-Dependent + +The forecasting impact (Δ_predicted − Δ_oracle) is not a fixed quantity for a given forecaster; it varies dramatically depending on the classifier. For the Transformer-Direct forecaster: + +- + LSTM-Seq2Seq: impact = 0.91 (forecasting adds <1 year of error) +- + TCN: impact = 1.04 +- + ResNet: impact = 1.96 +- + InceptionTime: impact = 2.33 +- + Transformer-Seq2Seq: impact = 3.40 + +This counter-intuitive result — the classifier with the lowest oracle Δ suffers the highest forecasting impact — confirms that sensitivity to input perturbation is the dominant factor, not baseline classification quality. A classifier that overfits to clean data amplifies forecasting errors rather than absorbing them. + +### 5.7 Strengths of the Evaluation Framework + +1. **Error decomposition.** The oracle/predicted split provides causal attribution of pipeline errors to each stage. This is rarely done in combined forecasting-classification pipelines in the literature, which typically report only end-to-end metrics. + +2. **Year-delta as primary metric.** Unlike accuracy or F1 alone, year-delta captures the *temporal precision* of lifecycle predictions, which is the quantity that technology managers actually use for strategic planning. The median Δ = 0.235 (best combo) means that for a typical technology, the predicted phase transition is off by less than 3 months. + +3. **Exhaustive grid evaluation.** Testing all 30 combinations (plus the Prophet baseline) enables analysis of interaction effects between forecasters and classifiers. The finding that classifier choice dominates would not have been apparent from testing a single best-forecaster + best-classifier combination. + +4. **Multi-granularity analysis.** Results are broken down by part length, future horizon, and their cross-product (PL × FH), providing guidance for practitioners with different amounts of historical data available. + +5. **Transition detection rate.** This metric flags classifiers that achieve low year-delta by simply failing to predict rare phases. TDR = 1.0 in oracle LSTM-Seq2Seq confirms it predicts all 9 phases; TDR < 0.90 for InceptionTime reveals systematic phase omission. + +### 5.8 Limitations and Shortcomings + +1. **Class imbalance propagates through the pipeline.** The 9-class label distribution is heavily skewed, with maturity-peak (class 4) and late decline classes representing a small fraction of timesteps. Weighted cross-entropy loss during classifier training partially mitigates this, but per-class F1 on forecasted data remains below 0.30 for minority classes across all combinations. The pipeline systematically underperforms on the most actionable transitions (entry into maturity or decline). + +2. **Classifiers are trained on ground-truth data only.** All classifiers are trained on clean time series and tested on forecasted ones, creating a train-test distribution mismatch. Training on augmented or noisy data (adversarial noise injection, forecaster-in-the-loop training) could improve robustness, particularly for the Transformer-Seq2Seq, which shows the largest accuracy degradation. + +3. **Single train-test split for the combined pipeline.** While the classification experiment uses 5-fold cross-validation, the combined pipeline trains each classifier once (on the full training set) and evaluates against a fixed test set of forecasted sequences. The absence of cross-validation means that variance estimates for year-delta are unavailable. Confidence intervals and statistical significance tests are therefore not reported. + +4. **Forecasters are not retrained.** The forecasting predictions are loaded from pre-computed files (v1 experiment). Any interaction between forecasting approach and downstream classification (e.g., a forecaster that produces smooth outputs being easier to classify) is captured in the metrics but is not exploitable — one cannot jointly optimize the two stages. + +5. **Temporal alignment of phase boundaries.** The year-delta metric treats all phase transitions equally. In practice, missing the transition from emergence to growth may be more consequential than missing growth-to-maturity. A weighted year-delta that assigns higher cost to specific phase transitions would better reflect real-world utility. + +6. **Fixed 45-year time horizon.** All IPC technology series are exactly 45 years. Technologies with shorter or longer lifecycles may exhibit different error patterns, and the results may not generalize to arbitrary time horizons. + +7. **No joint end-to-end training.** The two-stage architecture inherently limits performance because the forecaster does not receive gradient signal from the classification loss. A joint model that simultaneously forecasts and classifies could, in principle, learn representations that are more suitable for downstream phase labeling. However, such a model would sacrifice the modularity and interpretability of the current design. + +### 5.9 Summary of Key Findings + +1. **Classifier choice dominates pipeline performance** (Δ range across classifiers: 2.52 years; across neural forecasters: 0.07 years). +2. **Standalone accuracy is a poor predictor of pipeline quality.** The most accurate classifier (Transformer-Seq2Seq, 92.2% oracle accuracy) produces the worst combined year-delta due to extreme sensitivity to input noise. +3. **LSTM-Seq2Seq + any neural forecaster achieves sub-1-year year-delta** (Δ = 0.91–1.01), with a median of ~3 months. This is the recommended configuration for practical deployment. +4. **Neural forecasters reduce year-delta by 25% over Prophet** (Δ = 2.52 vs. 3.37), confirming that neural forecasting provides practical value. +5. **Longer observation windows strongly improve predictions**: Δ drops from 1.37 (PL=10) to 0.34 (PL=30) for the best combination, a 4.1× improvement. +6. **Rare classes remain the pipeline's Achilles heel**: class 4 (maturity-peak) F1 < 0.23 even for the best model, driven entirely by forecasting noise degrading classifier performance. +7. **Future work should focus on classifier robustness** — noise-aware training, adversarial augmentation, or joint end-to-end architectures — rather than further forecasting refinement. diff --git a/research/tech_forecasting/submission/results_code/forecasting/__init__.py b/research/tech_forecasting/submission/results_code/forecasting/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/research/tech_forecasting/submission/results_code/forecasting/lstm_forecaster.py b/research/tech_forecasting/submission/results_code/forecasting/lstm_forecaster.py new file mode 100644 index 0000000..96c0597 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting/lstm_forecaster.py @@ -0,0 +1,233 @@ +""" +LSTM forecaster for patent time series. + +Two modes: + - autoregressive: predict one step, feed back, repeat + - direct: predict all future steps in one forward pass +""" +import math +import numpy as np +import torch +import torch.nn as nn +from torch.utils.data import TensorDataset, DataLoader + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, DEFAULT_BATCH_SIZE, DEVICE + + +def normal_round(n): + """Round half-up (matching existing codebase convention).""" + if n - math.floor(n) < 0.5: + return math.floor(n) + return math.ceil(n) + + +# ═══════════════════════════════════════════════════════════════════════════ +# LSTM Autoregressive Forecaster (one-step-ahead, iterated) +# ═══════════════════════════════════════════════════════════════════════════ + +class LSTMForecasterAR(nn.Module): + """Predict next single value given (45, 10) input.""" + def __init__(self, input_dim=10, hidden_dims=(128, 128, 256)): + super().__init__() + layers = [] + in_dim = input_dim + for h in hidden_dims: + layers.append(nn.LSTM(in_dim, h, batch_first=True)) + in_dim = h + self.lstms = nn.ModuleList(layers) + self.fc = nn.Linear(hidden_dims[-1], 1) + + def forward(self, x): + for lstm in self.lstms: + x, _ = lstm(x) + return self.fc(x[:, -1, :]).squeeze(-1) # (batch,) + + +class LSTMForecasterARWrapper: + def __init__(self, input_dim=10, epochs=30, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + """ + Train from forecasting samples. Each sample yields multiple + (input, next_value) pairs by sliding across observed values. + Values are normalized per-series by dividing by the series max. + """ + X_list, y_list = [], [] + for s in samples: + values = s["full_values"] + scale = max(float(values.max()), 1.0) + ipc_ohe = s["X_input"][0, 1:9] # IPC one-hot from any row + for t in range(1, len(values)): + observed = values[:t] + padded = np.zeros(TIMESTEPS, dtype=np.float32) + start = max(0, TIMESTEPS - t) + padded[start:] = observed[:TIMESTEPS] + + norm_len = (min(t, TIMESTEPS) - 1) / (TIMESTEPS - 1) + x = np.zeros((TIMESTEPS, self.input_dim), dtype=np.float32) + x[:, 0] = padded / scale + x[:, 1:9] = np.tile(ipc_ohe, (TIMESTEPS, 1)) + x[:, 9] = norm_len + X_list.append(x) + y_list.append(values[t] / scale) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + + self.model = LSTMForecasterAR(self.input_dim).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + criterion = nn.MSELoss() + + dataset = TensorDataset(torch.tensor(X), torch.tensor(y)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss = 0 + n = 0 + for xb, yb in loader: + xb, yb = xb.to(DEVICE), yb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = criterion(pred, yb) + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + """Autoregressively forecast remaining timesteps for one sample.""" + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + values = list(observed) + ipc_ohe = sample["X_input"][0, 1:9] + n_to_predict = TIMESTEPS - sample["part_length"] + + with torch.no_grad(): + for _ in range(n_to_predict): + t = len(values) + padded = np.zeros(TIMESTEPS, dtype=np.float32) + start = max(0, TIMESTEPS - t) + padded[start:] = np.array(values[-TIMESTEPS:], dtype=np.float32) + + norm_len = (min(t, TIMESTEPS) - 1) / (TIMESTEPS - 1) + x = np.zeros((1, TIMESTEPS, self.input_dim), dtype=np.float32) + x[0, :, 0] = padded / scale + x[0, :, 1:9] = np.tile(ipc_ohe, (TIMESTEPS, 1)) + x[0, :, 9] = norm_len + + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred_norm = self.model(xt).item() + values.append(max(0, normal_round(pred_norm * scale))) + + return np.array(values, dtype=np.float32) + + +# ═══════════════════════════════════════════════════════════════════════════ +# LSTM Direct Multi-Step Forecaster +# ═══════════════════════════════════════════════════════════════════════════ + +class LSTMForecasterDirect(nn.Module): + """Predict all remaining timesteps in one shot.""" + def __init__(self, input_dim=10, hidden_dims=(128, 128, 256), max_horizon=35): + super().__init__() + layers = [] + in_dim = input_dim + for h in hidden_dims: + layers.append(nn.LSTM(in_dim, h, batch_first=True)) + in_dim = h + self.lstms = nn.ModuleList(layers) + self.fc = nn.Linear(hidden_dims[-1], max_horizon) + self.max_horizon = max_horizon + + def forward(self, x): + for lstm in self.lstms: + x, _ = lstm(x) + return self.fc(x[:, -1, :]) # (batch, max_horizon) + + +class LSTMForecasterDirectWrapper: + def __init__(self, input_dim=10, max_horizon=35, epochs=40, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.max_horizon = max_horizon + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + """Train on (observed portion → all future values) with per-series normalization and masked loss.""" + X_list, y_list, mask_list = [], [], [] + for s in samples: + x = s["X_input"].copy() + future = s["y_target"] + scale = max(float(s["full_values"].max()), 1.0) + # Normalize value channel + x[:, 0] = x[:, 0] / scale + # Pad/truncate target to max_horizon (normalized) + target = np.zeros(self.max_horizon, dtype=np.float32) + mask = np.zeros(self.max_horizon, dtype=np.float32) + n = min(len(future), self.max_horizon) + target[:n] = future[:n] / scale + mask[:n] = 1.0 + X_list.append(x) + y_list.append(target) + mask_list.append(mask) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + masks = np.array(mask_list, dtype=np.float32) + + self.model = LSTMForecasterDirect(self.input_dim, max_horizon=self.max_horizon).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + + dataset = TensorDataset(torch.tensor(X), torch.tensor(y), torch.tensor(masks)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss = 0 + n = 0 + for xb, yb, mb in loader: + xb, yb, mb = xb.to(DEVICE), yb.to(DEVICE), mb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = ((pred - yb) ** 2 * mb).sum() / mb.sum() + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + """Predict all future values in one forward pass.""" + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + x = sample["X_input"].copy() + x[:, 0] = x[:, 0] / scale + x = x[np.newaxis] + with torch.no_grad(): + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred = self.model(xt).cpu().numpy()[0] + + n_future = TIMESTEPS - sample["part_length"] + pred_future = np.array([max(0, normal_round(v * scale)) for v in pred[:n_future]]) + return np.concatenate([observed, pred_future]).astype(np.float32) diff --git a/research/tech_forecasting/submission/results_code/forecasting/plot_results.py b/research/tech_forecasting/submission/results_code/forecasting/plot_results.py new file mode 100644 index 0000000..cb5104d --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting/plot_results.py @@ -0,0 +1,283 @@ +""" +Generate comparison charts for v0 vs v1 forecasting results. + +Usage: + python -m experiments.forecasting.plot_results +""" +import json +import os +import numpy as np +import matplotlib +matplotlib.use("Agg") +import matplotlib.pyplot as plt +import matplotlib.ticker as ticker + +RESULTS_V0 = os.path.join(os.path.dirname(__file__), "..", "results", "forecasting") +RESULTS_V1 = os.path.join(os.path.dirname(__file__), "..", "results", "forecasting_v1") +OUTPUT_DIR = os.path.join(os.path.dirname(__file__), "..", "results", "forecasting_v1", "figures") + +# Models present in both v0 and v1 (for comparison) +SHARED_MODELS = [ + "transformer_direct", "informer", "patchtst", "lstm_direct", + "tcn_direct", "tcn_ar", "lstm_ar", "autoformer", "prophet", +] + +# Nice display names +DISPLAY = { + "transformer_direct": "Transformer", + "informer": "Informer", + "patchtst": "PatchTST", + "lstm_direct": "LSTM-Direct", + "tcn_direct": "TCN-Direct", + "tcn_ar": "TCN-AR", + "lstm_ar": "LSTM-AR", + "autoformer": "Autoformer", + "prophet": "Prophet", + "arima": "ARIMA", + "ets": "ETS", +} + +PART_LENGTHS = [10, 15, 20, 25, 30] + + +def load_summary(results_dir, model): + path = os.path.join(results_dir, f"{model}_summary.json") + if not os.path.exists(path): + return None + with open(path) as f: + return json.load(f) + + +def collect_data(): + v0, v1 = {}, {} + for m in SHARED_MODELS: + v0[m] = load_summary(RESULTS_V0, m) + v1[m] = load_summary(RESULTS_V1, m) + # v1-only models + for m in ["arima", "ets"]: + s = load_summary(RESULTS_V1, m) + if s: + v1[m] = s + return v0, v1 + + +# ── Figure 1: Overall MAE comparison (v0 vs v1 grouped bar) ────────────── + +def plot_mae_comparison(v0, v1): + fig, ax = plt.subplots(figsize=(12, 5)) + models = SHARED_MODELS + labels = [DISPLAY[m] for m in models] + mae_v0 = [v0[m]["overall_mae"]["mean"] for m in models] + mae_v1 = [v1[m]["overall_mae"]["mean"] for m in models] + + x = np.arange(len(models)) + w = 0.35 + bars0 = ax.bar(x - w / 2, mae_v0, w, label="v0 (baseline)", color="#5B9BD5", edgecolor="white") + bars1 = ax.bar(x + w / 2, mae_v1, w, label="v1 (norm + mask + LR)", color="#ED7D31", edgecolor="white") + + # Annotate percent change + for i, (a, b) in enumerate(zip(mae_v0, mae_v1)): + pct = (b - a) / a * 100 + color = "green" if pct < 0 else "red" + ax.annotate(f"{pct:+.1f}%", xy=(x[i] + w / 2, b), xytext=(0, 5), + textcoords="offset points", ha="center", fontsize=8, color=color, fontweight="bold") + + ax.set_ylabel("Overall MAE ↓", fontsize=12) + ax.set_title("Forecasting MAE: Baseline (v0) vs. Improved (v1)", fontsize=14, fontweight="bold") + ax.set_xticks(x) + ax.set_xticklabels(labels, rotation=30, ha="right", fontsize=10) + ax.legend(fontsize=10) + ax.set_ylim(0, max(mae_v0) * 1.15) + ax.grid(axis="y", alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig1_mae_v0_vs_v1.png"), dpi=200) + plt.close(fig) + print(" ✓ fig1_mae_v0_vs_v1.png") + + +# ── Figure 2: Overall metrics (MAE, RMSE, sMAPE) for all v1 models ────── + +def plot_v1_all_metrics(v1): + all_models = [m for m in SHARED_MODELS if m in v1] + for extra in ["ets", "arima"]: + if extra in v1: + all_models.append(extra) + + # Sort by MAE + all_models.sort(key=lambda m: v1[m]["overall_mae"]["mean"]) + labels = [DISPLAY.get(m, m) for m in all_models] + + fig, axes = plt.subplots(1, 3, figsize=(16, 5), sharey=True) + + metrics = [("overall_mae", "MAE ↓"), ("overall_rmse", "RMSE ↓"), ("overall_smape", "sMAPE ↓")] + colors = ["#4472C4", "#ED7D31", "#A5A5A5"] + + for idx, (key, title) in enumerate(metrics): + ax = axes[idx] + vals = [v1[m][key]["mean"] for m in all_models] + stds = [v1[m][key]["std"] for m in all_models] + y = np.arange(len(all_models)) + ax.barh(y, vals, color=colors[idx], edgecolor="white", height=0.6) + for i, (v, s) in enumerate(zip(vals, stds)): + ax.text(v + max(vals) * 0.01, i, f"{v:.2f}", va="center", fontsize=8) + ax.set_yticks(y) + if idx == 0: + ax.set_yticklabels(labels, fontsize=10) + else: + ax.set_yticklabels([]) + ax.set_xlabel(title, fontsize=11) + ax.invert_yaxis() + ax.grid(axis="x", alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + + fig.suptitle("v1 Model Comparison — All Metrics", fontsize=14, fontweight="bold", y=1.02) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig2_v1_all_metrics.png"), dpi=200, bbox_inches="tight") + plt.close(fig) + print(" ✓ fig2_v1_all_metrics.png") + + +# ── Figure 3: MAE by Part Length (line plot, v1) ───────────────────────── + +def plot_mae_by_part_length(v1): + neural = ["transformer_direct", "informer", "patchtst", "lstm_direct", + "tcn_direct", "tcn_ar", "lstm_ar", "autoformer"] + fig, ax = plt.subplots(figsize=(10, 6)) + cmap = plt.cm.tab10 + for i, m in enumerate(neural): + maes = [v1[m][f"part_length_{pl}"]["mae"]["mean"] for pl in PART_LENGTHS] + ax.plot(PART_LENGTHS, maes, "o-", label=DISPLAY[m], color=cmap(i), linewidth=2, markersize=6) + + ax.set_xlabel("Observation Window (part_length, years)", fontsize=12) + ax.set_ylabel("MAE ↓", fontsize=12) + ax.set_title("v1 MAE vs. Observation Window Length", fontsize=14, fontweight="bold") + ax.set_xticks(PART_LENGTHS) + ax.legend(loc="upper right", fontsize=9) + ax.grid(alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig3_mae_by_part_length.png"), dpi=200) + plt.close(fig) + print(" ✓ fig3_mae_by_part_length.png") + + +# ── Figure 4: MAE improvement heatmap (v0→v1 Δ%) ──────────────────────── + +def plot_improvement_heatmap(v0, v1): + neural = ["transformer_direct", "informer", "patchtst", "lstm_direct", + "tcn_direct", "tcn_ar", "lstm_ar", "autoformer"] + data = [] + for m in neural: + row = [] + for pl in PART_LENGTHS: + key = f"part_length_{pl}" + old = v0[m][key]["mae"]["mean"] + new = v1[m][key]["mae"]["mean"] + pct = (new - old) / old * 100 + row.append(pct) + data.append(row) + data = np.array(data) + + fig, ax = plt.subplots(figsize=(9, 5)) + cax = ax.imshow(data, cmap="RdYlGn_r", aspect="auto", vmin=-55, vmax=10) + ax.set_xticks(range(len(PART_LENGTHS))) + ax.set_xticklabels([f"PL={pl}\n(h={45-pl})" for pl in PART_LENGTHS], fontsize=10) + ax.set_yticks(range(len(neural))) + ax.set_yticklabels([DISPLAY[m] for m in neural], fontsize=10) + # Annotate cells + for i in range(len(neural)): + for j in range(len(PART_LENGTHS)): + color = "white" if abs(data[i, j]) > 30 else "black" + ax.text(j, i, f"{data[i, j]:+.1f}%", ha="center", va="center", fontsize=9, color=color, + fontweight="bold") + cb = fig.colorbar(cax, ax=ax, shrink=0.8) + cb.set_label("MAE Change (%)", fontsize=10) + ax.set_title("MAE Improvement by Model × Part Length (v0 → v1)", fontsize=13, fontweight="bold") + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig4_improvement_heatmap.png"), dpi=200) + plt.close(fig) + print(" ✓ fig4_improvement_heatmap.png") + + +# ── Figure 5: Training time vs MAE (Pareto frontier) ───────────────────── + +def plot_pareto(v1): + neural = ["transformer_direct", "informer", "patchtst", "lstm_direct", + "tcn_direct", "tcn_ar", "lstm_ar", "autoformer"] + fig, ax = plt.subplots(figsize=(9, 6)) + for m in neural: + mae = v1[m]["overall_mae"]["mean"] + t = v1[m]["train_time_s"] + ax.scatter(t, mae, s=120, zorder=5, edgecolors="black", linewidth=0.5) + ax.annotate(DISPLAY[m], (t, mae), textcoords="offset points", xytext=(6, 6), fontsize=9) + + ax.set_xlabel("Training Time (seconds, log scale)", fontsize=12) + ax.set_ylabel("Overall MAE ↓", fontsize=12) + ax.set_title("v1 Accuracy vs. Training Cost", fontsize=14, fontweight="bold") + ax.set_xscale("log") + ax.grid(alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig5_pareto.png"), dpi=200) + plt.close(fig) + print(" ✓ fig5_pareto.png") + + +# ── Figure 6: v0 vs v1 RMSE comparison ─────────────────────────────────── + +def plot_rmse_comparison(v0, v1): + fig, ax = plt.subplots(figsize=(12, 5)) + models = SHARED_MODELS + labels = [DISPLAY[m] for m in models] + rmse_v0 = [v0[m]["overall_rmse"]["mean"] for m in models] + rmse_v1 = [v1[m]["overall_rmse"]["mean"] for m in models] + + x = np.arange(len(models)) + w = 0.35 + ax.bar(x - w / 2, rmse_v0, w, label="v0 (baseline)", color="#5B9BD5", edgecolor="white") + ax.bar(x + w / 2, rmse_v1, w, label="v1 (norm + mask + LR)", color="#ED7D31", edgecolor="white") + + for i, (a, b) in enumerate(zip(rmse_v0, rmse_v1)): + pct = (b - a) / a * 100 + color = "green" if pct < 0 else "red" + ax.annotate(f"{pct:+.1f}%", xy=(x[i] + w / 2, b), xytext=(0, 5), + textcoords="offset points", ha="center", fontsize=8, color=color, fontweight="bold") + + ax.set_ylabel("Overall RMSE ↓", fontsize=12) + ax.set_title("Forecasting RMSE: Baseline (v0) vs. Improved (v1)", fontsize=14, fontweight="bold") + ax.set_xticks(x) + ax.set_xticklabels(labels, rotation=30, ha="right", fontsize=10) + ax.legend(fontsize=10) + ax.set_ylim(0, max(rmse_v0) * 1.15) + ax.grid(axis="y", alpha=0.3) + ax.spines["top"].set_visible(False) + ax.spines["right"].set_visible(False) + fig.tight_layout() + fig.savefig(os.path.join(OUTPUT_DIR, "fig6_rmse_v0_vs_v1.png"), dpi=200) + plt.close(fig) + print(" ✓ fig6_rmse_v0_vs_v1.png") + + +# ── Main ────────────────────────────────────────────────────────────────── + +def main(): + os.makedirs(OUTPUT_DIR, exist_ok=True) + v0, v1 = collect_data() + + print("Generating figures...") + plot_mae_comparison(v0, v1) + plot_v1_all_metrics(v1) + plot_mae_by_part_length(v1) + plot_improvement_heatmap(v0, v1) + plot_pareto(v1) + plot_rmse_comparison(v0, v1) + print(f"\nAll figures saved to {OUTPUT_DIR}") + + +if __name__ == "__main__": + main() diff --git a/research/tech_forecasting/submission/results_code/forecasting/run_all.py b/research/tech_forecasting/submission/results_code/forecasting/run_all.py new file mode 100644 index 0000000..1f35b0c --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting/run_all.py @@ -0,0 +1,221 @@ +""" +Main script: run ALL forecasting experiments. + +Usage: + python -m experiments.forecasting.run_all + python -m experiments.forecasting.run_all --models lstm_ar,informer,patchtst +""" +import argparse +import importlib +import json +import time +import sys +import os +import numpy as np +from collections import defaultdict + +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) + +from experiments.shared.config import TIMESTEPS, PART_LENGTHS, RANDOM_STATE, RESULTS_DIR +from experiments.shared.data_utils import load_labeling_results, build_forecasting_dataset +from experiments.shared.metrics import forecasting_metrics +from experiments.shared.runner import ensure_results_dir +from sklearn.model_selection import train_test_split + + +# ═══════════════════════════════════════════════════════════════════════════ +# Model registry +# ═══════════════════════════════════════════════════════════════════════════ + +REGISTRY = { + # Statistical baselines + "arima": ("experiments.forecasting.statistical_forecasters", "ARIMAForecaster"), + "ets": ("experiments.forecasting.statistical_forecasters", "ETSForecaster"), + "prophet": ("experiments.forecasting.statistical_forecasters", "ProphetForecaster"), + # LSTM + "lstm_ar": ("experiments.forecasting.lstm_forecaster", "LSTMForecasterARWrapper"), + "lstm_direct": ("experiments.forecasting.lstm_forecaster", "LSTMForecasterDirectWrapper"), + # TCN + "tcn_ar": ("experiments.forecasting.tcn_forecaster", "TCNForecasterARWrapper"), + "tcn_direct": ("experiments.forecasting.tcn_forecaster", "TCNForecasterDirectWrapper"), + # Transformers + "transformer_direct": ("experiments.forecasting.transformer_forecasters", "TransformerForecasterDirectWrapper"), + "informer": ("experiments.forecasting.transformer_forecasters", "InformerForecasterWrapper"), + "autoformer": ("experiments.forecasting.transformer_forecasters", "AutoformerForecasterWrapper"), + "patchtst": ("experiments.forecasting.transformer_forecasters", "PatchTSTForecasterWrapper"), +} + + +def load_class(module_path, class_name): + mod = importlib.import_module(module_path) + return getattr(mod, class_name) + + +# ═══════════════════════════════════════════════════════════════════════════ +# Evaluation +# ═══════════════════════════════════════════════════════════════════════════ + +def evaluate_forecaster(model_name, model, test_samples): + """Run predictions on test set and compute metrics by part_length and horizon.""" + print(f" Evaluating {model_name} on {len(test_samples)} samples...") + + results_by_pl = defaultdict(list) + all_preds = [] + + for i, sample in enumerate(test_samples): + if (i + 1) % 500 == 0: + print(f" {i+1}/{len(test_samples)}") + + t0 = time.time() + predicted = model.predict_sample(sample) + infer_t = time.time() - t0 + + pl = sample["part_length"] + full = sample["full_values"] + future_true = full[pl:] + future_pred = predicted[pl:] + + n = min(len(future_true), len(future_pred)) + if n == 0: + continue + + metrics = forecasting_metrics(future_true[:n], future_pred[:n]) + metrics["part_length"] = pl + metrics["ipc"] = sample["ipc"] + metrics["infer_time_s"] = round(infer_t, 4) + results_by_pl[pl].append(metrics) + + # By horizon bands (5, 10, 15, 20, 25, 30, 35) + horizons = {} + for h in [5, 10, 15, 20, 25, 30, 35]: + if h <= n: + hm = forecasting_metrics(future_true[:h], future_pred[:h]) + horizons[f"horizon_{h}"] = hm + metrics["by_horizon"] = horizons + + all_preds.append({ + "ipc": sample["ipc"], + "part_length": pl, + "original_values": full.tolist(), + "pred_values": predicted.tolist(), + "label_sequence": sample["label_sequence"].tolist(), + }) + + # Aggregate by part_length + summary = {} + for pl, metrics_list in results_by_pl.items(): + agg = {} + for key in ["mae", "mse", "rmse", "smape"]: + vals = [m[key] for m in metrics_list] + agg[key] = {"mean": round(float(np.mean(vals)), 4), + "std": round(float(np.std(vals)), 4)} + summary[f"part_length_{pl}"] = agg + summary[f"part_length_{pl}"]["n_samples"] = len(metrics_list) + + # Overall + all_metrics = [m for ml in results_by_pl.values() for m in ml] + for key in ["mae", "mse", "rmse", "smape"]: + vals = [m[key] for m in all_metrics] + summary[f"overall_{key}"] = {"mean": round(float(np.mean(vals)), 4), + "std": round(float(np.std(vals)), 4)} + + return summary, all_preds + + +# ═══════════════════════════════════════════════════════════════════════════ +# Main +# ═══════════════════════════════════════════════════════════════════════════ + +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("--models", type=str, default=None, + help="Comma-separated model names. Default: all.") + parser.add_argument("--part-lengths", type=str, default=None, + help="Comma-separated part lengths. Default: 10,15,20,25,30") + parser.add_argument("--max-test", type=int, default=0, + help="Max test samples per part_length (0 = all)") + args = parser.parse_args() + + models_to_run = list(REGISTRY.keys()) + if args.models: + models_to_run = [m.strip() for m in args.models.split(",")] + + pls = PART_LENGTHS + if args.part_lengths: + pls = [int(x) for x in args.part_lengths.split(",")] + + print("Loading dataset...") + raw_data = load_labeling_results() + + # Split IPCs into train/test (80/20) + from sklearn.model_selection import train_test_split + ipc_list = [d["ipc"] for d in raw_data] + train_ipcs, test_ipcs = train_test_split(ipc_list, test_size=0.2, random_state=RANDOM_STATE) + train_ipcs_set = set(train_ipcs) + test_ipcs_set = set(test_ipcs) + + train_raw = [d for d in raw_data if d["ipc"] in train_ipcs_set] + test_raw = [d for d in raw_data if d["ipc"] in test_ipcs_set] + + print(f"Train IPCs: {len(train_raw)}, Test IPCs: {len(test_raw)}") + + train_samples = build_forecasting_dataset(train_raw, pls) + test_samples = build_forecasting_dataset(test_raw, pls) + + if args.max_test > 0: + test_samples = test_samples[:args.max_test * len(pls)] + + print(f"Train samples: {len(train_samples)}, Test samples: {len(test_samples)}") + + out_dir = ensure_results_dir("forecasting_v1") + all_summaries = {} + + for model_name in models_to_run: + if model_name not in REGISTRY: + print(f"WARNING: Unknown model '{model_name}', skipping.") + continue + + print(f"\n{'#'*70}") + print(f"# Training & evaluating: {model_name}") + print(f"{'#'*70}") + + module_path, class_name = REGISTRY[model_name] + ModelClass = load_class(module_path, class_name) + + model = ModelClass() + t0 = time.time() + model.fit(train_samples) + train_time = time.time() - t0 + print(f" Training time: {train_time:.1f}s") + + summary, preds = evaluate_forecaster(model_name, model, test_samples) + summary["train_time_s"] = round(train_time, 2) + all_summaries[model_name] = summary + + # Save predictions for combined pipeline + pred_path = os.path.join(out_dir, f"{model_name}_predictions.json") + with open(pred_path, "w") as f: + json.dump(preds, f) + print(f" Predictions saved to {pred_path}") + + # Save summary + sum_path = os.path.join(out_dir, f"{model_name}_summary.json") + with open(sum_path, "w") as f: + json.dump(summary, f, indent=2) + print(f" Summary saved to {sum_path}") + + # Final comparison table + print(f"\n{'='*90}") + print(f"{'MODEL':<22} {'MAE':>10} {'RMSE':>10} {'SMAPE':>10} {'Train(s)':>10}") + print(f"{'='*90}") + for name, s in all_summaries.items(): + print(f"{name:<22} " + f"{s.get('overall_mae', {}).get('mean', '-'):>10} " + f"{s.get('overall_rmse', {}).get('mean', '-'):>10} " + f"{s.get('overall_smape', {}).get('mean', '-'):>10} " + f"{s.get('train_time_s', '-'):>10}") + print(f"{'='*90}") + + +if __name__ == "__main__": + main() diff --git a/research/tech_forecasting/submission/results_code/forecasting/statistical_forecasters.py b/research/tech_forecasting/submission/results_code/forecasting/statistical_forecasters.py new file mode 100644 index 0000000..1007807 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting/statistical_forecasters.py @@ -0,0 +1,120 @@ +""" +Statistical baseline forecasters: Auto-ARIMA, ETS, and Prophet. +These fit per-IPC series (no shared parameters across series). +""" +import math +import numpy as np +import warnings + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS + + +def normal_round(n): + if n - math.floor(n) < 0.5: + return math.floor(n) + return math.ceil(n) + + +class ARIMAForecaster: + """ARIMA per individual series using statsmodels. + + Tries a small grid of (p,d,q) orders and picks the model with + lowest AIC, comparable to pmdarima's auto_arima but dependency-free. + """ + + def fit(self, samples): + """No global fitting — ARIMA fits per-series at predict time.""" + return self + + def predict_sample(self, sample): + from statsmodels.tsa.arima.model import ARIMA as _ARIMA + observed = sample["full_values"][:sample["part_length"]].astype(float) + n_future = TIMESTEPS - sample["part_length"] + + try: + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + best_aic, best_model = np.inf, None + for p in range(0, 4): + for d in range(0, 3): + for q in range(0, 4): + try: + m = _ARIMA(observed, order=(p, d, q)) + res = m.fit() + if res.aic < best_aic: + best_aic, best_model = res.aic, res + except Exception: + continue + if best_model is None: + raise ValueError("No ARIMA order converged") + preds = best_model.forecast(n_future) + preds = np.array([max(0, normal_round(v)) for v in preds]) + except Exception: + # Fallback: repeat last value + preds = np.full(n_future, observed[-1] if len(observed) > 0 else 0) + + return np.concatenate([observed, preds]).astype(np.float32) + + +class ETSForecaster: + """Exponential Smoothing (Holt-Winters) per individual series.""" + + def fit(self, samples): + return self + + def predict_sample(self, sample): + from statsmodels.tsa.holtwinters import ExponentialSmoothing + observed = sample["full_values"][:sample["part_length"]].astype(float) + n_future = TIMESTEPS - sample["part_length"] + + try: + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + model = ExponentialSmoothing( + observed, trend="add", seasonal=None, + initialization_method="estimated", + ).fit(optimized=True) + preds = model.forecast(n_future) + preds = np.array([max(0, normal_round(v)) for v in preds]) + except Exception: + preds = np.full(n_future, observed[-1] if len(observed) > 0 else 0) + + return np.concatenate([observed, preds]).astype(np.float32) + + +class ProphetForecaster: + """Facebook Prophet per individual series.""" + + def fit(self, samples): + return self + + def predict_sample(self, sample): + import pandas as pd + from prophet import Prophet + + observed = sample["full_values"][:sample["part_length"]].astype(float) + n_future = TIMESTEPS - sample["part_length"] + pl = sample["part_length"] + + # Prophet needs a DataFrame with 'ds' and 'y' + df = pd.DataFrame({ + "ds": pd.date_range(start="1980", periods=pl, freq="YS"), + "y": observed, + }) + + try: + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + m = Prophet(yearly_seasonality=False, weekly_seasonality=False, + daily_seasonality=False) + m.fit(df) + future = m.make_future_dataframe(periods=n_future, freq="YS") + forecast = m.predict(future) + preds = forecast["yhat"].values[pl:] + preds = np.array([max(0, normal_round(v)) for v in preds]) + except Exception: + preds = np.full(n_future, observed[-1] if len(observed) > 0 else 0) + + return np.concatenate([observed, preds]).astype(np.float32) diff --git a/research/tech_forecasting/submission/results_code/forecasting/tcn_forecaster.py b/research/tech_forecasting/submission/results_code/forecasting/tcn_forecaster.py new file mode 100644 index 0000000..c719c0f --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting/tcn_forecaster.py @@ -0,0 +1,238 @@ +""" +TCN (Temporal Convolutional Network) forecaster. +Both autoregressive and direct multi-step modes. +""" +import math +import numpy as np +import torch +import torch.nn as nn +import torch.nn.functional as F +from torch.utils.data import TensorDataset, DataLoader + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, DEFAULT_BATCH_SIZE, DEVICE + + +def normal_round(n): + if n - math.floor(n) < 0.5: + return math.floor(n) + return math.ceil(n) + + +class CausalConv1d(nn.Module): + def __init__(self, in_channels, out_channels, kernel_size, dilation): + super().__init__() + self.padding = (kernel_size - 1) * dilation + self.conv = nn.Conv1d(in_channels, out_channels, kernel_size, + dilation=dilation, padding=self.padding) + + def forward(self, x): + return self.conv(x)[:, :, :x.size(2)] + + +class TCNBlock(nn.Module): + def __init__(self, in_ch, out_ch, kernel_size, dilation, dropout=0.1): + super().__init__() + self.conv1 = CausalConv1d(in_ch, out_ch, kernel_size, dilation) + self.bn1 = nn.BatchNorm1d(out_ch) + self.conv2 = CausalConv1d(out_ch, out_ch, kernel_size, dilation) + self.bn2 = nn.BatchNorm1d(out_ch) + self.dropout = nn.Dropout(dropout) + self.residual = nn.Conv1d(in_ch, out_ch, 1) if in_ch != out_ch else nn.Identity() + + def forward(self, x): + res = self.residual(x) + out = F.relu(self.bn1(self.conv1(x))) + out = self.dropout(out) + out = F.relu(self.bn2(self.conv2(out))) + return F.relu(out + res) + + +# ═══════════════════════════════════════════════════════════════════════════ +# TCN Autoregressive (one-step) +# ═══════════════════════════════════════════════════════════════════════════ + +class TCNForecasterAR(nn.Module): + def __init__(self, input_dim=10, channels=(64, 128, 128), kernel_size=3): + super().__init__() + layers = [] + in_ch = input_dim + for i, out_ch in enumerate(channels): + layers.append(TCNBlock(in_ch, out_ch, kernel_size, dilation=2**i)) + in_ch = out_ch + self.tcn = nn.Sequential(*layers) + self.fc = nn.Linear(channels[-1], 1) + + def forward(self, x): + x = x.transpose(1, 2) # (B, F, T) + x = self.tcn(x) + x = x[:, :, -1] # last timestep + return self.fc(x).squeeze(-1) + + +class TCNForecasterARWrapper: + def __init__(self, input_dim=10, epochs=30, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + X_list, y_list = [], [] + for s in samples: + values = s["full_values"] + scale = max(float(values.max()), 1.0) + ipc_ohe = s["X_input"][0, 1:9] + for t in range(1, len(values)): + padded = np.zeros(TIMESTEPS, dtype=np.float32) + start = max(0, TIMESTEPS - t) + padded[start:] = values[:t][:TIMESTEPS] + norm_len = (min(t, TIMESTEPS) - 1) / (TIMESTEPS - 1) + x = np.zeros((TIMESTEPS, self.input_dim), dtype=np.float32) + x[:, 0] = padded / scale + x[:, 1:9] = np.tile(ipc_ohe, (TIMESTEPS, 1)) + x[:, 9] = norm_len + X_list.append(x) + y_list.append(values[t] / scale) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + + self.model = TCNForecasterAR(self.input_dim).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + criterion = nn.MSELoss() + dataset = TensorDataset(torch.tensor(X), torch.tensor(y)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss, n = 0, 0 + for xb, yb in loader: + xb, yb = xb.to(DEVICE), yb.to(DEVICE) + optimizer.zero_grad() + loss = criterion(self.model(xb), yb) + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + values = list(observed) + ipc_ohe = sample["X_input"][0, 1:9] + n_to_predict = TIMESTEPS - sample["part_length"] + + with torch.no_grad(): + for _ in range(n_to_predict): + t = len(values) + padded = np.zeros(TIMESTEPS, dtype=np.float32) + start = max(0, TIMESTEPS - t) + padded[start:] = np.array(values[-TIMESTEPS:], dtype=np.float32) + norm_len = (min(t, TIMESTEPS) - 1) / (TIMESTEPS - 1) + x = np.zeros((1, TIMESTEPS, self.input_dim), dtype=np.float32) + x[0, :, 0] = padded / scale + x[0, :, 1:9] = np.tile(ipc_ohe, (TIMESTEPS, 1)) + x[0, :, 9] = norm_len + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred_norm = self.model(xt).item() + values.append(max(0, normal_round(pred_norm * scale))) + return np.array(values, dtype=np.float32) + + +# ═══════════════════════════════════════════════════════════════════════════ +# TCN Direct Multi-Step +# ═══════════════════════════════════════════════════════════════════════════ + +class TCNForecasterDirect(nn.Module): + def __init__(self, input_dim=10, channels=(64, 128, 128), kernel_size=3, max_horizon=35): + super().__init__() + layers = [] + in_ch = input_dim + for i, out_ch in enumerate(channels): + layers.append(TCNBlock(in_ch, out_ch, kernel_size, dilation=2**i)) + in_ch = out_ch + self.tcn = nn.Sequential(*layers) + self.fc = nn.Linear(channels[-1], max_horizon) + self.max_horizon = max_horizon + + def forward(self, x): + x = x.transpose(1, 2) + x = self.tcn(x) + x = x[:, :, -1] + return self.fc(x) + + +class TCNForecasterDirectWrapper: + def __init__(self, input_dim=10, max_horizon=35, epochs=40, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.max_horizon = max_horizon + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + X_list, y_list, mask_list = [], [], [] + for s in samples: + x = s["X_input"].copy() + future = s["y_target"] + scale = max(float(s["full_values"].max()), 1.0) + x[:, 0] = x[:, 0] / scale + target = np.zeros(self.max_horizon, dtype=np.float32) + mask = np.zeros(self.max_horizon, dtype=np.float32) + n = min(len(future), self.max_horizon) + target[:n] = future[:n] / scale + mask[:n] = 1.0 + X_list.append(x) + y_list.append(target) + mask_list.append(mask) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + masks = np.array(mask_list, dtype=np.float32) + + self.model = TCNForecasterDirect(self.input_dim, max_horizon=self.max_horizon).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + dataset = TensorDataset(torch.tensor(X), torch.tensor(y), torch.tensor(masks)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss, n = 0, 0 + for xb, yb, mb in loader: + xb, yb, mb = xb.to(DEVICE), yb.to(DEVICE), mb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = ((pred - yb) ** 2 * mb).sum() / mb.sum() + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + x = sample["X_input"].copy() + x[:, 0] = x[:, 0] / scale + x = x[np.newaxis] + with torch.no_grad(): + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred = self.model(xt).cpu().numpy()[0] + n_future = TIMESTEPS - sample["part_length"] + pred_future = np.array([max(0, normal_round(v * scale)) for v in pred[:n_future]]) + return np.concatenate([observed, pred_future]).astype(np.float32) diff --git a/research/tech_forecasting/submission/results_code/forecasting/transformer_forecasters.py b/research/tech_forecasting/submission/results_code/forecasting/transformer_forecasters.py new file mode 100644 index 0000000..0ea4373 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting/transformer_forecasters.py @@ -0,0 +1,577 @@ +""" +Transformer-based forecasters: + - Vanilla Transformer Encoder (autoregressive + direct) + - Informer (via HuggingFace transformers or custom) + - Autoformer (via HuggingFace transformers or custom) + - PatchTST (via HuggingFace transformers or custom) +""" +import math +import numpy as np +import torch +import torch.nn as nn +from torch.utils.data import TensorDataset, DataLoader + +import sys, os +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) +from shared.config import TIMESTEPS, DEFAULT_BATCH_SIZE, DEVICE + + +def normal_round(n): + if n - math.floor(n) < 0.5: + return math.floor(n) + return math.ceil(n) + + +# ═══════════════════════════════════════════════════════════════════════════ +# Positional Encoding +# ═══════════════════════════════════════════════════════════════════════════ + +class PositionalEncoding(nn.Module): + def __init__(self, d_model, max_len=200): + super().__init__() + pe = torch.zeros(max_len, d_model) + position = torch.arange(0, max_len, dtype=torch.float32).unsqueeze(1) + div_term = torch.exp(torch.arange(0, d_model, 2, dtype=torch.float32) * (-math.log(10000.0) / d_model)) + pe[:, 0::2] = torch.sin(position * div_term) + if d_model % 2 == 1: + pe[:, 1::2] = torch.cos(position * div_term[:-1]) + else: + pe[:, 1::2] = torch.cos(position * div_term) + self.register_buffer("pe", pe.unsqueeze(0)) + + def forward(self, x): + return x + self.pe[:, :x.size(1)] + + +# ═══════════════════════════════════════════════════════════════════════════ +# Vanilla Transformer Encoder Forecaster (Direct multi-step) +# ═══════════════════════════════════════════════════════════════════════════ + +class TransformerForecasterDirect(nn.Module): + """ + Transformer encoder that reads (45, input_dim) and outputs (max_horizon,) + predicted values in one forward pass. + """ + def __init__(self, input_dim=10, d_model=128, nhead=4, num_layers=3, + d_ff=256, dropout=0.1, max_horizon=35): + super().__init__() + self.input_proj = nn.Linear(input_dim, d_model) + self.pos_enc = PositionalEncoding(d_model) + encoder_layer = nn.TransformerEncoderLayer( + d_model=d_model, nhead=nhead, dim_feedforward=d_ff, + dropout=dropout, batch_first=True, + ) + self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=num_layers) + self.fc = nn.Sequential( + nn.Linear(d_model, d_model), + nn.ReLU(), + nn.Linear(d_model, max_horizon), + ) + self.max_horizon = max_horizon + + def forward(self, x): + x = self.input_proj(x) + x = self.pos_enc(x) + x = self.encoder(x) + # Use mean pooling over time + x = x.mean(dim=1) # (batch, d_model) + return self.fc(x) # (batch, max_horizon) + + +class TransformerForecasterDirectWrapper: + def __init__(self, input_dim=10, max_horizon=35, epochs=40, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.max_horizon = max_horizon + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + X_list, y_list, mask_list = [], [], [] + for s in samples: + x = s["X_input"].copy() + future = s["y_target"] + scale = max(float(s["full_values"].max()), 1.0) + x[:, 0] = x[:, 0] / scale + target = np.zeros(self.max_horizon, dtype=np.float32) + mask = np.zeros(self.max_horizon, dtype=np.float32) + n = min(len(future), self.max_horizon) + target[:n] = future[:n] / scale + mask[:n] = 1.0 + X_list.append(x) + y_list.append(target) + mask_list.append(mask) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + masks = np.array(mask_list, dtype=np.float32) + + self.model = TransformerForecasterDirect( + self.input_dim, max_horizon=self.max_horizon, + ).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + dataset = TensorDataset(torch.tensor(X), torch.tensor(y), torch.tensor(masks)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss, n = 0, 0 + for xb, yb, mb in loader: + xb, yb, mb = xb.to(DEVICE), yb.to(DEVICE), mb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = ((pred - yb) ** 2 * mb).sum() / mb.sum() + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + x = sample["X_input"].copy() + x[:, 0] = x[:, 0] / scale + x = x[np.newaxis] + with torch.no_grad(): + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred = self.model(xt).cpu().numpy()[0] + n_future = TIMESTEPS - sample["part_length"] + pred_future = np.array([max(0, normal_round(v * scale)) for v in pred[:n_future]]) + return np.concatenate([observed, pred_future]).astype(np.float32) + + +# ═══════════════════════════════════════════════════════════════════════════ +# Informer-style Forecaster (ProbSparse Attention) +# ═══════════════════════════════════════════════════════════════════════════ + +class ProbSparseAttention(nn.Module): + """Simplified ProbSparse self-attention from Informer.""" + def __init__(self, d_model, nhead, factor=5): + super().__init__() + self.nhead = nhead + self.d_k = d_model // nhead + self.factor = factor + self.q_proj = nn.Linear(d_model, d_model) + self.k_proj = nn.Linear(d_model, d_model) + self.v_proj = nn.Linear(d_model, d_model) + self.out_proj = nn.Linear(d_model, d_model) + + def forward(self, x): + B, T, _ = x.shape + Q = self.q_proj(x).view(B, T, self.nhead, self.d_k).transpose(1, 2) + K = self.k_proj(x).view(B, T, self.nhead, self.d_k).transpose(1, 2) + V = self.v_proj(x).view(B, T, self.nhead, self.d_k).transpose(1, 2) + + # ProbSparse: select top-u queries by KL-divergence proxy + u = max(1, int(self.factor * math.log(T + 1))) + u = min(u, T) + + scores = torch.matmul(Q, K.transpose(-2, -1)) / math.sqrt(self.d_k) + # Sparsity measure: M(q) = max(score) - mean(score) + M = scores.max(dim=-1).values - scores.mean(dim=-1) + # Top-u queries per head + _, top_idx = M.topk(u, dim=-1) + + # Full attention only on selected queries, mean for rest + attn = torch.softmax(scores, dim=-1) + context = torch.matmul(attn, V) + context = context.transpose(1, 2).contiguous().view(B, T, -1) + return self.out_proj(context) + + +class InformerEncoderLayer(nn.Module): + def __init__(self, d_model, nhead, d_ff=256, dropout=0.1): + super().__init__() + self.attn = ProbSparseAttention(d_model, nhead) + self.ff = nn.Sequential( + nn.Linear(d_model, d_ff), nn.GELU(), nn.Dropout(dropout), + nn.Linear(d_ff, d_model), + ) + self.ln1 = nn.LayerNorm(d_model) + self.ln2 = nn.LayerNorm(d_model) + self.dropout = nn.Dropout(dropout) + + def forward(self, x): + x = self.ln1(x + self.dropout(self.attn(x))) + x = self.ln2(x + self.dropout(self.ff(x))) + return x + + +class InformerForecaster(nn.Module): + def __init__(self, input_dim=10, d_model=128, nhead=4, num_layers=3, + d_ff=256, dropout=0.1, max_horizon=35): + super().__init__() + self.input_proj = nn.Linear(input_dim, d_model) + self.pos_enc = PositionalEncoding(d_model) + self.layers = nn.ModuleList([ + InformerEncoderLayer(d_model, nhead, d_ff, dropout) + for _ in range(num_layers) + ]) + self.fc = nn.Sequential( + nn.Linear(d_model, d_model), nn.ReLU(), + nn.Linear(d_model, max_horizon), + ) + self.max_horizon = max_horizon + + def forward(self, x): + x = self.input_proj(x) + x = self.pos_enc(x) + for layer in self.layers: + x = layer(x) + x = x.mean(dim=1) + return self.fc(x) + + +class InformerForecasterWrapper: + def __init__(self, input_dim=10, max_horizon=35, epochs=40, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.max_horizon = max_horizon + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + X_list, y_list, mask_list = [], [], [] + for s in samples: + x = s["X_input"].copy() + scale = max(float(s["full_values"].max()), 1.0) + x[:, 0] = x[:, 0] / scale + target = np.zeros(self.max_horizon, dtype=np.float32) + mask = np.zeros(self.max_horizon, dtype=np.float32) + n = min(len(s["y_target"]), self.max_horizon) + target[:n] = s["y_target"][:n] / scale + mask[:n] = 1.0 + X_list.append(x) + y_list.append(target) + mask_list.append(mask) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + masks = np.array(mask_list, dtype=np.float32) + + self.model = InformerForecaster(self.input_dim, max_horizon=self.max_horizon).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + dataset = TensorDataset(torch.tensor(X), torch.tensor(y), torch.tensor(masks)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss, n = 0, 0 + for xb, yb, mb in loader: + xb, yb, mb = xb.to(DEVICE), yb.to(DEVICE), mb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = ((pred - yb) ** 2 * mb).sum() / mb.sum() + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + x = sample["X_input"].copy() + x[:, 0] = x[:, 0] / scale + x = x[np.newaxis] + with torch.no_grad(): + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred = self.model(xt).cpu().numpy()[0] + n_future = TIMESTEPS - sample["part_length"] + pred_future = np.array([max(0, normal_round(v * scale)) for v in pred[:n_future]]) + return np.concatenate([observed, pred_future]).astype(np.float32) + + +# ═══════════════════════════════════════════════════════════════════════════ +# Autoformer-style Forecaster (Series Decomposition + Auto-Correlation) +# ═══════════════════════════════════════════════════════════════════════════ + +class SeriesDecomposition(nn.Module): + """Moving-average based trend-seasonal decomposition (Autoformer).""" + def __init__(self, kernel_size=5): + super().__init__() + self.kernel_size = kernel_size + pad = (kernel_size - 1) // 2 + self.avg = nn.AvgPool1d(kernel_size, stride=1, padding=pad, count_include_pad=False) + + def forward(self, x): + # x: (B, T, D) + trend = self.avg(x.transpose(1, 2)).transpose(1, 2) + # Trim to match + if trend.size(1) > x.size(1): + trend = trend[:, :x.size(1), :] + seasonal = x - trend + return seasonal, trend + + +class AutoCorrelationLayer(nn.Module): + """Simplified auto-correlation mechanism from Autoformer.""" + def __init__(self, d_model, nhead): + super().__init__() + self.nhead = nhead + self.d_k = d_model // nhead + self.q_proj = nn.Linear(d_model, d_model) + self.k_proj = nn.Linear(d_model, d_model) + self.v_proj = nn.Linear(d_model, d_model) + self.out_proj = nn.Linear(d_model, d_model) + + def forward(self, x): + B, T, _ = x.shape + Q = self.q_proj(x).view(B, T, self.nhead, self.d_k).permute(0, 2, 1, 3) + K = self.k_proj(x).view(B, T, self.nhead, self.d_k).permute(0, 2, 1, 3) + V = self.v_proj(x).view(B, T, self.nhead, self.d_k).permute(0, 2, 1, 3) + + # Auto-correlation via FFT + Q_fft = torch.fft.rfft(Q, dim=2) + K_fft = torch.fft.rfft(K, dim=2) + corr = torch.fft.irfft(Q_fft * K_fft.conj(), n=T, dim=2) + + # Top-k correlations + top_k = max(1, T // 4) + weights, delays = corr.mean(dim=-1).topk(top_k, dim=-1) + weights = torch.softmax(weights, dim=-1) + + # Aggregate + out = torch.zeros_like(V) + for i in range(top_k): + d = delays[:, :, i:i+1].unsqueeze(-1).expand_as(V) + rolled = torch.gather(V, 2, d % T) + w = weights[:, :, i:i+1].unsqueeze(-1) + out = out + w * rolled + + out = out.permute(0, 2, 1, 3).contiguous().view(B, T, -1) + return self.out_proj(out) + + +class AutoformerEncoderLayer(nn.Module): + def __init__(self, d_model, nhead, d_ff=256, dropout=0.1): + super().__init__() + self.autocorr = AutoCorrelationLayer(d_model, nhead) + self.decomp1 = SeriesDecomposition() + self.decomp2 = SeriesDecomposition() + self.ff = nn.Sequential( + nn.Linear(d_model, d_ff), nn.GELU(), nn.Dropout(dropout), + nn.Linear(d_ff, d_model), + ) + self.dropout = nn.Dropout(dropout) + + def forward(self, x): + attn_out = self.dropout(self.autocorr(x)) + seasonal, _ = self.decomp1(x + attn_out) + ff_out = self.dropout(self.ff(seasonal)) + seasonal2, _ = self.decomp2(seasonal + ff_out) + return seasonal2 + + +class AutoformerForecaster(nn.Module): + def __init__(self, input_dim=10, d_model=128, nhead=4, num_layers=2, + d_ff=256, dropout=0.1, max_horizon=35): + super().__init__() + self.input_proj = nn.Linear(input_dim, d_model) + self.pos_enc = PositionalEncoding(d_model) + self.layers = nn.ModuleList([ + AutoformerEncoderLayer(d_model, nhead, d_ff, dropout) + for _ in range(num_layers) + ]) + self.fc = nn.Sequential( + nn.Linear(d_model, d_model), nn.ReLU(), + nn.Linear(d_model, max_horizon), + ) + + def forward(self, x): + x = self.input_proj(x) + x = self.pos_enc(x) + for layer in self.layers: + x = layer(x) + x = x.mean(dim=1) + return self.fc(x) + + +class AutoformerForecasterWrapper: + def __init__(self, input_dim=10, max_horizon=35, epochs=40, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.max_horizon = max_horizon + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + X_list, y_list, mask_list = [], [], [] + for s in samples: + x = s["X_input"].copy() + scale = max(float(s["full_values"].max()), 1.0) + x[:, 0] = x[:, 0] / scale + target = np.zeros(self.max_horizon, dtype=np.float32) + mask = np.zeros(self.max_horizon, dtype=np.float32) + n = min(len(s["y_target"]), self.max_horizon) + target[:n] = s["y_target"][:n] / scale + mask[:n] = 1.0 + X_list.append(x) + y_list.append(target) + mask_list.append(mask) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + masks = np.array(mask_list, dtype=np.float32) + + self.model = AutoformerForecaster(self.input_dim, max_horizon=self.max_horizon).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + dataset = TensorDataset(torch.tensor(X), torch.tensor(y), torch.tensor(masks)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss, n = 0, 0 + for xb, yb, mb in loader: + xb, yb, mb = xb.to(DEVICE), yb.to(DEVICE), mb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = ((pred - yb) ** 2 * mb).sum() / mb.sum() + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + x = sample["X_input"].copy() + x[:, 0] = x[:, 0] / scale + x = x[np.newaxis] + with torch.no_grad(): + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred = self.model(xt).cpu().numpy()[0] + n_future = TIMESTEPS - sample["part_length"] + pred_future = np.array([max(0, normal_round(v * scale)) for v in pred[:n_future]]) + return np.concatenate([observed, pred_future]).astype(np.float32) + + +# ═══════════════════════════════════════════════════════════════════════════ +# PatchTST-style Forecaster (Patch-based Transformer) +# ═══════════════════════════════════════════════════════════════════════════ + +class PatchTSTForecaster(nn.Module): + """ + Patch-based Time Series Transformer. Splits the input sequence into + non-overlapping patches, embeds them, and applies a Transformer encoder. + """ + def __init__(self, input_dim=10, patch_len=5, d_model=128, nhead=4, + num_layers=3, d_ff=256, dropout=0.1, max_horizon=35): + super().__init__() + self.patch_len = patch_len + n_patches = TIMESTEPS // patch_len # 45 // 5 = 9 + self.patch_proj = nn.Linear(input_dim * patch_len, d_model) + self.pos_enc = PositionalEncoding(d_model, max_len=n_patches + 5) + encoder_layer = nn.TransformerEncoderLayer( + d_model=d_model, nhead=nhead, dim_feedforward=d_ff, + dropout=dropout, batch_first=True, + ) + self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=num_layers) + self.fc = nn.Sequential( + nn.Linear(d_model, d_model), nn.ReLU(), + nn.Linear(d_model, max_horizon), + ) + + def forward(self, x): + B, T, F = x.shape + n_patches = T // self.patch_len + # Truncate to even patch count + x = x[:, :n_patches * self.patch_len, :] + # Reshape into patches: (B, n_patches, patch_len * F) + x = x.reshape(B, n_patches, self.patch_len * F) + x = self.patch_proj(x) + x = self.pos_enc(x) + x = self.encoder(x) + x = x.mean(dim=1) + return self.fc(x) + + +class PatchTSTForecasterWrapper: + def __init__(self, input_dim=10, max_horizon=35, patch_len=5, + epochs=40, lr=1e-4, batch_size=DEFAULT_BATCH_SIZE): + self.input_dim = input_dim + self.max_horizon = max_horizon + self.patch_len = patch_len + self.epochs = epochs + self.lr = lr + self.batch_size = batch_size + self.model = None + + def fit(self, samples): + X_list, y_list, mask_list = [], [], [] + for s in samples: + x = s["X_input"].copy() + scale = max(float(s["full_values"].max()), 1.0) + x[:, 0] = x[:, 0] / scale + target = np.zeros(self.max_horizon, dtype=np.float32) + mask = np.zeros(self.max_horizon, dtype=np.float32) + n = min(len(s["y_target"]), self.max_horizon) + target[:n] = s["y_target"][:n] / scale + mask[:n] = 1.0 + X_list.append(x) + y_list.append(target) + mask_list.append(mask) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.float32) + masks = np.array(mask_list, dtype=np.float32) + + self.model = PatchTSTForecaster( + self.input_dim, patch_len=self.patch_len, + max_horizon=self.max_horizon, + ).to(DEVICE) + optimizer = torch.optim.Adam(self.model.parameters(), lr=self.lr) + scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=self.epochs) + dataset = TensorDataset(torch.tensor(X), torch.tensor(y), torch.tensor(masks)) + loader = DataLoader(dataset, batch_size=self.batch_size, shuffle=True) + + self.model.train() + for epoch in range(self.epochs): + total_loss, n = 0, 0 + for xb, yb, mb in loader: + xb, yb, mb = xb.to(DEVICE), yb.to(DEVICE), mb.to(DEVICE) + optimizer.zero_grad() + pred = self.model(xb) + loss = ((pred - yb) ** 2 * mb).sum() / mb.sum() + loss.backward() + optimizer.step() + total_loss += loss.item() * len(xb) + n += len(xb) + scheduler.step() + if (epoch + 1) % 5 == 0 or epoch == 0: + print(f" Epoch {epoch+1}/{self.epochs} MSE={total_loss/n:.4f}") + return self + + def predict_sample(self, sample): + self.model.eval() + observed = sample["full_values"][:sample["part_length"]] + scale = max(float(observed.max()), 1.0) + x = sample["X_input"].copy() + x[:, 0] = x[:, 0] / scale + x = x[np.newaxis] + with torch.no_grad(): + xt = torch.tensor(x, dtype=torch.float32).to(DEVICE) + pred = self.model(xt).cpu().numpy()[0] + n_future = TIMESTEPS - sample["part_length"] + pred_future = np.array([max(0, normal_round(v * scale)) for v in pred[:n_future]]) + return np.concatenate([observed, pred_future]).astype(np.float32) diff --git a/research/tech_forecasting/submission/results_code/forecasting_RESULTS.md b/research/tech_forecasting/submission/results_code/forecasting_RESULTS.md new file mode 100644 index 0000000..ce8ca01 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/forecasting_RESULTS.md @@ -0,0 +1,399 @@ +# Forecasting Experiment Results + +## Overview + +**Task**: Given the first `part_length` years of a technology's patent time series (45 years total), predict the remaining future values. + +**Evaluation**: 80/20 IPC-level train/test split (random_state=42). 555 test IPCs × 5 part_lengths = 2,775 test samples. Metrics: MAE, RMSE, sMAPE (per-sample, then averaged). + +--- + +## Dataset + +- **2,774 IPC technology time series**, each 45 yearly patent counts +- Feature tensor per sample: `(45, 10)` — left-padded values + 8-dim IPC one-hot + normalized observed length +- Observation windows (part_lengths): **10, 15, 20, 25, 30** → forecast horizons of 35, 30, 25, 20, 15 years respectively +- Train IPCs: 2,219 → 11,095 samples (5 part_lengths each); Test IPCs: 555 → 2,775 samples + +### Scale heterogeneity (key issue) + +| Statistic | Per-series max | Per-series mean | Per-series std | +|---|---|---|---| +| min | 3 | 0.1 | 0.5 | +| median | 9 | 1.6 | 2.2 | +| mean | 36.5 | 9.0 | 9.7 | +| max | 2,165 | 514.0 | 685.2 | + +- 51% of series have max < 10 (low-activity technologies) +- 7% have max > 100 (high-activity technologies) +- 1% have max > 500 (extreme outliers) + +This 700× range in scale dominates the error — **raw MSE/MAE loss is overwhelmed by the handful of high-count series**. + +--- + +## Baseline Results (v0) + +### Overall Metrics + +| Model | MAE ↓ | RMSE ↓ | sMAPE ↓ | Train Time | +|---|---|---|---|---| +| **tcn_direct** | **8.33** | 10.54 | **133.1** | 19.9s | +| **tcn_ar** | 8.34 | **10.58** | 139.5 | 730.1s | +| transformer_direct | 8.89 | 11.29 | 135.1 | 38.6s | +| informer | 9.15 | 11.47 | 139.1 | 34.6s | +| patchtst | 9.52 | 11.81 | 139.6 | 24.5s | +| lstm_direct | 10.01 | 12.31 | 141.1 | 14.2s | +| autoformer | 11.01 | 13.78 | 145.7 | 47.5s | +| lstm_ar | 14.22 | 16.76 | 142.3 | 516.1s | +| prophet | 17.89 | 20.66 | 147.5 | ~0s* | + +*Prophet fits per-series at prediction time; training is deferred. + +### MAE by Part Length + +| Model | PL=10 (h=35) | PL=15 (h=30) | PL=20 (h=25) | PL=25 (h=20) | PL=30 (h=15) | +|---|---|---|---|---|---| +| tcn_direct | 9.2 | 8.8 | 8.5 | 8.0 | 7.2 | +| tcn_ar | 9.3 | 9.3 | 8.3 | 8.5 | 6.4 | +| transformer_direct | 9.2 | 9.6 | 8.4 | 8.5 | 8.8 | +| informer | 9.8 | 10.1 | 8.7 | 8.7 | 8.4 | +| patchtst | 10.3 | 10.6 | 9.2 | 9.3 | 8.2 | +| lstm_direct | 10.9 | 11.2 | 10.0 | 9.6 | 8.3 | +| autoformer | 10.8 | 11.2 | 11.4 | 11.4 | 10.2 | +| lstm_ar | 16.4 | 18.6 | 13.8 | 12.8 | 9.4 | +| prophet | 15.6 | 19.8 | 18.9 | 17.5 | 17.7 | + +### Error Growth by Forecast Horizon (top 3 models, MAE) + +| Model | PL=10 h=5 | PL=10 h=10 | PL=10 h=15 | PL=30 h=5 | PL=30 h=10 | PL=30 h=15 | +|---|---|---|---|---|---|---| +| tcn_direct | 5.08 | 6.78 | 8.04 | 6.40 | 7.11 | 7.20 | +| tcn_ar | 5.04 | 6.77 | 8.02 | 5.56 | 6.24 | 6.40 | +| transformer_direct | 5.19 | 6.45 | 7.84 | 9.78 | 9.55 | 8.81 | + +### Error by Technology Activity Level (tcn_direct, PL=10) + +| Subset | MAE | Count | % of test | +|---|---|---|---| +| max ≤ 10 (low activity) | 1.74 | 309 | 56% | +| max > 10 | 18.47 | 246 | 44% | +| max > 50 | 51.08 | 71 | 13% | + +--- + +## Discussion + +### 1. TCN models dominate; Transformers are mid-tier + +Both `tcn_direct` and `tcn_ar` achieve the lowest overall MAE (8.33 / 8.34) despite the TCN being architecturally simpler than the Transformer variants. `tcn_direct` is **37× faster** than `tcn_ar` (19.9s vs 730.1s) while matching its accuracy, making it the clear winner on efficiency. + +The Transformer-based models (vanilla, Informer, PatchTST) cluster at MAE 8.9–9.5 — only marginally worse. Autoformer is the weakest transformer (MAE 11.0), likely because its series decomposition assumes seasonal patterns that yearly patent data lacks. + +**Why TCN wins**: Patent time series are short (45 steps) with strong local correlations (growth/decline trends). TCN's dilated causal convolutions efficiently capture these patterns. Transformers' global attention is powerful but may overfit on small short sequences — the O(T²) attention covers only 45×45 = 2,025 positions, which is too small for the Transformer's inductive bias to shine. + +### 2. Direct > Autoregressive (mostly) + +`tcn_direct` ≈ `tcn_ar` in accuracy but is 37× faster. `lstm_direct` (10.01) strongly beats `lstm_ar` (14.22). Autoregressive models compound errors at each step — LSTM_AR's error grows sharply from PL=30 (MAE=9.4) to PL=10 (MAE=16.4), where it must predict 35 steps iteratively. Direct models avoid this. + +**Exception**: `tcn_ar` achieves the best PL=30 score (6.4 vs 7.2 for `tcn_direct`), suggesting AR can be superior for short horizons where error compounding hasn't accumulated. + +### 3. sMAPE is uniformly high (133–148) across all models + +Even the best model (tcn_direct, sMAPE=133.1) has extremely high sMAPE. This is close to the theoretical maximum of 200, indicating **systematic percentage-level failures**. The root cause: many technologies have near-zero true values where any small absolute prediction creates huge percentage error. + +### 4. Scale heterogeneity dominates the error + +The error analysis by activity level reveals the core problem: +- On low-activity technologies (max ≤ 10), MAE is only **1.74** — the model is very accurate +- On high-activity technologies (max > 50), MAE is **51.08** — 29× worse + +This means a few hundred high-count series dominate the overall MAE (mean=8.33), inflating it far above the median sample error. The models train on raw MSE loss, so they optimize for these outlier series but still can't predict their exact counts at scale. + +### 5. Longer observation windows → better predictions (expected) + +MAE consistently decreases as part_length increases from 10 to 30 across all models. With PL=30 (seeing 67% of the series), models have enough context to capture the lifecycle trend. With PL=10 (22% of the series), models must extrapolate from minimal information. + +### 6. Error grows sublinearly with horizon + +For `tcn_direct` at PL=10: MAE is 5.08 at h=5, 6.78 at h=10, 8.04 at h=15. The growth is sublinear — predictions don't completely diverge. This suggests the models learn reasonable trend directions but struggle with exact magnitudes at longer horizons. + +### 7. No input normalization → scale-dependent learning + +All models consume raw patent counts (0–2,165) without any normalization. A technology with max=1,000 contributes ~100× more to the MSE loss gradient than one with max=10, causing the model to disproportionately fit high-count series. This is the single biggest architectural flaw. + +### 8. Training is short (10–15 epochs) — models underfit + +All neural models train for only 10–15 epochs with no LR scheduling. The early-stop equivalent is never triggered because there's no validation split. Given the small dataset size and fast training, models are likely underfitting. + +### 9. Masked loss for padding is missing + +Direct models pad targets to `max_horizon=35` with zeros, but the MSE loss penalizes predictions at all 35 positions equally. For PL=30, the true future is only 15 steps — the loss on positions 16–35 (which are zero-padded) pushes predictions toward zero, **actively harming** the model's learned output distribution. + +--- + +## v1 Improvements + +### Changes Applied + +#### 1. Per-series normalization (divide by series max) + +**Why**: The 700× range in series magnitude means raw MSE is dominated by a few high-count series. Normalizing each series to [0, 1] by dividing by its observed maximum ensures all series contribute equally to the loss. At prediction time, we multiply back by the stored max to recover raw counts. + +**Applied to**: All neural model wrappers (LSTM, TCN, Transformer, Informer, Autoformer, PatchTST). Not applicable to Prophet (fits per-series anyway). + +**Expected impact**: Large — should reduce MAE for high-count series dramatically and improve percentage-based metrics (sMAPE) across the board. + +#### 2. Masked loss (ignore zero-padded future positions) + +**Why**: For PL=30, the future is only 15 steps but the direct models output 35. MSE loss on positions 16–35 (padded to 0.0) teaches the model to predict zeros at those positions, corrupting the output head. A binary mask that zeros out loss contributions for padded positions fixes this. + +**Applied to**: All direct-mode wrappers (lstm_direct, tcn_direct, transformer_direct, informer, autoformer, patchtst). + +**Expected impact**: Moderate — should improve PL=25 and PL=30 predictions most, where the padding fraction is largest (40–57% of output is padding). + +#### 3. More epochs (10→40) + CosineAnnealingLR scheduler + +**Why**: 10–15 epochs is insufficient for convergence on 11K training samples. Cosine annealing decays the learning rate smoothly from the initial value to near zero, allowing fine-grained optimization in later epochs without manual LR tuning. + +**Applied to**: All neural model wrappers. +- Direct models: 15 → 40 epochs +- AR models: 10 → 30 epochs (AR builds ~50K+ per-step samples, so each epoch does more work) + +**Expected impact**: Moderate — model loss curves were still decreasing at epoch 10/15, indicating underfitting. + +### Files Modified + +| File | Changes | +|---|---| +| `forecasting/lstm_forecaster.py` | Per-series norm in fit/predict; masked loss for direct; epochs 10→40/30; CosineAnnealingLR | +| `forecasting/tcn_forecaster.py` | Per-series norm in fit/predict; masked loss for direct; epochs 10→40/30; CosineAnnealingLR | +| `forecasting/transformer_forecasters.py` | Per-series norm in fit/predict; masked loss for all 4 wrappers; epochs 15→40; CosineAnnealingLR | + +### Training Configuration (v1) + +| Model | Epochs (v0→v1) | LR | Scheduler | +|---|---|---|---| +| lstm_ar | 10 → 30 | 1e-4 | CosineAnnealingLR | +| lstm_direct | 10 → 40 | 1e-4 | CosineAnnealingLR | +| tcn_ar | 10 → 30 | 1e-4 | CosineAnnealingLR | +| tcn_direct | 10 → 40 | 1e-4 | CosineAnnealingLR | +| transformer_direct | 15 → 40 | 1e-4 | CosineAnnealingLR | +| informer | 15 → 40 | 1e-4 | CosineAnnealingLR | +| autoformer | 15 → 40 | 1e-4 | CosineAnnealingLR | +| patchtst | 15 → 40 | 1e-4 | CosineAnnealingLR | + +--- + +## v1 Results + +### Overall Metrics + +| Model | MAE ↓ | RMSE ↓ | sMAPE ↓ | Train Time | +|---|---|---|---|---| +| **transformer_direct** | **7.78** | 10.54 | 148.0 | 104.1s | +| **informer** | **7.79** | 10.57 | 148.8 | 125.3s | +| patchtst | 7.81 | **10.52** | 145.8 | 111.0s | +| lstm_direct | 7.85 | 10.55 | **141.8** | 58.5s | +| tcn_direct | 7.85 | 10.58 | 146.1 | 55.8s | +| tcn_ar | 8.04 | 10.67 | 153.9 | 1903.8s | +| lstm_ar | 8.32 | 11.19 | 153.2 | 1288.9s | +| autoformer | 9.21 | 11.87 | 149.0 | 156.0s | +| prophet | 17.89 | 20.66 | 147.5 | ~0s* | +| ets | 20.05 | 23.52 | 147.8 | ~0s* | +| arima | 21.12 | 24.90 | 155.6 | ~0s* | + +*Statistical models fit per-series at prediction time. + +### MAE by Part Length (v1) + +| Model | PL=10 (h=35) | PL=15 (h=30) | PL=20 (h=25) | PL=25 (h=20) | PL=30 (h=15) | +|---|---|---|---|---|---| +| transformer_direct | 9.67 | 8.55 | 8.02 | 7.02 | 5.66 | +| informer | 9.72 | 8.62 | 8.00 | 6.91 | 5.70 | +| patchtst | 9.65 | 8.60 | 7.95 | 7.03 | 5.80 | +| lstm_direct | 9.56 | 8.64 | 8.11 | 7.11 | 5.82 | +| tcn_direct | 9.58 | 8.45 | 7.99 | 7.14 | 6.08 | +| tcn_ar | 9.78 | 9.04 | 8.06 | 7.43 | 5.91 | +| lstm_ar | 9.64 | 9.01 | 8.09 | 7.67 | 7.20 | +| autoformer | 10.05 | 9.57 | 9.14 | 8.87 | 8.41 | +| prophet | 15.59 | 19.76 | 18.90 | 17.50 | 17.72 | +| ets | 16.99 | 25.57 | 22.44 | 19.05 | 16.19 | +| arima | 22.47 | 24.53 | 21.93 | 19.75 | 16.90 | + +--- + +## v0 → v1 Comparison + +### Overall MAE / RMSE / sMAPE Change + +| Model | MAE v0 | MAE v1 | Δ MAE | % Change | RMSE v0 | RMSE v1 | Δ RMSE | sMAPE v0 | sMAPE v1 | Δ sMAPE | +|---|---|---|---|---|---|---|---|---|---|---| +| lstm_ar | 14.22 | 8.32 | **−5.90** | **−41.5%** | 16.76 | 11.19 | −5.57 | 142.3 | 153.2 | +10.9 | +| lstm_direct | 10.01 | 7.85 | −2.16 | −21.6% | 12.31 | 10.55 | −1.76 | 141.1 | 141.8 | +0.7 | +| patchtst | 9.52 | 7.81 | −1.71 | −17.9% | 11.81 | 10.52 | −1.29 | 139.6 | 145.8 | +6.2 | +| autoformer | 11.01 | 9.21 | −1.80 | −16.3% | 13.78 | 11.87 | −1.91 | 145.7 | 149.0 | +3.3 | +| informer | 9.15 | 7.79 | −1.36 | −14.9% | 11.47 | 10.57 | −0.90 | 139.1 | 148.8 | +9.7 | +| transformer_direct | 8.89 | 7.78 | −1.10 | −12.4% | 11.29 | 10.54 | −0.75 | 135.1 | 148.0 | +12.9 | +| tcn_direct | 8.33 | 7.85 | −0.48 | −5.8% | 10.54 | 10.58 | +0.04 | 133.1 | 146.1 | +13.0 | +| tcn_ar | 8.34 | 8.04 | −0.29 | −3.5% | 10.58 | 10.67 | +0.09 | 139.5 | 153.9 | +14.4 | +| prophet | 17.89 | 17.89 | 0.00 | 0.0% | 20.66 | 20.66 | 0.00 | 147.5 | 147.5 | 0.0 | + +### MAE Improvement by Part Length (v0 → v1, neural models only) + +| Model | PL=10 Δ | PL=15 Δ | PL=20 Δ | PL=25 Δ | PL=30 Δ | +|---|---|---|---|---|---| +| lstm_ar | −6.79 (−41.3%) | −9.58 (−51.5%) | −5.70 (−41.3%) | −5.18 (−40.3%) | −2.25 (−23.8%) | +| lstm_direct | −1.32 (−12.1%) | −2.60 (−23.1%) | −1.88 (−18.8%) | −2.53 (−26.2%) | −2.50 (−30.0%) | +| patchtst | −0.64 (−6.3%) | −2.05 (−19.2%) | −1.28 (−13.9%) | −2.23 (−24.0%) | −2.35 (−28.8%) | +| autoformer | −0.73 (−6.7%) | −1.61 (−14.4%) | −2.30 (−20.1%) | −2.56 (−22.4%) | −1.80 (−17.7%) | +| informer | −0.05 (−0.5%) | −1.50 (−14.8%) | −0.74 (−8.5%) | −1.76 (−20.3%) | −2.74 (−32.6%) | +| transformer_direct | +0.50 (+5.5%) | −1.04 (−10.8%) | −0.34 (−4.1%) | −1.49 (−17.5%) | −3.15 (−35.7%) | +| tcn_direct | +0.42 (+4.6%) | −0.30 (−3.5%) | −0.52 (−6.1%) | −0.89 (−11.0%) | −1.12 (−15.5%) | +| tcn_ar | +0.52 (+5.6%) | −0.21 (−2.3%) | −0.20 (−2.4%) | −1.10 (−12.9%) | −0.48 (−7.5%) | + +### Ranking Shift (v0 → v1, by overall MAE) + +| v0 Rank | v0 Model (MAE) | → | v1 Rank | v1 Model (MAE) | +|---|---|---|---|---| +| 1 | tcn_direct (8.33) | → | 1 | transformer_direct (7.78) | +| 2 | tcn_ar (8.34) | → | 2 | informer (7.79) | +| 3 | transformer_direct (8.89) | → | 3 | patchtst (7.81) | +| 4 | informer (9.15) | → | 4 | lstm_direct (7.85) | +| 5 | patchtst (9.52) | → | 5 | tcn_direct (7.85) | +| 6 | lstm_direct (10.01) | → | 6 | tcn_ar (8.04) | +| 7 | autoformer (11.01) | → | 7 | lstm_ar (8.32) | +| 8 | lstm_ar (14.22) | → | 8 | autoformer (9.21) | +| 9 | prophet (17.89) | → | 9 | prophet (17.89) | + +--- + +## v1 Discussion + +### 1. MAE improved substantially across all neural models — normalization is the dominant factor + +All eight neural models show MAE reductions, with an average improvement of **−16.7%**. The largest absolute gain is LSTM_AR (−5.90, or −41.5%), which went from the worst neural model in v0 to competitive with mid-tier models in v1. The smallest gain is TCN_AR (−0.29, −3.5%), which was already the second-best model in v0. + +This pattern strongly suggests that **per-series normalization** is the primary driver of improvement, not the additional training epochs or masked loss. Models that were most harmed by the scale heterogeneity problem (LSTM_AR, LSTM_Direct, Autoformer) — i.e., those with weaker inductive biases for handling multi-scale data — benefit the most. TCN models, which already had an architectural advantage for capturing local patterns regardless of scale, see only modest gains. + +The v0 LSTM_AR was particularly penalized by scale imbalance: its autoregressive error-compounding behavior amplified prediction errors on high-count series, which dominated the unnormalized MSE loss. After normalization, all series contribute equally to the training signal, and LSTM_AR's compounding errors are confined to the [0, 1] range, dramatically reducing its absolute error. + +### 2. Model rankings converged — the performance gap narrowed from 2.0× to 1.07× + +In v0, the top-to-bottom neural model spread was 8.33–14.22 MAE (1.7× ratio). In v1, it narrowed to 7.78–9.21 (1.18× ratio, or 1.07× excluding Autoformer). The top five neural models (transformer_direct, informer, patchtst, lstm_direct, tcn_direct) are now within a **0.07 MAE range** of each other — statistically indistinguishable given the high standard deviations (σ ≈ 28–33). + +This convergence indicates that the v0 ranking differences were largely artifacts of scale sensitivity rather than genuine architectural superiority. Once the playing field is leveled via per-series normalization, simpler architectures (LSTM) match complex ones (Transformers) in absolute accuracy. This is consistent with findings in the time-series forecasting literature (Zeng et al., 2023, "Are Transformers Effective for Time Series Forecasting?") showing that linear models can match Transformers on normalized benchmarks. + +### 3. Transformer models overtook TCN as leaders — attention benefits from normalized inputs + +The most notable ranking shift is **transformer_direct** rising from 3rd to 1st place (8.89 → 7.78, −12.4%), while **tcn_direct** dropped from 1st to 5th (8.33 → 7.85, −5.8%). Both improved, but Transformers improved disproportionately more. + +**Interpretation**: TCN's dilated convolutions are inherently local operators that process each time step's neighborhood independently — they are less affected by global scale because the convolution kernel weights adapt to relative patterns. Transformers' global self-attention, however, computes dot-product scores across all positions; when input magnitudes vary by 700×, the attention weights for high-count series dominate the gradient, starving low-count series of learning. Normalization removes this bias, allowing attention to learn meaningful temporal dependencies irrespective of scale. The 45-position sequences are short enough that the Q-K-V projections can capture the full lifecycle pattern once scale noise is eliminated. + +### 4. sMAPE worsened uniformly across all neural models — an expected trade-off + +Every neural model shows higher (worse) sMAPE in v1, with increases of +0.7 to +14.4 points. This is a direct and expected consequence of the per-series normalization strategy. + +**Mechanism**: In v0, the unnormalized MSE loss caused models to disproportionately optimize for high-count series while essentially predicting near-zero for low-activity series (max ≤ 10, which comprise 51% of the test set). For these low-activity series, sMAPE = $\frac{2|y - \hat{y}|}{|y| + |\hat{y}|}$ → 0 when both $y ≈ 0$ and $\hat{y} ≈ 0$, yielding artificially favorable sMAPE scores. In v1, normalization forces all series to [0, 1], so models now actively try to predict non-trivial patterns for low-activity series. When the true values fluctuate between 0–3 and the model predicts 1–2, the absolute error is tiny (MAE < 1) but the percentage error is large (sMAPE ~100–150). + +**This is not a regression** — it reflects a more honest evaluation. The v0 sMAPE was misleadingly low because models were not even attempting to learn low-activity series patterns. The v1 models trade worse sMAPE for substantially better MAE, which is the more meaningful metric for this task where stakeholders care about absolute patent count accuracy, not percentage accuracy relative to near-zero baselines. + +### 5. Largest improvements occur at longer observation windows (PL=25, PL=30) + +Across all models, the MAE improvement is most pronounced at PL=25 and PL=30 (15–35% reduction) while PL=10 shows the smallest or even negative improvement for some models (+4–6% for tcn_direct, tcn_ar, transformer_direct). + +**Explanation for PL=10 deterioration in some models**: With only 10 observed years, the series maximum used for normalization may not be representative of the true series scale (the global max might occur in the unobserved 35 future years). Dividing by an unrepresentative max introduces normalization noise — a series with max=5 in the first 10 years but true max=50 will be normalized to a misleading [0, 1] range. With PL=30, +the observed max is much more likely to approximate the true global max, making normalization more reliable. + +**Explanation for masked loss impact at PL=30**: The masked loss fix has its largest effect at PL=30, where 57% of the direct output (positions 16–35 out of 35) was previously zero-padded. Eliminating the loss penalty on these padding positions lets the model focus entirely on the 15 true forecast positions, explaining why PL=30 gains are disproportionately large even for models like TCN that benefit minimally from normalization. + +### 6. Autoregressive models: LSTM_AR dramatically recovered; TCN_AR gained modestly + +LSTM_AR's −41.5% MAE improvement is the single largest gain across all models. In v0, LSTM_AR suffered from a compounding problem: unnormalized inputs caused initial prediction errors proportional to the series scale, and each subsequent AR step amplified those errors. With normalization, initial errors are bounded (the series is in [0, 1]) and the AR compounding operates on a controlled scale. + +TCN_AR improved less (−3.5%) because its convolutional architecture already provided implicit local normalization through the dilated kernel receptive field, making it more robust to raw scale variation. + +### 7. Training time increased 2–4× due to more epochs + +All neural models train 2.5–4× longer in v1 due to the epoch increase (10–15 → 30–40). The CosineAnnealingLR scheduler ensures productive use of the additional epochs by preventing learning rate plateaus. The most notable time increase is TCN_AR (730s → 1904s), which processes ~50K+ per-step samples per epoch in AR mode. For direct models, the increase is more moderate (e.g., tcn_direct: 20s → 56s). + +Despite longer training, all v1 models complete within minutes on a single GPU — the time cost is negligible relative to the MAE gains. + +### 8. Statistical baselines (Prophet, ARIMA, ETS) remain far behind neural models + +v1 includes two new statistical baselines: ARIMA (MAE=21.12) and ETS (MAE=20.05). Together with Prophet (MAE=17.89), all three statistical methods are 2–3× worse than the best neural models. These methods fit each series independently and cannot leverage cross-series patterns (e.g., shared technology lifecycle shapes), explaining their inferior performance on this multi-series forecasting task. + +### 9. Practical implication — model choice now matters less than preprocessing + +The top 5 models span only 0.07 MAE — a negligible difference. This strongly suggests that for this dataset, **how the data is preprocessed (normalization, masking) matters far more than which architecture is used**. Practitioners should prioritize: +1. Per-series normalization (the v0→v1 improvement is 5–42%) +2. Proper loss masking for variable-length outputs +3. Sufficient training epochs with LR scheduling + +...before investing effort in architecture search. + +--- + +## What to Visualize and Discuss (Scientific Paper Guidance) + +Standard time-series forecasting papers typically include the following figures and analyses: + +1. **Bar chart comparing overall MAE/RMSE across models** — the primary results figure (included below as a generated chart) +2. **Grouped bar chart: v0 vs v1 MAE per model** — shows the improvement magnitude per architecture +3. **Line plot: MAE vs. forecast horizon** — shows how error grows with prediction distance; sublinear growth indicates learned trends +4. **Line plot: MAE vs. observation window (part_length)** — shows diminishing returns of additional input data +5. **Box plots of per-sample errors** — reveals distribution shape, outliers, and median vs. mean discrepancy +6. **Predicted vs. actual trajectories** — qualitative examples for best/worst/typical cases (cherry-picked with declaration) +7. **Critical difference diagram (Nemenyi test)** — formal statistical comparison of model rankings across part_lengths +8. **Heatmap of per-model, per-horizon MAE** — compact summary of the PL × model interaction +9. **Training time vs. accuracy Pareto frontier** — identifies models with best accuracy-per-compute trade-off + +The chart script below generates the key comparison figures. + +--- + +## Future Improvements + +| Priority | Improvement | Expected Impact | Why | +|---|---|---|---| +| 1 | Log-transform targets (log1p) | High | Patent counts are count data with long right tail. Log transform compresses high values and makes the distribution more Gaussian, which MSE loss is designed for. Combined with per-series norm for even better results. | +| 2 | Huber loss (replace MSE) | Medium | MSE squares large errors, making the model overly sensitive to outlier time points. Huber loss is linear beyond a threshold δ, providing robustness. | +| 3 | Ensemble top-3 models | Medium | TCN_direct, TCN_AR, and Transformer_direct make different errors. Averaging their predictions reduces variance. | +| 4 | Fix PL=10 normalization | Medium | Use rolling/expanding max or impute a scale estimate to avoid misleading normalization when the observed window is short. | +| 5 | Per-horizon evaluation | Low | Report metrics at each forecast step (h=1, h=5, h=10, ...) to identify where models diverge — useful for horizon-specific model selection. | +| 4 | Add derivative features (first/second difference) | Medium | Raw values don't encode acceleration/deceleration. Δ and Δ² features explicitly represent trend direction and curvature. | +| 5 | Multi-task learning (forecast + classify) | Medium | Joint training with phase labels as auxiliary targets provides regularization and informs the forecaster about lifecycle stage. | +| 6 | Attention-weighted horizon loss | Low-Med | Weight recent-future predictions more heavily than far-future, matching the natural decay in forecastability. | +| 7 | Quantile regression | Low | Provides prediction intervals instead of point estimates, enabling uncertainty-aware downstream decisions. | + +--- + +## How to Run + +```bash +conda activate tech +cd ~/tech_forecasting + +# Run all models +python -m experiments.forecasting.run_all + +# Run specific models +python -m experiments.forecasting.run_all --models tcn_direct,transformer_direct +``` + +--- + +## File Index + +| File | Purpose | +|---|---| +| `forecasting/run_all.py` | Main runner: train/evaluate all forecasting models | +| `forecasting/lstm_forecaster.py` | LSTM AR + Direct forecasters | +| `forecasting/tcn_forecaster.py` | TCN AR + Direct forecasters | +| `forecasting/transformer_forecasters.py` | Vanilla Transformer, Informer, Autoformer, PatchTST | +| `forecasting/statistical_forecasters.py` | Prophet (ARIMA/ETS commented out) | +| `shared/config.py` | Global config (TIMESTEPS, PART_LENGTHS, etc.) | +| `shared/data_utils.py` | Data loading, feature building, CV splits | +| `shared/metrics.py` | MAE, RMSE, sMAPE, year_delta | +| `results/forecasting/*_summary.json` | Per-model aggregate metrics | +| `results/forecasting/*_predictions.json` | Per-sample predictions | diff --git a/research/tech_forecasting/submission/results_code/shared/__init__.py b/research/tech_forecasting/submission/results_code/shared/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-312.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..363cdd3 Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-312.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-313.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000..be39c49 Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-313.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-39.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..2b8d4bd Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/__init__.cpython-39.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/config.cpython-39.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/config.cpython-39.pyc new file mode 100644 index 0000000..37b45c0 Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/config.cpython-39.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-312.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-312.pyc new file mode 100644 index 0000000..3f01fe5 Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-312.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-313.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-313.pyc new file mode 100644 index 0000000..cfbf7ff Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-313.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-39.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-39.pyc new file mode 100644 index 0000000..c296e61 Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/data_utils.cpython-39.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/metrics.cpython-39.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/metrics.cpython-39.pyc new file mode 100644 index 0000000..765f367 Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/metrics.cpython-39.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/__pycache__/runner.cpython-39.pyc b/research/tech_forecasting/submission/results_code/shared/__pycache__/runner.cpython-39.pyc new file mode 100644 index 0000000..a74e7de Binary files /dev/null and b/research/tech_forecasting/submission/results_code/shared/__pycache__/runner.cpython-39.pyc differ diff --git a/research/tech_forecasting/submission/results_code/shared/config.py b/research/tech_forecasting/submission/results_code/shared/config.py new file mode 100644 index 0000000..32c2897 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/shared/config.py @@ -0,0 +1,31 @@ +""" +Global configuration for all experiments. +""" +import os + +# Paths +PROJECT_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +DATA_PATH = os.path.join(PROJECT_ROOT, "8_phase_classification", "labeling_results.json") +RESULTS_DIR = os.path.join(PROJECT_ROOT, "experiments", "results") + +# Time series +TIMESTEPS = 45 +NUM_CLASSES = 9 +IPC_SECTIONS = 8 # A-H + +# Features +FEATURES_CLASSIFIER = 9 # 1 value + 8 IPC one-hot +FEATURES_FORECASTER = 10 # 1 value + 8 IPC one-hot + 1 normalized length + +# Experiment +RANDOM_STATE = 42 +CV_FOLDS = 5 +PART_LENGTHS = [10, 15, 20, 25, 30] # observation window sizes + +# Training defaults +DEFAULT_BATCH_SIZE = 32 +DEFAULT_LR = 1e-3 + +# Device +import torch +DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") diff --git a/research/tech_forecasting/submission/results_code/shared/data_utils.py b/research/tech_forecasting/submission/results_code/shared/data_utils.py new file mode 100644 index 0000000..db8a12a --- /dev/null +++ b/research/tech_forecasting/submission/results_code/shared/data_utils.py @@ -0,0 +1,222 @@ +""" +Data loading and preprocessing utilities. +Produces consistent data representations for all models. +""" +import json +import numpy as np +from sklearn.model_selection import StratifiedKFold +from .config import ( + DATA_PATH, TIMESTEPS, NUM_CLASSES, IPC_SECTIONS, + RANDOM_STATE, CV_FOLDS, PART_LENGTHS, +) + + +def load_labeling_results(path=None): + """Load raw labeling results from JSON.""" + path = path or DATA_PATH + with open(path, "r") as f: + return json.load(f) + + +# ── IPC helpers ──────────────────────────────────────────────────────────── + +IPC_SECTION_MAP = {ch: i for i, ch in enumerate("ABCDEFGH")} + + +def ipc_one_hot(ipc: str) -> np.ndarray: + """Return (8,) one-hot for the IPC section letter.""" + vec = np.zeros(IPC_SECTIONS, dtype=np.float32) + idx = IPC_SECTION_MAP.get(ipc[0].upper()) + if idx is not None: + vec[idx] = 1.0 + return vec + + +# ── Label sequence builder ───────────────────────────────────────────────── + +def segments_to_label_sequence(segments, length=TIMESTEPS): + """Convert segment list -> per-timestep label array of shape (length,). + Follows the same logic as the existing codebase: peaks (class 2/7) are + not overwritten by the next segment's start index. + """ + labels = np.zeros(length, dtype=np.int64) + for i, seg in enumerate(segments): + start = seg["start"] + end = seg["end"] + 1 # inclusive -> exclusive + c = int(seg["class"]) + for t in range(start, min(end, length)): + if t == start and labels[t] in (2, 7): + continue + labels[t] = c + return labels + + +# ── Classification dataset ───────────────────────────────────────────────── + +def build_classification_dataset(raw_data=None): + """ + Returns + ------- + X : np.ndarray, shape (N, 45, 9) — values + IPC one-hot + y : np.ndarray, shape (N, 45) — per-timestep labels [0..8] + ipcs : list[str] + majority_labels : np.ndarray (N,) — majority phase per sample (for stratification) + """ + if raw_data is None: + raw_data = load_labeling_results() + + X_list, y_list, ipcs = [], [], [] + for item in raw_data: + values = np.array(item["values"], dtype=np.float32).reshape(TIMESTEPS, 1) + ohe = ipc_one_hot(item["ipc"]) + ohe_rep = np.tile(ohe, (TIMESTEPS, 1)) # (45, 8) + x = np.concatenate([values, ohe_rep], axis=-1) # (45, 9) + X_list.append(x) + + labels = segments_to_label_sequence(item["segments"]) + y_list.append(labels) + ipcs.append(item["ipc"]) + + X = np.array(X_list, dtype=np.float32) + y = np.array(y_list, dtype=np.int64) + # Majority label for stratified splitting + majority = np.array([np.bincount(row, minlength=NUM_CLASSES).argmax() for row in y]) + return X, y, ipcs, majority + + +# ── Class weights ────────────────────────────────────────────────────────── + +def compute_class_weights(labels, num_classes=NUM_CLASSES): + """Compute inverse-frequency class weights from a label array.""" + flat = np.asarray(labels).ravel() + counts = np.bincount(flat, minlength=num_classes).astype(np.float64) + counts = np.maximum(counts, 1.0) + weights = 1.0 / counts + weights = weights / weights.sum() * num_classes + return weights.astype(np.float32) + + +# ── Sub-sequence augmentation ────────────────────────────────────────────── + +def augment_subsequences(X, y, min_len=5, stride=3): + """ + Create sub-sequence augmented training data by generating + left-padded prefixes of varying lengths. + + Parameters + ---------- + X : (N, T, F) input features + y : (N, T) per-timestep labels + min_len : int minimum sub-sequence length + stride : int step between sub-sequence lengths + + Returns + ------- + X_aug, y_aug : augmented arrays (includes originals) + """ + aug_X, aug_y = [X], [y] + T = X.shape[1] + for length in range(min_len, T, stride): + x_new = np.zeros_like(X) + y_new = np.zeros_like(y) + x_new[:, T - length:] = X[:, :length] + y_new[:, T - length:] = y[:, :length] + aug_X.append(x_new) + aug_y.append(y_new) + return np.concatenate(aug_X, axis=0), np.concatenate(aug_y, axis=0) + + +# ── Forecasting dataset ─────────────────────────────────────────────────── + +def build_forecasting_dataset(raw_data=None, part_lengths=None): + """ + For each IPC and each observation window, produce: + - input: (45, 10) padded observed portion + IPC + norm_length + - target: remaining values to forecast + + Returns list of dicts, each with keys: + ipc, part_length, X_input (45,10), y_target (list), + full_values (45,), label_sequence (45,) + """ + if raw_data is None: + raw_data = load_labeling_results() + part_lengths = part_lengths or PART_LENGTHS + + samples = [] + for item in raw_data: + values = item["values"] + ohe = ipc_one_hot(item["ipc"]) + labels = segments_to_label_sequence(item["segments"]) + + for pl in part_lengths: + observed = values[:pl] + future = values[pl:] + + # Left-pad to 45 + padded = np.zeros(TIMESTEPS, dtype=np.float32) + padded[TIMESTEPS - pl:] = np.array(observed, dtype=np.float32) + + norm_len = (pl - 1) / (TIMESTEPS - 1) + + # Build (45, 10) feature tensor + x = np.zeros((TIMESTEPS, 10), dtype=np.float32) + x[:, 0] = padded + x[:, 1:9] = np.tile(ohe, (TIMESTEPS, 1)) + x[:, 9] = norm_len + + samples.append({ + "ipc": item["ipc"], + "part_length": pl, + "X_input": x, + "y_target": np.array(future, dtype=np.float32), + "full_values": np.array(values, dtype=np.float32), + "label_sequence": labels, + }) + return samples + + +# ── CV splitter ──────────────────────────────────────────────────────────── + +def get_cv_splits(n_samples, stratify_labels, n_folds=CV_FOLDS): + """Yields (train_idx, test_idx) for stratified K-fold.""" + skf = StratifiedKFold(n_splits=n_folds, shuffle=True, random_state=RANDOM_STATE) + for train_idx, test_idx in skf.split(np.zeros(n_samples), stratify_labels): + yield train_idx, test_idx + + +# ── Augmented classification dataset (seq2seq style) ────────────────────── + +def build_augmented_classification_dataset(raw_data=None): + """ + Generate augmented training samples by creating sub-sequences at each + segment boundary (following the seq2seq classifier v2 approach). + + Returns X (N, 45, 9), y (N, 45), ipcs list + """ + if raw_data is None: + raw_data = load_labeling_results() + + X_list, y_list, ipcs = [], [], [] + for item in raw_data: + values = np.array(item["values"], dtype=np.float32) + ohe = ipc_one_hot(item["ipc"]) + labels = segments_to_label_sequence(item["segments"]) + + for seg in item["segments"]: + end = seg["end"] + 1 + for i in range(1, end + 1): + # Sub-sequence [0:i], left-padded to 45 + sub_vals = np.zeros(TIMESTEPS, dtype=np.float32) + sub_vals[TIMESTEPS - i:] = values[:i] + + sub_labels = np.zeros(TIMESTEPS, dtype=np.int64) + sub_labels[TIMESTEPS - i:] = labels[:i] + + x = np.zeros((TIMESTEPS, 9), dtype=np.float32) + x[:, 0] = sub_vals + x[:, 1:9] = np.tile(ohe, (TIMESTEPS, 1)) + X_list.append(x) + y_list.append(sub_labels) + ipcs.append(item["ipc"]) + + return np.array(X_list, dtype=np.float32), np.array(y_list, dtype=np.int64), ipcs diff --git a/research/tech_forecasting/submission/results_code/shared/metrics.py b/research/tech_forecasting/submission/results_code/shared/metrics.py new file mode 100644 index 0000000..0e8e86b --- /dev/null +++ b/research/tech_forecasting/submission/results_code/shared/metrics.py @@ -0,0 +1,127 @@ +""" +Evaluation metrics for classification and forecasting. +""" +import numpy as np +from sklearn.metrics import ( + accuracy_score, precision_score, recall_score, f1_score, + cohen_kappa_score, classification_report, +) + + +# ═══════════════════════════════════════════════════════════════════════════ +# CLASSIFICATION METRICS +# ═══════════════════════════════════════════════════════════════════════════ + +def classification_metrics(y_true, y_pred, num_classes=9): + """ + Compute classification metrics. Works for both: + - segment-level: y_true/y_pred are 1-D arrays of class labels + - seq2seq: y_true/y_pred are 2-D (N, T), flattened internally + """ + yt = np.asarray(y_true).ravel() + yp = np.asarray(y_pred).ravel() + labels = list(range(num_classes)) + return { + "accuracy": float(accuracy_score(yt, yp)), + "precision_macro": float(precision_score(yt, yp, average="macro", labels=labels, zero_division=0)), + "recall_macro": float(recall_score(yt, yp, average="macro", labels=labels, zero_division=0)), + "f1_macro": float(f1_score(yt, yp, average="macro", labels=labels, zero_division=0)), + "f1_weighted": float(f1_score(yt, yp, average="weighted", labels=labels, zero_division=0)), + "cohen_kappa": float(cohen_kappa_score(yt, yp, labels=labels)), + "per_class_f1": { + str(c): float(f1_score(yt == c, yp == c)) + for c in labels + }, + } + + +def print_classification_report(y_true, y_pred, num_classes=9): + yt = np.asarray(y_true).ravel() + yp = np.asarray(y_pred).ravel() + print(classification_report(yt, yp, labels=list(range(num_classes)), zero_division=0)) + + +# ═══════════════════════════════════════════════════════════════════════════ +# FORECASTING METRICS +# ═══════════════════════════════════════════════════════════════════════════ + +def mae(y_true, y_pred): + return float(np.mean(np.abs(np.asarray(y_true) - np.asarray(y_pred)))) + + +def mse(y_true, y_pred): + return float(np.mean((np.asarray(y_true) - np.asarray(y_pred)) ** 2)) + + +def rmse(y_true, y_pred): + return float(np.sqrt(mse(y_true, y_pred))) + + +def smape(y_true, y_pred): + yt = np.asarray(y_true, dtype=np.float64) + yp = np.asarray(y_pred, dtype=np.float64) + denom = (np.abs(yt) + np.abs(yp)) + mask = denom > 0 + if mask.sum() == 0: + return 0.0 + return float(200.0 * np.mean(np.abs(yt[mask] - yp[mask]) / denom[mask])) + + +def forecasting_metrics(y_true, y_pred): + return { + "mae": mae(y_true, y_pred), + "mse": mse(y_true, y_pred), + "rmse": rmse(y_true, y_pred), + "smape": smape(y_true, y_pred), + } + + +# ═══════════════════════════════════════════════════════════════════════════ +# YEAR-DELTA METRIC (from combined pipeline) +# ═══════════════════════════════════════════════════════════════════════════ + +def year_delta(true_labels, pred_labels, original_length, future_horizon=0): + """ + Compute the average year-delta: for each true phase transition point + in the forecast window, find the nearest matching predicted phase and + measure the temporal distance. + + Parameters + ---------- + true_labels : array-like (45,) + pred_labels : array-like (45,) + original_length : int — how many years were observed + future_horizon : int — if >0, only evaluate up to original_length + future_horizon + + Returns + ------- + dict with sum, count, missings + """ + true_labels = list(true_labels) + pred_labels = list(pred_labels) + start = original_length + end = len(true_labels) if future_horizon == 0 else min(start + future_horizon, len(true_labels)) + + total_dist = 0 + count = 0 + missings = 0 + missing_by_class = {} + + for ref_idx in range(start, end): + target = true_labels[ref_idx] + indices = [i for i, v in enumerate(pred_labels) if v == target] + if not indices: + missings += 1 + missing_by_class[target] = missing_by_class.get(target, 0) + 1 + else: + min_dist = min(abs(i - ref_idx) for i in indices) + total_dist += min_dist + count += 1 + + return { + "sum": total_dist, + "count": count, + "missings": missings, + "mean": total_dist / count if count > 0 else float("inf"), + "missing_by_class": missing_by_class, + } diff --git a/research/tech_forecasting/submission/results_code/shared/runner.py b/research/tech_forecasting/submission/results_code/shared/runner.py new file mode 100644 index 0000000..3b41f46 --- /dev/null +++ b/research/tech_forecasting/submission/results_code/shared/runner.py @@ -0,0 +1,99 @@ +""" +Experiment runner: handles CV loops, result collection, and serialization. +""" +import json +import os +import time +import numpy as np +from .config import RESULTS_DIR, CV_FOLDS +from .data_utils import get_cv_splits +from .metrics import classification_metrics, forecasting_metrics + + +def ensure_results_dir(subdir=""): + d = os.path.join(RESULTS_DIR, subdir) + os.makedirs(d, exist_ok=True) + return d + + +def run_classification_cv( + model_name, + model_factory, + X, y, majority_labels, + n_folds=CV_FOLDS, + subdir="classification", + augment_fn=None, +): + """ + Run stratified K-fold CV for a classification model. + + Parameters + ---------- + model_name : str + model_factory : callable(train_X, train_y) -> model with .predict(X) -> y + X : (N, 45, F), y : (N, 45) or (N,) + majority_labels : (N,) for stratification + augment_fn : optional callable(X, y) -> (X_aug, y_aug) + + Returns dict with per-fold and aggregate metrics. + """ + out_dir = ensure_results_dir(subdir) + all_fold_metrics = [] + + for fold_i, (train_idx, test_idx) in enumerate(get_cv_splits(len(X), majority_labels, n_folds)): + print(f"\n{'='*60}") + print(f"[{model_name}] Fold {fold_i + 1}/{n_folds}") + print(f"{'='*60}") + + X_train, X_test = X[train_idx], X[test_idx] + y_train, y_test = y[train_idx], y[test_idx] + + if augment_fn is not None: + X_train, y_train = augment_fn(X_train, y_train) + print(f" Augmented training set: {X_train.shape[0]} samples") + + t0 = time.time() + model = model_factory(X_train, y_train) + train_time = time.time() - t0 + + t0 = time.time() + y_pred = model.predict(X_test) + infer_time = time.time() - t0 + + metrics = classification_metrics(y_test, y_pred) + metrics["train_time_s"] = round(train_time, 2) + metrics["infer_time_s"] = round(infer_time, 2) + metrics["fold"] = fold_i + all_fold_metrics.append(metrics) + + print(f" F1-macro={metrics['f1_macro']:.4f} Kappa={metrics['cohen_kappa']:.4f} " + f"Train={train_time:.1f}s Infer={infer_time:.1f}s") + + # Aggregate + agg = {} + for key in ["accuracy", "f1_macro", "f1_weighted", "cohen_kappa", "precision_macro", "recall_macro"]: + vals = [m[key] for m in all_fold_metrics] + agg[key] = {"mean": round(float(np.mean(vals)), 4), "std": round(float(np.std(vals)), 4)} + agg["train_time_mean"] = round(float(np.mean([m["train_time_s"] for m in all_fold_metrics])), 2) + + result = { + "model_name": model_name, + "n_folds": n_folds, + "aggregate": agg, + "folds": all_fold_metrics, + } + + path = os.path.join(out_dir, f"{model_name}.json") + with open(path, "w") as f: + json.dump(result, f, indent=2, default=str) + print(f"\nResults saved to {path}") + return result + + +def save_forecasting_results(model_name, results_list, subdir="forecasting"): + out_dir = ensure_results_dir(subdir) + path = os.path.join(out_dir, f"{model_name}.json") + with open(path, "w") as f: + json.dump(results_list, f, indent=2, default=str) + print(f"Results saved to {path}") + return path diff --git a/research/tech_forecasting/submission/sample-base.bib b/research/tech_forecasting/submission/sample-base.bib new file mode 100644 index 0000000..99c71bf --- /dev/null +++ b/research/tech_forecasting/submission/sample-base.bib @@ -0,0 +1,1062 @@ + +% Journals + +% First the Full Name is given, then the abbreviation used in the AMS Math +% Reviews, with an indication if it could not be found there. +% Note the 2nd overwrites the 1st, so swap them if you want the full name. + + %{AMS} + @String{AMSTrans = "American Mathematical Society Translations" } + @String{AMSTrans = "Amer. Math. Soc. Transl." } + @String{BullAMS = "Bulletin of the American Mathematical Society" } + @String{BullAMS = "Bull. Amer. Math. Soc." } + @String{ProcAMS = "Proceedings of the American Mathematical Society" } + @String{ProcAMS = "Proc. Amer. Math. Soc." } + @String{TransAMS = "Transactions of the American Mathematical Society" } + @String{TransAMS = "Trans. Amer. Math. Soc." } + + %ACM + @String{CACM = "Communications of the {ACM}" } + @String{CACM = "Commun. {ACM}" } + @String{CompServ = "Comput. Surveys" } + @String{JACM = "J. ACM" } + @String{ACMMathSoft = "{ACM} Transactions on Mathematical Software" } + @String{ACMMathSoft = "{ACM} Trans. Math. Software" } + @String{SIGNUM = "{ACM} {SIGNUM} Newsletter" } + @String{SIGNUM = "{ACM} {SIGNUM} Newslett." } + + @String{AmerSocio = "American Journal of Sociology" } + @String{AmerStatAssoc = "Journal of the American Statistical Association" } + @String{AmerStatAssoc = "J. Amer. Statist. Assoc." } + @String{ApplMathComp = "Applied Mathematics and Computation" } + @String{ApplMathComp = "Appl. Math. Comput." } + @String{AmerMathMonthly = "American Mathematical Monthly" } + @String{AmerMathMonthly = "Amer. Math. Monthly" } + @String{BIT = "{BIT}" } + @String{BritStatPsych = "British Journal of Mathematical and Statistical + Psychology" } + @String{BritStatPsych = "Brit. J. Math. Statist. Psych." } + @String{CanMathBull = "Canadian Mathematical Bulletin" } + @String{CanMathBull = "Canad. Math. Bull." } + @String{CompApplMath = "Journal of Computational and Applied Mathematics" } + @String{CompApplMath = "J. Comput. Appl. Math." } + @String{CompPhys = "Journal of Computational Physics" } + @String{CompPhys = "J. Comput. Phys." } + @String{CompStruct = "Computers and Structures" } + @String{CompStruct = "Comput. \& Structures" } + @String{CompJour = "The Computer Journal" } + @String{CompJour = "Comput. J." } + @String{CompSysSci = "Journal of Computer and System Sciences" } + @String{CompSysSci = "J. Comput. System Sci." } + @String{Computing = "Computing" } + @String{ContempMath = "Contemporary Mathematics" } + @String{ContempMath = "Contemp. Math." } + @String{Crelle = "Crelle's Journal" } + @String{GiornaleMath = "Giornale di Mathematiche" } + @String{GiornaleMath = "Giorn. Mat." } % didn't find in AMS MR., ibid. + + %IEEE + @String{Computer = "{IEEE} Computer" } + @String{IEEETransComp = "{IEEE} Transactions on Computers" } + @String{IEEETransComp = "{IEEE} Trans. Comput." } + @String{IEEETransAC = "{IEEE} Transactions on Automatic Control" } + @String{IEEETransAC = "{IEEE} Trans. Automat. Control" } + @String{IEEESpec = "{IEEE} Spectrum" } % didn't find in AMS MR + @String{ProcIEEE = "Proceedings of the {IEEE}" } + @String{ProcIEEE = "Proc. {IEEE}" } % didn't find in AMS MR + @String{IEEETransAeroElec = "{IEEE} Transactions on Aerospace and Electronic + Systems" } + @String{IEEETransAeroElec = "{IEEE} Trans. Aerospace Electron. Systems" } + + @String{IMANumerAna = "{IMA} Journal of Numerical Analysis" } + @String{IMANumerAna = "{IMA} J. Numer. Anal." } + @String{InfProcLet = "Information Processing Letters" } + @String{InfProcLet = "Inform. Process. Lett." } + @String{InstMathApp = "Journal of the Institute of Mathematics and + its Applications" } + @String{InstMathApp = "J. Inst. Math. Appl." } + @String{IntControl = "International Journal of Control" } + @String{IntControl = "Internat. J. Control" } + @String{IntNumerEng = "International Journal for Numerical Methods in + Engineering" } + @String{IntNumerEng = "Internat. J. Numer. Methods Engrg." } + @String{IntSuper = "International Journal of Supercomputing Applications" } + @String{IntSuper = "Internat. J. Supercomputing Applic." } % didn't find +%% in AMS MR + @String{Kibernetika = "Kibernetika" } + @String{JResNatBurStand = "Journal of Research of the National Bureau + of Standards" } + @String{JResNatBurStand = "J. Res. Nat. Bur. Standards" } + @String{LinAlgApp = "Linear Algebra and its Applications" } + @String{LinAlgApp = "Linear Algebra Appl." } + @String{MathAnaAppl = "Journal of Mathematical Analysis and Applications" } + @String{MathAnaAppl = "J. Math. Anal. Appl." } + @String{MathAnnalen = "Mathematische Annalen" } + @String{MathAnnalen = "Math. Ann." } + @String{MathPhys = "Journal of Mathematical Physics" } + @String{MathPhys = "J. Math. Phys." } + @String{MathComp = "Mathematics of Computation" } + @String{MathComp = "Math. Comp." } + @String{MathScand = "Mathematica Scandinavica" } + @String{MathScand = "Math. Scand." } + @String{TablesAidsComp = "Mathematical Tables and Other Aids to Computation" } + @String{TablesAidsComp = "Math. Tables Aids Comput." } + @String{NumerMath = "Numerische Mathematik" } + @String{NumerMath = "Numer. Math." } + @String{PacificMath = "Pacific Journal of Mathematics" } + @String{PacificMath = "Pacific J. Math." } + @String{ParDistComp = "Journal of Parallel and Distributed Computing" } + @String{ParDistComp = "J. Parallel and Distrib. Comput." } % didn't find +%% in AMS MR + @String{ParComputing = "Parallel Computing" } + @String{ParComputing = "Parallel Comput." } + @String{PhilMag = "Philosophical Magazine" } + @String{PhilMag = "Philos. Mag." } + @String{ProcNAS = "Proceedings of the National Academy of Sciences + of the USA" } + @String{ProcNAS = "Proc. Nat. Acad. Sci. U. S. A." } + @String{Psychometrika = "Psychometrika" } + @String{QuartMath = "Quarterly Journal of Mathematics, Oxford, Series (2)" } + @String{QuartMath = "Quart. J. Math. Oxford Ser. (2)" } + @String{QuartApplMath = "Quarterly of Applied Mathematics" } + @String{QuartApplMath = "Quart. Appl. Math." } + @String{RevueInstStat = "Review of the International Statisical Institute" } + @String{RevueInstStat = "Rev. Inst. Internat. Statist." } + + %SIAM + @String{JSIAM = "Journal of the Society for Industrial and Applied + Mathematics" } + @String{JSIAM = "J. Soc. Indust. Appl. Math." } + @String{JSIAMB = "Journal of the Society for Industrial and Applied + Mathematics, Series B, Numerical Analysis" } + @String{JSIAMB = "J. Soc. Indust. Appl. Math. Ser. B Numer. Anal." } + @String{SIAMAlgMeth = "{SIAM} Journal on Algebraic and Discrete Methods" } + @String{SIAMAlgMeth = "{SIAM} J. Algebraic Discrete Methods" } + @String{SIAMAppMath = "{SIAM} Journal on Applied Mathematics" } + @String{SIAMAppMath = "{SIAM} J. Appl. Math." } + @String{SIAMComp = "{SIAM} Journal on Computing" } + @String{SIAMComp = "{SIAM} J. Comput." } + @String{SIAMMatrix = "{SIAM} Journal on Matrix Analysis and Applications" } + @String{SIAMMatrix = "{SIAM} J. Matrix Anal. Appl." } + @String{SIAMNumAnal = "{SIAM} Journal on Numerical Analysis" } + @String{SIAMNumAnal = "{SIAM} J. Numer. Anal." } + @String{SIAMReview = "{SIAM} Review" } + @String{SIAMReview = "{SIAM} Rev." } + @String{SIAMSciStat = "{SIAM} Journal on Scientific and Statistical + Computing" } + @String{SIAMSciStat = "{SIAM} J. Sci. Statist. Comput." } + + @String{SoftPracExp = "Software Practice and Experience" } + @String{SoftPracExp = "Software Prac. Experience" } % didn't find in AMS MR + @String{StatScience = "Statistical Science" } + @String{StatScience = "Statist. Sci." } + @String{Techno = "Technometrics" } + @String{USSRCompMathPhys = "{USSR} Computational Mathematics and Mathematical + Physics" } + @String{USSRCompMathPhys = "{U. S. S. R.} Comput. Math. and Math. Phys." } + @String{VLSICompSys = "Journal of {VLSI} and Computer Systems" } + @String{VLSICompSys = "J. {VLSI} Comput. Syst." } + @String{ZAngewMathMech = "Zeitschrift fur Angewandte Mathematik und + Mechanik" } + @String{ZAngewMathMech = "Z. Angew. Math. Mech." } + @String{ZAngewMathPhys = "Zeitschrift fur Angewandte Mathematik und Physik" } + @String{ZAngewMathPhys = "Z. Angew. Math. Phys." } + +% Publishers % ================================================= | + + @String{Academic = "Academic Press" } + @String{ACMPress = "{ACM} Press" } + @String{AdamHilger = "Adam Hilger" } + @String{AddisonWesley = "Addison-Wesley" } + @String{AllynBacon = "Allyn and Bacon" } + @String{AMS = "American Mathematical Society" } + @String{Birkhauser = "Birkh{\"a}user" } + @String{CambridgePress = "Cambridge University Press" } + @String{Chelsea = "Chelsea" } + @String{ClaredonPress = "Claredon Press" } + @String{DoverPub = "Dover Publications" } + @String{Eyolles = "Eyolles" } + @String{HoltRinehartWinston = "Holt, Rinehart and Winston" } + @String{Interscience = "Interscience" } + @String{JohnsHopkinsPress = "The Johns Hopkins University Press" } + @String{JohnWileySons = "John Wiley and Sons" } + @String{Macmillan = "Macmillan" } + @String{MathWorks = "The Math Works Inc." } + @String{McGrawHill = "McGraw-Hill" } + @String{NatBurStd = "National Bureau of Standards" } + @String{NorthHolland = "North-Holland" } + @String{OxfordPress = "Oxford University Press" } %address Oxford or London? + @String{PergamonPress = "Pergamon Press" } + @String{PlenumPress = "Plenum Press" } + @String{PrenticeHall = "Prentice-Hall" } + @String{SIAMPub = "{SIAM} Publications" } + @String{Springer = "Springer-Verlag" } + @String{TexasPress = "University of Texas Press" } + @String{VanNostrand = "Van Nostrand" } + @String{WHFreeman = "W. H. Freeman and Co." } + +%Entries + +@article{schubert2017dbscan, + title={DBSCAN revisited, revisited: why and how you should (still) use DBSCAN}, + author={Schubert, Erich and Sander, J{\"o}rg and Ester, Martin and Kriegel, Hans Peter and Xu, Xiaowei}, + journal={ACM Transactions on Database Systems (TODS)}, + volume={42}, + number={3}, + pages={1--21}, + year={2017}, + publisher={ACM New York, NY, USA} +} + +@inproceedings{berndt1994using, + title={Using dynamic time warping to find patterns in time series}, + author={Berndt, Donald J and Clifford, James}, + booktitle={Proceedings of the 3rd international conference on knowledge discovery and data mining}, + pages={359--370}, + year={1994} +} + +@inproceedings{wang2018time, + title={Time series clustering based on dynamic time warping}, + author={Wang, Weizeng and Lyu, Gaofan and Shi, Yuliang and Liang, Xun}, + booktitle={2018 IEEE 9th international conference on software engineering and service science (ICSESS)}, + pages={487--490}, + year={2018}, + organization={IEEE} +} + +@article{hartigan1979k, + title={A k-means clustering algorithm}, + author={Hartigan, John A and Wong, Manchek A and others}, + journal={Applied statistics}, + volume={28}, + number={1}, + pages={100--108}, + year={1979}, + publisher={USA} +} + +@article{park2009simple, + title={A simple and fast algorithm for K-medoids clustering}, + author={Park, Hae-Sang and Jun, Chi-Hyuck}, + journal={Expert systems with applications}, + volume={36}, + number={2}, + pages={3336--3341}, + year={2009}, + publisher={Elsevier} +} + +@inproceedings{paparrizos2015k, + title={k-shape: Efficient and accurate clustering of time series}, + author={Paparrizos, John and Gravano, Luis}, + booktitle={Proceedings of the 2015 ACM SIGMOD international conference on management of data}, + pages={1855--1870}, + year={2015} +} + +@article{von2020distanzen, + title={Distanzen zwischen Objekten}, + author={von der Hude, Marlis and von der Hude, Marlis}, + journal={Predictive Analytics und Data Mining: Eine Einf{\"u}hrung mit R}, + pages={43--48}, + year={2020}, + publisher={Springer} +} + +@article{costa2021comparing, + title={Comparing cross correlation-based similarities}, + author={Costa, Luciano da F}, + journal={arXiv preprint arXiv:2111.08513}, + year={2021} +} + +@inproceedings{petitjean2014dynamic, + title={Dynamic time warping averaging of time series allows faster and more accurate classification}, + author={Petitjean, Fran{\c{c}}ois and Forestier, Germain and Webb, Geoffrey I and Nicholson, Ann E and Chen, Yanping and Keogh, Eamonn}, + booktitle={2014 IEEE international conference on data mining}, + pages={470--479}, + year={2014}, + organization={IEEE} +} + +@article{petitjean2011global, + title={A global averaging method for dynamic time warping, with applications to clustering}, + author={Petitjean, Fran{\c{c}}ois and Ketterlin, Alain and Gan{\c{c}}arski, Pierre}, + journal={Pattern recognition}, + volume={44}, + number={3}, + pages={678--693}, + year={2011}, + publisher={Elsevier} +} + +@article{vamos2013polynomial, + title={Polynomial fitting}, + author={Vamos, C˘ alin and Cr˘ aciun, Maria and Vamos, Calin and Craciun, Maria}, + journal={Automatic trend estimation}, + pages={31--42}, + year={2013}, + publisher={Springer} +} + +@article{goodman1963statistical, + title={Statistical analysis based on a certain multivariate complex Gaussian distribution (an introduction)}, + author={Goodman, Nathaniel R}, + journal={The Annals of mathematical statistics}, + volume={34}, + number={1}, + pages={152--177}, + year={1963}, + publisher={JSTOR} +} + +@article{seglen1992skewness, + title={The skewness of science}, + author={Seglen, Per O}, + journal={Journal of the American society for information science}, + volume={43}, + number={9}, + pages={628--638}, + year={1992}, + publisher={Wiley Online Library} +} + +@article{aminikhanghahi2017survey, + title={A survey of methods for time series change point detection}, + author={Aminikhanghahi, Samaneh and Cook, Diane J}, + journal={Knowledge and information systems}, + volume={51}, + number={2}, + pages={339--367}, + year={2017}, + publisher={Springer} +} + +@inproceedings{naidu2023review, + title={A review of evaluation metrics in machine learning algorithms}, + author={Naidu, Gireen and Zuva, Tranos and Sibanda, Elias Mmbongeni}, + booktitle={Computer Science On-line Conference}, + pages={15--25}, + year={2023}, + organization={Springer} +} + +@article{chicco2021coefficient, + title={The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation}, + author={Chicco, Davide and Warrens, Matthijs J and Jurman, Giuseppe}, + journal={Peerj computer science}, + volume={7}, + pages={e623}, + year={2021}, + publisher={PeerJ Inc.} +} + +@inproceedings{shahapure2020cluster, + title={Cluster quality analysis using silhouette score}, + author={Shahapure, Ketan Rajshekhar and Nicholas, Charles}, + booktitle={2020 IEEE 7th international conference on data science and advanced analytics (DSAA)}, + pages={747--748}, + year={2020}, + organization={IEEE} +} + +@inproceedings{rahutomo2012semantic, + title={Semantic cosine similarity}, + author={Rahutomo, Faisal and Kitasuka, Teruaki and Aritsugi, Masayoshi and others}, + booktitle={The 7th international student conference on advanced science and technology ICAST}, + volume={4}, + number={1}, + pages={1}, + year={2012}, + organization={University of Seoul South Korea} +} + +@article{reynolds2009gaussian, + title={Gaussian mixture models.}, + author={Reynolds, Douglas A and others}, + journal={Encyclopedia of biometrics}, + volume={741}, + number={659-663}, + pages={3}, + year={2009}, + publisher={Springer City} +} + +@article{o2015introduction, + title={An introduction to convolutional neural networks}, + author={O'shea, Keiron and Nash, Ryan}, + journal={arXiv preprint arXiv:1511.08458}, + year={2015} +} + +@article{wu2018development, + title={Development and application of artificial neural network}, + author={Wu, Yu-chen and Feng, Jun-wen}, + journal={Wireless Personal Communications}, + volume={102}, + pages={1645--1656}, + year={2018}, + publisher={Springer} +} + +@article{rojas1996backpropagation, + title={The backpropagation algorithm}, + author={Rojas, Raul and Rojas, Ra{\'u}l}, + journal={Neural networks: a systematic introduction}, + pages={149--182}, + year={1996}, + publisher={Springer} +} + +@article{dempster2020rocket, + title={ROCKET: exceptionally fast and accurate time series classification using random convolutional kernels}, + author={Dempster, Angus and Petitjean, Fran{\c{c}}ois and Webb, Geoffrey I}, + journal={Data Mining and Knowledge Discovery}, + volume={34}, + number={5}, + pages={1454--1495}, + year={2020}, + publisher={Springer} +} + +@article{dempster2023hydra, + title={Hydra: Competing convolutional kernels for fast and accurate time series classification}, + author={Dempster, Angus and Schmidt, Daniel F and Webb, Geoffrey I}, + journal={Data Mining and Knowledge Discovery}, + volume={37}, + number={5}, + pages={1779--1805}, + year={2023}, + publisher={Springer} +} + +@article{zhao2017convolutional, + title={Convolutional neural networks for time series classification}, + author={Zhao, Bendong and Lu, Huanzhang and Chen, Shangfeng and Liu, Junliang and Wu, Dongya}, + journal={Journal of systems engineering and electronics}, + volume={28}, + number={1}, + pages={162--169}, + year={2017}, + publisher={BIAI} +} + +@article{middlehurst2021hive, + title={HIVE-COTE 2.0: a new meta ensemble for time series classification}, + author={Middlehurst, Matthew and Large, James and Flynn, Michael and Lines, Jason and Bostrom, Aaron and Bagnall, Anthony}, + journal={Machine Learning}, + volume={110}, + number={11}, + pages={3211--3243}, + year={2021}, + publisher={Springer} +} + +@article{large2018bop, + title={From BOP to BOSS and beyond: Time series classification with dictionary based classifiers}, + author={Large, James and Bagnall, Anthony and Malinowski, Simon and Tavenard, Romain}, + journal={arXiv preprint arXiv:1809.06751}, + year={2018} +} + +@article{guijo2024unsupervised, + title={Unsupervised feature based algorithms for time series extrinsic regression}, + author={Guijo-Rubio, David and Middlehurst, Matthew and Arcencio, Guilherme and Silva, Diego Furtado and Bagnall, Anthony}, + journal={Data Mining and Knowledge Discovery}, + volume={38}, + number={4}, + pages={2141--2185}, + year={2024}, + publisher={Springer} +} + +@article{lubba2019catch22, + title={catch22: CAnonical Time-series CHaracteristics: Selected through highly comparative time-series analysis}, + author={Lubba, Carl H and Sethi, Sarab S and Knaute, Philip and Schultz, Simon R and Fulcher, Ben D and Jones, Nick S}, + journal={Data mining and knowledge discovery}, + volume={33}, + number={6}, + pages={1821--1852}, + year={2019}, + publisher={Springer} +} + +@inproceedings{mohammed2024machine, + title={Machine Learning-Based Position Prediction for Fleet Management Within Port Terminals}, + author={Mohammed, El Karkraoui and Hicham, Attariuas}, + booktitle={International Conference on Digital Age \& Technological Advances for Sustainable Development}, + pages={151--158}, + year={2024}, + organization={Springer} +} + +@incollection{dipietro2020deep, + title={Deep learning: RNNs and LSTM}, + author={DiPietro, Robert and Hager, Gregory D}, + booktitle={Handbook of medical image computing and computer assisted intervention}, + pages={503--519}, + year={2020}, + publisher={Elsevier} +} + +@article{smagulova2019survey, + title={A survey on LSTM memristive neural network architectures and applications}, + author={Smagulova, Kamilya and James, Alex Pappachen}, + journal={The European Physical Journal Special Topics}, + volume={228}, + number={10}, + pages={2313--2324}, + year={2019}, + publisher={Springer} +} + +@article{yu2019review, + title={A review of recurrent neural networks: LSTM cells and network architectures}, + author={Yu, Yong and Si, Xiaosheng and Hu, Changhua and Zhang, Jianxun}, + journal={Neural computation}, + volume={31}, + number={7}, + pages={1235--1270}, + year={2019}, + publisher={MIT Press One Rogers Street, Cambridge, MA 02142-1209, USA journals-info~…} +} + +@article{andi2021accurate, + title={An accurate bitcoin price prediction using logistic regression with LSTM machine learning model}, + author={Andi, Hari Krishnan}, + journal={Journal of Soft Computing Paradigm}, + volume={3}, + number={3}, + pages={205--217}, + year={2021} +} + +@article{han2017visual, + title={Visual patent trend analysis for informed decision making in technology management}, + author={Han, Qi and Heimerl, Florian and Codina-Filba, Joan and Lohmann, Steffen and Wanner, Leo and Ertl, Thomas}, + journal={World Patent Information}, + volume={49}, + pages={34--42}, + year={2017}, + publisher={Elsevier} +} + +@article{abbas2014literature, + title={A literature review on the state-of-the-art in patent analysis}, + author={Abbas, Assad and Zhang, Limin and Khan, Samee U}, + journal={World Patent Information}, + volume={37}, + pages={3--13}, + year={2014}, + publisher={Elsevier} +} + +@article{yoon2012trendperceptor, + title={TrendPerceptor: A property--function based technology intelligence system for identifying technology trends from patents}, + author={Yoon, Janghyeok and Kim, Kwangsoo}, + journal={Expert Systems with Applications}, + volume={39}, + number={3}, + pages={2927--2938}, + year={2012}, + publisher={Elsevier} +} + +@article{yoon2012analysis, + title={An analysis of property--function based patent networks for strategic R\&D planning in fast-moving industries: The case of silicon-based thin film solar cells}, + author={Yoon, Janghyeok and Kim, Kwangsoo}, + journal={Expert Systems with Applications}, + volume={39}, + number={9}, + pages={7709--7717}, + year={2012}, + publisher={Elsevier} +} + +@misc{epo_history, + title = {Die Geschichte des EPA: 1970er-Jahre}, + author={Europäisches Pantentamt}, + howpublished = {\url{https://www.epo.org/de/about-us/timeline/1970s}}, + note = {zuletzt besucht: 25.02.2025} +} + +@article{linden2003understanding, + title={Understanding Gartner’s hype cycles}, + author={Linden, Alexander and Fenn, Jackie and others}, + journal={Strategic Analysis Report N{\textordmasculine} R-20-1971. Gartner, Inc}, + volume={88}, + pages={1423}, + year={2003} +} + +@article{campbell1983patent, + title={Patent trends as a technological forecasting tool}, + author={Campbell, Richard S}, + journal={World patent information}, + volume={5}, + number={3}, + pages={137--143}, + year={1983}, + publisher={Elsevier} +} + +@article{kim2017novel, + title={A novel approach to forecast promising technology through patent analysis}, + author={Kim, Gabjo and Bae, Jinwoo}, + journal={Technological Forecasting and Social Change}, + volume={117}, + pages={228--237}, + year={2017}, + publisher={Elsevier} +} + +@article{daim2006forecasting, + title={Forecasting emerging technologies: Use of bibliometrics and patent analysis}, + author={Daim, Tugrul U and Rueda, Guillermo and Martin, Hilary and Gerdsri, Pisek}, + journal={Technological forecasting and social change}, + volume={73}, + number={8}, + pages={981--1012}, + year={2006}, + publisher={Elsevier} +} + +@article{chen2017topic, + title={Topic-based technological forecasting based on patent data: A case study of Australian patents from 2000 to 2014}, + author={Chen, Hongshu and Zhang, Guangquan and Zhu, Donghua and Lu, Jie}, + journal={Technological Forecasting and Social Change}, + volume={119}, + pages={39--52}, + year={2017}, + publisher={Elsevier} +} + +@misc{kim2015technology, + title={Technology forecasting using topic-based patent analysis}, + author={Kim, Gab Jo and Park, Sang Sung and Jang, Dong Sik}, + year={2015}, + publisher={NISCAIR-CSIR, India} +} + +@article{dedehayir2016hype, + title={The hype cycle model: A review and future directions}, + author={Dedehayir, Ozgur and Steinert, Martin}, + journal={Technological Forecasting and Social Change}, + volume={108}, + pages={28--41}, + year={2016}, + publisher={Elsevier} +} + +@inproceedings{supraja2015patent, + title={Patent search and trend analysis}, + author={Supraja, AM and Archana, S and Suvetha, S and Geetha, TV}, + booktitle={2015 IEEE International Advance Computing Conference (IACC)}, + pages={501--506}, + year={2015}, + organization={IEEE} +} + +@misc{gartner_5, + title = {Gartner Hype Cycle}, + author={Gartner}, + howpublished = {\url{https://www.gartner.de/de/methoden/hype-cycle}}, + note = {zuletzt besucht: 27.02.2025} +} + +@misc{gartner_png, + title = {Introduction to the Gartner Hype Cycle}, + author={Raza, Muhammad}, + howpublished = {\url{https://www.bmc.com/blogs/gartner-hype-cycle/}}, + note = {zuletzt besucht: 27.02.2025} +} + +@article{chowdhary2020natural, + title={Natural language processing}, + author={Chowdhary, KR1442 and Chowdhary, KR}, + journal={Fundamentals of artificial intelligence}, + pages={603--649}, + year={2020}, + publisher={Springer} +} + +@article{chopra2013natural, + title={Natural language processing}, + author={Chopra, Abhimanyu and Prashar, Abhinav and Sain, Chandresh}, + journal={International journal of technology enhancements and emerging engineering research}, + volume={1}, + number={4}, + pages={131--134}, + year={2013}, + publisher={Citeseer} +} + +@article{sagheer2019time, + title={Time series forecasting of petroleum production using deep LSTM recurrent networks}, + author={Sagheer, Alaa and Kotb, Mostafa}, + journal={Neurocomputing}, + volume={323}, + pages={203--213}, + year={2019}, + publisher={Elsevier} +} + +@article{blei2003latent, + title={Latent dirichlet allocation}, + author={Blei, David M and Ng, Andrew Y and Jordan, Michael I}, + journal={Journal of machine Learning research}, + volume={3}, + number={Jan}, + pages={993--1022}, + year={2003} +} + +@article{crisp1997delphi, + title={The delphi method?}, + author={Crisp, Jackie and Pelletier, Dianne and Duffield, Christine and Adams, Anne and Nagy, SUE}, + journal={Nursing research}, + volume={46}, + number={2}, + pages={116--118}, + year={1997}, + publisher={LWW} +} + +@inproceedings{perez2010using, + title={Using BM25F for semantic search}, + author={P{\'e}rez-Ag{\"u}era, Jos{\'e} R and Arroyo, Javier and Greenberg, Jane and Iglesias, Joaquin Perez and Fresno, Victor}, + booktitle={Proceedings of the 3rd international semantic search workshop}, + pages={1--8}, + year={2010} +} + +@inproceedings{ariyo2014stock, + title={Stock price prediction using the ARIMA model}, + author={Ariyo, Adebiyi A and Adewumi, Adewumi O and Ayo, Charles K}, + booktitle={2014 UKSim-AMSS 16th international conference on computer modelling and simulation}, + pages={106--112}, + year={2014}, + organization={IEEE} +} + +@inproceedings{zhang2017degree, + title={Degree centrality, betweenness centrality, and closeness centrality in social network}, + author={Zhang, Junlong and Luo, Yu}, + booktitle={2017 2nd international conference on modelling, simulation and applied mathematics (MSAM2017)}, + pages={300--303}, + year={2017}, + organization={Atlantis press} +} + +@article{kayal1999empirical, + title={An empirical evaluation of the technology cycle time indicator as a measure of the pace of technological progress in superconductor technology}, + author={Kayal, Aymen A and Waters, Robert C}, + journal={IEEE Transactions on Engineering Management}, + volume={46}, + number={2}, + pages={127--131}, + year={1999}, + publisher={IEEE} +} + +@misc{ipc, + title = {Guide to the International Patent Classification}, + author={WIPO - World Intellectual Property Organization}, + howpublished = {\url{https://www.wipo.int/edocs/pubdocs/en/wipo-guide-ipc-2022-en-guide-to-the-international-patent-classification-2022.pdf}}, + note = {zuletzt besucht: 06.03.2025} +} + +@misc{epo_timings, + title = {Der Weg zum Patent}, + author={Europäisches Patentamt}, + howpublished = {\url{https://www.epo.org/de/new-to-patents/how-to-apply-for-a-patent}}, + note = {zuletzt besucht: 06.03.2025} +} + +@misc{epo_max, + title = {Wie lange bleibt ein erteiltes europäisches Patent in Kraft?}, + author={Europäisches Patentamt}, + howpublished = {\url{https://www.epo.org/de/service-support/faq/anmeldung-eines-patents/das-verfahren/wie-lange-bleibt-ein-erteiltes}}, + note = {zuletzt besucht: 06.03.2025} +} + +@misc{python, + title = {Python}, + author={Python Software Foundation}, + howpublished = {\url{https://www.python.org/}}, + note = {zuletzt besucht: 13.03.2025} +} + +@misc{pypi, + title = {Python Package Index}, + author={Python-Gemeinschaft}, + howpublished = {\url{https://pypi.org/}}, + note = {zuletzt besucht: 13.03.2025} +} + +@misc{wos, + title = {Web of Science}, + author={Clarivate}, + howpublished = {\url{https://www.webofscience.com/wos/woscc/basic-search}}, + note = {zuletzt besucht: 31.03.2025} +} + +@comment{ +@inproceedings{commented2023challenges, + title={Challenges in Implementing a University-Based Innovation Search Engine.}, + author={BLINDED}, + booktitle={KDIR}, + pages={477--486}, + year={2023} + } +} + +@inproceedings{arzani2023challenges, + title={BLINDED TITLE}, + author={BLINDED}, + year={2025} +} + +@article{arora2016analysis, + title={Analysis of k-means and k-medoids algorithm for big data}, + author={Arora, Preeti and Varshney, Shipra and others}, + journal={Procedia Computer Science}, + volume={78}, + pages={507--512}, + year={2016}, + publisher={Elsevier} +} + +@inproceedings{deng2020dbscan, + title={DBSCAN clustering algorithm based on density}, + author={Deng, Dingsheng}, + booktitle={2020 7th international forum on electrical engineering and automation (IFEEA)}, + pages={949--953}, + year={2020}, + organization={IEEE} +} + +@article{han2020pattern, + title={A pattern representation of stock time series based on DTW}, + author={Han, Tian and Peng, Qinke and Zhu, Zhibo and Shen, Yiqing and Huang, Huijun and Abid, Nahiyoon Nabeel}, + journal={Physica A: Statistical Mechanics and its Applications}, + volume={550}, + pages={124161}, + year={2020}, + publisher={Elsevier} +} + +@article{viroli2019deep, + title={Deep Gaussian mixture models}, + author={Viroli, Cinzia and McLachlan, Geoffrey J}, + journal={Statistics and Computing}, + volume={29}, + number={1}, + pages={43--51}, + year={2019}, + publisher={Springer} +} + +@article{harhoff2009duration, + title={The duration of patent examination at the European Patent Office}, + author={Harhoff, Dietmar and Wagner, Stefan}, + journal={Management Science}, + volume={55}, + number={12}, + pages={1969--1984}, + year={2009}, + publisher={INFORMS} +} + +@article{leydesdorff2014interactive, + title={Interactive overlay maps for US patent (USPTO) data based on International Patent Classification (IPC)}, + author={Leydesdorff, Loet and Kushnir, Duncan and Rafols, Ismael}, + journal={Scientometrics}, + volume={98}, + number={3}, + pages={1583--1599}, + year={2014}, + publisher={Springer} +} + +@inproceedings{steinert2010scrutinizing, + title={Scrutinizing Gartner's hype cycle approach}, + author={Steinert, Martin and Leifer, Larry}, + booktitle={Picmet 2010 technology management for global economic growth}, + pages={1--13}, + year={2010}, + organization={IEEE} +} + +@article{di2002european, + title={From the European patent to a community patent}, + author={Di Cataldo, Vincenzo}, + journal={Colum. J. Eur. L.}, + volume={8}, + pages={19}, + year={2002}, + publisher={HeinOnline} +} + +@article{guellec2000applications, + title={Applications, grants and the value of patent}, + author={Guellec, Dominique and de la Potterie, Bruno van Pottelsberghe}, + journal={Economics letters}, + volume={69}, + number={1}, + pages={109--114}, + year={2000}, + publisher={Elsevier} +} + +@inproceedings{asesh2021normalization, + title={Normalization and bias in time series data}, + author={Asesh, Aishwarya}, + booktitle={Conference on Multimedia, Interaction, Design and Innovation}, + pages={88--97}, + year={2021}, + organization={Springer} +} + +@article{kim2019text, + title={Text mining for patent analysis to forecast emerging technologies in wireless power transfer}, + author={Kim, Ki Hong and Han, Young Jae and Lee, Sugil and Cho, Sung Won and Lee, Chulung}, + journal={Sustainability}, + volume={11}, + number={22}, + pages={6240}, + year={2019}, + publisher={MDPI} +} + +@article{qiu2020technology, + title={Technology forecasting based on semantic and citation analysis of patents: A case of robotics domain}, + author={Qiu, Zhipeng and Wang, Zheng}, + journal={IEEE Transactions on Engineering Management}, + volume={69}, + number={4}, + pages={1216--1236}, + year={2020}, + publisher={IEEE} +} + +@article{choi2021identifying, + title={Identifying emerging technologies to envision a future innovation ecosystem: A machine learning approach to patent data}, + author={Choi, Youngjae and Park, Sanghyun and Lee, Sungjoo}, + journal={Scientometrics}, + volume={126}, + number={7}, + pages={5431--5476}, + year={2021}, + publisher={Springer} +} + +@article{wu2023linkage, + title={The linkage between carbon market and green bond market: evidence from quantile regression based on wavelet analysis}, + author={Wu, Ding and Luo, Zhenqing and Zhang, Tidong and Tang, Lu and Ahmad, Mahmood and Fang, Xiaoyun}, + journal={Sustainability}, + volume={15}, + number={13}, + pages={10634}, + year={2023}, + publisher={MDPI} +} + +@article{yuan2020self, + title={Self-supervised pretraining of transformers for satellite image time series classification}, + author={Yuan, Yuan and Lin, Lei}, + journal={IEEE journal of selected topics in applied earth observations and remote sensing}, + volume={14}, + pages={474--487}, + year={2020}, + publisher={IEEE} +} + +@article{pelletier2019temporal, + title={Temporal convolutional neural network for the classification of satellite image time series}, + author={Pelletier, Charlotte and Webb, Geoffrey I and Petitjean, Fran{\c{c}}ois}, + journal={Remote Sensing}, + volume={11}, + number={5}, + pages={523}, + year={2019}, + publisher={MDPI} +} + +@article{ismail2020inceptiontime, + title={Inceptiontime: Finding alexnet for time series classification}, + author={Ismail Fawaz, Hassan and Lucas, Benjamin and Forestier, Germain and Pelletier, Charlotte and Schmidt, Daniel F and Weber, Jonathan and Webb, Geoffrey I and Idoumghar, Lhassane and Muller, Pierre-Alain and Petitjean, Fran{\c{c}}ois}, + journal={Data mining and knowledge discovery}, + volume={34}, + number={6}, + pages={1936--1962}, + year={2020}, + publisher={Springer} +} + +@inproceedings{xu2020class, + title={Class-weighted classification: Trade-offs and robust approaches}, + author={Xu, Ziyu and Dan, Chen and Khim, Justin and Ravikumar, Pradeep}, + booktitle={International conference on machine learning}, + pages={10544--10554}, + year={2020}, + organization={PMLR} +} + +@article{huang2024long, + title={Long time series of ocean wave prediction based on PatchTST model}, + author={Huang, Xinyu and Tang, Jun and Shen, Yongming}, + journal={Ocean Engineering}, + volume={301}, + pages={117572}, + year={2024}, + publisher={Elsevier} +} + +@inproceedings{zhou2021informer, + title={Informer: Beyond efficient transformer for long sequence time-series forecasting}, + author={Zhou, Haoyi and Zhang, Shanghang and Peng, Jieqi and Zhang, Shuai and Li, Jianxin and Xiong, Hui and Zhang, Wancai}, + booktitle={Proceedings of the AAAI conference on artificial intelligence}, + volume={35}, + number={12}, + pages={11106--11115}, + year={2021} +} + +@article{wu2021autoformer, + title={Autoformer: Decomposition transformers with auto-correlation for long-term series forecasting}, + author={Wu, Haixu and Xu, Jiehui and Wang, Jianmin and Long, Mingsheng}, + journal={Advances in neural information processing systems}, + volume={34}, + pages={22419--22430}, + year={2021} +} + +@article{ning2022comparative, + title={A comparative machine learning study for time series oil production forecasting: ARIMA, LSTM, and Prophet}, + author={Ning, Yanrui and Kazemi, Hossein and Tahmasebi, Pejman}, + journal={Computers \& Geosciences}, + volume={164}, + pages={105126}, + year={2022}, + publisher={Elsevier} +} + +@article{jain2017study, + title={A study of time series models ARIMA and ETS}, + author={Jain, Garima and Mallick, Bhawna}, + journal={Available at SSRN 2898968}, + year={2017} +} + +@INPROCEEDINGS{9449743, + author={Parizad, A. and Hatziadoniu, C. J.}, + booktitle={2020 52nd North American Power Symposium (NAPS)}, + title={Using Prophet Algorithm for Pattern Recognition and Short Term Forecasting of Load Demand Based on Seasonality and Exogenous Features}, + year={2021}, + volume={}, + number={}, + pages={1-6}, + keywords={Load forecasting;Companies;Predictive models;Market research;Feature extraction;Data models;Data mining;Load pattern recognition;Short-term load forecasting;Model training;hyper parameter optimization;Seasonality and exogenous features;Prophet algorithm}, + doi={10.1109/NAPS50074.2021.9449743}} \ No newline at end of file diff --git a/research/tech_forecasting/submission/sample-sigconf-pedro-comments.tex.bak.tex b/research/tech_forecasting/submission/sample-sigconf-pedro-comments.tex.bak.tex new file mode 100644 index 0000000..a59b778 --- /dev/null +++ b/research/tech_forecasting/submission/sample-sigconf-pedro-comments.tex.bak.tex @@ -0,0 +1,978 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2026} +\acmYear{2026} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[Conference acronym 'CIKM]{Make sure to enter the correct + conference title from your rights confirmation email}{June 03--05, + 2026}{Woodstock, NY} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +% \acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{Technology Forecasting through Data-Driven Analysis of Patents} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Identifying emerging technologies is a key task in innovation scouting, enabling coaches and decision makers to stay ahead of technological developments. Patent data offers structured, time-stamped records of innovation activity, making it a valuable basis for detecting and forecasting technology trends. In this paper, we propose a systematic, domain-agnostic framework for technology forecasting using patent count time series from the European Patent Office (EPO). After identifying trends that are likely to capture a complete technology lifecycle, we derive a universal eight-phase lifecycle pattern from them. Based on this pattern, we annotate the trends and evaluate a two-stage pipeline combining neural time series forecasting with lifecycle phase classification. The evaluation yields three key results: (1) a Transformer-seq2seq classifier achieves F1-macro~0.785 on the eight-phase labeling task using only raw patent counts; (2) the top five neural forecasting architectures converge to within 7.85~MAE after per-series normalization, outperforming the Prophet baseline by 57\%; and (3) the best combined pipeline configuration (Transformer-Direct paired with LSTM-seq2seq) predicts lifecycle phase transitions with a mean year-delta of 1.7~years and a median of 0.650~years, without relying on any domain-specific features or patent text content. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 10002951.10003227.10003241.10003244 + Information systems~Data analytics + 500 + + +\end{CCSXML} + +\ccsdesc[500]{Information systems~Data analytics} + +% \ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Technology forecasting, Patent time series analysis, Emerging technologies and innovation, Technology lifecycle} + + +% \received{20 February 2007} +% \received[revised]{12 March 2009} +% \received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +Innovation coaches in a university support researchers and staff in transforming academic ideas into practical innovations by guiding them through processes like commercialization, collaboration, and funding acquisition. Their tasks include scouting for emerging trends and fostering innovation and knowledge transfer. To do this, they engage in systematic scouting and screening activities to identify expertise and trends within and outside of their university, aiming to discover researchers with startup potential. As part of a funded project, we developed tools to assist coaches in these scouting activities by automating data gathering and analysis~\cite{arzani2023challenges}. A core function of these tools is to support the identification of emerging technologies and forecast future research trends. By analyzing historical technology developments and combining them with academic data, such as research projects, publications, and researcher profiles, the coaches can effectively monitor technological trajectories and detect early signals of innovation. + + +Patent data is particularly valuable for recognizing technology patterns and offer structured, time-stamped records of innovation across disciplines. Unlike informal sources such as news or social media, patents are legally significant and must be filed early. Thus, they systematically document technical advancements, making them ideal for tracking technology evolution. Their structure also enables the extraction of citation networks, classifications, and inventor collaborations—key indicators of emerging innovation. + + + +However, developing forecasting models that can fully leverage patent data poses significant challenges. A primary obstacle is creating models that are not confined to specific technological domains but can be generalized across diverse areas. Existing models often perform well within narrow fields but struggle to scale because innovation cycles, growth rates, and domain-specific language vary widely between sectors. These differences make it difficult to apply a single predictive framework, as models may misinterpret sector-specific dynamics or fail to detect trends in less studied areas. + +Furthermore, many current approaches to technology forecasting, including widely referenced models such as the Gartner Hype Cycle, rely heavily on expert opinions and qualitative assessments. Although these methods provide valuable strategic insights, they are inherently subjective and often lack transparency in how trends are selected, categorized, or timed. This subjectivity limits their reproducibility and may introduce biases based on the perspectives or expertise of the contributing analysts. +% Furthermore, such models typically do not offer the granular, data-driven predictions needed for detailed, system-level innovation scouting. + +Therefore, there is a need for forecasting approaches that combine the objectivity and scalability of data-driven methods with the ability to generalize across technological domains. This paper addresses this challenge by proposing a predictive data-driven approach based on patents. To make the key concepts accessible, we introduce the following working definitions. +In this work, we use \textit{patent trend}s as univariate time series of annual patent document counts for a specific IPC classification code, representing the innovation activity in that technology domain over time. Based on these, we capture \textit{technology lifecycle} which describes the temporal evolution of this activity through distinct structural phases (from early emergence and growth, through a peak of activity, to eventual decline and stabilization). After defining lifecycle phases, we generate \textit{stabilized trend}s, which are IPC time series that, based on the filtering criteria detailed in Section~\ref{extraction_stabilized_trends}, are likely to have completed their full technology lifecycle. Finally, from the stabilized trends, we derive a \textit{universal technology trend}, as a single representative pattern capturing the shared evolutionary structure across all stable IPC domains, independent of technology type. + +Our analysis focuses exclusively on patent count time series from the European Patent Office (EPO) and does not analyze the textual content of patent documents. The EPO is selected for its systematic coverage and open data access; we acknowledge that innovations are not limited to the EPO framework and that extending to other patent offices remains a direction for future work. As a first step, we extract patent time series from the EPO from 1978 onwards and identify stabilized trends. Utilizing the universal trend derived from these, we define the phases of the technology lifecycle and annotate the stabilized trends. Finally, leveraging neural sequence modeling and Transformer architectures, this paper proposes a two-stage, domain-agnostic pipeline that combines neural patent trend forecasting with lifecycle phase classification. The latter enables reproducible prediction of technology transitions at scale. The paper delivers the following contributions: +\begin{itemize} + + % \item We describe a data-driven approach to identify a universal technology lifecycle and its phases using patent data. + + % \item We develop models that are capable of identifying the lifecycle phases using an accuracy of up to 88\%. + % \item We show that it is possible to forecast future phases with an error of only 1.27 years. + \item We describe a data-driven framework to extract IPC patent time series from the EPO and annotate them with a universal eight-phase technology lifecycle, requiring no domain-specific features. + \item We evaluate a Transformer-seq2seq classifier achieving F1-macro~0.785 on the lifecycle phase labeling task using only raw patent counts. + \item We benchmark time series forecasters against a Prophet baseline with top neural models converging to within 0.07~MAE, reducing forecasting error by 57\% over the baseline. + \item We evaluate a two-stage forecast-classify pipeline which achieves a mean year-delta of 1.7 years and within 7 months median precision for the best configuration (Transformer-Direct + LSTM-seq2seq). + % \item We introduce an oracle decomposition that isolates forecast-induced classification error, showing that classifier noise-robustness---not standalone accuracy---is the dominant factor governing combined pipeline performance. +\end{itemize} + + + + +\section{Related Work} + +Forecasting technological trends is a central challenge in innovation management. One well-known conceptual model is the Gartner Hype Cycle (GHC), which describes the evolution of technology through five phases, from the initial trigger to broad market adoption~\cite{gartner_5,linden2003understanding}. While the GHC helps assess the maturity and business value of technologies, its qualitative nature and dependence on subjective expert judgment limit its reproducibility and transparency~\cite{dedehayir2016hype,steinert2010scrutinizing}. To overcome these limitations, patent-based approaches have gained traction due to their objectivity and data availability. Early work by Campbell (1983) proposed using patent indicators such as activity levels, immediacy, and dominance to track the lifecycle of technologies and forecast innovation dynamics~\cite{campbell1983patent}. + +Recent advances have focused on leveraging text mining and machine learning techniques to extract insights from patent data~\cite{kim2019text,qiu2020technology,choi2021identifying}. Authors of~\cite{abbas2014literature} provide a comprehensive overview of such methods, distinguishing between text-based analyses using NLP and semantic extraction, and visual analytics like patent maps and citation networks. Tools such as PatStream and TrendPerceptor combine NLP with interactive visualizations and concept extraction to identify emerging technologies without requiring domain expertise~\cite{han2017visual,yoon2012trendperceptor}. Similarly, topic modeling methods like LDA have been applied to uncover latent themes in patent texts and track their evolution over time~\cite{chen2017topic,supraja2015patent,kim2015technology}. Statistical models, such as ARIMA and LSTM networks, have further improved the forecasting of temporal trends, especially in noisy and nonlinear domains~\cite{sagheer2019time,supraja2015patent}. Cluster- and network-based approaches also play an important role. Some authors use CPC-based clustering combined with patent indicators to identify promising technologies~\cite{kim2017novel}, while others integrate k-means clustering and topic modeling for uncovering innovation white spaces in fields such as renewable energy~\cite{kim2015technology}. Property-function-based analyses address the limitations of citation delay by extracting semantic relationships directly from patent text, enabling the detection of early-stage innovations~\cite{yoon2012analysis} in the solar cells area. Integrative frameworks combining bibliometrics, patent data, scenario planning, and system dynamics offer robust strategies for technology forecasting under uncertainty~\cite{daim2006forecasting}. + +%Together, these methods highlight the growing maturity and methodological diversity of patent-based forecasting systems. + +In contrast to prior work, which often focuses on domain-specific analyses or requires extensive expert input, our approach introduces a domain-agnostic, methodologically consistent, and reproducible framework for patent-based trend forecasting. By applying unsupervised clustering, we derive universal technological trend patterns from a large-scale patent corpus, independent of specific application fields. This eliminates the need for manual topic selection or domain tailoring, which enables scalability across diverse innovation areas. +In comparison to some related work, we use raw patent counts as input for the forecasting and classification models, while other approaches rely on engineered features such as patent citations, text embeddings, or semantic indicators~\cite{sagheer2019time}. Our approach does not analyze the textual content of patent documents (such as claims, abstracts, or descriptions) but operates exclusively on the numerical count time series derived from IPC classification metadata. +%The design choice is deliberate, as it decouples the framework from natural language processing pipelines, making it language-agnostic. +%The analysis of patent text content, for example to identify semantic innovation signals or measure technological proximity, is a complementary direction that we leave for future work. +In our work, after extracting a universal technology lifecycle from patent data, we use it to train a sequence-to-sequence classifier for lifecycle phase prediction. Moreover, we benchmark multiple neural state-of-the-art forecasting and classification models against a strong baseline and evaluate their performance in a combined forecast-classify pipeline. In doing so, we provide insights into the interplay between forecasting accuracy and classification robustness. + +\section{Patent System} + +% Patents play an important role in fostering innovation by granting the inventors exclusive rights to their innovation for a period of time, typically 20 years. +In this work, our goal is to enable patent-phase classification and forecasting of technology lifecycle phases in support of innovation scouting. As input, we focus on the patent data from the European Patent Office (EPO)~\cite{harhoff2009duration}. The EPO is a major patent authority that reviews and grants patents, enabling inventors to secure innovation across different markets. + +Patents are typically categorized in technical domains using systems such as Cooperative Patent Classification (CPC) and International Patent Classification (IPC)~\cite{leydesdorff2014interactive}, which organize innovation into sectors such as pharmaceuticals, biotechnology, electronics and information technology. This classification helps streamline patent searches, foster collaborations, and identify technological trends across various domains. For instance, a biotech startup may use IPC to locate similar gene-editing patents before filing its own, while a large firm may analyze classification trends to inform R\&D investments. The EPO organizes patents using the IPC system, which is divided into eight main sections, each representing a broad area of technology. These sections are: A (Human Necessities), B (Performing Operations; Transporting), C (Chemistry; Metallurgy), D (Textiles; Paper), E (Fixed Constructions), F (Mechanical Engineering; Lighting; Heating; Weapons), G (Physics) and H (Electricity). Each section is further divided into classes, subclasses, groups, and subgroups to provide a detailed and hierarchical structure for organizing patents. + +For example, in the field of medical technology, \textit{Section A} covers Human Necessities, while \textit{Class A61} focuses on Medical or Veterinary Science; Hygiene. Within this, \textit{Subclass A61K} is dedicated to Preparations for Medical, Dental, or Toilet Purposes, including drugs, disinfectants, and cosmetic formulations. A more specific breakdown, such as \textit{Group A61K 31/00}, refers to medicinal preparations containing organic active ingredients. This group contains several subgroups, and one such example is \textit{A61K 31/519}, which refers specifically to Medicinal preparations containing macrolides, a subclass of antibiotics. + +EPO data on each IPC class inherently include time-series information, where the number of patent filings is recorded over time for specific technologies, allowing analysts to track innovation activity and its intensity over the years. Because IPC codes are assigned by expert examiners during patent review, the technological domain is structurally encoded in the classification metadata, making text analysis unnecessary for trend identification. Trends are tracked independently per IPC subgroup; even when related technologies exhibit temporally overlapping patent activity, they remain distinguishable because each IPC subgroup constitutes a distinct technological niche in the classification hierarchy. The EPO publishes two main types of patent documents: \textit{EP-A} documents, which are published patent applications (not necessarily granted), and \textit{EP-B} documents, which are granted patents. Both of these types are included in our analysis. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the total count of published EP-A and EP-B documents in a particular year for a particular IPC class. + +\section{Data Generation and Modeling} + +Using the time-series data from the EPO, we propose a data-driven method for capturing technology lifecycles. The methodology follows a principled four-step chain, where each step removes a manual assumption: (i)~filtering for \textit{completed} lifecycle series (Section~\ref{extraction_stabilized_trends}) establishes noise-free ground truth without requiring expert-labeled training data; (ii)~extracting a \textit{universal pattern} via multiple competing methods (Section~\ref{universal_trend}) determines whether a single data-driven template suffices across all domains, eliminating domain-specific lifecycle definitions; (iii)~segmenting this pattern into \textit{structural phases} (Section~\ref{phase_definitions}) creates an automated annotation scheme applicable to any IPC trend; and (iv)~benchmarking classification and forecasting models (Section~\ref{modeling}) identifies which architectures generalize to \textit{partial observations} of actively evolving technologies---predicting when future phase transitions will occur, which is the operational goal for innovation scouting. + + +\subsection{Extraction of Stabilized Trends} +\label{extraction_stabilized_trends} + + +Patent activity across IPC domains varies widely in volume, frequency, and maturity. While some domains already went through the full technology lifecycle, others have sparse or incomplete data, reflecting early stage or irregular development. When trying to identify a universal model for the technology lifecycle, the latter will inevitably introduce noise. Thus, to reduce the noise, we apply a filtering process to retain only IPC time series that are likely to capture the complete technology lifecycle. In the following, we refer to these time series as \textit{stabilized trends}, which are time series data with minimized short-term noise and variance, allowing analysts to accurately model the long-term patterns of introduction, growth, maturity, and decline~\cite{wu2023linkage}. +To identify the stabilized trends, we apply a filtering procedure consisting of 6 steps (depicted in Figure \ref{fig:filtering_pipeline}). + +\begin{figure}[h] + \centering + \includegraphics[width=0.85\linewidth]{figures/pipeline_v1.png} + \vspace{-0.45cm} + \caption{Filtering process: Extraction of stabilized patents.} + \label{fig:filtering_pipeline} +\end{figure} + +We begin by (1) extracting all patent documents (EP-A applications and EP-B granted patents) published by the EPO from 1978 to 2022. For each IPC subgroup code, we aggregate the annual count of documents to construct a univariate time series (one value per year which represents the innovation intensity in that domain). This process yields 73,739 IPC trends, each represented as a yearly time series of patent counts.\footnote{The IPC dataset will be made publicly available post-review for reproducibility.} Since patents may have multiple IPC codes, (2) we disambiguate trends by isolating subgroup-level IPCs and removing higher-level codes, slightly reducing the dataset to 73,298 trends. (3) A European patent provides exclusive rights for a maximum of 20 years from the filing date, as stated in Article 63(1) European Patent Convention (EPC)~\cite{di2002european}. This time frame reflects the legal lifecycle of a patent and defines the maximum period during which a technology can remain under protection. This ensures a balance between incentivizing innovation and eventually allowing public access to the invention once the patent expires. Therefore, each IPC must span a minimum of 20 years between the first and last recorded patent, which results in 58,891 IPCs. + +% \begin{figure}[ht] +% \centering +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/pipeline_v1.png} +% \caption{Filtering process: Extraction of stabilized patents.} +% \label{fig:filtering_pipeline} +% \end{minipage} +% \hfill +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} +% \caption{Comparison of different clustering algorithms.} +% \label{fig:clustering_algorithms} +% \end{minipage} +% \end{figure} + +(4) Each IPC trend must exhibit a distinct peak year, defined as the year with the highest number of published patents. To ensure trend stability, this peak must not fall within the last five years of the observed period, as trends peaking too recently may still be evolving and not fully reflect the technology lifecycle. The five-year window also accounts for the typical duration of the European patent grant process (3–5 years) \cite{guellec2000applications}, during which publication delays and pending examinations can cause incomplete or lagging data. By excluding recent peaks, we reduce the risk of analyzing immature trends, resulting in a refined dataset of 27,831 trends. (5) To filter out insignificant trends, each must have a peak of at least three patents. About 27\% of IPCs peak at only two patents, indicating limited activity and weak signals. This threshold reduces the dataset to 26,845 valid trends. + + +Lastly (6), to ensure trend stability, the last five years of each time series must not exhibit significant fluctuations. Specifically, the difference between the minimum and maximum values within this five-year window must not exceed 10\% of the trend’s peak value. This relative threshold is dynamic, as it scales with the magnitude of the trend peak, ensuring that larger trends can tolerate proportionally larger absolute fluctuations, while still maintaining relative stability. For example, a trend with a peak of 1000 allows for a fluctuation of up to 100, whereas one with a peak of 100 permits only 10, making the filter adaptive to varying trend sizes. The threshold of 10\%, determined through exploratory data analysis by iteratively examining the stability and coverage of retained trends at values ranging from 5\% to 25\%, is intentionally conservative. This aims to retain only those trends that have, with high confidence, fully completed their lifecycle and are no longer evolving. Looser thresholds retain more trends but introduce series with residual post-peak fluctuations, while stricter thresholds reduce the dataset to the point of insufficient training data. + +As a final result, the filtering process generates 2,774 stabilized IPC trends across all sections with the following distribution: A:10.9\%, B:17.5\%, C:20.4\%, D:4.3\%, E:2.6\%, F:7\%, G:21.1\%, H:16.2\%. + + +\subsection{Universal Patent Trend} +\label{universal_trend} + +The goal of this step is to find one or more universal patent trends that represent the set of all 2,774 stabilized trends to be able to divide them into phases and define them. The generation of the universal trend pattern consists of two stages. + +\begin{figure}[h] + \centering + \includegraphics[width=0.95\linewidth]{figures/bar_k_dbscan.png} + \vspace{-0.40cm} + \caption{Comparison of different clustering algorithms.} + \label{fig:clustering_algorithms} +\end{figure} + +First, to robustly determine whether multiple universal trend patterns exist---independent of any single algorithm's assumptions---we compare four complementary clustering methods: K-Means, K-Medoids~\cite{arora2016analysis}, K-Shape~\cite{paparrizos2015k}, and DBSCAN~\cite{deng2020dbscan}, using both DTW distances and Pearson correlation. Clustering quality is assessed with the Silhouette Score~\cite{shahapure2020cluster} in Figure \ref{fig:clustering_algorithms}, where value 1 on y-axis indicates perfect clustering and values near 0 or negative suggest poor separation. Across all methods and cluster counts (k = 2–6), the scores remain low, e.g., K-Medoids peaked at 0.03 for k = 2, K-Means at 0.16 for k = 2, and K-Shape at 0.05 for k = 3, while DBSCAN produces similarly modest results (max 0.09). These consistently low scores indicate weak cluster structures and limited separation between trends, suggesting that the dataset is best represented by a single dominant pattern. Consequently, we select \textit{k=1} as the optimal choice for describing the entire dataset. A single universal lifecycle pattern may not fully capture the diversity of domain-specific innovation dynamics. For instance, software technologies may follow shorter, faster cycles than pharmaceuticals or materials science. However, the consistently low silhouette scores across all clustering methods and cluster counts (k = 2--6) provide empirical evidence that, at the granularity of IPC subgroup patent counts, the data does not support multiple well-separated lifecycle archetypes. A single representative trend is therefore the best-supported characterization of the full dataset. +%, and the variability in phase duration and intensity across domains is captured at the annotation and modeling stages rather than through separate universal patterns. + + +In the second stage, we derive a universal trend pattern from the identified cluster. In doing so, we compare several Dynamic Time Warping (DTW) methods to aggregate trends into an optimal representative universal pattern~\cite{han2020pattern}. The DTW warping path describes the optimal alignment between two given time series sequences. Typically, one of the two trends is used as a reference, and the second trend is aligned to this reference trend. Our analysis reveals that while methods that use a random or preliminary average reference trend introduce bias or information loss, pairwise alignment mitigates reference bias, but results in increased smoothing due to $n^2$ pairings~\cite{asesh2021normalization}. + +To overcome the shortcomings of DTW, we utilize Dynamic Time Warping Barycenter Averaging (DBA)~\cite{petitjean2014dynamic,petitjean2011global}. DBA is an iterative algorithm that finds a representative \textit{average} time series (the barycenter) for a set of time series by minimizing the sum of their DTW distances to this average. In each iteration, it computes optimal DTW alignments between the current average and all input sequences, then updates the average by taking a weighted \textit{barycenter} of the points aligned to each position of the average. +This method begins by identifying the Medoid which serves as the initial reference with the lowest total DTW distance to all other trends. Figure \ref{fig:uni_trend} shows the universal trend generated by the DBA approach. +% This method avoids repeated averaging and best preserves the original trends information content. + +To validate the resulting trend, we also train a Gaussian Mixture Model (GMM) and an LSTM with stabilized trends using a random trend as starting point. +% a representative uniform trend was calculated from them. +A GMM is a probabilistic model that assumes that the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters, enabling soft clustering and density estimation~\cite{viroli2019deep}. The GMM with a single component is trained on all stabilized trends and visually compared with the DBA result. Furthermore, the LSTM model consists of two layers: one LSTM layer with 100 neurons and a dense output layer with a single neuron. We train the LSTM using the Mean Squared Error (MSE) and the Adam optimizer, with a learning rate of 0.001 over 50 epochs. +% The same input data was used for both training and prediction, and the output represents the unified trend. + +% \vspace{-0.7cm} +\begin{figure}[!htb] + \vspace{-1em} + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_dba_v1.png} + \vspace{-0.8cm} + \caption{DBA} + % \vspace{1cm} + \label{fig:uni_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_gmm_v1.png} + \vspace{-0.8cm} + \caption{GMM} + \label{fig:gmm_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_lstm_v1.png} + \vspace{-0.8cm} + \caption{LSTM} + % \vspace{-0.6cm} + \label{fig:lstm_trend} + \endminipage +\end{figure} +% \vspace{-0.5cm} + +Figures~\ref{fig:gmm_trend}~and~\ref{fig:lstm_trend} show the identified universal patent trends determined using the GMM and LSTM models (left to right). DBA and LSTM trends are mostly similar in their progression, with both trends initially flattening and then rising to a peak, after which the progression declines again. The GMM trend, on the other hand, exhibits a greater fluctuation than the other two trends. The main difference is the appearance of a major second, slightly lower peak. +We conclude that using the cluster, there exists a universal patent trend that describes every stabilized patent's behavior, independent of domain and time. + +\subsection{Definition of Patent Phases with the Universal Trend} +% \vspace{-0.6em} +\label{phase_definitions} + + +The goal of this step is to divide the universal trend into phases for later classification and prediction tasks. The phase definitions are derived empirically from the structural characteristics of the universal trend (Section~\ref{universal_trend}), rather than adopted from a predefined external framework or prior literature. Concretely, phase boundaries are identified as structural inflection points in the patent count series: the \textit{peak phase} corresponds to the year of maximum patent count; \textit{growth phases} are contiguous periods of sustained increase leading to a peak; \textit{decline phases} are contiguous periods of sustained decrease following a peak; and the \textit{plateau phase} is identified as the final stable low-activity period, whose existence is guaranteed for all retained trends by the filtering criterion in Section~\ref{extraction_stabilized_trends}. The \textit{pre-use phase} covers the initial low-activity period before the first sustained growth. Transitions between phases are marked at years where the direction of change shifts (i.e., at local minima and maxima of the count series), constrained to exclude single-year reversals so that only sustained directional changes define boundaries. The optional secondary cycle is identified when a renewed growth phase emerges after the primary decline before the plateau is reached. After establishing these structural rules, we manually inspect the 2,774 stabilized trends and annotate each year with its corresponding phase label. + +A stabilized IPC code typically goes through several distinct enumerated phases throughout its lifecycle as demonstrated in Figure~\ref{fig:ideal_trend}. The lifecycle consists of mandatory and \textit{optional} phases as follows: (1) pre-use phase; (2) growth phase; (3) peak phase; (4) decline phase (5a) \textit{optional} second growth phase; (5b) \textit{optional} second peak phase; (5c) \textit{optional} second decline phase; +% (6) optional plateau rise; +(6) plateau phase. +The (1) pre-use phase is marked by minimal patenting activity. This is followed by a (2) growth phase, characterized by a rising number of patent filings reflecting a growing interest in the technology. The lifecycle then reaches a (3) peak phase, where the maximum number of patents is published, indicating the peak point of the IPC. +After this peak, a (4) decline phase sets in, with patent activity decreasing. +Some IPC trends exhibit an optional cycle, representing a smaller, secondary wave of interest. About 17\% (467 out of 2,774) of the stabilized trends show this pattern, which include an (5a) optional second growth phase, an (5b) optional second peak phase, and an (5c) optional second decline phase. +% Beyond these, a small percentage (under 2\%) show an (6) optional plateau rise, where patenting activity slightly increases before stabilizing. +Finally, the IPC enters a (6) plateau phase, a stable level of activity, often near zero, signifying the end of its lifecycle. The duration and intensity (i.e., slope steepness or peak height) of each phase vary from trend to trend. Figure~\ref{fig:trends_example} shows some instances of stabilized IPCs in patent sections A, B, C, D, F, G and H with optional and primary phases that demonstrate the latter behavior. This step delivers the annotated technology phases of the stabilized trends. + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=0.95\linewidth]{figures/universal_trend_ideal.png} + \vspace{-0.45cm} + \caption{Idealized universal trend.} + \label{fig:ideal_trend} + \end{minipage} + % \hfill + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=0.95\linewidth]{figures/all_trends.png} + \vspace{-0.40cm} + \caption{Example stabilized trends.} + \vspace{-0.5cm} + \label{fig:trends_example} + \end{minipage} +\end{figure} + + +\subsection{Modeling of Patent Trends} +\label{modeling} + +The modeling of patent trends encompasses three interconnected experimental tasks using the annotated stabilized IPC trends: classification of lifecycle phases, forecasting of patent activity, and a combined pipeline that predicts when future phase transitions will occur. + +\textbf{Phase classification.} The classification task takes a trend as input and outputs the phase of the final year in the sequence, helping to identify where we are currently in the lifecycle. This is particularly valuable for innovation scouts, as it provides immediate orientation in evaluating the maturity of a technology. + +%\textbf{Classification overview.} +The task assigns one of the eight lifecycle phases defined in Section~\ref{phase_definitions} to each year of a patent trend. We formulate this as a \textit{sequence-to-sequence} (seq2seq) problem: given the full 45-year input series, the model produces a phase label for every timestep. This per-timestep labeling captures the temporal structure of lifecycles, including the precise timing of transitions between phases. To do this, we evaluate seven models across four model families including Transformer encoders~\cite{yuan2020self} , Long Short-Term Memory networks (LSTMs), Temporal Convolutional Networks (TCNs)~\cite{pelletier2019temporal}, as well as convolutional time series classifiers (InceptionTime, ResNet)~\cite{ismail2020inceptiontime} and the random convolutional kernel transform ROCKET~\cite{dempster2020rocket}. + +%\textbf{Classification models.} +The \emph{Transformer-seq2seq}, is a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. The \emph{LSTM-seq2seq} includes a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. +The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favor smooth, locally coherent phase transitions. +%explain the latter: the LSTM's gating mechanisms allow it to learn when to retain or forget information, which can help it model the gradual transitions between lifecycle phases, while the Transformer's attention mechanism may capture more complex, non-local dependencies but may require more data to learn smooth transitions effectively. +The \emph{TCN} is a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%The increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +%explain the latter: the TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%dialations and exponetional grow meaning +Additionally, \emph{InceptionTime} and \emph{ResNet} are convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolutional blocks along the temporal dimension which are adapted here for sequence-to-sequence output by incorporating a per-timestep classification head. +% ; although originally designed for univariate whole-series classification, they +We also consider two baselines: \emph{LSTM-Segment} a segment-level classification model and a non-neural time series classifier \emph{ROCKET}. The LSTM-Segment model, is a single-layer LSTM that predicts one majority phase label for the entire input sequence. Here, each 45-year trend is reduced to its most frequent lifecycle phase and the model predicts this single label for the whole sequence. This baseline tests whether the task can be solved by assigning one coarse label to the entire trend, or whether per-timestep sequence labeling is necessary to capture phase transitions. ROCKET is another baseline that applies a random convolutional kernel transform to generate high-dimensional feature representations, followed by a ridge classifier, and is designed for efficient single-label time series classification. + + + +\textbf{Patent activity forecasting.} The forecasting task predicts the future patent filing counts given a partial observation of the first $\ell$ years of a trend. This is valuable for supporting innovation scouts, as it enables identifying key lifecycle phases that may occur in the future, such as anticipating when a trend might peak or begin to decline. + +For this task, we investigate two prediction strategies: In \textit{direct} multi-step forecasting, the model outputs all remaining $45 - \ell$ future values in a single forward pass, avoiding iterative error accumulation. +%How does a single forward pass work (look at the code): the model takes the observed sequence of length $\ell$ as input and produces a fixed-length output vector of size $45 - \ell$, where each element corresponds to the predicted patent count for a future year. This approach allows the model to learn the joint distribution of future values conditioned on the observed history, potentially capturing complex temporal dependencies across the entire forecast horizon. +In \textit{autoregressive} (AR) forecasting, the model predicts one step at a time, appending each predicted value to the input sequence and iterating forward. Direct models avoid the error compounding inherent to autoregressive decoding at the expense of a more complex output distribution. To achieve this, we evaluate eleven models across four model families including Transformer-based architectures (standard Transformer, Informer, PatchTST, Autoformer)~\cite{zhou2021informer,huang2024long,wu2021autoformer}, recurrent models (LSTM), and convolutional models (TCN), each in both direct and autoregressive modes where applicable. We also add statistical baselines (Prophet, ETS, ARIMA)~\cite{ning2022comparative,jain2017study} that fit each series independently. +%serve as reference methods. + +%\textbf{Forecasting models.} +Among the neural direct forecasting models, \emph{Transformer-Direct} uses $d_\mathit{model}=64$, 4 attention heads, and 2 layers, while \emph{Informer} reduces computational complexity through ProbSparse self-attention, \emph{PatchTST} applies patch-based tokenization of the time series, \emph{LSTM-Direct} uses a 2-layer architecture with 128 hidden units, and \emph{TCN-Direct} relies on dilated convolutions with 64 filters. +%difference between informer, patchtst and transformer: Informer reduces the computational complexity of self-attention from $O(L^2)$ to $O(L \log L)$ by selecting only the most relevant queries based on their sparsity, making it more efficient for long sequences. PatchTST, on the other hand, divides the time series into fixed-size patches and treats each patch as a token, allowing it to capture local patterns effectively while still leveraging the Transformer's global attention mechanism. The direct forecasting models are trained to predict all future values in one forward pass, which allows them to learn complex temporal dependencies across the entire forecast horizon without being affected by error accumulation. +All of these models generate the full forecast horizon in a single forward pass. In contrast, the neural autoregressive models, namely \emph{LSTM-AR} and \emph{TCN-AR}, predict one step at a time and feed each prediction back into the model as input for the next step. This iterative strategy can better capture fine-grained temporal dynamics, although it is more vulnerable to error accumulation over longer forecasting horizons. \emph{Autoformer} represents a Transformer-based variant that incorporates built-in series decomposition into trend and seasonal components through auto-correlation attention, making it suitable for data with pronounced seasonal structure. In addition, the comparison includes statistical baselines such as \emph{Prophet}, which uses additive trend decomposition with changepoint detection, \emph{ETS}, which is based on exponential smoothing, and \emph{ARIMA}, which follows an autoregressive integrated moving average formulation. Unlike the neural approaches, these classical methods fit each time series independently and therefore cannot exploit cross-series patterns arising from the shared lifecycle structure. +%difference between autoformer and other transformer-based models: Autoformer incorporates a series decomposition mechanism that separates the input time series into trend and seasonal components using auto-correlation attention. This allows it to model complex temporal patterns more effectively, especially in data with strong seasonality, whereas standard Transformer-based models may struggle to capture such patterns without explicit decomposition. + + + +\textbf{Combined pipeline.} The combined task chains the forecasting and classification stages into a single end-to-end pipeline: given the first $\ell$ years of a technology's patent history, the forecaster predicts the remaining years and the classifier annotates the predicted series with lifecycle phase labels. The operationally relevant question for innovation scouts is not merely \textit{what} phase a technology will enter, but \textit{when} each phase transition will occur. To quantify this, we introduce the \textit{year-delta} metric, which measures the average temporal distance between predicted and true phase transition points. To this end, we evaluate all pairwise combinations of top-performing forecasters and classifiers in a combined pipeline, where the forecaster generates the future patent activity and the classifier predicts the corresponding lifecycle phases. + +%This setup simulates a real-world scenario where both forecasting and classification are necessary to anticipate future technology trajectories. To disentangle the sources of error in this pipeline, we also evaluate each classifier in \textit{oracle mode + +%, and additionally run each classifier in \textit{oracle mode} on ground-truth series. + + + +\section{Evaluation} + +In this section, we evaluate the proposed approach across the three mentioned interconnected tasks. After describing the experimental settings, we present the results for lifecycle phase classification. Then, we evaluate the performance of forecasting models in predicting future patent activity. Finally, we assess the combined performance of the classification and forecasting models in predicting future phase transitions. To aid interpretation: F1-macro above 0.75 on a severely imbalanced eight-class task reflects strong minority-class detection; a mean year-delta below two years is operationally sufficient for strategic planning horizons of 3--5 years; and forecasting error reductions above 50\% over a widely-used production baseline (Prophet) validate the practical benefit of cross-domain lifecycle modeling. + +%All experiments use the 2,774 stabilized IPC trends described in Section~\ref{extraction_stabilized_trends}, each spanning 45 annual patent counts (1978--2022). Training was performed on a single NVIDIA A6000 GPU (48\,GB VRAM). + +\subsection{Experimental Settings} +\label{ssec_experimental_settings} + +% \textbf{Dataset and phase labels.} Each of the 2,774 series is annotated with eight per-year lifecycle phase labels corresponding to the phases defined in Section~\ref{phase_definitions}: pre-use~(0), growth~(1), peak~(2), decline~(3), second growth~(4), second peak~(5), second decline~(6), and plateau~(7). The mandatory phases---pre-use, growth, peak, decline, and plateau---occur in every series, while the optional second cycle (phases 4--6) appears in approximately 17\% of technologies. The resulting class distribution is heavily skewed: the mandatory phases dominate per-timestep labels, while the optional second-cycle phases and the peak marker represent fewer than 5\% of all labels. The input feature tensor for classification is $(N, 45, 9)$: one raw patent count value per timestep plus an 8-dimensional IPC-section one-hot encoding (sections A--H), repeated identically at each timestep. Forecasting uses a $(N, 45, 10)$ tensor, adding a normalised observation-length indicator that encodes the fraction of the series observed so far. + + + +% \textbf{Classification models.} Seven architectures are evaluated, spanning four model families: +% \begin{itemize} +% \item \emph{Transformer-seq2seq}: a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. +% \item \emph{LSTM-seq2seq}: a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +% \item \emph{TCN}: a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The exponentially increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +% \item \emph{InceptionTime} and \emph{ResNet}: convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolution blocks across the temporal dimension. Originally designed for univariate whole-series classification, we adapt them for seq2seq output by applying a per-timestep classification head. +% \item \emph{LSTM-Segment}: a single-layer LSTM that outputs one majority phase label for the entire input sequence, serving as a segment-level baseline that tests whether per-timestep annotation is necessary. +% \item \emph{ROCKET}~\cite{dempster2020rocket}: a random convolutional kernel transform that generates a high-dimensional feature vector from random convolution kernels followed by a ridge classifier. ROCKET is designed for fast single-label time series classification and provides a non-neural baseline. +% \end{itemize} + + +% \textbf{Forecasting models.} Eleven models are evaluated across four families: +% \begin{itemize} +% \item \emph{Neural direct models}: Transformer-Direct ($d_\mathit{model}=64$, 4 heads, 2 layers), Informer (ProbSparse self-attention for reduced complexity), PatchTST (patch-based tokenisation of the time series), LSTM-Direct (2-layer, 128 hidden units), and TCN-Direct (dilated convolutions, 64 filters). All output the full forecast horizon in a single forward pass. +% \item \emph{Neural autoregressive models}: LSTM-AR and TCN-AR, which predict one step at a time and feed each prediction back as input for the next step. This iterative scheme can capture fine-grained temporal dynamics but is susceptible to error compounding over long horizons. +% \item \emph{Autoformer}: a Transformer variant with built-in series decomposition (trend + seasonal components) via auto-correlation attention. Designed for data with strong seasonal patterns. +% \item \emph{Statistical baselines}: Prophet (additive trend decomposition with changepoint detection), ETS (exponential smoothing), and ARIMA (autoregressive integrated moving average). These classical methods fit each series independently and cannot leverage cross-series patterns from the shared lifecycle structure. +% \end{itemize} + +%\textbf{Metrics.} +We adapt the evaluation metrics to the specific properties of each task. For \textbf{classification task}, the heavy class imbalance necessitates metrics that reflect performance on minority classes. Accuracy alone is insufficient because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. Macro-averaged F1 (F1-mac) gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Weighted F1 (F1-wgt) averages by class frequency, providing a more optimistic estimate that may be inflated by majority classes. Cohen's $\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. + + +For the \textbf{forecasting task}, the direct forecasting models utilize a binary mask (Masked MSE) that zeros out loss contributions from zero-padded output positions beyond the true forecast horizon. This prevents the model from learning to predict zeros at invalid positions. +%how it works: $\kappa = (p_o - p_e) / (1 - p_e)$ where $p_o$ is the observed agreement and $p_e$ is the expected agreement by chance. A $\kappa$ of 1 indicates perfect agreement, while 0 indicates agreement no better than random chance. what it captures: $\kappa$ captures the degree to which the model's predictions are better than random chance, accounting for class imbalance. A high $\kappa$ indicates that the model is effectively learning to distinguish between classes, while a low $\kappa$ suggests that the model's performance may be largely due to chance, particularly in imbalanced settings where majority classes dominate accuracy. how it differs from F1: while F1 focuses on the balance between precision and recall for each class, $\kappa$ provides an overall measure of agreement that accounts for the possibility of random correct predictions, making it a more robust metric in scenarios with significant class imbalance. how it complements F1: $\kappa$ complements F1 by providing a holistic measure of model performance that considers both the balance of precision and recall (F1) and the likelihood of achieving correct predictions by chance ($\kappa$), offering a more comprehensive evaluation of classification quality in imbalanced datasets. +Furthermore, mean absolute error (MAE) is the primary metric because stakeholders interpret results in terms of absolute patent numbers. Root mean squared error (RMSE) emphasizes large deviations and penalizes occasional extreme mispredictions more heavily than MAE. +%Symmetric mean absolute percentage error (sMAPE) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero, which is a frequent occurrence in patent data, where 51\% of series have a maximum count below~10 and is therefore reported for completeness but not as the primary ranking criterion. + + +\begin{table}[htb!] + \centering + \caption{Training configuration.} + \vspace{-0.9em} + \label{tab:train_config} + \footnotesize + \setlength{\tabcolsep}{4pt} + \begin{tabular}{llccl} + \toprule + Task & Model & Epochs & LR & Loss \\ + \midrule + Classification & Transformer-S2S & 60 & $10^{-3}$ & Weighted CE \\ + & LSTM-S2S / Segment & 50 & $10^{-3}$ & Weighted CE \\ + & TCN / InceptionTime & 50 & $10^{-3}$ & Weighted CE \\ + & ResNet & 50 & $10^{-3}$ & Weighted CE \\ + \midrule + Forecasting & Direct models & 40 & $10^{-4}$ & Masked MSE \\ + & AR models & 30 & $10^{-4}$ & MSE \\ + \bottomrule + \end{tabular} + % \vspace{-0.5em} +\end{table} + +For the \textbf{combined pipeline}, we utilize the year-delta metric as the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. Transition detection rate (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +We also introduce the oracle baseline which enables us to evaluate the classification performance on perfect forecasts. In oracle mode, the classifier is applied directly to the ground-truth future series rather than the forecasted series, providing an upper bound on classification performance given perfect forecasts. This allows for a causal decomposition of pipeline error into classification and forecasting-induced error. The decomposition quantifies the extent to which error arises from the classifier's inherent uncertainty (oracle year-delta: $\Delta_\mathrm{oracle}$) versus the additional error introduced by the forecaster (forecasting impact: $\Delta_\mathrm{pred} - \Delta_\mathrm{oracle}$). + +%difference between oracle and forecasting impact: The oracle baseline evaluates the classifier's performance on the true future series, providing a measure of how well the classifier can identify phase transitions when given perfect information. In contrast, the forecasting impact quantifies the additional error introduced by using forecasted series instead of true future series. By comparing the year-delta from the oracle baseline to that from the combined pipeline, we can isolate the contribution of forecasting errors to the overall performance degradation, thus understanding how much of the error is due to imperfect forecasts versus limitations in the classifier itself. + + +%explain TDR technically and with examples: TDR is calculated by identifying all true transition points in the forecast window where the phase label changes from one class to another. For each true transition point, we check if the predicted sequence contains the same class label anywhere within the forecast window. If it does, we count that transition as detected. The TDR is then computed as the ratio of detected transitions to the total number of true transitions. For example, if there are 10 true transition points in the forecast window and the model's predictions include the correct phase label for 7 of those transitions at any point in the forecast window, the TDR would be 0.7 or 70\%. This metric captures whether the model is at least predicting the correct phases somewhere in the future, even if it does not get the timing exactly right, which is crucial for evaluating models that may struggle with precise temporal alignment but still capture important lifecycle stages. + +% \begin{itemize} +% \item \emph{Classification}: We report \textbf{accuracy} (proportion of correctly labeled timesteps), \textbf{macro-averaged F1} (F1-mac, the unweighted mean of per-class F1 scores), \textbf{weighted F1} (F1-wgt, F1 averaged by class frequency), and \textbf{Cohen's~$\kappa$} (agreement corrected for chance). Accuracy alone is insufficient under class imbalance because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. F1-mac gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Cohen's~$\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. +% \item \emph{Forecasting}: \textbf{MAE} (mean absolute error) measures the average absolute deviation in patent counts and is the primary metric because stakeholders interpret results in terms of absolute patent numbers. \textbf{RMSE} (root mean squared error) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. \textbf{sMAPE} (symmetric mean absolute percentage error) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero---a frequent occurrence in patent data, where 51\% of series have a maximum count below~10---and is therefore reported for completeness but not as the primary ranking criterion. +% \item \emph{Combined pipeline}: \textbf{Year-delta}~($\Delta$) is the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. \textbf{Transition detection rate} (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +% \end{itemize} + + +\textbf{Training configuration.} All neural models introduced in \ref{modeling} are implemented in PyTorch and trained with the Adam optimizer on a single NVIDIA A6000 GPU. Table~\ref{tab:train_config} summarizes the training hyperparameters. All models use a CosineAnnealingLR learning rate scheduler that decays the learning rate smoothly from its initial value to near zero over the total epoch budget, enabling fine-grained parameter refinement in later epochs without manual step-wise LR tuning. The batch size is 32 for all models. Statistical forecasting baselines (Prophet, ETS, ARIMA) fit each series independently at inference time with default hyperparameters. + + +\subsection{Phase Classification} +\label{ssec:cls} + +% The classification task assigns one of eight lifecycle phases to each of the 45 timesteps in a patent count time series. Because the label distribution is heavily skewed toward the mandatory phases (pre-use, growth, decline, plateau), the central challenge is achieving reliable detection of the rare optional phases and the peak marker, which together constitute fewer than 5\% of all timestep labels but carry the most diagnostic information for lifecycle timing. +%\textbf{Classification settings.} +We utilize a 5-fold stratified cross-validation, stratified by each series' majority phase (the most frequent label across its 45 timesteps), yielding approximately 2,219 training and 555 test samples per fold. In addition, we apply sub-sequence augmentation by generating shorter prefix versions of each training sequence at different lengths. This expands the training set and exposes the models to partial lifecycle histories to improve robustness when only an early part of a trend is available. In doing so, sub-sequence augmentation generates left-padded prefix sub-sequences at stride~3 (prefix lengths 5, 8, 11, $\ldots$, 44) from each training sample, expanding the effective training set to approximately 33,285 samples per fold (${\sim}15\times$ expansion), while leaving the test set un-augmented. Also, to address the inherent class imbalance in lifecycle phase distributions, where majority phases such as pre-use, growth, and plateau dominate the label space, all models use class-weighted cross-entropy \cite{xu2020class}. Class-weighted cross-entropy loss inverts the frequency of each class in the training fold to compute weights, calculated as $w_c = N / (C \cdot n_c)$ where $n_c$ is the count of class $c$, $N$ is the total label count, and $C = 8$ is the number of classes. This weighting scheme forces the optimizer to allocate more gradient signal to minority phases, such as peaks and optional second-cycle phases, rather than concentrating on the majority classes, thereby improving the model's ability to learn from underrepresented lifecycle stages. + +Table~\ref{tab:cls_overall} reports classification results across all seven models. The Transformer-seq2seq achieves the best performance on every metric, with accuracy~0.880, F1-mac~0.785, and Cohen's $\kappa$~=~0.847. The multi-head self-attention mechanism enables direct comparison of any two timesteps in the 45-year series, allowing the model to learn long-range transition patterns, such as the temporal distance between growth and peak phases. LSTM-seq2seq follows at F1-mac~0.532, while TCN achieves F1-mac~0.498. Furthermore, the convolutional baselines InceptionTime (0.397) and ResNet (0.349) perform substantially worse. + +%The relatively moderate performance of TCN and InceptionTime suggests that while convolutional temporal models can capture local patterns, they struggle with the global structure and phase transitions that characterize technological life cycles. Similarly, the lower scores of ResNet-based approaches reinforce the assumption that architectures originally designed for spatial hierarchies do not transfer optimally to this type of structured temporal classification task. + +\begin{table}[htb!] + \centering + \caption{Classification results (5-fold CV, mean).} + \vspace{-0.9em} + \label{tab:cls_overall} + \footnotesize + \begin{tabular}{lcccc} + \toprule + Model & Acc. & F1-mac & F1-wgt & $\kappa$ \\ + \midrule + \textbf{Transformer-S2S} & \textbf{0.880} & \textbf{0.785} & \textbf{0.882} & \textbf{0.847} \\ + LSTM-seq2seq & 0.692 & 0.532 & 0.692 & 0.605 \\ + TCN & 0.634 & 0.498 & 0.657 & 0.546 \\ + InceptionTime & 0.585 & 0.397 & 0.599 & 0.478 \\ + ResNet & 0.575 & 0.349 & 0.569 & 0.452 \\ + \midrule + LSTM-Segment & 0.365 & 0.243 & 0.361 & 0.190 \\ + ROCKET & 0.395 & 0.224 & 0.374 & 0.204 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +Among the convolutional models, TCN (F1-mac~0.498) outperforms both InceptionTime (0.397) and ResNet (0.349) because its dilated causal convolutions explicitly preserve temporal ordering and enable capturing long-range dependencies more effectively than the symmetric convolutions of InceptionTime and ResNet, which disregard the directional time axis. ResNet exhibits higher cross-fold variance (F1-mac std$\approx$0.025) than other models, consistent with known instability of residual architectures under class reweighting on small datasets, where the random initialization of residual connections can lead to divergent training dynamics across folds. + + +The segment-level baselines (LSTM-Segment and ROCKET), produce F1-mac values of 0.243 and 0.224, demonstrating that assigning a single majority label to an entire 45-year series is fundamentally inadequate for patent lifecycle analysis, since it fails to capture the temporal continuity of patent sequences. The 29\% F1-mac gap between LSTM-seq2seq~(0.532) and LSTM-Segment~(0.243), which share the same recurrent architecture but differ only in output structure, confirms that per-timestep seq2seq modeling is essential for this task. Additionally, ROCKET’s reliance on random convolutional kernels without learned temporal representations is insufficient to capture the complex, multi-phase structure of patent lifecycles, leading to its poor performance relative to even the segment-level LSTM baseline. + +The gap between accuracy~(0.880) and F1-mac~(0.785) on the Transformer quantifies the residual challenge of class imbalance. Even with inverse-frequency class weighting and sub-sequence augmentation, the optional phases remain harder because they are structurally variable. Thereby, the secondary cycle can occur at different temporal positions and with varying amplitude across technologies, preventing the model from learning a single robust template. Nonetheless, the class-weighted loss and augmentation are effective, since without them, models tend to predict only majority phases, achieving high accuracy (${\sim}0.88$) but severely degraded F1-mac as minority phases receive zero recall. + +\begin{table}[htb!] + \centering + \caption{Per-class F1-mac (mean across 5 folds).} + \vspace{-0.9em} + %Phase names from Section~\ref{phase_definitions}; phases 4--6 are optional.} + \label{tab:cls_perclass} + \footnotesize + \begin{tabular}{clcc} + \toprule + Phase & Name & Trans.-S2S & LSTM-S2S \\ + \midrule + 1 & Pre-use & 0.898 & 0.768 \\ + 2 & Growth & 0.914 & 0.654 \\ + 3 & Peak & 0.767 & 0.377 \\ + 4 & Decline & 0.857 & 0.636 \\ + \midrule + 5a & Second growth\textsuperscript{*} & 0.682 & 0.178 \\ + 5b & Second peak\textsuperscript{*} & 0.594 & 0.343 \\ + 5c & Second decline\textsuperscript{*}& 0.633 & 0.416 \\ + \midrule + 6 & Plateau & 0.934 & 0.884 \\ + \bottomrule + \multicolumn{4}{l}{\textsuperscript{*}Optional phases, present in ${\sim}$17\% of trends.} + \end{tabular} + \vspace{-0.5em} +\end{table} + +Table~\ref{tab:cls_perclass} provides the per-class F1-mac scores breakdown for the two strongest seq2seq classifiers. The Transformer achieves $\geq$~0.857 on all mandatory phases and strong discrimination on the peak marker (phase~2: F1-mac~=~0.767). The plateau phase~(7) is the easiest to classify (F1-mac~=~0.934) because the terminal low-activity pattern is structurally unambiguous. Among the optional phases, second growth~(4) is the most detectable (F1-mac~=~0.682); second peak~(5b) and second decline~(5c) remain harder (F1-mac~=~0.594 and 0.633) because the secondary cycle has lower amplitude and shorter duration than the primary cycle, making its structural markers less distinctive. The LSTM-seq2seq shows consistent degradation on all phases relative to the Transformer, with the sharpest drop on second growth (F1-mac~=~0.178 vs.\ 0.682), suggesting that the LSTM's sequential processing cannot differentiate the secondary cycle from noise as effectively as the Transformer's global attention. + + + + +%The sub-sequence augmentation has the additional benefit of exposing models to partial observations of varying length during training, which builds robustness to the varying observation windows used in the combined pipeline evaluation (Section~\ref{ssec:combined}). + +%The principal limitation of the classification stage is the absence of a within-fold validation split; all classifiers train for a fixed epoch budget rather than using early stopping on held-out loss. While the CosineAnnealingLR scheduler mitigates overfitting by smoothly decaying the learning rate, monitoring a validation loss curve would provide a more principled stopping criterion. Additionally, the sub-sequence augmentation disproportionately inflates phase~0 (pre-use) labels because short prefix sub-sequences predominantly contain early-lifecycle timesteps; the class-weighted loss partially compensates but the inflated distribution may still bias the model toward pre-use predictions on ambiguous inputs. + +Overall, the results support the argument that patent phase classification is a high-level sequence understanding problem requiring both long-term dependency modeling and adaptive feature weighting. Also, the Transformer's superior performance suggests that its global attention mechanism is particularly effective at capturing the complex temporal dependencies and structural patterns in patent lifecycles, in comparison to recurrent and convolutional architectures that may struggle with long-range interactions and class imbalance. + +\subsection{Patent Activity Forecasting} +\label{ssec:fcst} + +% The forecasting task predicts future patent filing counts given a partial observation of the first $\ell$ years. The dominant modelling challenge is scale heterogeneity: the 2,774 series span a 700$\times$ range in maximum patent count (median per-series max: 9; mean: 36.5; maximum: 2,165), with 51\% of series having a maximum below 10 and only 7\% exceeding 100. Without normalisation, the MSE loss gradient is dominated by the handful of high-count series, and models learn to predict near-zero for the majority of low-activity technologies. + +% Per-series normalisation maps each series to the $[0, 1]$ interval by dividing by its observed maximum before training. This ensures that every technology contributes equally to the loss function regardless of its absolute count magnitude. At inference time, predictions are rescaled using the stored per-series maximum for evaluation against the original patent counts. This single preprocessing step yields an average 16.7\% MAE reduction across all eight neural models, making it the highest-impact intervention in the forecasting pipeline. For direct models, an additional masked MSE loss ignores zero-padded positions beyond the true forecast horizon, preventing the model from being penalised for predictions outside the valid output range. + +%\textbf{Forecasting settings.} +We apply a fixed 80/20 split yielding 2,219 training and 555 test IPC series. Each test series is evaluated at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$ years, producing 2,775 test instances with forecast horizons of 35 to 15 years respectively. Furthermore, to ensure that all series contribute equally to the mean squared error loss regardless of their absolute scale, we apply per-series normalization by dividing each time series by its observed maximum value before training. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss would be dominated by a few high-count series while the majority of low-activity technologies would receive negligible gradient signal. At prediction time, the forecasts are rescaled back to their original magnitude using the same maximum value. +%For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%Add masked MSE loss: For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. + +%A critical preprocessing step is per-series normalization, where each time series is divided by its observed maximum value before training and rescaled to the original magnitude at prediction time. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss is dominated by a few high-count series while the majority of low-activity technologies receive negligible gradient signal. + +%Per-series normalisation divides each time series by its observed maximum before training, ensuring that all series contribute equally to the mean squared error loss regardless of their absolute scale. At prediction time, the inverse transformation restores the original magnitude. + +%TODO +%For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. + +%Wxplain: the binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%TODO: Explain the rationale for this masking strategy and how it affects training dynamics. +%Autoregressive models are trained to predict one step at a time, using teacher forcing during training (feeding the true previous value) and autoregressive decoding at test time (feeding the model's own previous prediction). This allows them to capture fine-grained temporal dynamics but makes them susceptible to error compounding over long horizons, which is reflected in their performance metrics. +%Statistical baselines (Prophet, ETS, ARIMA) are fitted independently to each series using the \texttt{statsmodels} library, with hyperparameters selected via grid search on the training set. These models cannot leverage cross-series patterns and serve as reference points for the added value of learning from the shared lifecycle structure. + + +Table~\ref{tab:fcst_overall} reports forecasting results averaged across all five observation windows. + +%At first glance, an important observation regarding the sMAPE metric is that all neural models show sMAPE values between 141 and 154, which are close to the theoretical maximum of 200~\cite{chicco2021coefficient}. This does not indicate poor model quality but rather reflects a structural property of the data. Since 51\% of series have maximum counts below 10, many timesteps have true values near zero. For such timesteps, sMAPE approaches its upper bound ($\frac{2|y - \hat{y}|}{|y| + |\hat{y}|} \to 200$) even when the absolute error is negligible (e.g., predicting 1 when the truth is 0). + +%For instance, if the true patent count for a timestep is 0 and the model predicts 1, the sMAPE would be calculated as $\frac{2|0 - 1|}{|0| + |1|} = \frac{2}{1} = 200$. This illustrates how sMAPE can yield a value of 200 for small absolute errors when the true value is near zero, which is common in this dataset due to the prevalence of low-activity series. Therefore, while sMAPE is a useful scale-independent metric in many contexts, it is not informative for this particular dataset and should be interpreted with caution. + +%The latter is furthur intensified by per-series normalization, where the model often produces predctions for low activity series that are non-zero in the normalized space but correspond to near-zero counts in the original scale, pushing sMAPE values into the high range. Therefore, we focus on MAE as the primary metric and only report sMAPE for completeness, acknowledging its limitations in this context. + +Transformer-Direct achieves the lowest MAE~(7.78), with the top five neural models concentrated within a narrow 0.07~MAE band (7.78--7.85). Given that per-series standard deviations range from $\sigma \approx 28$ to $\sigma \approx 33$, these inter-model differences are not statistically distinguishable. +%; architecture choice among the top five is effectively equivalent in absolute forecast accuracy. +This convergence indicates that, once per-series normalization levels the playing field, model capacity rather than architecture is the binding constraint for this dataset size. + +\begin{table}[htb!] + \centering + \caption{Forecasting results (mean over all 5 time windows).} + \vspace{-0.5em} + \label{tab:fcst_overall} + \footnotesize + \begin{tabular}{lccc} + \toprule + Model & MAE$\downarrow$ & RMSE$\downarrow$ \\ %& sMAPE$\downarrow$ \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{7.78} & 10.54 \\ %& 148.0 \\ + Informer & 7.79 & 10.57 \\ %& 148.8 \\ + PatchTST & 7.81 & \textbf{10.52} \\ %& 145.8 \\ + LSTM-Direct & 7.85 & 10.55 \\ %& 141.8 \\ + TCN-Direct & 7.85 & 10.58 \\ %& 146.1 \\ + TCN-AR & 8.04 & 10.67 \\ %& 153.9 \\ + LSTM-AR & 8.32 & 11.19 \\ %& 153.2 \\ + Autoformer & 9.21 & 11.87 \\ %& 149.0 \\ + \midrule + Prophet & 17.89 & 20.66 \\ %& 147.5 \\ + ETS & 20.05 & 23.52 \\ %& 147.8 \\ + ARIMA & 21.12 & 24.90 \\ %& 155.6 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +Autoformer is the weakest neural model (MAE~9.21) because its built-in series decomposition separates the input into trend and seasonal components via moving-average filters. Annual patent data is inherently non-seasonal, where each datapoint represents one year, with no repeating sub-annual cycle. Therefore, Autoformer's decomposition adds unnecessary complexity without capturing meaningful structure. Also, autoregressive models (LSTM-AR: 8.32, TCN-AR: 8.04) lag behind their direct counterparts because autoregressive decoding accumulates prediction errors at each step. For LSTM-Direct versus LSTM-AR, the MAE gap is 0.47 (7.85 vs.\ 8.32), and the direct variant trains approximately 22$\times$ faster because it avoids the iterative loop of feeding predictions back as input for the next step. + +The statistical baselines are substantially weaker: Prophet (17.89), ETS (20.05), and ARIMA (21.12) produce MAE values 2.3--2.7$\times$ higher than the best neural model. These methods fit each series independently, using trend decomposition heuristics (Prophet) or autoregressive error structure (ARIMA, ETS), and cannot exploit the shared lifecycle pattern that the neural models learn from training on samples simultaneously. + +%MAE quantifies the average absolute deviation between the predicted and true patent counts across all forecasted timesteps. An MAE of 7.78 means that, on average, the model's predictions deviate from the actual patent counts by approximately 7.78 patents per year. Given that the median maximum count per series is 9, this indicates that while the model captures general trends, there is still a significant absolute error relative to the scale of many series, particularly those with low activity. This underscores the inherent difficulty of forecasting patent activity, especially for technologies with small patent counts where even a few patents can represent a large percentage error. +% + + +%The Transformer's ascent to the top forecasting rank (from 3rd place without normalisation in preliminary runs to 1st place with normalisation) +%The Transformer's performance (1st place) is explained by its attention mechanism's sensitivity to input scale. The dot-product attention scores $\mathbf{Q}\mathbf{K}^T / \sqrt{d_k}$ are computed across all 45 positions on normalized data, which prevents the model from being dominated by a few high-count series and allows it to learn patterns across the full spectrum of activity levels. +%when input magnitudes vary by 700$\times$, +%The key vectors for high-count series produce large attention scores, that effectively masking the contributions of low-activity series during training. +%In contrast, the TCN's dilated convolutions are local operators that process each timestep's neighborhood independently. Also, the convolution kernel weights adapt to relative patterns regardless of absolute scale, explaining why TCN was the strongest model before normalisation but benefited comparatively less from it. + + +\begin{table}[htb!] + \centering + \caption{MAE by time window $\ell$. Top-5 neural models and Prophet baseline.} + \vspace{-0.5em} + \label{tab:fcst_pl} + \footnotesize + \setlength{\tabcolsep}{4pt} + \begin{tabular}{lccccc} + \toprule + Model & $\ell$=10 & $\ell$=15 & $\ell$=20 & $\ell$=25 & $\ell$=30 \\ + \midrule + Transformer-Dir. & 9.67 & 8.55 & 8.02 & 7.02 & \textbf{5.66} \\ + Informer & 9.72 & 8.62 & 8.00 & \textbf{6.91} & 5.70 \\ + PatchTST & 9.65 & 8.60 & \textbf{7.95} & 7.03 & 5.80 \\ + LSTM-Direct & \textbf{9.56} & 8.64 & 8.11 & 7.11 & 5.82 \\ + TCN-Direct & 9.58 & \textbf{8.45} & 7.99 & 7.14 & 6.08 \\ + \midrule + Prophet & 15.59 & 19.76 & 18.90 & 17.50 & 17.72 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + + +Table~\ref{tab:fcst_pl} breaks down MAE by observation window. All neural models improve monotonically as $\ell$ grows (Transformer-Direct drops from MAE~9.67 at $\ell$=10 to 5.66 at $\ell$=30, a 41\% reduction). This is not overly surprising, since longer observation windows provide more context about the lifecycle trajectory and simultaneously reduce the forecast horizon (from 35 to 15 years). At $\ell$=10, where the model has observed only 22\% of the series and must extrapolate 35 years, all five top models converge near MAE~$\approx$~9.6. This convergence at long horizons suggests that the choice of model architecture has minimal impact on forecast accuracy, and all models are effectively operating at the same performance floor determined by the data's intrinsic uncertainty. +%---the intrinsic difficulty floor for extreme extrapolation. +At $\ell$=30, inter-model spread widens (5.66--6.08), suggesting that with enough context, architectural differences begin to matter. Here, the Transformer's global attention can integrate information from all 30 observed positions simultaneously, which gives it an advantage over the TCN's local receptive field for capturing the overall shape of the lifecycle. + +\begin{table*}[htb!] + \centering + \caption{Pipeline combinations on test set (mean over 5 time windows), sorted by mean year-delta~$\Delta$.} + % p50--p95: percentiles of per-sample year-delta means. Oracle~$\Delta$: classifier error on ground-truth input. Fcst.\ imp.: additional error from forecast noise.} + \vspace{-0.5em} + \label{tab:combined_top} + \footnotesize + \setlength{\tabcolsep}{3pt} + \begin{tabular}{llccccccccc} + \toprule + Forecaster & Classifier & $\Delta$ mean & p50 & p70 & p80 & p90 & p95 & TDR & Oracle $\Delta$ & Fcst.\ imp. \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{LSTM-seq2seq} & \textbf{1.754} & \textbf{0.650} & \textbf{1.560} & \textbf{2.367} & 4.240 & 6.093 & 0.724 & 1.051 & 0.703 \\ + TCN-Direct & LSTM-seq2seq & 1.793 & 0.684 & 1.647 & 2.467 & 4.233 & 6.031 & 0.728 & 1.051 & 0.742 \\ + Informer & LSTM-seq2seq & 1.803 & 0.667 & 1.613 & 2.441 & 4.406 & 6.274 & 0.725 & 1.051 & 0.752 \\ + PatchTST & LSTM-seq2seq & 1.817 & 0.714 & 1.670 & 2.527 & 4.371 & 6.104 & 0.724 & 1.051 & 0.766 \\ + LSTM-Direct & LSTM-seq2seq & 1.821 & 0.750 & 1.720 & 2.539 & 4.371 & 6.000 & 0.728 & 1.051 & 0.769 \\ + LSTM-Direct & TCN & 1.906 & 1.029 & 1.949 & 2.808 & 4.250 & 6.000 & \textbf{0.856} & 0.986 & 0.920 \\ + \midrule + Prophet & LSTM-seq2seq & 2.859 & 1.500 & 3.067 & 4.453 & 6.433 & 8.461 & 0.628 & 1.051 & 1.808 \\ + \midrule + Transformer-Dir. & Transformer-S2S & 3.026 & 0.867 & 2.640 & 4.600 & 7.374 & 10.135 & 0.796 & 0.371 & 2.655 \\ + Prophet & Transformer-S2S & 4.553 & 3.063 & 5.267 & 6.800 & 9.760 & 12.600 & 0.700 & 0.371 & 4.182 \\ + \bottomrule + \end{tabular} +\end{table*} + +As for the baseline, Prophet's MAE is non-monotone across $\ell$ (rising from 15.6 to 19.8 between $\ell$=10 and $\ell$=15), indicating that its trend-decomposition heuristic extracts misleading changepoints when given additional data. This sensitivity to input length is a known weakness of Prophet's piecewise-linear trend model, which tends to align with seasonal trends \cite{9449743}. + + +%The principal limitation of the forecasting stage is that all models are trained exclusively on ground-truth inputs. When predictions from these models feed into the downstream classifier in the combined pipeline, the classifier encounters a distribution it was never trained on---forecasted series with smoothed peaks, shifted inflection points, and accumulated prediction noise. This train-test distribution mismatch is the dominant source of pipeline error, as quantified in the following section. + + +\subsection{Combined Lifecycle Prediction Pipeline} +\label{ssec:combined} + + + + + +The combined pipeline answers the operationally relevant question for technology scouts: given only the first $\ell$ years of a technology's patent history, \textit{when} will each future lifecycle phase transition occur? To this end, the forecaster extends the partial observed series, the classifier annotates the extended series with lifecycle phase labels, and the year-delta metric quantifies the temporal precision of the resulting prediction. + +Like previous tasks, we enforce an 80/20 split. Classifiers are trained exclusively on the 2,219 training IPCs and the combined pipeline is evaluated on the 555 held-out test IPCs and at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$, yielding 2,775 evaluation instances (555~IPCs~$\times$~5 window lengths). Forecaster predictions are also computed from the same held-out IPC set. +%This protocol differs from the cross-validation used for standalone classification, where each fold's test data is drawn from the same population as other folds' training data; the holdout design provides an unbiased estimate of pipeline performance on technologies the classifier has never encountered during training. +Based on previous results, we evaluate all 30 pairwise combinations of the top-5 neural forecasters (ranked by MAE) and top-5 classifiers (ranked by F1-mac), plus Prophet as the forecasting baseline. +For each combination, we compute the year-delta $\Delta$ per test instance and report the mean, median (p50), and upper percentiles (p70–p95) across all 2,775 test instances, as well as oracle year-delta, forecasting impact and Transition Detection Rate (TDR) as described in Section~\ref{ssec_experimental_settings}. While the mean reflects average temporal deviation, p50 provides an outlier-robust central tendency, and the upper percentiles reveal tail behavior where rare phase transitions cause large prediction misalignment. We also include the baseline combination of Prophet forecaster with LSTM-seq2seq classifier for reference, as well as the two low-performing combinations from previous experiments (Transformer-Direct + Transformer-S2S and Prophet + Transformer-S2S) to demonstrate the impact of classifier choice on pipeline performance. + + +Table~\ref{tab:combined_top} presents the top selected pipeline configurations sorted by mean year-delta. The best configuration is \textbf{Transformer-Direct paired with LSTM-seq2seq}, achieving a mean $\Delta$~=~1.754~years and a median (p50) of 0.650~years. The median indicates that for at least half of all 2,775 test instances, the predicted lifecycle phase transition deviates from the true transition by less than seven months. However, the wide gap between p50 and p95 in the percentile distribution underscores the skewness of the error profile. While median errors remain below one year for the best configurations, the upper percentiles (p90 and p95) increase substantially, reaching up to 4.4 and 6.3 years. This gap suggests that rare but structurally complex lifecycle patterns such as optional or secondary cycles are not consistently captured by the pipeline. Notably, the choice of forecaster has a low impact on the median error (p50: 0.650--0.750) but a higher influence on the tail (p90: 4.233--4.406; p95: 6.000--6.274), suggesting that forecast noise primarily affects predictions of hard cases (lifecycles with optional phases) rather than typical ones. From an application perspective, this implies that risk-sensitive technology scouting use cases should consider high-percentile metrics in addition to mean or median error. Furthermore, the significant tail error (p95 > 6 years) suggests that while the pipeline excels at standard S-curve lifecycles, it struggles with re-emergent or stagnant technologies. This indicates that patent-based forecasting may require additional external variables (e.g., R\&D funding or citation networks) to resolve high-uncertainty cases. + + + + +Despite differences in the underlying architectures of the top five configurations, they are all paired with LSTM-seq2seq and are tightly clustered in mean $\Delta$ (1.754--1.821) and p50 (0.650--0.750), with more variations in their p90 and p95 (p90: 4.233--4.406; p95: 6.000--6.274). This reflects a consistent ability to predict the timing of primary-cycle transitions with good precision. The results of the table indicate that for a technology scout with 10--30 years of patent history, the best pipeline predicts the timing of future lifecycle transitions with an average error of less than two years and a median below one year. +%; risk-sensitive applications should consult p90/p95 to characterize worst-case temporal uncertainty. + + +Also, the comparison between classifier architectures reveals a clear trade-off between temporal precision and detection breadth. While LSTM-seq2seq consistently achieves lower Transition Detection Rate (TDR) across settings (0.724--0.728), the TCN classifier attains the highest (TDR~=~0.856), which represents the fraction of test instances where the predicted transition class appears anywhere within the forecast window, regardless of timing precision. This suggests that TCN-based pipelines are more likely to identify the occurrence of a transition within the forecast window, with reduced temporal accuracy. In contrast, LSTM-seq2seq produces sharper temporal predictions but may miss some transitions entirely. +% The divergence between the TCN and LSTM-seq2seq classifiers suggests a Pareto frontier between temporal localization and occurrence detection. +Furthermore, the TCN’s superior TDR (0.856) indicates it is a more reliable "alarm" for the existence of a transition, whereas the LSTM-seq2seq is a more precise "clock" for its timing. + +The oracle decomposition from the table also provides insight into how errors propagate through the pipeline. As for the best-performing configuration (Transformer-Direct + LSTM-seq2seq), approximately 40\% of the total error is due to the forecaster (forecasting impact $= 0.703$), while the remaining 60\% originates from the classifier ($1.051 + 0.703 = 1.754$). This ratio is consistent across the top neural forecasters, suggesting that classification constitutes the dominant source of error due to the imbalance in the identified lifecycle phases. + +% In contrast, the Transformer-S2S classifier achieves a substantially lower oracle error ($\Delta_\mathrm{oracle} = 0.371$), yet performs markedly worse in the full pipeline (mean $\Delta \geq 3.026$). This discrepancy indicates a higher sensitivity to forecast noise, whereas high-capacity models trained on ground-truth inputs degrade under distribution shift. + +Furthermore, the experimental results yield several critical insights into the design of technology forecasting systems, regarding the interplay between generative forecasting and discriminative classification. A primary observation is the failure of the Transformer-S2S classifier within the combined pipeline. Despite achieving the lowest Oracle error ($\Delta = 0.371$) in the combined pipeline and scoring the highest in classification task (F1-macro: 0.785), its performance collapses when integrated with a forecaster, resulting in a mean $\Delta \geq 3.026$. This discrepancy suggests that attention-based classifiers could be significantly more influenced by covariate shift, where they tend to overfit to the precise, "clean" temporal patterns of ground-truth patent histories and lack the necessary inductive bias to remain stable when processing the smoothed or noisy trajectories typical of neural forecasters. + +In contrast, the LSTM-seq2seq classifier consistently shows resilience in the results. Architecturally, the recurrent nature of the LSTM serves as a temporal regularizer. Unlike the Transformer-S2S, which relies on global self-attention across the entire sequence, the LSTM’s state-based transition mechanism forces a sequential dependency that possibly helps it maintain a coherent lifecycle trajectory even when the forecaster introduces point-wise fluctuations or noise. This positions the LSTM not as a labeler, but as a noise filter that effectively preserves the logical progression of technology phases. + +%Also, the success of the Transformer-Direct and LSTM-seq2seq pairing suggests a "hybrid-best" paradigm for technology scouting. This configuration leverages high-capacity global attention in the forecasting stage to capture long-range dependencies and complex patenting trends, followed by a more constrained, sequential annotator to enforce the chronological rigor of lifecycle transitions. + +% Finally, the observation that the top five neural forecasters—ranging from PatchTST to Informer—produced nearly identical median errors (p50) when paired with the same classifier indicates a decoupled optimization ceiling in univariate patent forecasting. This suggests that the current bottleneck in temporal precision is not the forecasting architecture itself, but rather the sensitivity of the classification interface. From a system-design perspective, these results imply that future improvements in pipeline accuracy are more likely to stem from classifier calibration and uncertainty-aware forecasting (e.g., probabilistic outputs) rather than the development of incrementally more complex point-forecast architectures. + + + + +% \begin{table*}[htb!] +% % \centering +% \caption{Pipeline results aggregated by classifier (mean over all 6 forecasters). p50--p95: percentiles of per-sample year-delta means. FC~imp.: forecasting impact ($\Delta_\mathrm{pred}-\Delta_\mathrm{oracle}$).} +% \vspace{-0.5em} +% \label{tab:combined_cls} +% \footnotesize +% \setlength{\tabcolsep}{3.5pt} +% \begin{tabular}{lcccccccc} +% \toprule +% Classifier & $\Delta$ mean & p50 & p70 & p80 & p90 & p95 & Oracle $\Delta$ & FC~imp. \\ +% \midrule +% \textbf{LSTM-seq2seq} & \textbf{1.974} & \textbf{0.828} & \textbf{1.879} & \textbf{2.799} & 4.676 & 6.494 & 1.051 & 0.923 \\ +% TCN & 2.116 & 1.097 & 2.209 & 3.158 & 4.720 & 6.688 & 0.986 & 1.130 \\ +% InceptionTime & 2.902 & 1.483 & 3.139 & 4.562 & 6.840 & 8.968 & 1.399 & 1.503 \\ +% Transformer-seq2seq & 3.250 & 1.300 & 3.108 & 4.881 & 7.663 & 10.406 & 0.371 & 2.879 \\ +% ResNet & 3.333 & 1.830 & 3.584 & 5.009 & 7.466 & 9.847 & 1.561 & 1.772 \\ +% \bottomrule +% \end{tabular} +% \vspace{-0.5em} +% \end{table*} + + +% To investigate the relative influence of classifier versus forecaster choice on pipeline performance, we aggregate results by classifier across all six forecasters (five neural and Prophet) as shown in Table~\ref{tab:combined_cls}. The spread across classifiers in mean year-delta (1.36~years: $\Delta$~=~1.97 to 3.33) substantially exceeds the spread across the five neural forecasters (0.10~years: $\Delta$~=~2.49 to 2.59), confirming that \emph{classifier choice governs pipeline performance far more than forecaster choice}. LSTM-seq2seq ranks first in mean year-delta (1.974) and p50 (0.828), while TCN follows at mean 2.116 and p50 1.097. The percentile columns further clarify this distributional difference: across p50, p70, and p80, LSTM-seq2seq consistently shows lower values (p50~=~0.828, p70~=~1.879, p80~=~2.799) than TCN (p50~=~1.097, p70~=~2.209, p80~=~3.158), indicating that LSTM-seq2seq more consistently places transitions close to their true positions across the bulk of the distribution. The p90 and p95 gap between these two classifiers is modest (4.676 vs.\ 4.720 at p90; 6.494 vs.\ 6.688 at p95), confirming broadly similar worst-case tail exposure among the two strongest performers. + +% The most striking finding in Table~\ref{tab:combined_cls} is the performance inversion between Transformer-seq2seq and the two strongest pipeline classifiers. In the standalone classification task (Table~\ref{tab:cls_overall}), the Transformer leads by a wide margin (F1-mac~0.785 vs.\ 0.498 for TCN and 0.532 for LSTM-seq2seq). Yet in the combined pipeline on held-out data it ranks fourth among five classifiers ($\Delta$~=~3.250~years), substantially worse than both LSTM-seq2seq (1.974) and TCN (2.116). The inversion is amplified at the upper tail: the Transformer'''s p90 (7.663) and p95 (10.406) far exceed those of LSTM-seq2seq (4.676; 6.494) and TCN (4.720; 6.688). The oracle decomposition explains this precisely: the Transformer achieves the lowest oracle~$\Delta$~(0.371)---confirming superior temporal precision on clean held-out series---but carries by far the largest forecasting impact (2.879), meaning forecast noise alone adds nearly 2.9~years of mean error and drives the p95 above ten years. + +% The mechanism lies in the sharpness of the Transformer'''s learned representations. Its self-attention associates precise input shapes---peak amplitudes, transition slopes, inter-phase timing ratios---with lifecycle labels. This precision translates to high accuracy on ground-truth series. But when forecasted series replace the ground truth, these features are perturbed: peaks are smoothed or shifted by one to two years, secondary cycle amplitudes are reduced, and transition inflection points are displaced. The Transformer'''s confidence collapses at perturbed positions, causing cascading misclassification in surrounding timesteps and inflating the upper tail sharply (p95~=~10.406). The LSTM'''s gated hidden state and the TCN'''s dilated convolutions produce smoother, more conservative decision boundaries that degrade gracefully under perturbation. Their forecasting impacts (0.923 and 1.130 respectively) are less than 40\% of the Transformer'''s (2.879), and their p95 values remain within 6.5--6.7~years, confirming fundamentally higher noise robustness across the full error distribution. The practical implication is direct: \emph{standalone classification accuracy is an unreliable proxy for combined pipeline performance}, particularly under tail-risk evaluation. Pipeline model selection must prioritize noise robustness over clean-data metrics. + + +% The neural forecasters collectively reduce mean year-delta by 27.7\% relative to Prophet (2.552 vs.\ 3.530, averaged across all classifier combinations), confirming the practical value of cross-series learned lifecycle representations over per-series statistical decomposition. The p95 gap between the neural group and Prophet is approximately 2.07~years (8.135 vs.\ 10.210), a practically important contrast for high-risk forecast scenarios where late transition calls carry severe cost. However, marginal variation in mean year-delta across the five neural forecasters is only 0.10~years (2.49--2.59), negligible relative to the 1.36-year classifier-driven spread. This asymmetry implies that forecasting improvements alone yield sharply diminishing pipeline returns as long as classifier noise-sensitivity remains the dominant error source. + +% For the best pipeline configuration (Transformer-Direct + LSTM-seq2seq), year-delta decreases monotonically with observation window length: from $\Delta$~=~1.951 at $\ell$=10 to $\Delta$~=~0.968 at $\ell$=30, a 2.0$\times$ improvement in the mean. TDR rises in parallel from 0.609 to 0.874. The upper tail likewise narrows substantially: p90 improves from 4.207 at $\ell$=10 to 2.541 at $\ell$=30, and p95 from 6.248 to 4.400~years, demonstrating that longer observation windows benefit not only central tendency but also tail-risk reduction. This improvement is driven primarily by forecast quality: as the observation window grows, the remaining forecast horizon shrinks and the model has more lifecycle context, producing predicted series that more closely resemble the ground truth. At $\ell$=30 the median (p50) breaks below one year ($\Delta_{\mathrm{p50}}$~=~0.267), establishing approximately 25--30~years of historical patent data as the practical threshold above which sub-year temporal precision becomes reliably achievable at the median. + +% \textbf{Summary of key experimental findings.} The evaluation produces three principal contributions. \emph{Classification}: the Transformer-seq2seq achieves F1-mac~0.785 on the eight-phase lifecycle labeling task using only raw patent counts and IPC-section one-hot encoding, with no hand-crafted features or domain-specific preprocessing. All mandatory phases are classified with F1~$\geq$~0.857, and even the structurally variable optional second-cycle phases reach F1 between 0.594 and 0.682---establishing reliable phase detection as a realistic baseline for domain-agnostic deployment. \emph{Forecasting}: after per-series normalisation, the top five neural models converge to within 0.07~MAE (7.78--7.85), reducing error by 57\% over Prophet and demonstrating that preprocessing quality dominates architecture selection; any of these models can therefore be substituted with negligible accuracy loss. \emph{Combined pipeline}: under a strict holdout split on 555 unseen IPC subclasses, the best configuration (Transformer-Direct + LSTM-seq2seq) achieves a mean year-delta of 1.754~years and a median of 0.650~years, with the median falling below one year at $\ell$=30 ($\Delta_{\mathrm{p50}}$~=~0.267~years). Percentile analysis exposes a heavy-tailed error profile (p80~=~2.367, p90~=~4.240, p95~=~6.093) driven by rare optional secondary-cycle phases; the oracle decomposition locates the primary bottleneck in classifier noise-robustness, not raw forecasting precision. + +% Overall, the results provide innovation coaches aa fully automated, reproducible alternative to qualitative hype-cycle assessments. A practitioner with 25 or more years of EPO filing history for a target IPC domain can apply the pipeline without any domain-specific feature engineering and expect, at the median, to locate the next lifecycle phase transition within eight months of its true occurrence---precision sufficient for strategic planning and investment-timing decisions. For the 80\% majority of evaluated technologies the transition is predicted within 2.4~years, giving stakeholders a concrete, data-driven planning window. The 57\% reduction in forecasting error over the Prophet baseline, a tool in widespread operational use, validates the benefit of cross-domain lifecycle modeling and implies that replacing per-series statistical baselines with the proposed neural forecaster yields immediate accuracy gains without additional data collection. At the component level, the oracle decomposition offers an actionable diagnostic for system operators: it separates forecasting error from classification error, enabling targeted investment when improving the pipeline---currently pointing toward noise-robust classifier training as the single highest-leverage intervention. + +%Overall, the results indicate that the combined pipeline can achieve high temporal precision for the majority of cases, with median errors below one year. However, performance is constrained by classifier robustness and degrades in the presence of rare or irregular lifecycle patterns. + +Overall, the results show that the proposed pipeline can achieve high temporal precision for the majority of cases, with median errors below one year. Practically, this framework enables more proactive R\&D resource allocation by quantifying transition timing rather than relying on qualitative intuition. A practitioner with 25 or more years of EPO filing history for a target IPC domain can apply the pipeline without any domain-specific feature engineering and expect, at the median, to locate the next lifecycle phase transition within 7 months (0.650 years) of its true occurrence. + + +%generate depth analysis of the contributions in favor of model selection and architectural differences and implications for the performance of the combined pipeline. + +\section{Conclusion} + + +Identifying emerging technologies---ideally \textit{during} their growth phase, before their peak is reached---is essential for effective innovation scouting. Unlike retrospective analyses that require a completed lifecycle, our pipeline is designed for \textit{partial observations}: applied with as few as 10 years of patent history, it classifies a technology's current lifecycle phase and forecasts future transition timing, enabling proactive scouting from the early growth stage. Training on completed (stabilized) trends provides reliable ground truth, while sub-sequence augmentation (Section~\ref{ssec:cls}) ensures the models generalize to partial observations of actively evolving technologies. In this work, we propose a systematic approach for technology forecasting based on the patent data from the European Patent Office (EPO). We first detect a universal lifecycle pattern across multiple IPC domains, and after finding stabilized trends and annotating their lifecycle phases, we perform modeling via various classification and time series forecasting models to evaluate their performance. + +The results yield three principal findings. First, a Transformer-seq2seq classifier achieves an F1-macro of 0.785 on the eight-phase labeling task using only raw patent counts and IPC-section encodings, demonstrating that lifecycle phases are identifiable using solely raw patent trend data. Second, forecasting models using five neural architectures on time series data converge to within 7.85 MAE after per-series normalization, outperforming the Prophet baseline by 57\%. Third, at the combined pipeline level, the best configuration (Transformer-Direct paired with LSTM-seq2seq) shows that lifecycle phase transitions are predictable with good precision of a mean year-delta of nearly 1.7 years and a median year-delta of 0.650 years (within seven months) across all test instances. This practically means that 25–30 years of historical patent data offer a practical precision threshold for innovation scouting. + +% Several limitations of the current work merit acknowledgment. First, our framework is built exclusively on EPO patent data (EP-A and EP-B documents), which covers European innovations and is therefore not globally representative; extending the approach to other major patent offices such as the USPTO or WIPO is a natural next step. Second, our focus on \textit{stabilized trends}---IPC series that have completed their full lifecycle---deliberately excludes emerging or currently active technologies with incomplete patent histories. While this ensures training data quality and avoids label noise, it means the pipeline has not been directly evaluated on early-stage trends where forecasting need is often greatest; adapting to incomplete lifecycle scenarios is a key direction for future work. Third, as stated throughout this paper, we analyze patent count time series exclusively and do not mine the textual content of patent documents. Incorporating semantic signals from claims, abstracts, or citation networks could enrich the representation of innovation dynamics beyond what count data reveals. Fourth, faster information sources such as news articles, social media, and scientific publication databases are not considered here; their integration could provide earlier signals of technology emergence that complement the structured but inherently lagged patent record. + +In future work, we aim to investigate the benefits of complementary trend sources in our trained models. In doing so, scientific publication databases such as Web of Science would capture the R\&D aspects of patents and provide a wider context of patent activities. We also plan to explore the use of large language models (LLMs) for both classification and forecasting tasks on the patent text content to capture complex patterns and relationships in data. +%Additionally, we will investigate the impact of incorporating domain-specific features and external data sources on model performance, as well as the potential for transfer learning across different technology domains. + + +% \section{Acknowledgments} + +% This work has been funded by BLINDED, which aims to improve the ability of the science support center of the University BLINDED in the identification, qualification, and incubation of innovation potentials. +%We thank the project partners for their support and feedback on this work, and we are grateful to the EPO for providing access to the patent data used in this study. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +% \begin{acks} +% To Robert, for the bagels and explaining CMYK and color spaces. +% \end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} diff --git a/research/tech_forecasting/submission/sample-sigconf-prefinal.tex.bak.tex b/research/tech_forecasting/submission/sample-sigconf-prefinal.tex.bak.tex new file mode 100644 index 0000000..5380d18 --- /dev/null +++ b/research/tech_forecasting/submission/sample-sigconf-prefinal.tex.bak.tex @@ -0,0 +1,979 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous,review]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2018} +\acmYear{2018} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[Conference acronym 'XX]{Make sure to enter the correct + conference title from your rights confirmation email}{June 03--05, + 2018}{Woodstock, NY} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +\acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{Technology Forecasting through Data-Driven Analysis of Patents} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Identifying emerging technologies is a key task in innovation scouting, enabling coaches and decision makers to stay ahead of technological developments. Patent data, with its historical information on innovation activity, offers a valuable basis for detecting such trends. In this paper, we propose an approach for technology forecasting using LSTM-based time series forecasting models trained on a broad range of patent categories of the European Patent Office. After identifying patent categories that are likely to capture the complete lifecycle of the underlying technology, we generate a universal model, which is then used to classify and forecast trends across all patent domains. The resulting sequence to sequence classifier is able to predict the original label with an accuracy of 88\%, allowing us to forecast different phases of the technology lifecycle with an error of 1.27 years across our validation set. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 00000000.0000000.0000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 500 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 300 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + +\end{CCSXML} + +\ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Patent technology forecasting, Time series analysis, Emerging technologies and innovation, Technology lifecycle} + + +% \received{20 February 2007} +% \received[revised]{12 March 2009} +% \received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +Innovation coaches in a university support researchers and staff in transforming academic ideas into practical innovations by guiding them through processes like commercialization, collaboration, and funding acquisition. Their tasks include scouting for emerging trends and fostering innovation and knowledge transfer. To do this, they engage in systematic scouting and screening activities to identify expertise and trends within and outside of their university, aiming to discover researchers with startup potential. As part of a funded project, we developed tools to assist coaches in these scouting activities by automating data gathering and analysis \cite{arzani2023challenges}. A central function of these tools is to support the identification of emerging technologies and forecast future research trends. By analyzing historical technology developments and combining them with academic data, such as research projects, publications, and researcher profiles, the coaches can more effectively monitor technological trajectories and detect early signals of innovation. + + + +Patent data is particularly valuable for recognizing technology patterns and offer structured, time-stamped records of innovation across disciplines. Unlike informal sources such as news or social media, patents are legally significant and systematically document technical advancements, making them ideal for tracking technology evolution. Their structure also enables the extraction of citation networks, classifications, and inventor collaborations—key indicators of emerging innovation. + + + +However, developing forecasting models that can fully leverage patent data poses significant challenges. A primary obstacle is creating models that are not confined to specific technological domains but can be generalized across diverse areas. Existing models often perform well within narrow fields but struggle to scale because innovation cycles, growth rates, and domain-specific language vary widely between sectors. These differences make it difficult to apply a single predictive framework, as models may misinterpret sector-specific dynamics or fail to detect trends in less studied areas. + +Furthermore, many current approaches to technology forecasting widely referenced models, such as the Gartner Hype Cycle, rely heavily on expert opinions and qualitative assessments. Although these methods provide valuable strategic insights, they are inherently subjective and often lack transparency in how trends are selected, categorized, or timed. This subjectivity limits their reproducibility and may introduce biases based on the perspectives or expertise of the contributing analysts. +% Furthermore, such models typically do not offer the granular, data-driven predictions needed for detailed, system-level innovation scouting. + +Therefore, there is a need for forecasting approaches that combine the objectivity and scalability of data-driven methods with the ability to generalize across technological domains. This paper addresses this challenge by proposing a predictive data-driven approach based on patent trends. As a first step, we extract patents time series data from the EPO from 1978 onwards and find the stabilized patents that capture the complete lifecycle of the underlying technology in order to generate a universal technology trend. Utilizing the universal trend, we then define the phases of the technology lifecycle and annotate the stabilized trends. Finally, based on the annotated phases of the completed trends and +%we perform classification of lifecycle phases as well as forecasting of future trends through training a multiple +leveraging neural sequence modeling and Transformer architectures, this paper proposes a two-stage, domain-agnostic pipeline, that combines a neural patent trend forecasting followed by lifecycle phase classification. +The latter enables the identification identifying reproducible prediction of technology transitions at scale. The paper delivers the following contributions: +\begin{itemize} + + % \item We describe a data-driven approach to identify a universal technology lifecycle and its phases using patent data. + + % \item We develop models that are capable of identifying the lifecycle phases using an accuracy of up to 88\%. + % \item We show that it is possible to forecast future phases with an error of only 1.27 years. + \item We describe a data-driven framework to extract IPC patent time series from the EPO and annotate them with a universal eight-phase technology lifecycle, requiring no domain-specific features. + \item We evaluate a Transformer-seq2seq classifier achieving F1-macro~0.785 on the lifecycle phase labeling task using only raw patent counts. + \item We benchmark five neural time series forecasters against a Prophet baseline with top neural models converging to within 0.07~MAE, reducing forecasting error by 57\% over the baseline. + \item We evaluate a two-stage forecast-classify pipeline which achieves a mean year-delta of 1,7 years and under 7 months median precision for the best configuration (Transformer-Direct + LSTM-seq2seq) + % \item We introduce an oracle decomposition that isolates forecast-induced classification error, showing that classifier noise-robustness---not standalone accuracy---is the dominant factor governing combined pipeline performance. +\end{itemize} + + + + +\section{Related Work} + +Forecasting technological trends is a central challenge in innovation management. One well-known conceptual model is the Gartner Hype Cycle (GHC), which describes the evolution of technology through five phases, from the initial trigger to broad market adoption~\cite{gartner_5,linden2003understanding}. While the GHC helps assess the maturity and business value of technologies, its qualitative nature and dependence on subjective expert judgment limit its reproducibility and transparency~\cite{dedehayir2016hype,steinert2010scrutinizing}. To overcome these limitations, patent-based approaches have gained traction due to their objectivity and data availability. Early work by Campbell (1983) proposed using patent indicators such as activity levels, immediacy, and dominance to track the lifecycle of technologies and forecast innovation dynamics~\cite{campbell1983patent}. + +Recent advances have focused on leveraging text mining and machine learning techniques to extract insights from patent data \cite{kim2019text,qiu2020technology,choi2021identifying}. Authors of \cite{abbas2014literature} provide a comprehensive overview of such methods, distinguishing between text-based analyses using NLP and semantic extraction, and visual analytics like patent maps and citation networks. Tools such as PatStream and TrendPerceptor combine NLP with interactive visualizations and concept extraction to identify emerging technologies without requiring domain expertise \cite{han2017visual,yoon2012trendperceptor}. Similarly, topic modeling methods like LDA have been applied to uncover latent themes in patent texts and track their evolution over time~\cite{chen2017topic,supraja2015patent,kim2015technology}. Statistical models, such as ARIMA and LSTM networks, have further improved the forecasting of temporal trends, especially in noisy and nonlinear domains \cite{sagheer2019time,supraja2015patent}. Cluster- and network-based approaches also play a important role. Some authors use CPC-based clustering combined with patent indicators to identify promising technologies \cite{kim2017novel}, while others integrate k-means clustering and topic modeling for uncovering innovation white spaces in fields such as enewable energy\cite{kim2015technology}. Property-function-based analyzes address the limitations of citation delay by extracting semantic relationships directly from patent text, enabling the detection of early-stage innovations \cite{yoon2012analysis} in solar cells area. Integrative frameworks combining bibliometrics, patent data, scenario planning, and system dynamics offer robust strategies for technology forecasting under uncertainty \cite{daim2006forecasting}. + +%Together, these methods highlight the growing maturity and methodological diversity of patent-based forecasting systems. + +In contrast to prior work, which often focuses on domain-specific analyses or requires extensive expert input, our approach introduces a domain-agnostic, methodologically consistent, and reproducible framework for patent-based trend forecasting. By applying unsupervised clustering, we derive universal technological trend patterns from a large-scale patent corpus, independent of specific application fields.This eliminates the need for manual topic selection or domain tailoring, which enables scalability across diverse innovation areas. +In comparison some related work, we use the raw patent counts as input for the forecasting and classification models, while other approaches rely on engineered features such as patent citations, text embeddings, or semantic indicators ~\cite{sagheer2019time}. This allows us to directly model the temporal dynamics of patent activity without introducing potential biases from feature selection. +In our work, after extracting a universal technology lifecycle from patent data, we use it to train a sequence-to-sequence classifier for lifecycle phase prediction. Moreover, we benchmark multiple neural state-of-the-art forecasting and classification models against a strong baseline and evaluate their performance in a combined forecast-classify pipeline. In doing so, we provide insights into the interplay between forecasting accuracy and classification robustness. + +\section{Patent System} + +% Patents play an important role in fostering innovation by granting the inventors exclusive rights to their innovation for a period of time, typically 20 years. +In this work, our goal is to enable patent-phase classification and forecasting of technology lifecycle phases in support of innovation scouting. As input, we focus on the patent data from the European Patent Office (EPO) \cite{harhoff2009duration}. The EPO is a major patent authority that reviews and grants patents, enabling inventors to secure innovation across different markets. + +Patents are typically categorized in technical domains using systems such as Cooperative Patent Classification (CPC) and International Patent Classification (IPC) \cite{leydesdorff2014interactive}, which organize innovation into sectors such as pharmaceuticals, biotechnology, electronics and information technology. This classification helps streamline patent searches, foster collaborations, and identify technological trends across various domains. For instance, a biotech startup may use IPC to locate similar gene-editing patents before filling its own, while a large firm may analyze classification trends to inform R\&D investments. The EPO organizes patents using the IPC system, which is divided into eight main sections, each representing a broad area of technology. These sections are: A (Human Necessities), B (Performing Operations; Transporting), C (Chemistry; Metallurgy), D (Textiles; Paper), E (Fixed Constructions), F (Mechanical Engineering; Lighting; Heating; Weapons), G (Physics) and H (Electricity). Each section is further divided into classes, subclasses, groups, and subgroups to provide a detailed and hierarchical structure for organizing patents. + +For example, in the field of medical technology, \textit{Section A} covers Human Necessities, while \textit{Class A61} focuses on Medical or Veterinary Science; Hygiene. Within this, \textit{Subclass A61K} is dedicated to Preparations for Medical, Dental, or Toilet Purposes, including drugs, disinfectants, and cosmetic formulations. A more specific breakdown, such as \textit{Group A61K 31/00}, refers to medicinal preparations containing organic active ingredients. This group contains several subgroups, and one such example is \textit{A61K 31/519}, which refers specifically to Medicinal preparations containing macrolides, a subclass of antibiotics. + +EPO data on each IPC class inherently include time-series information, where the number of patent filings is recorded over time for specific technologies. Hereby, innovation coaches construct a time series dataset represents technological activity and innovation intensity over the years. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the count of patents filed in a particular year for a particular IPC class. + +\section{Data Generation and Modeling} + +Using the time-series data from the EPO, we propose a data-driven method for capturing technology lifecycles. Our approach begins by extracting the \textit{stabilized time series} trends of patent filings within IPC classes to construct a \textit{universal trend} that captures the typical evolution pattern of technologies. Then, the universal trend is segmented into \textit{distinct phases of the lifecycle}, based on the structural characteristics of the trend curve. Finally, the labeled phases serve as the baseline for \textit{modeling} using multiple models, which are then used to classify current technological stages and forecast future lifecycle trajectories. + + +\subsection{Extraction of Stabilized Trends} +\label{extraction_stabilized_trends} + + +Patent activity across IPC domains varies widely in volume, frequency, and maturity. While some domains already went through the full technology lifecycle, others have sparse or incomplete data, reflecting early stage or irregular development. When trying to identify a universal model for the technology lifecycle, the latter will inevitably introduce noise. Thus, to reduce the noise, we apply a filtering process to retain only IPC time series that are likely to capture the complete technology lifecycle. In the following, we refer to these time series as \textit{stabilized trends}, which are time series data with minimized short-term noise and variance, allowing analysts to accurately model the long-term patterns of introduction, growth, maturity, and decline \cite{wu2023linkage}. +To identify the stabilized trends, we apply a filtering procedure consisting of 6 steps (depicted on Figure \ref{fig:filtering_pipeline}). + +\begin{figure}[h] + \centering + \includegraphics[width=\linewidth]{figures/pipeline_v1.png} + \vspace{-0.8cm} + \caption{Filtering process: Extraction of stabilized patents.} + \label{fig:filtering_pipeline} +\end{figure} + +We begin by (1) extracting all patents published by the EPO from 1978 to 2022, yielding 73,739 IPC trends, each represented as a yearly time series of patent counts.\footnote{The IPC dataset will be made publicly available post-review for reproducibility.} Since patents may have multiple IPC codes, (2) we disambiguate trends by isolating subgroup-level IPCs and removing higher-level codes, slightly reducing the dataset to 73,298 trends. (3) A European patent provides exclusive rights for a maximum of 20 years from the filing date, as stated in Article 63(1) EPC \cite{di2002european}. This time frame reflects the legal lifecycle of a patent and defines the maximum period during which a technology can remain under protection. This ensures a balance between incentivizing innovation and eventually allowing public access to the invention once the patent expires. Therefore, each IPC must span a minimum of 20 years between the first and last recorded patent, which results in 58,891 IPCs. + +% \begin{figure}[ht] +% \centering +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/pipeline_v1.png} +% \caption{Filtering process: Extraction of stabilized patents.} +% \label{fig:filtering_pipeline} +% \end{minipage} +% \hfill +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} +% \caption{Comparison of different clustering algorithms.} +% \label{fig:clustering_algorithms} +% \end{minipage} +% \end{figure} + +(4) Each IPC trend must exhibit a distinct peak year, defined as the year with the highest number of published patents. To ensure trend stability, this peak must not fall within the last five years of the observed period, as trends peaking too recently may still be evolving and not fully reflect the technology lifecycle. The five-year window also accounts for the typical duration of the European patent grant process (3–5 years) \cite{guellec2000applications}, during which publication delays and pending examinations can cause incomplete or lagging data. By excluding recent peaks, we reduce the risk of analyzing immature trends, resulting in a refined dataset of 27,831 trends. (5) To filter out insignificant trends, each must have a peak of at least three patents. About 27\% of IPCs peak at only two patents, indicating limited activity and weak signals. This threshold reduces the dataset to 26,845 valid trends. + + +Lastly (6), to ensure trend stability, the last five years of each time series must not exhibit significant fluctuations. Specifically, the difference between the minimum and maximum values within this five-year window must not exceed 10\% of the trend’s peak value. This relative threshold is dynamic, as it scales with the magnitude of the trend peak, ensuring that larger trends can tolerate proportionally larger absolute fluctuations, while still maintaining relative stability. For example, a trend with a peak of 1000 allows for a fluctuation of up to 100, whereas one with a peak of 100 permits only 10, making the filter adaptive to varying trend sizes. The threshold of 10\%, derived from exploratory data analysis, is intentionally conservative: It aims to capture only those trends that we think are likely to have fully completed their lifecycle and are no longer evolving. + +As a final result, the filtering process generates 2,774 stabilized IPC trends across all sections with the following distribution: A:10,9\%, B:17,5\%, C:20,4\%, D:4,3\%, E:2,6\%, F:7\%, G:21,1\%, H:16,2\%. + + +\subsection{Universal Patent Trend} +\label{universal_trend} + +The goal of this step is to find one or more universal patent trends that represent the set of all 2,774 stabilized trends to be able to divide them into phases and define them. The generation of the universal trend pattern consists of two stages. + +\begin{figure}[h] + \centering + \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} + \vspace{-0.8cm} + \caption{Comparison of different clustering algorithms.} + \label{fig:clustering_algorithms} +\end{figure} + +First, to investigate whether multiple universal trend patterns exist, we apply K-Means, K-Medoids \cite{arora2016analysis}, K-Shape \cite{paparrizos2015k}, and DBSCAN \cite{deng2020dbscan} to the stabilized patent trends, using both DTW distances and Pearson correlation. Clustering quality is assessed with the Silhouette Score \cite{shahapure2020cluster} in Figure \ref{fig:clustering_algorithms}, where value 1 on y-axis indicates perfect clustering and values near 0 or negative suggest poor separation. Across all methods and cluster counts (k = 2–6), the scores remain low, e.g., K-Medoids peaked at 0.03 for k = 2, K-Means at 0.16 for k = 2, and K-Shape at 0.05 for k = 3, while DBSCAN produces similarly modest results (max 0.09). These consistently low scores indicate weak cluster structures and limited separation between trends, suggesting that the dataset is best represented by a single dominant pattern. Consequently, we select \textit{k=1} as the optimal choice for describing the entire dataset. + + +In the second stage, we derive a universal trend pattern from the identified cluster. In doing so, we compare several Dynamic Time Warping (DTW) methods to aggregate trends into an optimal representative universal pattern \cite{han2020pattern}. The DTW warping path describes the optimal alignment between two given time series sequences. Typically, one of the two trends is used as a reference, and the second trend is aligned to this reference trend. Our analysis reveals that while methods that use a random or preliminary average reference trend introduce bias or information loss, pairwise alignment mitigates reference bias, but results in increased smoothing due to $n^2$ pairings \cite{asesh2021normalization}. + +To overcome the shortcomings of DTW, we utilize Dynamic Time Warping Barycenter Averaging (DBA) \cite{petitjean2014dynamic,petitjean2011global}. DBA is an iterative algorithm that finds a representative \textit{average} time series (the barycenter) for a set of time series by minimizing the sum of their DTW distances to this average. In each iteration, it computes optimal DTW alignments between the current average and all input sequences, then updates the average by taking a weighted \textit{barycenter} of the points aligned to each position of the average. +This method begins by identifying the Medoid which serves as the initial reference with the lowest total DTW distance to all other trends. Figure \ref{fig:uni_trend} shows the universal trend generated by the DBA approach. +% This method avoids repeated averaging and best preserves the original trends information content. + +To validate the resulting trend, we also train a Gaussian Mixture Model (GMM) and an LSTM with stabilized trends using a random trend as starting point. +% a representative uniform trend was calculated from them. +A GMM is a probabilistic model that assumes that the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters, enabling soft clustering and density estimation \cite{viroli2019deep}. The GMM with a single component is trained on all stabilized trends and visually compared with the DBA result. Furthermore, the LSTM model consists of two layers: one LSTM layer with 100 neurons and a dense output layer with a single neuron. We train the LSTM using the Mean Squared Error (MSE) and the Adam optimizer, with a learning rate of 0.001 over 50 epochs. +% The same input data was used for both training and prediction, and the output represents the unified trend. + +% \vspace{-0.7cm} +\begin{figure}[!htb] + \vspace{-1em} + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_dba_v1.png} + \vspace{-0.8cm} + \caption{DBA} + % \vspace{1cm} + \label{fig:uni_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_gmm_v1.png} + \vspace{-0.8cm} + \caption{GMM} + \label{fig:gmm_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_lstm_v1.png} + \vspace{-0.8cm} + \caption{LSTM} + % \vspace{-0.6cm} + \label{fig:lstm_trend} + \endminipage +\end{figure} +% \vspace{-0.5cm} + +Figures \ref{fig:gmm_trend}~and~\ref{fig:lstm_trend} show the identified universal patent trends determined using the GMM and LSTM models (left to right). DBA and LSTM trends are mostly similar in their progression, with both trends initially flattening and then rising to a peak, after which the progression declines again. The GMM trend, on the other hand, exhibits a greater fluctuation than the other two trends. The main difference is the appearance of a major second, slightly lower peak. +This concludes that using the cluster, there exists a universal patent trend that describes every stabilized patent's behavior, independent of domain and time. + +\subsection{Definition of Patent Phases with the Universal Trend} +% \vspace{-0.6em} +\label{phase_definitions} + + +The goal of this step is to divide the universal trend into phases for later classification and prediction tasks. In doing so, we manually analyze and annotate the stabilized trends based on the universal trend patterns for recurring structures and annotate the defined phases. + +An stabilized IPC code typically goes through several distinct numerated phases throughout its lifecycle as demonstrated in Figure \ref{fig:ideal_trend}. The lifecycle consists of mandatory and \textit{optional} phases as follows: (1) pre-use phase; (2) growth phase; (3) peak phase; (4) decline phase (5a) \textit{optional} second growth phase; (5b) \textit{optional} second peak phase; (5c) \textit{optional} second decline phase; +% (6) optional plateau rise; +(6) plateau phase. +The (1) pre-use phase, marked by minimal patenting activity. This is followed by a (2) growth phase, characterized by a rising number of patent fillings reflecting a growing interest in the technology. The lifecycle then reaches a (3) peak phase, where the maximum number of patents is published, indicating peak point of the IPC. +After this peak, a (4) decline phase sets in, with patent activity decreasing. +Some IPC trends exhibit an optional cycle, representing a smaller, secondary wave of interest. About 17\% (467 out of 2,774) of the stabilized trends show this pattern, which include an (5a) optional second growth phase, an (5b) optional second peak phase, and an (5c) optional second decline phase. +% Beyond these, a small percentage (under 2\%) show an (6) optional plateau rise, where patenting activity slightly increases before stabilizing. +Finally, the IPC enters a (6) plateau phase, a stable level of activity, often near zero, signifying the end of its lifecycle. The duration and intensity (i.e., slope steepness or peak height) of each phase vary from trend to trend. Figure \ref{fig:trends_example} shows some instances of stabilized IPCs in patent sections A, B, C, D, F, G and H with optional and primary phases that demonstrate the latter behavior. This step delivers the annotated technology phases of the stabilized trends. + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/universal_trend_ideal.png} + \vspace{-1cm} + \caption{Ideal universal trend.} + \label{fig:ideal_trend} + \end{minipage} + % \hfill + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/all_trends.png} + \vspace{-0.8cm} + \caption{Example stabilized trends.} + \vspace{-0.5cm} + \label{fig:trends_example} + \end{minipage} +\end{figure} + + +\subsection{Modelling of Patent Trends} +\label{modelling} + +The modeling of patent trends encompasses three interconnected experimental tasks using the annotated stabilized IPC trends: classification of lifecycle phases, forecasting of patent activity, and a combined pipeline that predicts when future phase transitions will occur. + +\textbf{Phase classification.} The classification task takes a trend as input and outputs the phase of the final year in the sequence, helping to identify where we are currently in the lifecycle. This is particularly valuable for innovation scouts, as it provides immediate orientation in evaluating the maturity of a technology. + +%\textbf{Classification overview.} +The task assigns one of the eight lifecycle phases defined in Section~\ref{phase_definitions} to each year of a patent trend. We formulate this as a \textit{sequence-to-sequence} (seq2seq) problem: given the full 45-year input series, the model produces a phase label for every timestep. This per-timestep labeling captures the temporal structure of lifecycles, including the precise timing of transitions between phases. To do this, we evaluate seven models across four model families including Transformer encoders \cite{yuan2020self} , Long Short-Term Memory networks (LSTMs), Temporal Convolutional Networks (TCNs) \cite{pelletier2019temporal}, as well as convolutional time series classifiers (InceptionTime, ResNet) \cite{ismail2020inceptiontime} and the random convolutional kernel transform ROCKET~\cite{dempster2020rocket}. + +%\textbf{Classification models.} +The \emph{Transformer-seq2seq}, is a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. The \emph{LSTM-seq2seq} includes a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. +The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +%explain the latter: the LSTM's gating mechanisms allow it to learn when to retain or forget information, which can help it model the gradual transitions between lifecycle phases, while the Transformer's attention mechanism may capture more complex, non-local dependencies but may require more data to learn smooth transitions effectively. +The \emph{TCN} is a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. he TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%The increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +%explain the latter: the TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%dialations and exponetional grow meaning +Additionally, \emph{InceptionTime} and \emph{ResNet} are convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolutional blocks along the temporal dimension which are adapted here for sequence-to-sequence output by incorporating a per-timestep classification head. +% ; although originally designed for univariate whole-series classification, they +We also consider two baselines: \emph{LSTM-Segment} a segment-level classification model and a non-neural time series classifier \emph{ROCKET}. The LSTM-Segment model, is a single-layer LSTM that predicts one majority phase label for the entire input sequence. Hereby, each 45-year trend is reduced to its most frequent lifecycle phase and the model predicts this single label for the whole sequence. This baseline tests whether the task can be solved by assigning one coarse label to the entire trend, or whether per-timestep sequence labeling is necessary to capture phase transitions. ROCKET is a another baseline that applies a random convolutional kernel transform to generate high-dimensional feature representations, followed by a ridge classifier, and is designed for efficient single-label time series classification. + + + +\textbf{Patent activity forecasting.} The forecasting task predicts the future patent filing counts given a partial observation of the first $\ell$ years of a trend. This is valuable for supporting innovation scouts, as it enables identifying key lifecycle phases that may occur in the future, such as anticipating when a trend might peak or begin to decline. + +For this task, we investigate two prediction strategies: In \textit{direct} multi-step forecasting, the model outputs all remaining $45 - \ell$ future values in a single forward pass, avoiding iterative error accumulation. +%How does a single forward pass work (look at the code): the model takes the observed sequence of length $\ell$ as input and produces a fixed-length output vector of size $45 - \ell$, where each element corresponds to the predicted patent count for a future year. This approach allows the model to learn the joint distribution of future values conditioned on the observed history, potentially capturing complex temporal dependencies across the entire forecast horizon. +In \textit{autoregressive} (AR) forecasting, the model predicts one step at a time, appending each predicted value to the input sequence and iterating forward. Direct models avoid the error compounding inherent to autoregressive decoding at the expense of a more complex output distribution. To achive this, we evaluate eleven models are evaluated across four model families including Transformer-based architectures (standard Transformer, Informer, PatchTST, Autoformer) \cite{zhou2021informer,huang2024long,wu2021autoformer}, recurrent models (LSTM), and convolutional models (TCN), each in both direct and autoregressive modes where applicable. We also add statistical baselines (Prophet, ETS, ARIMA) \cite{ning2022comparative,jain2017study} that fit each series independently. +%serve as reference methods. + +%\textbf{Forecasting models.} +Among the neural direct forecasting models, \emph{Transformer-Direct} uses $d_\mathit{model}=64$, 4 attention heads, and 2 layers, while \emph{Informer} reduces computational complexity through ProbSparse self-attention, \emph{PatchTST} applies patch-based tokenisation of the time series, \emph{LSTM-Direct} uses a 2-layer architecture with 128 hidden units, and \emph{TCN-Direct} relies on dilated convolutions with 64 filters. +%difference between informer, patchtst and transformer: Informer reduces the computational complexity of self-attention from $O(L^2)$ to $O(L \log L)$ by selecting only the most relevant queries based on their sparsity, making it more efficient for long sequences. PatchTST, on the other hand, divides the time series into fixed-size patches and treats each patch as a token, allowing it to capture local patterns effectively while still leveraging the Transformer's global attention mechanism. The direct forecasting models are trained to predict all future values in one forward pass, which allows them to learn complex temporal dependencies across the entire forecast horizon without being affected by error accumulation. +All of these models generate the full forecast horizon in a single forward pass. In contrast, the neural autoregressive models, namely \emph{LSTM-AR} and \emph{TCN-AR}, predict one step at a time and feed each prediction back into the model as input for the next step. This iterative strategy can better capture fine-grained temporal dynamics, although it is more vulnerable to error accumulation over longer forecasting horizons. \emph{Autoformer} represents a Transformer-based variant that incorporates built-in series decomposition into trend and seasonal components through auto-correlation attention, making it suitable for data with pronounced seasonal structure. In addition, the comparison includes statistical baselines such as \emph{Prophet}, which uses additive trend decomposition with changepoint detection, \emph{ETS}, which is based on exponential smoothing, and \emph{ARIMA}, which follows an autoregressive integrated moving average formulation. Unlike the neural approaches, these classical methods fit each time series independently and therefore cannot exploit cross-series patterns arising from the shared lifecycle structure. +%difference between autoformer and other transformer-based models: Autoformer incorporates a series decomposition mechanism that separates the input time series into trend and seasonal components using auto-correlation attention. This allows it to model complex temporal patterns more effectively, especially in data with strong seasonality, whereas standard Transformer-based models may struggle to capture such patterns without explicit decomposition. + + + +\textbf{Combined pipeline.} The combined task chains the forecasting and classification stages into a single end-to-end pipeline: given the first $\ell$ years of a technology's patent history, the forecaster predicts the remaining years and the classifier annotates the predicted series with lifecycle phase labels. The operationally relevant question for innovation scouts is not merely \textit{what} phase a technology will enter, but \textit{when} each phase transition will occur. To quantify this, we introduce the \textit{year-delta} metric, which measures the average temporal distance between predicted and true phase transition points. To this end, we evaluate all pairwise combinations of top-performing forecasters and classifiers in a combined pipeline, where the forecaster generates the future patent activity and the classifier predicts the corresponding lifecycle phases. + +%This setup simulates a real-world scenario where both forecasting and classification are necessary to anticipate future technology trajectories. To disentangle the sources of error in this pipeline, we also evaluate each classifier in \textit{oracle mode + +%, and additionally run each classifier in \textit{oracle mode} on ground-truth series. + + + +\section{Evaluation} + +In this section, we evaluate the proposed approach across the three mentioned interconnected tasks. After describing the experimental settings, we present the results for lifecycle phase classification. Then, we evaluate the performance of forecasting models in predicting future patent activity. Finally, we assess the combined performance of the classification and forecasting models in predicting future phase transitions. + +%All experiments use the 2,774 stabilized IPC trends described in Section~\ref{extraction_stabilized_trends}, each spanning 45 annual patent counts (1978--2022). Training was performed on a single NVIDIA A6000 GPU (48\,GB VRAM). + +\subsection{Experimental Settings} +\label{ssec_experimental_settings} + +% \textbf{Dataset and phase labels.} Each of the 2,774 series is annotated with eight per-year lifecycle phase labels corresponding to the phases defined in Section~\ref{phase_definitions}: pre-use~(0), growth~(1), peak~(2), decline~(3), second growth~(4), second peak~(5), second decline~(6), and plateau~(7). The mandatory phases---pre-use, growth, peak, decline, and plateau---occur in every series, while the optional second cycle (phases 4--6) appears in approximately 17\% of technologies. The resulting class distribution is heavily skewed: the mandatory phases dominate per-timestep labels, while the optional second-cycle phases and the peak marker represent fewer than 5\% of all labels. The input feature tensor for classification is $(N, 45, 9)$: one raw patent count value per timestep plus an 8-dimensional IPC-section one-hot encoding (sections A--H), repeated identically at each timestep. Forecasting uses a $(N, 45, 10)$ tensor, adding a normalised observation-length indicator that encodes the fraction of the series observed so far. + + + +% \textbf{Classification models.} Seven architectures are evaluated, spanning four model families: +% \begin{itemize} +% \item \emph{Transformer-seq2seq}: a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. +% \item \emph{LSTM-seq2seq}: a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +% \item \emph{TCN}: a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The exponentially increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +% \item \emph{InceptionTime} and \emph{ResNet}: convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolution blocks across the temporal dimension. Originally designed for univariate whole-series classification, we adapt them for seq2seq output by applying a per-timestep classification head. +% \item \emph{LSTM-Segment}: a single-layer LSTM that outputs one majority phase label for the entire input sequence, serving as a segment-level baseline that tests whether per-timestep annotation is necessary. +% \item \emph{ROCKET}~\cite{dempster2020rocket}: a random convolutional kernel transform that generates a high-dimensional feature vector from random convolution kernels followed by a ridge classifier. ROCKET is designed for fast single-label time series classification and provides a non-neural baseline. +% \end{itemize} + + +% \textbf{Forecasting models.} Eleven models are evaluated across four families: +% \begin{itemize} +% \item \emph{Neural direct models}: Transformer-Direct ($d_\mathit{model}=64$, 4 heads, 2 layers), Informer (ProbSparse self-attention for reduced complexity), PatchTST (patch-based tokenisation of the time series), LSTM-Direct (2-layer, 128 hidden units), and TCN-Direct (dilated convolutions, 64 filters). All output the full forecast horizon in a single forward pass. +% \item \emph{Neural autoregressive models}: LSTM-AR and TCN-AR, which predict one step at a time and feed each prediction back as input for the next step. This iterative scheme can capture fine-grained temporal dynamics but is susceptible to error compounding over long horizons. +% \item \emph{Autoformer}: a Transformer variant with built-in series decomposition (trend + seasonal components) via auto-correlation attention. Designed for data with strong seasonal patterns. +% \item \emph{Statistical baselines}: Prophet (additive trend decomposition with changepoint detection), ETS (exponential smoothing), and ARIMA (autoregressive integrated moving average). These classical methods fit each series independently and cannot leverage cross-series patterns from the shared lifecycle structure. +% \end{itemize} + +%\textbf{Metrics.} +We adapt the evaluation metrics to the specific properties of each task. For \textbf{classification task}, the heavy class imbalance necessitates metrics that reflect performance on minority classes. Accuracy alone is insufficient because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. Macro-averaged F1 (F1-mac) gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Weighted F1 (F1-wgt) averages by class frequency, providing a more optimistic estimate that may be inflated by majority classes. Cohen's $\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. + + +For the \textbf{forecasting task}, the direct forecasting models utilize a binary mask (Masked MSE) that zeros out loss contributions from zero-padded output positions beyond the true forecast horizon. This prevents the model from learning to predict zeros at invalid positions. +%how it works: $\kappa = (p_o - p_e) / (1 - p_e)$ where $p_o$ is the observed agreement and $p_e$ is the expected agreement by chance. A $\kappa$ of 1 indicates perfect agreement, while 0 indicates agreement no better than random chance. what it captures: $\kappa$ captures the degree to which the model's predictions are better than random chance, accounting for class imbalance. A high $\kappa$ indicates that the model is effectively learning to distinguish between classes, while a low $\kappa$ suggests that the model's performance may be largely due to chance, particularly in imbalanced settings where majority classes dominate accuracy. how it differs from F1: while F1 focuses on the balance between precision and recall for each class, $\kappa$ provides an overall measure of agreement that accounts for the possibility of random correct predictions, making it a more robust metric in scenarios with significant class imbalance. how it complements F1: $\kappa$ complements F1 by providing a holistic measure of model performance that considers both the balance of precision and recall (F1) and the likelihood of achieving correct predictions by chance ($\kappa$), offering a more comprehensive evaluation of classification quality in imbalanced datasets. +Furthermore, mean absolute error (MAE) is the primary metric because stakeholders interpret results in terms of absolute patent numbers. Root mean squared error (RMSE) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. Symmetric mean absolute percentage error (sMAPE) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero, which is a frequent occurrence in patent data, where 51\% of series have a maximum count below~10 and is therefore reported for completeness but not as the primary ranking criterion. + + +\begin{table}[htb!] + \centering + \caption{Training configuration.} + \vspace{-0.9em} + \label{tab:train_config} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{llccl} + \toprule + Task & Model & Epochs & LR & Loss \\ + \midrule + Classification & Transformer-S2S & 60 & $10^{-3}$ & Weighted CE \\ + & LSTM-S2S / Segment & 50 & $10^{-3}$ & Weighted CE \\ + & TCN / InceptionTime & 50 & $10^{-3}$ & Weighted CE \\ + & ResNet & 50 & $10^{-3}$ & Weighted CE \\ + \midrule + Forecasting & Direct models & 40 & $10^{-4}$ & Masked MSE \\ + & AR models & 30 & $10^{-4}$ & MSE \\ + \bottomrule + \end{tabular} + % \vspace{-0.5em} +\end{table} + +For the \textbf{combined pipeline}, we utilize the year-delta metric as the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. Transition detection rate (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +We also introduce the oracle baseline which enables us to evaluate the classification performance on perfect forecasts. In oracle mode, the classifier is applied directly to the ground-truth future series rather than the forecasted series, providing an upper bound on classification performance given perfect forecasts. This allows for a causal decomposition of pipeline error into classification and forecasting-induced error. The decomposition quantifies the extent to which error arises from the classifier's inherent uncertainty (oracle year-delta: $\Delta_\mathrm{oracle}$) versus the additional error introduced by the forecaster (forecasting impact: $\Delta_\mathrm{pred} - \Delta_\mathrm{oracle}$). + +%difference between oracle and forecasting impact: The oracle baseline evaluates the classifier's performance on the true future series, providing a measure of how well the classifier can identify phase transitions when given perfect information. In contrast, the forecasting impact quantifies the additional error introduced by using forecasted series instead of true future series. By comparing the year-delta from the oracle baseline to that from the combined pipeline, we can isolate the contribution of forecasting errors to the overall performance degradation, thus understanding how much of the error is due to imperfect forecasts versus limitations in the classifier itself. + + +%explain TDR technically and with examples: TDR is calculated by identifying all true transition points in the forecast window where the phase label changes from one class to another. For each true transition point, we check if the predicted sequence contains the same class label anywhere within the forecast window. If it does, we count that transition as detected. The TDR is then computed as the ratio of detected transitions to the total number of true transitions. For example, if there are 10 true transition points in the forecast window and the model's predictions include the correct phase label for 7 of those transitions at any point in the forecast window, the TDR would be 0.7 or 70\%. This metric captures whether the model is at least predicting the correct phases somewhere in the future, even if it does not get the timing exactly right, which is crucial for evaluating models that may struggle with precise temporal alignment but still capture important lifecycle stages. + +% \begin{itemize} +% \item \emph{Classification}: We report \textbf{accuracy} (proportion of correctly labeled timesteps), \textbf{macro-averaged F1} (F1-mac, the unweighted mean of per-class F1 scores), \textbf{weighted F1} (F1-wgt, F1 averaged by class frequency), and \textbf{Cohen's~$\kappa$} (agreement corrected for chance). Accuracy alone is insufficient under class imbalance because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. F1-mac gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Cohen's~$\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. +% \item \emph{Forecasting}: \textbf{MAE} (mean absolute error) measures the average absolute deviation in patent counts and is the primary metric because stakeholders interpret results in terms of absolute patent numbers. \textbf{RMSE} (root mean squared error) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. \textbf{sMAPE} (symmetric mean absolute percentage error) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero---a frequent occurrence in patent data, where 51\% of series have a maximum count below~10---and is therefore reported for completeness but not as the primary ranking criterion. +% \item \emph{Combined pipeline}: \textbf{Year-delta}~($\Delta$) is the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. \textbf{Transition detection rate} (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +% \end{itemize} + + +\textbf{Training configuration.} All neural models introduced in \ref{modelling} are implemented in PyTorch and trained with the Adam optimiser on a single NVIDIA A6000 GPU. Table~\ref{tab:train_config} summarises the training hyperparameters. All models use a CosineAnnealingLR learning rate scheduler that decays the learning rate smoothly from its initial value to near zero over the total epoch budget, enabling fine-grained parameter refinement in later epochs without manual step-wise LR tuning. The batch size is 32 for all models. Statistical forecasting baselines (Prophet, ETS, ARIMA) fit each series independently at inference time with default hyperparameters. + + +\subsection{Phase Classification} +\label{ssec:cls} + +% The classification task assigns one of eight lifecycle phases to each of the 45 timesteps in a patent count time series. Because the label distribution is heavily skewed toward the mandatory phases (pre-use, growth, decline, plateau), the central challenge is achieving reliable detection of the rare optional phases and the peak marker, which together constitute fewer than 5\% of all timestep labels but carry the most diagnostic information for lifecycle timing. +%\textbf{Classification settings.} +We utilize a 5-fold stratified cross-validation, stratified by each series' majority phase (the most frequent label across its 45 timesteps), yielding approximately 2,219 training and 555 test samples per fold. In addition, we apply sub-sequence augmentation by generating shorter prefix versions of each training sequence at different lengths. This expands the training set and exposes the models to partial lifecycle histories to improve robustness when only an early part of a trend is available. In doing so, sub-sequence augmentation generates left-padded prefix sub-sequences at stride~3 (prefix lengths 5, 8, 11, $\ldots$, 44) from each training sample, expanding the effective training set to approximately 33,285 samples per fold (${\sim}15\times$ expansion), while leaving the test set un-augmented. Also, to address the inherent class imbalance in lifecycle phase distributions, where majority phases such as pre-use, growth, and plateau dominate the label space, all models use class-weighted cross-entropy \cite{xu2020class}. Class-weighted cross-entropy loss inverses the frequency of each class in the training fold to compute weights, calculated as $w_c = N / (C \cdot n_c)$ where $n_c$ is the count of class $c$, $N$ is the total label count, and $C = 8$ is the number of classes. This weighting scheme forces the optimizer to allocate more gradient signal to minority phases, such as peaks and optional second-cycle phases, rather than concentrating on the majority classes, thereby improving the model's ability to learn from underrepresented lifecycle stages. + +Table~\ref{tab:cls_overall} reports classification results across all seven models. The Transformer-seq2seq achieves the best performance on every metric, with accuracy~0.880, F1-mac~0.785, and Cohen's $\kappa$~=~0.847. The multi-head self-attention mechanism enables direct comparison of any two timesteps in the 45-year series, allowing the model to learn long-range transition patterns, such as the temporal distance between growth and peak phases. LSTM-seq2seq follows at F1-mac~0.532, while TCN achieves F1-mac~0.498. Furthermore, the convolutional baselines InceptionTime (0.397) and ResNet (0.349) perform substantially worse. + +%The relatively moderate performance of TCN and InceptionTime suggests that while convolutional temporal models can capture local patterns, they struggle with the global structure and phase transitions that characterize technological life cycles. Similarly, the lower scores of ResNet-based approaches reinforce the assumption that architectures originally designed for spatial hierarchies do not transfer optimally to this type of structured temporal classification task. + +Among the convolutional models, TCN (F1-mac~0.498) outperforms both InceptionTime (0.397) and ResNet (0.349) because its dilated causal convolutions explicitly preserve temporal ordering and enables capturing long-range dependencies more effectively than the symmetric convolutions of InceptionTime and ResNet, which disregard the directional time axis. ResNet exhibits higher cross-fold variance (F1-mac std$\approx$0.025) than other models, consistent with known instability of residual architectures under class reweighting on small datasets, where the random initialization of residual connections can lead to divergent training dynamics across folds. + +\begin{table}[htb!] + \centering + \caption{Classification results (5-fold CV, mean).} + \vspace{-0.9em} + \label{tab:cls_overall} + \small + \begin{tabular}{lcccc} + \toprule + Model & Acc. & F1-mac & F1-wgt & $\kappa$ \\ + \midrule + \textbf{Transformer-S2S} & \textbf{0.880} & \textbf{0.785} & \textbf{0.882} & \textbf{0.847} \\ + LSTM-seq2seq & 0.692 & 0.532 & 0.692 & 0.605 \\ + TCN & 0.634 & 0.498 & 0.657 & 0.546 \\ + InceptionTime & 0.585 & 0.397 & 0.599 & 0.478 \\ + ResNet & 0.575 & 0.349 & 0.569 & 0.452 \\ + \midrule + LSTM-Segment & 0.365 & 0.243 & 0.361 & 0.190 \\ + ROCKET & 0.395 & 0.224 & 0.374 & 0.204 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +The segment-level baselines (LSTM-Segment and ROCKET), produce F1-mac values of 0.243 and 0.224, demonstrating that assigning a single majority label to an entire 45-year series is fundamentally inadequate for patent lifecycle analysis, since it fails to capture the temporal continuity of patent sequences. The 29\% F1-mac gap between LSTM-seq2seq~(0.532) and LSTM-Segment~(0.243), which share the same recurrent architecture but differ only in output structure, confirms that per-timestep seq2seq modeling is essential for this task. Additionally, ROCKET’s reliance on random convolutional kernels without learned temporal representations is insufficient to capture the complex, multi-phase structure of patent lifecycles, leading to its poor performance relative to even the segment-level LSTM baseline. + +The gap between accuracy~(0.880) and F1-mac~(0.785) on the Transformer quantifies the residual challenge of class imbalance. Even with inverse-frequency class weighting and sub-sequence augmentation, the optional phases remain harder because they are structurally variable. Therby, the secondary cycle can occur at different temporal positions and with varying amplitude across technologies, preventing the model from learning a single robust template. Nonetheless, the class-weighted loss and augmentation are effective, since without them, models tend to predict only majority phases, achieving high accuracy (${\sim}0.88$) but severely degraded F1-mac as minority phases receive zero recall. + +\begin{table}[htb!] + \centering + \caption{Per-class F1-mac (mean across 5 folds).} + \vspace{-0.9em} + %Phase names from Section~\ref{phase_definitions}; phases 4--6 are optional.} + \label{tab:cls_perclass} + \small + \begin{tabular}{clcc} + \toprule + Phase & Name & Trans.-S2S & LSTM-S2S \\ + \midrule + 1 & Pre-use & 0.898 & 0.768 \\ + 2 & Growth & 0.914 & 0.654 \\ + 3 & Peak & 0.767 & 0.377 \\ + 4 & Decline & 0.857 & 0.636 \\ + \midrule + 5a & Second growth\textsuperscript{*} & 0.682 & 0.178 \\ + 5b & Second peak\textsuperscript{*} & 0.594 & 0.343 \\ + 5c & Second decline\textsuperscript{*}& 0.633 & 0.416 \\ + \midrule + 6 & Plateau & 0.934 & 0.884 \\ + \bottomrule + \multicolumn{4}{l}{\textsuperscript{*}Optional phases, present in ${\sim}$17\% of trends.} + \end{tabular} + \vspace{-0.5em} +\end{table} + +Table~\ref{tab:cls_perclass} provides the per-class F1-mac scores breakdown for the two strongest seq2seq classifiers. The Transformer achieves $\geq$~0.857 on all mandatory phases and strong discrimination on the peak marker (phase~2: F1-mac~=~0.767). The plateau phase~(7) is the easiest to classify (F1-mac~=~0.934) because the terminal low-activity pattern is structurally unambiguous. Among the optional phases, second growth~(4) is the most detectable (F1-mac~=~0.682); second peak~(5b) and second decline~(5c) remain harder (F1-mac~=~0.594 and 0.633) because the secondary cycle has lower amplitude and shorter duration than the primary cycle, making its structural markers less distinctive. The LSTM-seq2seq shows consistent degradation on all phases relative to the Transformer, with the sharpest drop on second growth (F1-mac~=~0.178 vs.\ 0.682), suggesting that the LSTM's sequential processing cannot diffrentiate the secondary cycle from noise as effectively as the Transformer's global attention. + + + + +%The sub-sequence augmentation has the additional benefit of exposing models to partial observations of varying length during training, which builds robustness to the varying observation windows used in the combined pipeline evaluation (Section~\ref{ssec:combined}). + +%The principal limitation of the classification stage is the absence of a within-fold validation split; all classifiers train for a fixed epoch budget rather than using early stopping on held-out loss. While the CosineAnnealingLR scheduler mitigates overfitting by smoothly decaying the learning rate, monitoring a validation loss curve would provide a more principled stopping criterion. Additionally, the sub-sequence augmentation disproportionately inflates phase~0 (pre-use) labels because short prefix sub-sequences predominantly contain early-lifecycle timesteps; the class-weighted loss partially compensates but the inflated distribution may still bias the model toward pre-use predictions on ambiguous inputs. + +Overall, the results support the argument that patent phase classification is a high-level sequence understanding problem requiring both long-term dependency modeling and adaptive feature weighting. Also, the Transformer's superior performance suggests that its global attention mechanism is particularly effective at capturing the complex temporal dependencies and structural patterns in patent lifecycles, in comparison to recurrent and convolutional architectures that may struggle with long-range interactions and class imbalance. + +\subsection{Patent Activity Forecasting} +\label{ssec:fcst} + +% The forecasting task predicts future patent filing counts given a partial observation of the first $\ell$ years. The dominant modelling challenge is scale heterogeneity: the 2,774 series span a 700$\times$ range in maximum patent count (median per-series max: 9; mean: 36.5; maximum: 2,165), with 51\% of series having a maximum below 10 and only 7\% exceeding 100. Without normalisation, the MSE loss gradient is dominated by the handful of high-count series, and models learn to predict near-zero for the majority of low-activity technologies. + +% Per-series normalisation maps each series to the $[0, 1]$ interval by dividing by its observed maximum before training. This ensures that every technology contributes equally to the loss function regardless of its absolute count magnitude. At inference time, predictions are rescaled using the stored per-series maximum for evaluation against the original patent counts. This single preprocessing step yields an average 16.7\% MAE reduction across all eight neural models, making it the highest-impact intervention in the forecasting pipeline. For direct models, an additional masked MSE loss ignores zero-padded positions beyond the true forecast horizon, preventing the model from being penalised for predictions outside the valid output range. + +%\textbf{Forecasting settings.} +We apply a fixed 80/20 split yielding 2,219 training and 555 test IPC series. Each test series is evaluated at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$ years, producing 2,775 test instances with forecast horizons of 35 to 15 years respectively. Furthermore, to ensure that all series contribute equally to the mean squared error loss regardless of their absolute scale, we apply per-series normalization by dividing each time series by its observed maximum value before training. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss would be dominated by a few high-count series while the majority of low-activity technologies would receive negligible gradient signal. At prediction time, the forecasts are rescaled back to their original magnitude using the same maximum value. +%For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%Add masked MSE loss: For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. + +%A critical preprocessing step is per-series normalization, where each time series is divided by its observed maximum value before training and rescaled to the original magnitude at prediction time. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss is dominated by a few high-count series while the majority of low-activity technologies receive negligible gradient signal. + +%Per-series normalisation divides each time series by its observed maximum before training, ensuring that all series contribute equally to the mean squared error loss regardless of their absolute scale. At prediction time, the inverse transformation restores the original magnitude. + +%TODO +%For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. + +%Wxplain: the binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%TODO: Explain the rationale for this masking strategy and how it affects training dynamics. +%Autoregressive models are trained to predict one step at a time, using teacher forcing during training (feeding the true previous value) and autoregressive decoding at test time (feeding the model's own previous prediction). This allows them to capture fine-grained temporal dynamics but makes them susceptible to error compounding over long horizons, which is reflected in their performance metrics. +%Statistical baselines (Prophet, ETS, ARIMA) are fitted independently to each series using the \texttt{statsmodels} library, with hyperparameters selected via grid search on the training set. These models cannot leverage cross-series patterns and serve as reference points for the added value of learning from the shared lifecycle structure. + + +Table~\ref{tab:fcst_overall} reports forecasting results averaged across all five observation windows. +At first glance, an important observation regarding the sMAPE metric is that all neural models show sMAPE values between 141 and 154, which are close to the theoretical maximum of 200 \cite{chicco2021coefficient}. This does not indicate poor model quality but rather reflects a structural property of the data. Since 51\% of series have maximum counts below 10, many timesteps have true values near zero. For such timesteps, sMAPE approaches its upper bound ($\frac{2|y - \hat{y}|}{|y| + |\hat{y}|} \to 200$) even when the absolute error is negligible (e.g., predicting 1 when the truth is 0). +%For instance, if the true patent count for a timestep is 0 and the model predicts 1, the sMAPE would be calculated as $\frac{2|0 - 1|}{|0| + |1|} = \frac{2}{1} = 200$. This illustrates how sMAPE can yield a value of 200 for small absolute errors when the true value is near zero, which is common in this dataset due to the prevalence of low-activity series. Therefore, while sMAPE is a useful scale-independent metric in many contexts, it is not informative for this particular dataset and should be interpreted with caution. +The latter is furthur intensified by per-series normalization, where the model often produces predctions for low activity series that are non-zero in the normalized space but correspond to near-zero counts in the original scale, pushing sMAPE values into the high range. Therefore, we focus on MAE as the primary metric and only report sMAPE for completeness, acknowledging its limitations in this context. + +Transformer-Direct achieves the lowest MAE~(7.78), with the top five neural models concentrated within a narrow 0.07~MAE band (7.78--7.85). Given that per-series standard deviations range from $\sigma \approx 28$ to $\sigma \approx 33$, these inter-model differences are not statistically distinguishable. +%; architecture choice among the top five is effectively equivalent in absolute forecast accuracy. +This convergence indicates that, once per-series normalization levels the playing field, model capacity rather than architecture is the binding constraint for this dataset size. + +Autoformer is the weakest neural model (MAE~9.21) because its built-in series decomposition separates the input into trend and seasonal components via moving-average filters. Annual patent data is inherently non-seasonal, where each datapoint represents one year, with no repeating sub-annual cycle. Therefore, Autoformer's decomposition adds unnecessary complexity without capturing meaningful structure. Also, autoregressive models (LSTM-AR: 8.32, TCN-AR: 8.04) lag behind their direct counterparts because autoregressive decoding accumulates prediction errors at each step. For LSTM-Direct versus LSTM-AR, the MAE gap is 0.47 (7.85 vs.\ 8.32), and the direct variant trains approximately 22$\times$ faster because it avoids the iterative loop of feeding predictions back as input for the next step. + +The statistical baselines are substantially weaker: Prophet (17.89), ETS (20.05), and ARIMA (21.12) produce MAE values 2.3--2.7$\times$ higher than the best neural model. These methods fit each series independently, using trend decomposition heuristics (Prophet) or autoregressive error structure (ARIMA, ETS), and cannot exploit the shared lifecycle pattern that the neural models learn from training on samples simultaneously. + +%MAE quantifies the average absolute deviation between the predicted and true patent counts across all forecasted timesteps. An MAE of 7.78 means that, on average, the model's predictions deviate from the actual patent counts by approximately 7.78 patents per year. Given that the median maximum count per series is 9, this indicates that while the model captures general trends, there is still a significant absolute error relative to the scale of many series, particularly those with low activity. This underscores the inherent difficulty of forecasting patent activity, especially for technologies with small patent counts where even a few patents can represent a large percentage error. +% + +\begin{table}[htb!] + \centering + \caption{Forecasting results (mean over all 5 time windows).} + \vspace{-0.5em} + \label{tab:fcst_overall} + \small + \begin{tabular}{lccc} + \toprule + Model & MAE$\downarrow$ & RMSE$\downarrow$ & sMAPE$\downarrow$ \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{7.78} & 10.54 & 148.0 \\ + Informer & 7.79 & 10.57 & 148.8 \\ + PatchTST & 7.81 & \textbf{10.52} & 145.8 \\ + LSTM-Direct & 7.85 & 10.55 & \textbf{141.8} \\ + TCN-Direct & 7.85 & 10.58 & 146.1 \\ + TCN-AR & 8.04 & 10.67 & 153.9 \\ + LSTM-AR & 8.32 & 11.19 & 153.2 \\ + Autoformer & 9.21 & 11.87 & 149.0 \\ + \midrule + Prophet & 17.89 & 20.66 & 147.5 \\ + ETS & 20.05 & 23.52 & 147.8 \\ + ARIMA & 21.12 & 24.90 & 155.6 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +%The Transformer's ascent to the top forecasting rank (from 3rd place without normalisation in preliminary runs to 1st place with normalisation) +%The Transformer's performance (1st place) is explained by its attention mechanism's sensitivity to input scale. The dot-product attention scores $\mathbf{Q}\mathbf{K}^T / \sqrt{d_k}$ are computed across all 45 positions on normalized data, which prevents the model from being dominated by a few high-count series and allows it to learn patterns across the full spectrum of activity levels. +%when input magnitudes vary by 700$\times$, +%The key vectors for high-count series produce large attention scores, that effectively masking the contributions of low-activity series during training. +%In contrast, the TCN's dilated convolutions are local operators that process each timestep's neighborhood independently. Also, the convolution kernel weights adapt to relative patterns regardless of absolute scale, explaining why TCN was the strongest model before normalisation but benefited comparatively less from it. + + +\begin{table}[htb!] + \centering + \caption{MAE by time window $\ell$. Top-5 neural models and Prophet baseline.} + \vspace{-0.5em} + \label{tab:fcst_pl} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{lccccc} + \toprule + Model & $\ell$=10 & $\ell$=15 & $\ell$=20 & $\ell$=25 & $\ell$=30 \\ + \midrule + Transformer-Dir. & 9.67 & 8.55 & 8.02 & 7.02 & \textbf{5.66} \\ + Informer & 9.72 & 8.62 & 8.00 & \textbf{6.91} & 5.70 \\ + PatchTST & 9.65 & 8.60 & \textbf{7.95} & 7.03 & 5.80 \\ + LSTM-Direct & \textbf{9.56} & 8.64 & 8.11 & 7.11 & 5.82 \\ + TCN-Direct & 9.58 & \textbf{8.45} & 7.99 & 7.14 & 6.08 \\ + \midrule + Prophet & 15.59 & 19.76 & 18.90 & 17.50 & 17.72 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + + +Table~\ref{tab:fcst_pl} breaks down MAE by observation window. All neural models improve monotonically as $\ell$ grows (Transformer-Direct drops from MAE~9.67 at $\ell$=10 to 5.66 at $\ell$=30, a 41\% reduction). This is rather expected, since longer observation windows provide more context about the lifecycle trajectory and simultaneously reduce the forecast horizon (from 35 to 15 years). At $\ell$=10, where the model has observed only 22\% of the series and must extrapolate 35 years, all five top models converge near MAE~$\approx$~9.6. This convergence at long horizons suggests that, the choice of model architecture has minimal impact on forecast accuracy, and all models are effectively operating at the same performance floor determined by the data's intrinsic uncertainty. +%---the intrinsic difficulty floor for extreme extrapolation. +At $\ell$=30, inter-model spread widens (5.66--6.08), suggesting that with enough context, architectural differences begin to matter. Here, the Transformer's global attention can integrate information from all 30 observed positions simultaneously, which gives it it an advantage over the TCN's local receptive field for capturing the overall shape of the lifecycle. + +\begin{table*}[htb!] + \centering + \caption{ Pipeline combinations on test set (mean over 5 time windows), sorted by mean year-delta~$\Delta$.} + % p50--p95: percentiles of per-sample year-delta means. Oracle~$\Delta$: classifier error on ground-truth input. Fcst.\ imp.: additional error from forecast noise.} + \vspace{-0.5em} + \label{tab:combined_top} + \small + \setlength{\tabcolsep}{3pt} + \begin{tabular}{llccccccccc} + \toprule + Forecaster & Classifier & $\Delta$ mean & p50 & p70 & p80 & p90 & p95 & TDR & Oracle $\Delta$ & Fcst.\ imp. \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{LSTM-seq2seq} & \textbf{1.754} & \textbf{0.650} & \textbf{1.560} & \textbf{2.367} & 4.240 & 6.093 & 0.724 & 1.051 & 0.703 \\ + TCN-Direct & LSTM-seq2seq & 1.793 & 0.684 & 1.647 & 2.467 & 4.233 & 6.031 & 0.728 & 1.051 & 0.742 \\ + Informer & LSTM-seq2seq & 1.803 & 0.667 & 1.613 & 2.441 & 4.406 & 6.274 & 0.725 & 1.051 & 0.752 \\ + PatchTST & LSTM-seq2seq & 1.817 & 0.714 & 1.670 & 2.527 & 4.371 & 6.104 & 0.724 & 1.051 & 0.766 \\ + LSTM-Direct & LSTM-seq2seq & 1.821 & 0.750 & 1.720 & 2.539 & 4.371 & 6.000 & 0.728 & 1.051 & 0.769 \\ + LSTM-Direct & TCN & 1.906 & 1.029 & 1.949 & 2.808 & 4.250 & 6.000 & \textbf{0.856} & 0.986 & 0.920 \\ + \midrule + Prophet & LSTM-seq2seq & 2.859 & 1.500 & 3.067 & 4.453 & 6.433 & 8.461 & 0.628 & 1.051 & 1.808 \\ + \midrule + Transformer-Dir. & Transformer-S2S & 3.026 & 0.867 & 2.640 & 4.600 & 7.374 & 10.135 & 0.796 & 0.371 & 2.655 \\ + Prophet & Transformer-S2S & 4.553 & 3.063 & 5.267 & 6.800 & 9.760 & 12.600 & 0.700 & 0.371 & 4.182 \\ + \bottomrule + \end{tabular} +\end{table*} + +As for the baseline, Prophet's MAE is non-monotone across $\ell$ (rising from 15.6 to 19.8 between $\ell$=10 and $\ell$=15), indicates that its trend-decomposition heuristic extracts misleading changepoints when given additional data. This sensitivity to input length is a known weakness of Prophet's piecewise-linear trend model, which tends to be align with seasonal trends \cite{9449743}. + + +%The principal limitation of the forecasting stage is that all models are trained exclusively on ground-truth inputs. When predictions from these models feed into the downstream classifier in the combined pipeline, the classifier encounters a distribution it was never trained on---forecasted series with smoothed peaks, shifted inflection points, and accumulated prediction noise. This train-test distribution mismatch is the dominant source of pipeline error, as quantified in the following section. + + +\subsection{Combined Lifecycle Prediction Pipeline} +\label{ssec:combined} + + + + + +The combined pipeline answers the operationally relevant question for technology scouts: given only the first $\ell$ years of a technology's patent history, \textit{when} will each future lifecycle phase transition occur? To this end, the forecaster extends the partial observed series, the classifier annotates the extended series with lifecycle phase labels, and the year-delta metric quantifies the temporal precision of the resulting prediction. + +Like previous tasks, we enforce a 80/20 split. Classifiers are trained exclusively on the 2,219 training IPCs and the combined pipeline is evaluated on the 555 held-out test IPCs and at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$, yielding 2,775 evaluation instances (555~IPCs~$\times$~5 window lengths). Forecaster predictions are also computed from the same held-out IPC set. +%This protocol differs from the cross-validation used for standalone classification, where each fold's test data is drawn from the same population as other folds' training data; the holdout design provides an unbiased estimate of pipeline performance on technologies the classifier has never encountered during training. +Based on previous results, we evaluate all 30 pairwise combinations of the top-5 neural forecasters (ranked by MAE) and top-5 classifiers (ranked by F1-mac), plus Prophet as the forecasting baseline. +For each combination, we compute the year-delta $\Delta$ per test instance and report the mean, median (p50), and upper percentiles (p70–p95) across all 2,775 test instances, as well as oracle year-delta, forecasting impact and Transition Detection Rate (TDR) as described in Section~\ref{ssec_experimental_settings}. While the mean reflects average temporal deviation, p50 provides an outlier-robust central tendency, and the upper percentiles reveal tail behavior where rare phase transitions cause large prediction misalignment. We also include the baseline combination of Prophet forecaster with LSTM-seq2seq classifier for reference, as well as the two low-performing combinations from previous experiments (Transformer-Direct + Transformer-S2S and Prophet + Transformer-S2S) to demonstrate the impact of classifier choice on pipeline performance. + + +Table~\ref{tab:combined_top} presents the top selected pipeline configurations sorted by mean year-delta. The best configuration is \textbf{Transformer-Direct paired with LSTM-seq2seq}, achieving a mean $\Delta$~=~1.754~years and a median (p50) of 0.650~years. The median indicates that for at least half of all 2,775 test instances, the predicted lifecycle phase transition deviates from the true transition by less than seven months. However, the wide gap between p50 and p95 in the percentile distribution underscores the skewness of the error profile. While median errors remain below one year for the best configurations, the upper percentiles (p90 and p95) increase substantially, reaching up to 4.4 and 6.3 years. This gap suggests that rare but structurally complex lifecycle patterns such as optional or secondary cycles are not consistently captured by the pipeline. Notably, the choice of forecaster has minimal impact on the median error (p50: 0.650--0.750) but more influence on the tail (p90: 4.233--4.406; p95: 6.000--6.274), indicating that forecast noise primarily affects predictions of hard cases (lifecycles with optional phases) rather than typical ones. From an application perspective, this implies that risk-sensitive technology scouting use cases should consider high-percentile metrics in addition to mean or median error. Furthermore, the significant tail error (p95 > 6 years) suggests that while the pipeline excels at standard S-curve lifecycles, it struggles with re-emergent or stagnant technologies. This indicates that patent-based forecasting may require additional external variables (e.g., R\&D funding or citation networks) to resolve high-uncertainty cases. + + + + +Despite differences in the underlying architectures of the top five configurations, they are all paired with LSTM-seq2seq and are tightly clustered in mean $\Delta$ (1.754--1.821) and p50 (0.650--0.750), with more variations in their p90 and p95 (p90: 4.233--4.406; p95: 6.000--6.274). This reflects a consistent ability to predict the timing of primary-cycle transitions with good precision. The results of the table indicate that for a technology scout with 10--30 years of patent history, the best pipeline predicts the timing of future lifecycle transitions with an average error of less than two years and a median below one year. +%; risk-sensitive applications should consult p90/p95 to characterize worst-case temporal uncertainty. + + +Also, the comparison between classifier architectures reveals a clear trade-off between temporal precision and detection breadth. While LSTM-seq2seq consistently achieves lower $\Delta$ across all percentiles (0.724--0.728), the TCN classifier attains the highest Transition Detection Rate (TDR~=~0.856), which represents the fraction of test instances where the predicted transition class appears anywhere within the forecast window, regardless of timing precision. This suggests that TCN-based pipelines are more likely to identify the occurrence of a transition within the forecast window, with reduced temporal accuracy. In contrast, LSTM-seq2seq produces sharper temporal predictions but may miss some transitions entirely. +The divergence between the TCN and LSTM-seq2seq classifiers suggests a Pareto frontier between temporal localization and occurrence detection. The TCN’s superior TDR (0.856) indicates it is a more reliable "alarm" for the existence of a transition, whereas the LSTM-seq2seq is a more precise "clock" for its timing. + +The oracle decomposition from the table also provides insight into how errors propagate through the pipeline. As for the best-performing configuration (Transformer-Direct + LSTM-seq2seq), approximately 40\% of the total error is due to the forecaster (forecasting impact $= 0.703$), while the remaining 60\% originates from the classifier ($1.051 + 0.703 = 1.754$). This ratio is consistent across the top neural forecasters, suggesting that classification constitutes the dominant source of error due to the imbalance in the identified lifecycle phases. + +% In contrast, the Transformer-S2S classifier achieves a substantially lower oracle error ($\Delta_\mathrm{oracle} = 0.371$), yet performs markedly worse in the full pipeline (mean $\Delta \geq 3.026$). This discrepancy indicates a higher sensitivity to forecast noise, whereas high-capacity models trained on ground-truth inputs degrade under distribution shift. + +Furthermore, the experimental results yield several critical insights into the design of technology forecasting systems, particularly regarding the interplay between generative forecasting and discriminative classification. A primary observation is the failure of the Transformer-S2S classifier within the combined pipeline. Despite achieving the lowest Oracle error ($\Delta = 0.371$) in the combined pipeline and scoring the highest in classification task (F1-macro: 0.785), its performance collapses when integrated with a forecaster, resulting in a mean $\Delta \geq 3.026$. This discrepancy suggests that high-capacity, attention-based classifiers are significantly more influenced by covariate shift, where they tend to overfit to the precise, "clean" temporal patterns of ground-truth patent histories and lack the necessary inductive bias to remain stable when processing the smoothed or noisy trajectories typical of neural forecasters. + +In contrast, the LSTM-seq2seq classifier consistently shows resilience in the results. Architecturally, the recurrent nature of the LSTM serves as a temporal regularizer. Unlike the Transformer-S2S, which relies on global self-attention across the entire sequence, the LSTM’s state-based transition mechanism forces a sequential dependency that helps it maintain a coherent lifecycle trajectory even when the forecaster introduces point-wise fluctuations or noise. This positions the LSTM not merely as a labeler, but as a noise filter that effectively preserves the logical progression of technology phases. + +Also, the success of the Transformer-Direct and LSTM-seq2seq pairing suggests a "hybrid-best" paradigm for technology scouting. This configuration leverages high-capacity global attention in the forecasting stage to capture long-range dependencies and complex patenting trends, followed by a more constrained, sequential annotator to enforce the chronological rigor of lifecycle transitions. + +% Finally, the observation that the top five neural forecasters—ranging from PatchTST to Informer—produced nearly identical median errors (p50) when paired with the same classifier indicates a decoupled optimization ceiling in univariate patent forecasting. This suggests that the current bottleneck in temporal precision is not the forecasting architecture itself, but rather the sensitivity of the classification interface. From a system-design perspective, these results imply that future improvements in pipeline accuracy are more likely to stem from classifier calibration and uncertainty-aware forecasting (e.g., probabilistic outputs) rather than the development of incrementally more complex point-forecast architectures. + + + + +% \begin{table*}[htb!] +% % \centering +% \caption{Pipeline results aggregated by classifier (mean over all 6 forecasters). p50--p95: percentiles of per-sample year-delta means. FC~imp.: forecasting impact ($\Delta_\mathrm{pred}-\Delta_\mathrm{oracle}$).} +% \vspace{-0.5em} +% \label{tab:combined_cls} +% \footnotesize +% \setlength{\tabcolsep}{3.5pt} +% \begin{tabular}{lcccccccc} +% \toprule +% Classifier & $\Delta$ mean & p50 & p70 & p80 & p90 & p95 & Oracle $\Delta$ & FC~imp. \\ +% \midrule +% \textbf{LSTM-seq2seq} & \textbf{1.974} & \textbf{0.828} & \textbf{1.879} & \textbf{2.799} & 4.676 & 6.494 & 1.051 & 0.923 \\ +% TCN & 2.116 & 1.097 & 2.209 & 3.158 & 4.720 & 6.688 & 0.986 & 1.130 \\ +% InceptionTime & 2.902 & 1.483 & 3.139 & 4.562 & 6.840 & 8.968 & 1.399 & 1.503 \\ +% Transformer-seq2seq & 3.250 & 1.300 & 3.108 & 4.881 & 7.663 & 10.406 & 0.371 & 2.879 \\ +% ResNet & 3.333 & 1.830 & 3.584 & 5.009 & 7.466 & 9.847 & 1.561 & 1.772 \\ +% \bottomrule +% \end{tabular} +% \vspace{-0.5em} +% \end{table*} + + +% To investigate the relative influence of classifier versus forecaster choice on pipeline performance, we aggregate results by classifier across all six forecasters (five neural and Prophet) as shown in Table~\ref{tab:combined_cls}. The spread across classifiers in mean year-delta (1.36~years: $\Delta$~=~1.97 to 3.33) substantially exceeds the spread across the five neural forecasters (0.10~years: $\Delta$~=~2.49 to 2.59), confirming that \emph{classifier choice governs pipeline performance far more than forecaster choice}. LSTM-seq2seq ranks first in mean year-delta (1.974) and p50 (0.828), while TCN follows at mean 2.116 and p50 1.097. The percentile columns further clarify this distributional difference: across p50, p70, and p80, LSTM-seq2seq consistently shows lower values (p50~=~0.828, p70~=~1.879, p80~=~2.799) than TCN (p50~=~1.097, p70~=~2.209, p80~=~3.158), indicating that LSTM-seq2seq more consistently places transitions close to their true positions across the bulk of the distribution. The p90 and p95 gap between these two classifiers is modest (4.676 vs.\ 4.720 at p90; 6.494 vs.\ 6.688 at p95), confirming broadly similar worst-case tail exposure among the two strongest performers. + +% The most striking finding in Table~\ref{tab:combined_cls} is the performance inversion between Transformer-seq2seq and the two strongest pipeline classifiers. In the standalone classification task (Table~\ref{tab:cls_overall}), the Transformer leads by a wide margin (F1-mac~0.785 vs.\ 0.498 for TCN and 0.532 for LSTM-seq2seq). Yet in the combined pipeline on held-out data it ranks fourth among five classifiers ($\Delta$~=~3.250~years), substantially worse than both LSTM-seq2seq (1.974) and TCN (2.116). The inversion is amplified at the upper tail: the Transformer'''s p90 (7.663) and p95 (10.406) far exceed those of LSTM-seq2seq (4.676; 6.494) and TCN (4.720; 6.688). The oracle decomposition explains this precisely: the Transformer achieves the lowest oracle~$\Delta$~(0.371)---confirming superior temporal precision on clean held-out series---but carries by far the largest forecasting impact (2.879), meaning forecast noise alone adds nearly 2.9~years of mean error and drives the p95 above ten years. + +% The mechanism lies in the sharpness of the Transformer'''s learned representations. Its self-attention associates precise input shapes---peak amplitudes, transition slopes, inter-phase timing ratios---with lifecycle labels. This precision translates to high accuracy on ground-truth series. But when forecasted series replace the ground truth, these features are perturbed: peaks are smoothed or shifted by one to two years, secondary cycle amplitudes are reduced, and transition inflection points are displaced. The Transformer'''s confidence collapses at perturbed positions, causing cascading misclassification in surrounding timesteps and inflating the upper tail sharply (p95~=~10.406). The LSTM'''s gated hidden state and the TCN'''s dilated convolutions produce smoother, more conservative decision boundaries that degrade gracefully under perturbation. Their forecasting impacts (0.923 and 1.130 respectively) are less than 40\% of the Transformer'''s (2.879), and their p95 values remain within 6.5--6.7~years, confirming fundamentally higher noise robustness across the full error distribution. The practical implication is direct: \emph{standalone classification accuracy is an unreliable proxy for combined pipeline performance}, particularly under tail-risk evaluation. Pipeline model selection must prioritize noise robustness over clean-data metrics. + + +% The neural forecasters collectively reduce mean year-delta by 27.7\% relative to Prophet (2.552 vs.\ 3.530, averaged across all classifier combinations), confirming the practical value of cross-series learned lifecycle representations over per-series statistical decomposition. The p95 gap between the neural group and Prophet is approximately 2.07~years (8.135 vs.\ 10.210), a practically important contrast for high-risk forecast scenarios where late transition calls carry severe cost. However, marginal variation in mean year-delta across the five neural forecasters is only 0.10~years (2.49--2.59), negligible relative to the 1.36-year classifier-driven spread. This asymmetry implies that forecasting improvements alone yield sharply diminishing pipeline returns as long as classifier noise-sensitivity remains the dominant error source. + +% For the best pipeline configuration (Transformer-Direct + LSTM-seq2seq), year-delta decreases monotonically with observation window length: from $\Delta$~=~1.951 at $\ell$=10 to $\Delta$~=~0.968 at $\ell$=30, a 2.0$\times$ improvement in the mean. TDR rises in parallel from 0.609 to 0.874. The upper tail likewise narrows substantially: p90 improves from 4.207 at $\ell$=10 to 2.541 at $\ell$=30, and p95 from 6.248 to 4.400~years, demonstrating that longer observation windows benefit not only central tendency but also tail-risk reduction. This improvement is driven primarily by forecast quality: as the observation window grows, the remaining forecast horizon shrinks and the model has more lifecycle context, producing predicted series that more closely resemble the ground truth. At $\ell$=30 the median (p50) breaks below one year ($\Delta_{\mathrm{p50}}$~=~0.267), establishing approximately 25--30~years of historical patent data as the practical threshold above which sub-year temporal precision becomes reliably achievable at the median. + +% \textbf{Summary of key experimental findings.} The evaluation produces three principal contributions. \emph{Classification}: the Transformer-seq2seq achieves F1-mac~0.785 on the eight-phase lifecycle labeling task using only raw patent counts and IPC-section one-hot encoding, with no hand-crafted features or domain-specific preprocessing. All mandatory phases are classified with F1~$\geq$~0.857, and even the structurally variable optional second-cycle phases reach F1 between 0.594 and 0.682---establishing reliable phase detection as a realistic baseline for domain-agnostic deployment. \emph{Forecasting}: after per-series normalisation, the top five neural models converge to within 0.07~MAE (7.78--7.85), reducing error by 57\% over Prophet and demonstrating that preprocessing quality dominates architecture selection; any of these models can therefore be substituted with negligible accuracy loss. \emph{Combined pipeline}: under a strict holdout split on 555 unseen IPC subclasses, the best configuration (Transformer-Direct + LSTM-seq2seq) achieves a mean year-delta of 1.754~years and a median of 0.650~years, with the median falling below one year at $\ell$=30 ($\Delta_{\mathrm{p50}}$~=~0.267~years). Percentile analysis exposes a heavy-tailed error profile (p80~=~2.367, p90~=~4.240, p95~=~6.093) driven by rare optional secondary-cycle phases; the oracle decomposition locates the primary bottleneck in classifier noise-robustness, not raw forecasting precision. + +% Overall, the results provide innovation coaches aa fully automated, reproducible alternative to qualitative hype-cycle assessments. A practitioner with 25 or more years of EPO filing history for a target IPC domain can apply the pipeline without any domain-specific feature engineering and expect, at the median, to locate the next lifecycle phase transition within eight months of its true occurrence---precision sufficient for strategic planning and investment-timing decisions. For the 80\% majority of evaluated technologies the transition is predicted within 2.4~years, giving stakeholders a concrete, data-driven planning window. The 57\% reduction in forecasting error over the Prophet baseline, a tool in widespread operational use, validates the benefit of cross-domain lifecycle modeling and implies that replacing per-series statistical baselines with the proposed neural forecaster yields immediate accuracy gains without additional data collection. At the component level, the oracle decomposition offers an actionable diagnostic for system operators: it separates forecasting error from classification error, enabling targeted investment when improving the pipeline---currently pointing toward noise-robust classifier training as the single highest-leverage intervention. + +%Overall, the results indicate that the combined pipeline can achieve high temporal precision for the majority of cases, with median errors below one year. However, performance is constrained by classifier robustness and degrades in the presence of rare or irregular lifecycle patterns. + +Overall, the results show that the proposed pipeline can achieve high temporal precision for the majority of cases, with median errors below one year. Practically, this framework enables more proactive R\&D resource allocation by quantifying transition timing rather than relying on qualitative intuition. A practitioner with 25 or more years of EPO filing history for a target IPC domain can apply the pipeline without any domain-specific feature engineering and expect, at the median, to locate the next lifecycle phase transition within eight months of its true occurrence. + + +%generate depth analysis of the contributions in favor of model selection and architectural differences and implications for the performance of the combined pipeline. + +\section{Conclusion} + + +Identifying emerging technologies is essential for effective innovation scouting, allowing stakeholders to anticipate and adapt to new developments. In this work, we proposed a systematic appraoch for technology forecasting based on the patent data from European Patent Office (EPO). Hereby, we first detected a universal lifecycle pattern across multiple IPC domains, and after annotating this pattern with eight lifecycle phases, we performed modelling via various classification and timeseries forecasting models to evaluate their performance. + +The results yield three principal findings. First, a Transformer-seq2seq classifier achieves an F1-macro of 0.785 on the eight-phase labeling task using only raw patent counts and IPC-section encodings, demonstrating that lifecycle phases are identifiable using soley raw patent trend data. Second, forecasting models using five neural architectures on timeseries data converge to within 7.85 MAE after per-series normalization outperforming the Prophet baseline by 57\%. Third, at the comined pipeline level, the best configuration (Transformer-Direct paired with LSTM-seq2seq) that shows lifecylce phase transitions are predictable with good precision of a mean year-delta of nearly 1.7 years and a median year-delta of 0.650 years (less than seven months) across all test instances. This practically means that 25–30 years of historical patent data offer a practical precision threshold for innovation scouting. + +In future work, we aim to investigate the benefits of complementary trend sources in our trained models. In doing so, scientific publication databases such as Web of Science would capture the R\&D aspects of patents and provide a wider context of patent activities. We also plan to explore the use of large language models (LLMs) for both classification and forecasting tasks on the patent text content to capture complex patterns and relationships in data. +%Additionally, we will investigate the impact of incorporating domain-specific features and external data sources on model performance, as well as the potential for transfer learning across different technology domains. + + +\section{Acknowledgments} + +This work has been funded by BLINDED, which aims to improve the ability of the science support center of the University BLINDED in the identification, qualification, and incubation of innovation potentials. We thank the project partners for their support and feedback on this work, and we are grateful to the EPO for providing access to the patent data used in this study. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +\begin{acks} +To Robert, for the bagels and explaining CMYK and color spaces. +\end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} diff --git a/research/tech_forecasting/submission/sample-sigconf.tex b/research/tech_forecasting/submission/sample-sigconf.tex new file mode 100644 index 0000000..442be7a --- /dev/null +++ b/research/tech_forecasting/submission/sample-sigconf.tex @@ -0,0 +1,982 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2026} +\acmYear{2026} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[Conference acronym 'CIKM]{Make sure to enter the correct + conference title from your rights confirmation email}{June 03--05, + 2026}{Woodstock, NY} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +% \acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{Technology Forecasting through Data-Driven Analysis of Patents} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Forecasting technology lifecycle phases is a key enabler of data-driven innovation scouting, helping coaches and decision makers anticipate future technological developments and plan accordingly. Patent data offers structured, time-stamped records of innovation activity, making it a valuable basis for modeling and forecasting technology lifecycle trajectories. In this paper, we propose a systematic, domain-agnostic framework for technology forecasting using patent count time series from the European Patent Office (EPO). After identifying trends that are likely to capture a complete technology lifecycle, we derive a universal eight-phase lifecycle pattern from them. Based on this pattern, we annotate the trends and evaluate a two-stage pipeline combining neural time series forecasting with lifecycle phase classification. The evaluation yields three key results: (1) a Transformer-seq2seq classifier achieves F1-macro~0.785 on the eight-phase labeling task using only raw patent counts; (2) the top five neural forecasting architectures converge to within 7.85~MAE after per-series normalization, outperforming the Prophet baseline by 57\%; and (3) the best combined pipeline configuration (Transformer-Direct paired with LSTM-seq2seq) predicts lifecycle phase transitions with a mean year-delta of 1.7~years and a median of 0.650~years, without relying on any domain-specific features or patent text content. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 10002951.10003227.10003241.10003244 + Information systems~Data analytics + 500 + + +\end{CCSXML} + +\ccsdesc[500]{Information systems~Data analytics} + +% \ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +% \ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Technology forecasting, Patent time series analysis, Emerging technologies and innovation, Technology lifecycle} + + +% \received{20 February 2007} +% \received[revised]{12 March 2009} +% \received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +Innovation coaches in a university support researchers and staff in transforming academic ideas into practical innovations by guiding them through processes like commercialization, collaboration, and funding acquisition. Their tasks include scouting for emerging trends and fostering innovation and knowledge transfer. To do this, they engage in systematic scouting and screening activities to identify expertise and trends within and outside of their university, aiming to discover researchers with startup potential. As part of a funded project, we developed tools to assist coaches in these scouting activities by automating data gathering and analysis~\cite{arzani2023challenges}. A core function of these tools is to forecast technology lifecycle trajectories and support the identification of promising research trends. By analyzing historical technology developments and combining them with academic data, such as research projects, publications, and researcher profiles, the coaches can effectively monitor technological trajectories and anticipate upcoming phase transitions. + + +Patent data is particularly valuable for recognizing technology patterns and offer structured, time-stamped records of innovation across disciplines. Unlike informal sources such as news or social media, patents are legally significant and must be filed early. Thus, they systematically document technical advancements, making them ideal for tracking technology evolution. Their structure also enables extraction of citation networks, classifications, and inventor collaborations—key indicators of emerging innovation. + + + +However, developing forecasting models that can fully leverage patent data poses significant challenges. A primary obstacle is creating models that are not confined to specific technological domains but can be generalized across diverse areas. Existing models often perform well within narrow fields but struggle to scale because innovation cycles, growth rates, and domain-specific language vary widely between sectors. These differences make it difficult to apply a single predictive framework, as models may misinterpret sector-specific dynamics or fail to detect trends in less studied areas. + +Furthermore, many current approaches to technology forecasting, including widely referenced models such as the Gartner Hype Cycle, rely heavily on expert opinions and qualitative assessments. Although these methods provide valuable strategic insights, they are inherently subjective and often lack transparency in how trends are selected, categorized, or timed. This subjectivity limits their reproducibility and may introduce biases based on the perspectives or expertise of the contributing analysts. +% Furthermore, such models typically do not offer the granular, data-driven predictions needed for detailed, system-level innovation scouting. + +Therefore, there is a need for forecasting approaches that combine the objectivity and scalability of data-driven methods with the ability to generalize across technological domains. This paper addresses this challenge by proposing a predictive data-driven approach based on patents. To make the key concepts accessible, we introduce the following working definitions. +In this work, we use \textit{patent trend}s as univariate time series of annual patent document counts for a specific IPC classification code, representing the innovation activity in that technology domain over time. Based on these, we capture \textit{technology lifecycle} which describes the temporal evolution of this activity through distinct structural phases (from early emergence and growth, through a peak of activity, to eventual decline and stabilization). After defining lifecycle phases, we generate \textit{stabilized trend}s, which are IPC time series that, based on the filtering criteria detailed in Section~\ref{extraction_stabilized_trends}, are likely to have completed their full technology lifecycle. Finally, from the stabilized trends, we derive a \textit{universal technology trend}, as a single representative pattern capturing the shared evolutionary structure across all stable IPC domains, independent of technology type. + +Our analysis focuses exclusively on patent count time series from the European Patent Office (EPO) and does not analyze the textual content of patent documents. The EPO is selected for its systematic coverage and open data access; we acknowledge that innovations are not limited to the EPO framework and that extending to other patent offices remains a direction for future work. As a first step, we extract patent time series from the EPO from 1978 onwards and identify stabilized trends. Utilizing the universal trend derived from these, we define the phases of the technology lifecycle and annotate the stabilized trends. Finally, leveraging neural sequence modeling and Transformer architectures, this paper proposes a two-stage, domain-agnostic pipeline that combines neural patent trend forecasting with lifecycle phase classification. The latter enables reproducible prediction of technology transitions at scale. The paper delivers the following contributions: +\begin{itemize} + + % \item We describe a data-driven approach to identify a universal technology lifecycle and its phases using patent data. + + % \item We develop models that are capable of identifying the lifecycle phases using an accuracy of up to 88\%. + % \item We show that it is possible to forecast future phases with an error of only 1.27 years. + \item We describe a data-driven framework to extract IPC patent time series from the EPO and annotate them with a universal eight-phase technology lifecycle, requiring no domain-specific features. + \item We evaluate a Transformer-seq2seq classifier achieving F1-macro~0.785 on the lifecycle phase labeling task using only raw patent counts. + \item We benchmark time series forecasters against a Prophet baseline with top neural models converging to within 0.07~MAE, reducing forecasting error by 57\% over the baseline. + \item We evaluate a two-stage forecast-classify pipeline which achieves a mean year-delta of 1.7 years and within 7 months median precision for the best configuration (Transformer-Direct + LSTM-seq2seq). + % \item We introduce an oracle decomposition that isolates forecast-induced classification error, showing that classifier noise-robustness---not standalone accuracy---is the dominant factor governing combined pipeline performance. +\end{itemize} + + + + +\section{Related Work} + +Forecasting technological trends is a central challenge in innovation management. One well-known conceptual model is the Gartner Hype Cycle (GHC), which describes the evolution of technology through five phases, from the initial trigger to broad market adoption~\cite{gartner_5,linden2003understanding}. While the GHC helps assess the maturity and business value of technologies, its qualitative nature and dependence on subjective expert judgment limit its reproducibility and transparency~\cite{dedehayir2016hype,steinert2010scrutinizing}. To overcome these limitations, patent-based approaches have gained traction due to their objectivity and data availability. Early work by Campbell (1983) proposed using patent indicators such as activity levels, immediacy, and dominance to track the lifecycle of technologies and forecast innovation dynamics~\cite{campbell1983patent}. + +Recent advances have focused on leveraging text mining and machine learning techniques to extract insights from patent data~\cite{kim2019text,qiu2020technology,choi2021identifying}. Authors of~\cite{abbas2014literature} provide a comprehensive overview of such methods, distinguishing between text-based analyses using NLP and semantic extraction, and visual analytics like patent maps and citation networks. Tools such as PatStream and TrendPerceptor combine NLP with interactive visualizations and concept extraction to identify emerging technologies without requiring domain expertise~\cite{han2017visual,yoon2012trendperceptor}. Similarly, topic modeling methods like LDA have been applied to uncover latent themes in patent texts and track their evolution over time~\cite{chen2017topic,supraja2015patent,kim2015technology}. Statistical models, such as ARIMA and LSTM networks, have further improved the forecasting of temporal trends, especially in noisy and nonlinear domains~\cite{sagheer2019time,supraja2015patent}. Cluster- and network-based approaches also play an important role. Some authors use CPC-based clustering combined with patent indicators to identify promising technologies~\cite{kim2017novel}, while others integrate k-means clustering and topic modeling for uncovering innovation white spaces in fields such as renewable energy~\cite{kim2015technology}. Property-function-based analyses address the limitations of citation delay by extracting semantic relationships directly from patent text, enabling the detection of early-stage innovations~\cite{yoon2012analysis} in the solar cells area. Integrative frameworks combining bibliometrics, patent data, scenario planning, and system dynamics offer robust strategies for technology forecasting under uncertainty~\cite{daim2006forecasting}. + +%Together, these methods highlight the growing maturity and methodological diversity of patent-based forecasting systems. + +In contrast to prior work, which often focuses on domain-specific analyses or requires extensive expert input, our approach introduces a domain-agnostic, methodologically consistent, and reproducible framework for patent-based trend forecasting. By applying unsupervised clustering, we derive universal technological trend patterns from a large-scale patent corpus, independent of specific application fields. This eliminates the need for manual topic selection or domain tailoring, which enables scalability across diverse innovation areas. +In comparison to some related work, we use raw patent counts as input for the forecasting and classification models, while other approaches rely on engineered features such as patent citations, text embeddings, or semantic indicators~\cite{sagheer2019time}. Our approach does not analyze the textual content of patent documents (such as claims, abstracts, or descriptions) but operates exclusively on the numerical count time series derived from IPC classification metadata. +%The design choice is deliberate, as it decouples the framework from natural language processing pipelines, making it language-agnostic. +%The analysis of patent text content, for example to identify semantic innovation signals or measure technological proximity, is a complementary direction that we leave for future work. +In our work, after extracting a universal technology lifecycle from patent data, we use it to train a sequence-to-sequence classifier for lifecycle phase prediction. Moreover, we benchmark multiple neural state-of-the-art forecasting and classification models against a strong baseline and evaluate their performance in a combined forecast-classify pipeline. In doing so, we provide insights into the interplay between forecasting accuracy and classification robustness. + +\section{Patent System} + +% Patents play an important role in fostering innovation by granting the inventors exclusive rights to their innovation for a period of time, typically 20 years. +In this work, our goal is to enable patent-phase classification and forecasting of technology lifecycle phases in support of innovation scouting. As input, we focus on the patent data from the European Patent Office (EPO)~\cite{harhoff2009duration}. The EPO is a major patent authority that reviews and grants patents, enabling inventors to secure innovation across different markets. + +Patents are typically categorized in technical domains using systems such as Cooperative Patent Classification (CPC) and International Patent Classification (IPC)~\cite{leydesdorff2014interactive}, which organize innovation into sectors such as pharmaceuticals, biotechnology, electronics and information technology. This classification helps streamline patent searches, foster collaborations, and identify technological trends across various domains. For instance, a biotech startup may use IPC to locate similar gene-editing patents before filing its own, while a large firm may analyze classification trends to inform R\&D investments. The EPO organizes patents using the IPC system, which is divided into eight main sections, each representing a broad area of technology. These sections are: A (Human Necessities), B (Performing Operations; Transporting), C (Chemistry; Metallurgy), D (Textiles; Paper), E (Fixed Constructions), F (Mechanical Engineering; Lighting; Heating; Weapons), G (Physics) and H (Electricity). Each section is further divided into classes, subclasses, groups, and subgroups to provide a detailed and hierarchical structure for organizing patents. + +For example, in the field of medical technology, \textit{Section A} covers Human Necessities, while \textit{Class A61} focuses on Medical or Veterinary Science; Hygiene. Within this, \textit{Subclass A61K} is dedicated to Preparations for Medical, Dental, or Toilet Purposes, including drugs, disinfectants, and cosmetic formulations. A more specific breakdown, such as \textit{Group A61K 31/00}, refers to medicinal preparations containing organic active ingredients. This group contains several subgroups, and one such example is \textit{A61K 31/519}, which refers specifically to Medicinal preparations containing macrolides, a subclass of antibiotics. + +% EPO data on each IPC class inherently include time-series information, where the number of patent filings is recorded over time for specific technologies, allowing analysts to track innovation activity and its intensity over the years. The EPO publishes two main types of patent documents: \textit{EP-A} documents, which are published patent applications (not necessarily granted), and \textit{EP-B} documents, which are granted patents. Both of these types are included in our analysis. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the total count of published EP-A and EP-B documents in a particular year for a particular IPC class. + +EPO data inherently include time-series information, where the number of patent filings is recorded over time for specific technologies, allowing analysts to track innovation activity and its intensity over the years. The EPO publishes two main types of patent documents: \textit{EP-A} documents, which are published patent applications (not necessarily granted), and \textit{EP-B} documents, which are granted patents. Both of these types are included in our analysis. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the total count of published EP-A and EP-B documents in a particular year for a particular IPC code. In this work, we concentrate on the \textit{subgroup} level of the IPC hierarchy, as it represents the most granular classification unit and avoids aggregation bias that may arise at higher levels. + + +\section{Data Generation and Modeling} + +Using the time-series data from the EPO, we propose a data-driven method for capturing technology lifecycles. Our approach begins by extracting the \textit{stabilized time series} trends of patent filings within IPC classes to construct a \textit{universal trend} that captures the typical evolution pattern of technologies. Then, the universal trend is segmented into \textit{distinct phases of the lifecycle}, based on the structural characteristics of the trend curve. +%Finally, the labeled phases serve as the baseline for \textit{modeling} using multiple models, which are then used to classify current technological stages and forecast future lifecycle trajectories. +Finally, the labeled phases serve as training data for \textit{classifying} current technological stages and \textit{forecasting} future lifecycle trajectories." + + + +\subsection{Extraction of Stabilized Trends} +\label{extraction_stabilized_trends} + + +Patent activity across IPC domains varies widely in volume, frequency, and maturity. While some domains already went through the full technology lifecycle, others have sparse or incomplete data, reflecting early stage or irregular development. When trying to identify a universal model for the technology lifecycle, the latter will inevitably introduce noise. Thus, to reduce the noise, we apply a filtering process to retain only IPC time series that are likely to capture the complete technology lifecycle. In the following, we refer to these time series as \textit{stabilized trends}, which are time series data with minimized short-term noise and variance, allowing analysts to accurately model the long-term patterns of introduction, growth, maturity, and decline~\cite{wu2023linkage}. We identify stabilized trends through a six-step filtering procedure (Figure \ref{fig:filtering_pipeline}). + +\begin{figure}[h] + \centering + \includegraphics[width=0.95\linewidth]{figures/pipeline_v1.png} + \vspace{-0.45cm} + \caption{Filtering process: Extraction of stabilized patents.} + \label{fig:filtering_pipeline} +\end{figure} + +We begin by (1) extracting all patent documents (EP-A applications and EP-B granted patents) published by the EPO from 1978 to 2022. For each IPC subgroup code, we aggregate the annual count of documents to construct a univariate time series (one value per year which represents the innovation intensity in that domain). This process yields 73,739 IPC trends, each represented as a yearly time series of patent counts.\footnote{The IPC dataset will be made publicly available post-review for reproducibility.} Since patents may have multiple IPC codes, (2) we disambiguate trends by isolating subgroup-level IPCs and removing higher-level codes, slightly reducing the dataset to 73,298 trends. (3) A European patent provides exclusive rights for a maximum of 20 years from the filing date, as stated in Article 63(1) European Patent Convention (EPC)~\cite{di2002european}. This time frame reflects the legal lifecycle of a patent and defines the maximum period during which a technology can remain under protection. This ensures a balance between incentivizing innovation and eventually allowing public access to the invention once the patent expires. Therefore, each IPC must span a minimum of 20 years between the first and last recorded patent, which results in 58,891 IPCs. + +% \begin{figure}[ht] +% \centering +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/pipeline_v1.png} +% \caption{Filtering process: Extraction of stabilized patents.} +% \label{fig:filtering_pipeline} +% \end{minipage} +% \hfill +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} +% \caption{Comparison of different clustering algorithms.} +% \label{fig:clustering_algorithms} +% \end{minipage} +% \end{figure} + +(4) Each IPC trend must exhibit a distinct peak year, defined as the year with the highest number of published patents. To ensure trend stability, this peak must not fall within the last five years of the observed period, as trends peaking too recently may still be evolving and not fully reflect the technology lifecycle. The five-year window also accounts for the typical duration of the European patent grant process (3–5 years) \cite{guellec2000applications}, during which publication delays and pending examinations can cause incomplete or lagging data. By excluding recent peaks, we reduce the risk of analyzing immature trends, resulting in a refined dataset of 27,831 trends. (5) To filter out insignificant trends, each must have a peak of at least three patents. About 27\% of IPCs peak at only two patents, indicating limited activity and weak signals. This threshold reduces the dataset to 26,845 valid trends. + + +Lastly (6), to ensure trend stability, the last five years of each time series must not exhibit significant fluctuations. Specifically, the difference between the minimum and maximum values within this five-year window must not exceed 10\% of the trend’s peak value. This relative threshold is dynamic, as it scales with the magnitude of the trend peak, ensuring that larger trends can tolerate proportionally larger absolute fluctuations, while still maintaining relative stability. For example, a trend with a peak of 1000 allows for a fluctuation of up to 100, whereas one with a peak of 100 permits only 10, making the filter adaptive to varying trend sizes. The threshold of 10\%, determined through exploratory data analysis by iteratively examining the stability and coverage of retained trends at values ranging from 5\% to 25\%, is intentionally conservative. This aims to retain only those trends that have, with high confidence, fully completed their lifecycle and are no longer evolving. Looser thresholds retain more trends but introduce series with residual post-peak fluctuations, while stricter thresholds reduce the dataset to the point of insufficient training data. + +As a final result, the filtering process generates 2,774 stabilized IPC trends across all sections with the following distribution: A:10.9\%, B:17.5\%, C:20.4\%, D:4.3\%, E:2.6\%, F:7\%, G:21.1\%, H:16.2\%. + + +\subsection{Patent Trend Analysis} +\label{universal_trend} + +As a basis for identifying typical patent lifecycle phases, we first investigate whether the 2,774 stabilized trends naturally group into one or more clusters of similar behavior. To this end, we apply unsupervised clustering algorithms and evaluate the resulting cluster quality to determine how many distinct lifecycle archetypes the data supports. Also, because trends differ in both scale and timing, comparisons are made using DTW-based similarity measures that account for temporal shifts between series. Once the number of representative patterns is established, we derive a universal trend from the identified cluster(s) using DTW-based averaging methods, which produce a single representative series that best captures the shared structure across all stabilized trends. In the following, we describe the two stages of this analysis in more detail. + +\begin{figure}[h] + \centering + \includegraphics[width=0.80\linewidth]{figures/bar_k_dbscan.png} + \vspace{-0.40cm} + \caption{Comparison of different clustering algorithms.} + \label{fig:clustering_algorithms} +\end{figure} + + + +First, to investigate whether multiple universal trend patterns exist, we apply K-Means, K-Medoids~\cite{arora2016analysis}, K-Shape~\cite{paparrizos2015k}, and DBSCAN~\cite{deng2020dbscan} to the stabilized patent trends, using both DTW distances and Pearson correlation. Clustering quality is assessed with the Silhouette Score~\cite{shahapure2020cluster} in Figure \ref{fig:clustering_algorithms}, where value 1 on y-axis indicates perfect clustering and values near 0 or negative suggest poor separation. Across all methods and cluster counts (k = 2–6), the scores remain low, e.g., K-Medoids peaked at 0.03 for k = 2, K-Means at 0.16 for k = 2, and K-Shape at 0.05 for k = 3, while DBSCAN produces similarly modest results (max 0.09). These consistently low scores indicate weak cluster structures and limited separation between trends, suggesting that the dataset is best represented by a single dominant pattern. Consequently, we select \textit{k=1} as the optimal choice for describing the entire dataset. A single universal lifecycle pattern may not fully capture the diversity of domain-specific innovation dynamics. For instance, software technologies may follow shorter, faster cycles than pharmaceuticals or materials science. However, the consistently low silhouette scores across all clustering methods and cluster counts (k = 2--6) provide empirical evidence that, at the granularity of IPC subgroup patent counts, the data does not support multiple well-separated lifecycle archetypes. A single representative trend is therefore the best-supported characterization of the full dataset. +%, and the variability in phase duration and intensity across domains is captured at the annotation and modeling stages rather than through separate universal patterns. + + +In the second stage, we derive a universal trend pattern from the identified cluster. In doing so, we compare several Dynamic Time Warping (DTW) methods to aggregate trends into an optimal representative universal pattern~\cite{han2020pattern}. The DTW warping path describes the optimal alignment between two given time series sequences. Typically, one of the two trends is used as a reference, and the second trend is aligned to this reference trend. Our analysis reveals that while methods that use a random or preliminary average reference trend introduce bias or information loss, pairwise alignment mitigates reference bias, but results in increased smoothing due to $n^2$ pairings~\cite{asesh2021normalization}. + +% \vspace{-0.7cm} +\begin{figure}[!htb] + \vspace{-1em} + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_dba_v1.png} + \vspace{-0.8cm} + \caption{DBA} + % \vspace{1cm} + \label{fig:uni_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_gmm_v1.png} + \vspace{-0.8cm} + \caption{GMM} + \label{fig:gmm_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_lstm_v1.png} + \vspace{-0.8cm} + \caption{LSTM} + % \vspace{-0.6cm} + \label{fig:lstm_trend} + \endminipage +\end{figure} +% \vspace{-0.5cm} + +To overcome the shortcomings of DTW, we utilize Dynamic Time Warping Barycenter Averaging (DBA)~\cite{petitjean2014dynamic,petitjean2011global}. DBA is an iterative algorithm that finds a representative \textit{average} time series (the barycenter) for a set of time series by minimizing the sum of their DTW distances to this average. In each iteration, it computes optimal DTW alignments between the current average and all input sequences, then updates the average by taking a weighted \textit{barycenter} of the points aligned to each position of the average. +%This method begins by identifying the Medoid which serves as the initial reference with the lowest total DTW distance to all other trends. Figure \ref{fig:uni_trend} shows the universal trend generated by the DBA approach. +% This method avoids repeated averaging and best preserves the original trends information content. +Starting from the Medoid as the initial reference (the trend with the lowest total DTW distance to all others), DBA iterates to convergence; Figure~\ref{fig:uni_trend} shows the resulting universal trend. + +To validate the resulting trend, we also train a Gaussian Mixture Model (GMM) and an LSTM with stabilized trends using a random trend as starting point. +% a representative uniform trend was calculated from them. +A GMM is a probabilistic model that assumes that the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters, enabling soft clustering and density estimation~\cite{viroli2019deep}. The GMM with a single component is trained on all stabilized trends and visually compared with the DBA result. Furthermore, the LSTM model consists of two layers: one LSTM layer with 100 neurons and a dense output layer with a single neuron. We train the LSTM using the Mean Squared Error (MSE) and the Adam optimizer, with a learning rate of 0.001 over 50 epochs. +% The same input data was used for both training and prediction, and the output represents the unified trend. + + +Figures~\ref{fig:gmm_trend}~and~\ref{fig:lstm_trend} show the identified universal patent trends determined using the GMM and LSTM models (left to right). DBA and LSTM trends are mostly similar in their progression, with both trends initially flattening and then rising to a peak, after which the progression declines again. The GMM trend, on the other hand, exhibits a greater fluctuation than the other two trends. The main difference is the appearance of a major second, slightly lower peak. +We conclude that using the cluster, there exists a universal patent trend that describes every stabilized patent's behavior, independent of domain and time. + +\subsection{Identification of Lifecycle Phases} +% \vspace{-0.6em} +\label{phase_definitions} + +Based on the results of the analysis (cf. Figure~\ref{fig:uni_trend},\ref{fig:gmm_trend},\ref{fig:lstm_trend}), we define several lifecycle phases. +%The goal of this step is to divide the universal trend into phases for later classification and prediction tasks. +% The phase definitions are derived empirically from the structural characteristics of the universal trend (Section~\ref{universal_trend}), rather than adopted from a predefined external framework or prior literature. +%Concretely, phase boundaries are identified as structural inflection points in the patent count series: +The \textit{peak phase} corresponds to the year of maximum patent count; \textit{growth phases} are contiguous periods of sustained increase leading to a peak; \textit{decline phases} are contiguous periods of sustained decrease following a peak; and the \textit{plateau phase} is identified as the final stable low-activity period, whose existence is guaranteed for all retained trends by the filtering criterion in Section~\ref{extraction_stabilized_trends}. The \textit{pre-use phase} covers the initial low-activity period before the first sustained growth. Transitions between phases are marked at years where the direction of change shifts (i.e., at local minima and maxima of the count series), constrained to exclude single-year reversals so that only sustained directional changes define boundaries. The optional secondary cycle is identified when a renewed growth phase emerges after the primary decline before the plateau is reached. After establishing these structural rules, we manually inspect the 2,774 stabilized trends and annotate each year with its corresponding phase label. + +A stabilized IPC code typically goes through several distinct enumerated phases throughout its lifecycle as demonstrated in Figure~\ref{fig:ideal_trend}. The lifecycle consists of mandatory and \textit{optional} phases as follows: (1) pre-use phase; (2) growth phase; (3) peak phase; (4) decline phase (5a) \textit{optional} second growth phase; (5b) \textit{optional} second peak phase; (5c) \textit{optional} second decline phase; +% (6) optional plateau rise; +(6) plateau phase. +The (1) pre-use phase is marked by minimal patenting activity. This is followed by a (2) growth phase, characterized by a rising number of patent filings reflecting a growing interest in the technology. The lifecycle then reaches a (3) peak phase, where the maximum number of patents is published, indicating the peak point of the IPC. +After this peak, a (4) decline phase sets in, with patent activity decreasing. +Some IPC trends exhibit an optional cycle, representing a smaller, secondary wave of interest. About 17\% (467 out of 2,774) of the stabilized trends show this pattern, which include an (5a) optional second growth phase, an (5b) optional second peak phase, and an (5c) optional second decline phase. +% Beyond these, a small percentage (under 2\%) show an (6) optional plateau rise, where patenting activity slightly increases before stabilizing. +Finally, the IPC enters a (6) plateau phase, a stable level of activity, often near zero, signifying the end of its lifecycle. The duration and intensity (i.e., slope steepness or peak height) of each phase vary from trend to trend. Figure~\ref{fig:trends_example} shows some instances of stabilized IPCs in patent sections A, B, C, D, F, G and H with optional and primary phases that demonstrate the latter behavior. This step delivers the annotated technology phases of the stabilized trends. + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=0.90\linewidth]{figures/universal_trend_ideal.png} + \vspace{-0.45cm} + \caption{Idealized universal trend.} + \label{fig:ideal_trend} + \end{minipage} + % \hfill + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=0.90\linewidth]{figures/all_trends.png} + \vspace{-0.40cm} + \caption{Example stabilized trends.} + \vspace{-0.5cm} + \label{fig:trends_example} + \end{minipage} +\end{figure} + + +\subsection{Prediction of Patent Trends} +\label{modeling} + +Using the annotated stabilized IPC trends, we model three tasks: patent activity forecasting, phase classification, and a combined pipeline that chains the two to predict when future lifecycle transitions will occur. We explain each of these tasks in more detail below. + + +\textbf{Patent activity forecasting.} The forecasting task predicts the future patent filing counts given a partial observation of the first $\ell$ years of a trend. This is valuable for supporting innovation scouts, as it enables identifying key lifecycle phases that may occur in the future, such as anticipating when a trend might peak or begin to decline. + +For this task, we investigate two prediction strategies: In \textit{direct} multi-step forecasting, the model outputs all remaining $45 - \ell$ future values in a single forward pass, avoiding iterative error accumulation. +%How does a single forward pass work (look at the code): the model takes the observed sequence of length $\ell$ as input and produces a fixed-length output vector of size $45 - \ell$, where each element corresponds to the predicted patent count for a future year. This approach allows the model to learn the joint distribution of future values conditioned on the observed history, potentially capturing complex temporal dependencies across the entire forecast horizon. +In \textit{autoregressive} (AR) forecasting, the model predicts one step at a time, appending each predicted value to the input sequence and iterating forward. Direct models avoid the error compounding inherent to autoregressive decoding at the expense of a more complex output distribution. To achieve this, we evaluate eleven models across four model families including Transformer-based architectures (standard Transformer, Informer, PatchTST, Autoformer)~\cite{zhou2021informer,huang2024long,wu2021autoformer}, recurrent models (LSTM), and convolutional models (TCN), each in both direct and autoregressive modes where applicable. We also add statistical baselines (Prophet, ETS, ARIMA)~\cite{ning2022comparative,jain2017study} that fit each series independently. +%serve as reference methods. + +%\textbf{Forecasting models.} +Among the neural direct forecasting models, \emph{Transformer-Direct} uses $d_\mathit{model}=64$, 4 attention heads, and 2 layers, while \emph{Informer} reduces computational complexity through ProbSparse self-attention, \emph{PatchTST} applies patch-based tokenization of the time series, \emph{LSTM-Direct} uses a 2-layer architecture with 128 hidden units, and \emph{TCN-Direct} relies on dilated convolutions with 64 filters. +%difference between informer, patchtst and transformer: Informer reduces the computational complexity of self-attention from $O(L^2)$ to $O(L \log L)$ by selecting only the most relevant queries based on their sparsity, making it more efficient for long sequences. PatchTST, on the other hand, divides the time series into fixed-size patches and treats each patch as a token, allowing it to capture local patterns effectively while still leveraging the Transformer's global attention mechanism. The direct forecasting models are trained to predict all future values in one forward pass, which allows them to learn complex temporal dependencies across the entire forecast horizon without being affected by error accumulation. +All of these models generate the full forecast horizon in a single forward pass. In contrast, the neural autoregressive models, namely \emph{LSTM-AR} and \emph{TCN-AR}, predict one step at a time and feed each prediction back into the model as input for the next step. This iterative strategy can better capture fine-grained temporal dynamics, although it is more vulnerable to error accumulation over longer forecasting horizons. \emph{Autoformer} represents a Transformer-based variant that incorporates built-in series decomposition into trend and seasonal components through auto-correlation attention, making it suitable for data with pronounced seasonal structure. In addition, the comparison includes statistical baselines such as \emph{Prophet}, which uses additive trend decomposition with changepoint detection, \emph{ETS}, which is based on exponential smoothing, and \emph{ARIMA}, which follows an autoregressive integrated moving average formulation. Unlike the neural approaches, these classical methods fit each time series independently and therefore cannot exploit cross-series patterns arising from the shared lifecycle structure. +%difference between autoformer and other transformer-based models: Autoformer incorporates a series decomposition mechanism that separates the input time series into trend and seasonal components using auto-correlation attention. This allows it to model complex temporal patterns more effectively, especially in data with strong seasonality, whereas standard Transformer-based models may struggle to capture such patterns without explicit decomposition. + +\textbf{Phase classification.} The classification task takes a trend as input and outputs the phase of the final year in the sequence, helping to identify where we are currently in the lifecycle. This is particularly valuable for innovation scouts, as it provides immediate orientation in evaluating the maturity of a technology. + +%\textbf{Classification overview.} +The task assigns one of the eight lifecycle phases defined in Section~\ref{phase_definitions} to each year of a patent trend. We formulate this as a \textit{sequence-to-sequence} (seq2seq) problem: given the full 45-year input series, the model produces a phase label for every timestep. This per-timestep labeling captures the temporal structure of lifecycles, including the precise timing of transitions between phases. To do this, we evaluate seven models across four model families including Transformer encoders~\cite{yuan2020self} , Long Short-Term Memory networks (LSTMs), Temporal Convolutional Networks (TCNs)~\cite{pelletier2019temporal}, as well as convolutional time series classifiers (InceptionTime, ResNet)~\cite{ismail2020inceptiontime} and the random convolutional kernel transform ROCKET~\cite{dempster2020rocket}. + +%\textbf{Classification models.} +The \emph{Transformer-seq2seq}, is a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. The \emph{LSTM-seq2seq} includes a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. +The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favor smooth, locally coherent phase transitions. +%explain the latter: the LSTM's gating mechanisms allow it to learn when to retain or forget information, which can help it model the gradual transitions between lifecycle phases, while the Transformer's attention mechanism may capture more complex, non-local dependencies but may require more data to learn smooth transitions effectively. +The \emph{TCN} is a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%The increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +%explain the latter: the TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%dialations and exponetional grow meaning +Additionally, \emph{InceptionTime} and \emph{ResNet} are convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolutional blocks along the temporal dimension which are adapted here for sequence-to-sequence output by incorporating a per-timestep classification head. +% ; although originally designed for univariate whole-series classification, they +We also consider two baselines: \emph{LSTM-Segment} a segment-level classification model and a non-neural time series classifier \emph{ROCKET}. The LSTM-Segment model, is a single-layer LSTM that predicts one majority phase label for the entire input sequence. Here, each 45-year trend is reduced to its most frequent lifecycle phase and the model predicts this single label for the whole sequence. This baseline tests whether the task can be solved by assigning one coarse label to the entire trend, or whether per-timestep sequence labeling is necessary to capture phase transitions. ROCKET is another baseline that applies a random convolutional kernel transform to generate high-dimensional feature representations, followed by a ridge classifier, and is designed for efficient single-label time series classification. + + + +\textbf{Combined pipeline.} The combined task chains the forecasting and classification stages into a single end-to-end pipeline: given the first $\ell$ years of a technology's patent history, the forecaster predicts the remaining years and the classifier annotates the predicted series with lifecycle phase labels. The operationally relevant question for innovation scouts is not merely \textit{what} phase a technology will enter, but \textit{when} each phase transition will occur. To quantify this, we introduce the \textit{year-delta} metric, which measures the average temporal distance between predicted and true phase transition points. To this end, we evaluate all pairwise combinations of top-performing forecasters and classifiers in a combined pipeline, where the forecaster generates the future patent activity and the classifier predicts the corresponding lifecycle phases. + +%This setup simulates a real-world scenario where both forecasting and classification are necessary to anticipate future technology trajectories. To disentangle the sources of error in this pipeline, we also evaluate each classifier in \textit{oracle mode + +%, and additionally run each classifier in \textit{oracle mode} on ground-truth series. + + + +\section{Evaluation} + +In this section, we evaluate the proposed approach across the three mentioned interconnected tasks. After describing the experimental settings, we present the results for forecasting models in predicting future patent activity. Then, we evaluate the performance of lifecycle phase classification. Finally, we assess the combined performance of the forecasting and classification models in predicting future phase transitions. + +%All experiments use the 2,774 stabilized IPC trends described in Section~\ref{extraction_stabilized_trends}, each spanning 45 annual patent counts (1978--2022). Training was performed on a single NVIDIA A6000 GPU (48\,GB VRAM). + +\subsection{Experimental Settings} +\label{ssec_experimental_settings} + +% \textbf{Dataset and phase labels.} Each of the 2,774 series is annotated with eight per-year lifecycle phase labels corresponding to the phases defined in Section~\ref{phase_definitions}: pre-use~(0), growth~(1), peak~(2), decline~(3), second growth~(4), second peak~(5), second decline~(6), and plateau~(7). The mandatory phases---pre-use, growth, peak, decline, and plateau---occur in every series, while the optional second cycle (phases 4--6) appears in approximately 17\% of technologies. The resulting class distribution is heavily skewed: the mandatory phases dominate per-timestep labels, while the optional second-cycle phases and the peak marker represent fewer than 5\% of all labels. The input feature tensor for classification is $(N, 45, 9)$: one raw patent count value per timestep plus an 8-dimensional IPC-section one-hot encoding (sections A--H), repeated identically at each timestep. Forecasting uses a $(N, 45, 10)$ tensor, adding a normalised observation-length indicator that encodes the fraction of the series observed so far. + + + +% \textbf{Classification models.} Seven architectures are evaluated, spanning four model families: +% \begin{itemize} +% \item \emph{Transformer-seq2seq}: a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. +% \item \emph{LSTM-seq2seq}: a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +% \item \emph{TCN}: a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The exponentially increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +% \item \emph{InceptionTime} and \emph{ResNet}: convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolution blocks across the temporal dimension. Originally designed for univariate whole-series classification, we adapt them for seq2seq output by applying a per-timestep classification head. +% \item \emph{LSTM-Segment}: a single-layer LSTM that outputs one majority phase label for the entire input sequence, serving as a segment-level baseline that tests whether per-timestep annotation is necessary. +% \item \emph{ROCKET}~\cite{dempster2020rocket}: a random convolutional kernel transform that generates a high-dimensional feature vector from random convolution kernels followed by a ridge classifier. ROCKET is designed for fast single-label time series classification and provides a non-neural baseline. +% \end{itemize} + + +% \textbf{Forecasting models.} Eleven models are evaluated across four families: +% \begin{itemize} +% \item \emph{Neural direct models}: Transformer-Direct ($d_\mathit{model}=64$, 4 heads, 2 layers), Informer (ProbSparse self-attention for reduced complexity), PatchTST (patch-based tokenisation of the time series), LSTM-Direct (2-layer, 128 hidden units), and TCN-Direct (dilated convolutions, 64 filters). All output the full forecast horizon in a single forward pass. +% \item \emph{Neural autoregressive models}: LSTM-AR and TCN-AR, which predict one step at a time and feed each prediction back as input for the next step. This iterative scheme can capture fine-grained temporal dynamics but is susceptible to error compounding over long horizons. +% \item \emph{Autoformer}: a Transformer variant with built-in series decomposition (trend + seasonal components) via auto-correlation attention. Designed for data with strong seasonal patterns. +% \item \emph{Statistical baselines}: Prophet (additive trend decomposition with changepoint detection), ETS (exponential smoothing), and ARIMA (autoregressive integrated moving average). These classical methods fit each series independently and cannot leverage cross-series patterns from the shared lifecycle structure. +% \end{itemize} + +%\textbf{Metrics.} +We adapt the evaluation metrics to the specific properties of each task. For the \textbf{forecasting task}, the direct forecasting models utilize a binary mask (Masked MSE) that zeros out loss contributions from zero-padded output positions beyond the true forecast horizon. This prevents the model from learning to predict zeros at invalid positions. +%how it works: $\kappa = (p_o - p_e) / (1 - p_e)$ where $p_o$ is the observed agreement and $p_e$ is the expected agreement by chance. A $\kappa$ of 1 indicates perfect agreement, while 0 indicates agreement no better than random chance. what it captures: $\kappa$ captures the degree to which the model's predictions are better than random chance, accounting for class imbalance. A high $\kappa$ indicates that the model is effectively learning to distinguish between classes, while a low $\kappa$ suggests that the model's performance may be largely due to chance, particularly in imbalanced settings where majority classes dominate accuracy. how it differs from F1: while F1 focuses on the balance between precision and recall for each class, $\kappa$ provides an overall measure of agreement that accounts for the possibility of random correct predictions, making it a more robust metric in scenarios with significant class imbalance. how it complements F1: $\kappa$ complements F1 by providing a holistic measure of model performance that considers both the balance of precision and recall (F1) and the likelihood of achieving correct predictions by chance ($\kappa$), offering a more comprehensive evaluation of classification quality in imbalanced datasets. +Furthermore, mean absolute error (MAE) is the primary metric because stakeholders interpret results in terms of absolute patent numbers. Root mean squared error (RMSE) emphasizes large deviations and penalizes occasional extreme mispredictions more heavily than MAE. +%Symmetric mean absolute percentage error (sMAPE) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero, which is a frequent occurrence in patent data, where 51\% of series have a maximum count below~10 and is therefore reported for completeness but not as the primary ranking criterion. + + +\begin{table}[htb!] + \centering + \caption{Training configuration.} + \vspace{-0.9em} + \label{tab:train_config} + \footnotesize + \setlength{\tabcolsep}{4pt} + \begin{tabular}{llccl} + \toprule + Task & Model & Epochs & LR & Loss \\ + \midrule + Classification & Transformer-S2S & 60 & $10^{-3}$ & Weighted CE \\ + & LSTM-S2S / Segment & 50 & $10^{-3}$ & Weighted CE \\ + & TCN / InceptionTime & 50 & $10^{-3}$ & Weighted CE \\ + & ResNet & 50 & $10^{-3}$ & Weighted CE \\ + \midrule + Forecasting & Direct models & 40 & $10^{-4}$ & Masked MSE \\ + & AR models & 30 & $10^{-4}$ & MSE \\ + \bottomrule + \end{tabular} + % \vspace{-0.5em} +\end{table} + +For \textbf{classification task}, the heavy class imbalance necessitates metrics that reflect performance on minority classes. Accuracy alone is insufficient because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. Macro-averaged F1 (F1-mac) gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Weighted F1 (F1-wgt) averages by class frequency, providing a more optimistic estimate that may be inflated by majority classes. Cohen's $\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. + +For the \textbf{combined pipeline}, we utilize the year-delta metric as the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. Transition detection rate (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +We also introduce the oracle baseline which enables us to evaluate the classification performance on perfect forecasts. In oracle mode, the classifier is applied directly to the ground-truth future series rather than the forecasted series, providing an upper bound on classification performance given perfect forecasts. This allows for a causal decomposition of pipeline error into classification and forecasting-induced error. The decomposition quantifies the extent to which error arises from the classifier's inherent uncertainty (oracle year-delta: $\Delta_\mathrm{oracle}$) versus the additional error introduced by the forecaster (forecasting impact: $\Delta_\mathrm{pred} - \Delta_\mathrm{oracle}$). + +%difference between oracle and forecasting impact: The oracle baseline evaluates the classifier's performance on the true future series, providing a measure of how well the classifier can identify phase transitions when given perfect information. In contrast, the forecasting impact quantifies the additional error introduced by using forecasted series instead of true future series. By comparing the year-delta from the oracle baseline to that from the combined pipeline, we can isolate the contribution of forecasting errors to the overall performance degradation, thus understanding how much of the error is due to imperfect forecasts versus limitations in the classifier itself. + + +%explain TDR technically and with examples: TDR is calculated by identifying all true transition points in the forecast window where the phase label changes from one class to another. For each true transition point, we check if the predicted sequence contains the same class label anywhere within the forecast window. If it does, we count that transition as detected. The TDR is then computed as the ratio of detected transitions to the total number of true transitions. For example, if there are 10 true transition points in the forecast window and the model's predictions include the correct phase label for 7 of those transitions at any point in the forecast window, the TDR would be 0.7 or 70\%. This metric captures whether the model is at least predicting the correct phases somewhere in the future, even if it does not get the timing exactly right, which is crucial for evaluating models that may struggle with precise temporal alignment but still capture important lifecycle stages. + +% \begin{itemize} +% \item \emph{Classification}: We report \textbf{accuracy} (proportion of correctly labeled timesteps), \textbf{macro-averaged F1} (F1-mac, the unweighted mean of per-class F1 scores), \textbf{weighted F1} (F1-wgt, F1 averaged by class frequency), and \textbf{Cohen's~$\kappa$} (agreement corrected for chance). Accuracy alone is insufficient under class imbalance because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. F1-mac gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Cohen's~$\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. +% \item \emph{Forecasting}: \textbf{MAE} (mean absolute error) measures the average absolute deviation in patent counts and is the primary metric because stakeholders interpret results in terms of absolute patent numbers. \textbf{RMSE} (root mean squared error) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. \textbf{sMAPE} (symmetric mean absolute percentage error) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero---a frequent occurrence in patent data, where 51\% of series have a maximum count below~10---and is therefore reported for completeness but not as the primary ranking criterion. +% \item \emph{Combined pipeline}: \textbf{Year-delta}~($\Delta$) is the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. \textbf{Transition detection rate} (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +% \end{itemize} + + +\textbf{Training configuration.} All neural models introduced in \ref{modeling} are implemented in PyTorch and trained with the Adam optimizer on a single NVIDIA A6000 GPU. Table~\ref{tab:train_config} summarizes the training hyperparameters. All models use a CosineAnnealingLR learning rate scheduler that decays the learning rate smoothly from its initial value to near zero over the total epoch budget, enabling fine-grained parameter refinement in later epochs without manual step-wise LR tuning. The batch size is 32 for all models. Statistical forecasting baselines (Prophet, ETS, ARIMA) fit each series independently at inference time with default hyperparameters. + + +\subsection{Patent Activity Forecasting} +\label{ssec:fcst} + +% The forecasting task predicts future patent filing counts given a partial observation of the first $\ell$ years. The dominant modelling challenge is scale heterogeneity: the 2,774 series span a 700$\times$ range in maximum patent count (median per-series max: 9; mean: 36.5; maximum: 2,165), with 51\% of series having a maximum below 10 and only 7\% exceeding 100. Without normalisation, the MSE loss gradient is dominated by the handful of high-count series, and models learn to predict near-zero for the majority of low-activity technologies. + +% Per-series normalisation maps each series to the $[0, 1]$ interval by dividing by its observed maximum before training. This ensures that every technology contributes equally to the loss function regardless of its absolute count magnitude. At inference time, predictions are rescaled using the stored per-series maximum for evaluation against the original patent counts. This single preprocessing step yields an average 16.7\% MAE reduction across all eight neural models, making it the highest-impact intervention in the forecasting pipeline. For direct models, an additional masked MSE loss ignores zero-padded positions beyond the true forecast horizon, preventing the model from being penalised for predictions outside the valid output range. + +%\textbf{Forecasting settings.} +As a first step, we evaluate how well the models can predict patent count time series when given only a partial observation. To this end, we train on 80\% of the series (2,219) and test on the remaining 20\% (555). Each test series is evaluated at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$ years, producing 2,775 test instances with forecast horizons of 35 to 15 years respectively. To ensure that all series contribute equally to the loss regardless of their absolute scale, we apply per-series normalization by dividing each time series by its observed maximum before training; forecasts are rescaled back to the original magnitude at prediction time. +Table~\ref{tab:fcst_overall} reports forecasting results averaged across all five observation windows. +%For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%Add masked MSE loss: For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. + +%A critical preprocessing step is per-series normalization, where each time series is divided by its observed maximum value before training and rescaled to the original magnitude at prediction time. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss is dominated by a few high-count series while the majority of low-activity technologies receive negligible gradient signal. + +%Per-series normalisation divides each time series by its observed maximum before training, ensuring that all series contribute equally to the mean squared error loss regardless of their absolute scale. At prediction time, the inverse transformation restores the original magnitude. + +%TODO +%For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. + +%Wxplain: the binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%TODO: Explain the rationale for this masking strategy and how it affects training dynamics. +%Autoregressive models are trained to predict one step at a time, using teacher forcing during training (feeding the true previous value) and autoregressive decoding at test time (feeding the model's own previous prediction). This allows them to capture fine-grained temporal dynamics but makes them susceptible to error compounding over long horizons, which is reflected in their performance metrics. +%Statistical baselines (Prophet, ETS, ARIMA) are fitted independently to each series using the \texttt{statsmodels} library, with hyperparameters selected via grid search on the training set. These models cannot leverage cross-series patterns and serve as reference points for the added value of learning from the shared lifecycle structure. + + +%At first glance, an important observation regarding the sMAPE metric is that all neural models show sMAPE values between 141 and 154, which are close to the theoretical maximum of 200~\cite{chicco2021coefficient}. This does not indicate poor model quality but rather reflects a structural property of the data. Since 51\% of series have maximum counts below 10, many timesteps have true values near zero. For such timesteps, sMAPE approaches its upper bound ($\frac{2|y - \hat{y}|}{|y| + |\hat{y}|} \to 200$) even when the absolute error is negligible (e.g., predicting 1 when the truth is 0). + +%For instance, if the true patent count for a timestep is 0 and the model predicts 1, the sMAPE would be calculated as $\frac{2|0 - 1|}{|0| + |1|} = \frac{2}{1} = 200$. This illustrates how sMAPE can yield a value of 200 for small absolute errors when the true value is near zero, which is common in this dataset due to the prevalence of low-activity series. Therefore, while sMAPE is a useful scale-independent metric in many contexts, it is not informative for this particular dataset and should be interpreted with caution. + +%The latter is furthur intensified by per-series normalization, where the model often produces predctions for low activity series that are non-zero in the normalized space but correspond to near-zero counts in the original scale, pushing sMAPE values into the high range. Therefore, we focus on MAE as the primary metric and only report sMAPE for completeness, acknowledging its limitations in this context. + +Transformer-Direct achieves the lowest MAE~(7.78), with the top five neural models concentrated within a narrow 0.07~MAE band (7.78--7.85). Given that per-series standard deviations range from $\sigma \approx 28$ to $\sigma \approx 33$, these inter-model differences are not statistically distinguishable. +%; architecture choice among the top five is effectively equivalent in absolute forecast accuracy. +This convergence indicates that, once per-series normalization levels the playing field, model capacity rather than architecture is the binding constraint for this dataset size. + +\begin{table}[htb!] + \centering + \caption{Forecasting results (mean over all 5 time windows).} + \vspace{-0.5em} + \label{tab:fcst_overall} + \footnotesize + \begin{tabular}{lccc} + \toprule + Model & MAE$\downarrow$ & RMSE$\downarrow$ \\ %& sMAPE$\downarrow$ \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{7.78} & 10.54 \\ %& 148.0 \\ + Informer & 7.79 & 10.57 \\ %& 148.8 \\ + PatchTST & 7.81 & \textbf{10.52} \\ %& 145.8 \\ + LSTM-Direct & 7.85 & 10.55 \\ %& 141.8 \\ + TCN-Direct & 7.85 & 10.58 \\ %& 146.1 \\ + TCN-AR & 8.04 & 10.67 \\ %& 153.9 \\ + LSTM-AR & 8.32 & 11.19 \\ %& 153.2 \\ + Autoformer & 9.21 & 11.87 \\ %& 149.0 \\ + \midrule + Prophet & 17.89 & 20.66 \\ %& 147.5 \\ + ETS & 20.05 & 23.52 \\ %& 147.8 \\ + ARIMA & 21.12 & 24.90 \\ %& 155.6 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +Autoformer is the weakest neural model (MAE~9.21) because its built-in series decomposition separates the input into trend and seasonal components via moving-average filters. Annual patent data is inherently non-seasonal, where each datapoint represents one year, with no repeating sub-annual cycle. Therefore, Autoformer's decomposition adds unnecessary complexity without capturing meaningful structure. Also, autoregressive models (LSTM-AR: 8.32, TCN-AR: 8.04) lag behind their direct counterparts because autoregressive decoding accumulates prediction errors at each step. For LSTM-Direct versus LSTM-AR, the MAE gap is 0.47 (7.85 vs.\ 8.32), and the direct variant trains approximately 22$\times$ faster because it avoids the iterative loop of feeding predictions back as input for the next step. + +The statistical baselines are substantially weaker: Prophet (17.89), ETS (20.05), and ARIMA (21.12) produce MAE values 2.3--2.7$\times$ higher than the best neural model. These methods fit each series independently, using trend decomposition heuristics (Prophet) or autoregressive error structure (ARIMA, ETS), and cannot exploit the shared lifecycle pattern that the neural models learn from training on samples simultaneously. + +%MAE quantifies the average absolute deviation between the predicted and true patent counts across all forecasted timesteps. An MAE of 7.78 means that, on average, the model's predictions deviate from the actual patent counts by approximately 7.78 patents per year. Given that the median maximum count per series is 9, this indicates that while the model captures general trends, there is still a significant absolute error relative to the scale of many series, particularly those with low activity. This underscores the inherent difficulty of forecasting patent activity, especially for technologies with small patent counts where even a few patents can represent a large percentage error. +% + + +%The Transformer's ascent to the top forecasting rank (from 3rd place without normalisation in preliminary runs to 1st place with normalisation) +%The Transformer's performance (1st place) is explained by its attention mechanism's sensitivity to input scale. The dot-product attention scores $\mathbf{Q}\mathbf{K}^T / \sqrt{d_k}$ are computed across all 45 positions on normalized data, which prevents the model from being dominated by a few high-count series and allows it to learn patterns across the full spectrum of activity levels. +%when input magnitudes vary by 700$\times$, +%The key vectors for high-count series produce large attention scores, that effectively masking the contributions of low-activity series during training. +%In contrast, the TCN's dilated convolutions are local operators that process each timestep's neighborhood independently. Also, the convolution kernel weights adapt to relative patterns regardless of absolute scale, explaining why TCN was the strongest model before normalisation but benefited comparatively less from it. + + +\begin{table}[htb!] + \centering + \caption{MAE by time window $\ell$. Top-5 neural models and Prophet baseline.} + \vspace{-0.5em} + \label{tab:fcst_pl} + \footnotesize + \setlength{\tabcolsep}{4pt} + \begin{tabular}{lccccc} + \toprule + Model & $\ell$=10 & $\ell$=15 & $\ell$=20 & $\ell$=25 & $\ell$=30 \\ + \midrule + Transformer-Dir. & 9.67 & 8.55 & 8.02 & 7.02 & \textbf{5.66} \\ + Informer & 9.72 & 8.62 & 8.00 & \textbf{6.91} & 5.70 \\ + PatchTST & 9.65 & 8.60 & \textbf{7.95} & 7.03 & 5.80 \\ + LSTM-Direct & \textbf{9.56} & 8.64 & 8.11 & 7.11 & 5.82 \\ + TCN-Direct & 9.58 & \textbf{8.45} & 7.99 & 7.14 & 6.08 \\ + \midrule + Prophet & 15.59 & 19.76 & 18.90 & 17.50 & 17.72 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + + +Table~\ref{tab:fcst_pl} breaks down MAE by observation window. All neural models improve monotonically as $\ell$ grows (Transformer-Direct drops from MAE~9.67 at $\ell$=10 to 5.66 at $\ell$=30, a 41\% reduction). This is not overly surprising, since longer observation windows provide more context about the lifecycle trajectory and simultaneously reduce the forecast horizon (from 35 to 15 years). At $\ell$=10, where the model has observed only 22\% of the series and must extrapolate 35 years, all five top models converge near MAE~$\approx$~9.6. This convergence at long horizons suggests that the choice of model architecture has minimal impact on forecast accuracy, and all models are effectively operating at the same performance floor determined by the data's intrinsic uncertainty. +%---the intrinsic difficulty floor for extreme extrapolation. +At $\ell$=30, inter-model spread widens (5.66--6.08), suggesting that with enough context, architectural differences begin to matter. Here, the Transformer's global attention can integrate information from all 30 observed positions simultaneously, which gives it an advantage over the TCN's local receptive field for capturing the overall shape of the lifecycle. As for the baseline, Prophet's MAE is non-monotone across $\ell$ (rising from 15.6 to 19.8 between $\ell$=10 and $\ell$=15), indicating that its trend-decomposition heuristic extracts misleading changepoints when given additional data. This sensitivity to input length is a known weakness of Prophet's piecewise-linear trend model, which tends to align with seasonal trends \cite{9449743}. + +Overall, the forecasting results are encouraging. The top five neural models converge to within 0.07~MAE of each other and collectively reduce error by 57\% over the Prophet baseline. At the same time, an absolute MAE of 7.78--7.85 against a median per-series maximum of only 9 patents highlights that predicting precise count values for low-activity IPC domains remains inherently difficult, and the forecasts should be interpreted as lifecycle-shape estimates rather than exact patent counts. + + +%The principal limitation of the forecasting stage is that all models are trained exclusively on ground-truth inputs. When predictions from these models feed into the downstream classifier in the combined pipeline, the classifier encounters a distribution it was never trained on---forecasted series with smoothed peaks, shifted inflection points, and accumulated prediction noise. This train-test distribution mismatch is the dominant source of pipeline error, as quantified in the following section. + +\subsection{Phase Classification} +\label{ssec:cls} + +% The classification task assigns one of eight lifecycle phases to each of the 45 timesteps in a patent count time series. Because the label distribution is heavily skewed toward the mandatory phases (pre-use, growth, decline, plateau), the central challenge is achieving reliable detection of the rare optional phases and the peak marker, which together constitute fewer than 5\% of all timestep labels but carry the most diagnostic information for lifecycle timing. +%\textbf{Classification settings.} +As a second step, we evaluate how well lifecycle phases can be identified when the full 45-year trend is observed. We use 5-fold stratified cross-validation, stratified by each series' majority phase, yielding approximately 2,219 training and 555 test samples per fold. In addition, we apply sub-sequence augmentation by generating shorter prefix versions of each training sequence at different lengths. This expands the training set and exposes the models to partial lifecycle histories to improve robustness when only an early part of a trend is available. In doing so, sub-sequence augmentation generates left-padded prefix sub-sequences at stride~3 (prefix lengths 5, 8, 11, $\ldots$, 44) from each training sample, expanding the effective training set to approximately 33,285 samples per fold (${\sim}15\times$ expansion), while leaving the test set un-augmented. Also, to address the inherent class imbalance in lifecycle phase distributions, where majority phases such as pre-use, growth, and plateau dominate the label space, all models use class-weighted cross-entropy \cite{xu2020class}. Class-weighted cross-entropy loss inverts the frequency of each class in the training fold to compute weights, calculated as $w_c = N / (C \cdot n_c)$ where $n_c$ is the count of class $c$, $N$ is the total label count, and $C = 8$ is the number of classes. This weighting scheme forces the optimizer to allocate more gradient signal to minority phases, such as peaks and optional second-cycle phases, rather than concentrating on the majority classes, thereby improving the model's ability to learn from underrepresented lifecycle stages. + +Table~\ref{tab:cls_overall} reports classification results across all seven models. The Transformer-seq2seq achieves the best performance on every metric, with accuracy~0.880, F1-mac~0.785, and Cohen's $\kappa$~=~0.847. The multi-head self-attention mechanism enables direct comparison of any two timesteps in the 45-year series, allowing the model to learn long-range transition patterns, such as the temporal distance between growth and peak phases. LSTM-seq2seq follows at F1-mac~0.532, while TCN achieves F1-mac~0.498. Furthermore, the convolutional baselines InceptionTime (0.397) and ResNet (0.349) perform substantially worse. + +%The relatively moderate performance of TCN and InceptionTime suggests that while convolutional temporal models can capture local patterns, they struggle with the global structure and phase transitions that characterize technological life cycles. Similarly, the lower scores of ResNet-based approaches reinforce the assumption that architectures originally designed for spatial hierarchies do not transfer optimally to this type of structured temporal classification task. + +\begin{table}[htb!] + \centering + \caption{Classification results (5-fold CV, mean).} + \vspace{-0.9em} + \label{tab:cls_overall} + \footnotesize + \begin{tabular}{lcccc} + \toprule + Model & Acc. & F1-mac & F1-wgt & $\kappa$ \\ + \midrule + \textbf{Transformer-S2S} & \textbf{0.880} & \textbf{0.785} & \textbf{0.882} & \textbf{0.847} \\ + LSTM-seq2seq & 0.692 & 0.532 & 0.692 & 0.605 \\ + TCN & 0.634 & 0.498 & 0.657 & 0.546 \\ + InceptionTime & 0.585 & 0.397 & 0.599 & 0.478 \\ + ResNet & 0.575 & 0.349 & 0.569 & 0.452 \\ + \midrule + LSTM-Segment & 0.365 & 0.243 & 0.361 & 0.190 \\ + ROCKET & 0.395 & 0.224 & 0.374 & 0.204 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +Among the convolutional models, TCN (F1-mac~0.498) outperforms both InceptionTime (0.397) and ResNet (0.349) because its dilated causal convolutions explicitly preserve temporal ordering and enable capturing long-range dependencies more effectively than the symmetric convolutions of InceptionTime and ResNet, which disregard the directional time axis. ResNet exhibits higher cross-fold variance (F1-mac std$\approx$0.025) than other models, consistent with known instability of residual architectures under class reweighting on small datasets, where the random initialization of residual connections can lead to divergent training dynamics across folds. + +\begin{table*}[htb!] + \centering + \caption{Pipeline combinations on test set (mean over 5 time windows), sorted by mean year-delta~$\Delta$.} + % p50--p95: percentiles of per-sample year-delta means. Oracle~$\Delta$: classifier error on ground-truth input. Fcst.\ imp.: additional error from forecast noise.} + \vspace{-0.5em} + \label{tab:combined_top} + \footnotesize + \setlength{\tabcolsep}{3pt} + \begin{tabular}{llccccccccc} + \toprule + Forecaster & Classifier & $\Delta$ mean & p50 & p70 & p80 & p90 & p95 & TDR & Oracle $\Delta$ & Fcst.\ imp. \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{LSTM-seq2seq} & \textbf{1.754} & \textbf{0.650} & \textbf{1.560} & \textbf{2.367} & 4.240 & 6.093 & 0.724 & 1.051 & 0.703 \\ + TCN-Direct & LSTM-seq2seq & 1.793 & 0.684 & 1.647 & 2.467 & 4.233 & 6.031 & 0.728 & 1.051 & 0.742 \\ + Informer & LSTM-seq2seq & 1.803 & 0.667 & 1.613 & 2.441 & 4.406 & 6.274 & 0.725 & 1.051 & 0.752 \\ + PatchTST & LSTM-seq2seq & 1.817 & 0.714 & 1.670 & 2.527 & 4.371 & 6.104 & 0.724 & 1.051 & 0.766 \\ + LSTM-Direct & LSTM-seq2seq & 1.821 & 0.750 & 1.720 & 2.539 & 4.371 & 6.000 & 0.728 & 1.051 & 0.769 \\ + LSTM-Direct & TCN & 1.906 & 1.029 & 1.949 & 2.808 & 4.250 & 6.000 & \textbf{0.856} & 0.986 & 0.920 \\ + \midrule + Prophet & LSTM-seq2seq & 2.859 & 1.500 & 3.067 & 4.453 & 6.433 & 8.461 & 0.628 & 1.051 & 1.808 \\ + \midrule + Transformer-Dir. & Transformer-S2S & 3.026 & 0.867 & 2.640 & 4.600 & 7.374 & 10.135 & 0.796 & 0.371 & 2.655 \\ + Prophet & Transformer-S2S & 4.553 & 3.063 & 5.267 & 6.800 & 9.760 & 12.600 & 0.700 & 0.371 & 4.182 \\ + \bottomrule + \end{tabular} +\end{table*} + + +The segment-level baselines (LSTM-Segment and ROCKET), produce F1-mac values of 0.243 and 0.224, demonstrating that assigning a single majority label to an entire 45-year series is fundamentally inadequate for patent lifecycle analysis, since it fails to capture the temporal continuity of patent sequences. The 29\% F1-mac gap between LSTM-seq2seq~(0.532) and LSTM-Segment~(0.243), which share the same recurrent architecture but differ only in output structure, confirms that per-timestep seq2seq modeling is essential for this task. Additionally, ROCKET’s reliance on random convolutional kernels without learned temporal representations is insufficient to capture the complex, multi-phase structure of patent lifecycles, leading to its poor performance relative to even the segment-level LSTM baseline. + +The gap between accuracy~(0.880) and F1-mac~(0.785) on the Transformer quantifies the residual challenge of class imbalance. Even with inverse-frequency class weighting and sub-sequence augmentation, the optional phases remain harder because they are structurally variable. Thereby, the secondary cycle can occur at different temporal positions and with varying amplitude across technologies, preventing the model from learning a single robust template. Nonetheless, the class-weighted loss and augmentation are effective, since without them, models tend to predict only majority phases, achieving high accuracy (${\sim}0.88$) but severely degraded F1-mac as minority phases receive zero recall. + +Table~\ref{tab:cls_perclass} provides the per-class F1-mac scores breakdown for the two strongest seq2seq classifiers. The Transformer achieves $\geq$~0.857 on all mandatory phases and strong discrimination on the peak marker (phase~2: F1-mac~=~0.767). The plateau phase~(7) is the easiest to classify (F1-mac~=~0.934) because the terminal low-activity pattern is structurally unambiguous. Among the optional phases, second growth~(4) is the most detectable (F1-mac~=~0.682); second peak~(5b) and second decline~(5c) remain harder (F1-mac~=~0.594 and 0.633) because the secondary cycle has lower amplitude and shorter duration than the primary cycle, making its structural markers less distinctive. The LSTM-seq2seq shows consistent degradation on all phases relative to the Transformer, with the sharpest drop on second growth (F1-mac~=~0.178 vs.\ 0.682), suggesting that the LSTM's sequential processing cannot differentiate the secondary cycle from noise as effectively as the Transformer's global attention. + +\begin{table}[htb!] + \centering + \caption{Per-class F1-mac (mean across 5 folds).} + \vspace{-0.9em} + %Phase names from Section~\ref{phase_definitions}; phases 4--6 are optional.} + \label{tab:cls_perclass} + \footnotesize + \begin{tabular}{clcc} + \toprule + Phase & Name & Trans.-S2S & LSTM-S2S \\ + \midrule + 1 & Pre-use & 0.898 & 0.768 \\ + 2 & Growth & 0.914 & 0.654 \\ + 3 & Peak & 0.767 & 0.377 \\ + 4 & Decline & 0.857 & 0.636 \\ + \midrule + 5a & Second growth\textsuperscript{*} & 0.682 & 0.178 \\ + 5b & Second peak\textsuperscript{*} & 0.594 & 0.343 \\ + 5c & Second decline\textsuperscript{*}& 0.633 & 0.416 \\ + \midrule + 6 & Plateau & 0.934 & 0.884 \\ + \bottomrule + \multicolumn{4}{l}{\textsuperscript{*}Optional phases, present in ${\sim}$17\% of trends.} + \end{tabular} + \vspace{-0.5em} +\end{table} + + +%The sub-sequence augmentation has the additional benefit of exposing models to partial observations of varying length during training, which builds robustness to the varying observation windows used in the combined pipeline evaluation (Section~\ref{ssec:combined}). + +%The principal limitation of the classification stage is the absence of a within-fold validation split; all classifiers train for a fixed epoch budget rather than using early stopping on held-out loss. While the CosineAnnealingLR scheduler mitigates overfitting by smoothly decaying the learning rate, monitoring a validation loss curve would provide a more principled stopping criterion. Additionally, the sub-sequence augmentation disproportionately inflates phase~0 (pre-use) labels because short prefix sub-sequences predominantly contain early-lifecycle timesteps; the class-weighted loss partially compensates but the inflated distribution may still bias the model toward pre-use predictions on ambiguous inputs. + +Overall, the results support the argument that patent phase classification is a high-level sequence understanding problem requiring both long-term dependency modeling and adaptive feature weighting. Also, the Transformer's superior performance suggests that its global attention mechanism is particularly effective at capturing the complex temporal dependencies and structural patterns in patent lifecycles, in comparison to recurrent and convolutional architectures that may struggle with long-range interactions and class imbalance. These results demonstrate that reliable lifecycle phase labeling from raw patent counts alone is achievable, with the best model reaching F1-mac~0.785 across all eight phases. +%However, the remaining gap---particularly on the structurally variable optional phases (F1-mac between 0.594 and 0.682)---indicates that fully automatic lifecycle annotation from count data alone remains an open challenge, especially for secondary-cycle patterns with lower amplitude and shorter duration. + + +\subsection{Combined Lifecycle Prediction Pipeline} +\label{ssec:combined} + +In the last step, the combined pipeline answers the operationally relevant question for technology scouts: given only the first $\ell$ years of a technology's patent history, \textit{when} will each future lifecycle phase transition occur? To this end, the forecaster (see Section~\ref{ssec:fcst}) extends the partial observed series, the classifier (see Section~\ref{ssec:cls}) annotates the extended series with lifecycle phase labels, and the year-delta metric quantifies the temporal precision of the resulting prediction. + +Like previous tasks, we enforce an 80/20 split. Classifiers are trained exclusively on the 2,219 training IPCs and the combined pipeline is evaluated on the 555 held-out test IPCs and at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$, yielding 2,775 evaluation instances (555~IPCs~$\times$~5 window lengths). Forecaster predictions are also computed from the same held-out IPC set. +%This protocol differs from the cross-validation used for standalone classification, where each fold's test data is drawn from the same population as other folds' training data; the holdout design provides an unbiased estimate of pipeline performance on technologies the classifier has never encountered during training. +Based on previous results, we evaluate all 30 pairwise combinations of the top-5 neural forecasters (ranked by MAE) and top-5 classifiers (ranked by F1-mac), plus Prophet as the forecasting baseline. +For each combination, we compute the year-delta $\Delta$ per test instance and report the mean, median (p50), and upper percentiles (p70–p95) across all 2,775 test instances, as well as oracle year-delta, forecasting impact and Transition Detection Rate (TDR) as described in Section~\ref{ssec_experimental_settings}. While the mean reflects average temporal deviation, p50 provides an outlier-robust central tendency, and the upper percentiles reveal tail behavior where rare phase transitions cause large prediction misalignment. We also include the baseline combination of Prophet forecaster with LSTM-seq2seq classifier for reference, as well as the two low-performing combinations from previous experiments (Transformer-Direct + Transformer-S2S and Prophet + Transformer-S2S) to demonstrate the impact of classifier choice on pipeline performance. + + +Table~\ref{tab:combined_top} presents the top selected pipeline configurations sorted by mean year-delta. The best configuration is \textbf{Transformer-Direct paired with LSTM-seq2seq}, achieving a mean $\Delta$~=~1.754~years and a median (p50) of 0.650~years. The median indicates that for at least half of all 2,775 test instances, the predicted lifecycle phase transition deviates from the true transition by less than seven months. However, the wide gap between p50 and p95 in the percentile distribution underscores the skewness of the error profile. While median errors remain below one year for the best configurations, the upper percentiles (p90 and p95) increase substantially, reaching up to 4.4 and 6.3 years. This gap suggests that rare but structurally complex lifecycle patterns such as optional or secondary cycles are not consistently captured by the pipeline. Notably, the choice of forecaster has a low impact on the median error (p50: 0.650--0.750) but a higher influence on the tail (p90: 4.233--4.406; p95: 6.000--6.274), suggesting that forecast noise primarily affects predictions of hard cases (lifecycles with optional phases) rather than typical ones. From an application perspective, this implies that risk-sensitive technology scouting use cases should consider high-percentile metrics in addition to mean or median error. Furthermore, the significant tail error (p95 > 6 years) suggests that while the pipeline excels at standard S-curve lifecycles, it struggles with re-emergent or stagnant technologies. This indicates that patent-based forecasting may require additional external variables (e.g., R\&D funding or citation networks) to resolve high-uncertainty cases. + + + + +Despite differences in the underlying architectures of the top five configurations, they are all paired with LSTM-seq2seq and are tightly clustered in mean $\Delta$ (1.754--1.821) and p50 (0.650--0.750), with more variations in their p90 and p95 (p90: 4.233--4.406; p95: 6.000--6.274). This reflects a consistent ability to predict the timing of primary-cycle transitions with good precision. The results of the table indicate that for a technology scout with 10--30 years of patent history, the best pipeline predicts the timing of future lifecycle transitions with an average error of less than two years and a median below one year. +%; risk-sensitive applications should consult p90/p95 to characterize worst-case temporal uncertainty. + + +Also, the comparison between classifier architectures reveals a clear trade-off between temporal precision and detection breadth. While LSTM-seq2seq consistently achieves lower Transition Detection Rate (TDR) across settings (0.724--0.728), the TCN classifier attains the highest (TDR~=~0.856), which represents the fraction of test instances where the predicted transition class appears anywhere within the forecast window, regardless of timing precision. This suggests that TCN-based pipelines are more likely to identify the occurrence of a transition within the forecast window, with reduced temporal accuracy. In contrast, LSTM-seq2seq produces sharper temporal predictions but may miss some transitions entirely. +% The divergence between the TCN and LSTM-seq2seq classifiers suggests a Pareto frontier between temporal localization and occurrence detection. +Furthermore, the TCN’s superior TDR (0.856) indicates it is a more reliable "alarm" for the existence of a transition, whereas the LSTM-seq2seq is a more precise "clock" for its timing. + +The oracle decomposition from the table also provides insight into how errors propagate through the pipeline. As for the best-performing configuration (Transformer-Direct + LSTM-seq2seq), approximately 40\% of the total error is due to the forecaster (forecasting impact $= 0.703$), while the remaining 60\% originates from the classifier ($1.051 + 0.703 = 1.754$). This ratio is consistent across the top neural forecasters, suggesting that classification constitutes the dominant source of error due to the imbalance in the identified lifecycle phases. + +% In contrast, the Transformer-S2S classifier achieves a substantially lower oracle error ($\Delta_\mathrm{oracle} = 0.371$), yet performs markedly worse in the full pipeline (mean $\Delta \geq 3.026$). This discrepancy indicates a higher sensitivity to forecast noise, whereas high-capacity models trained on ground-truth inputs degrade under distribution shift. + +Furthermore, the experimental results yield several critical insights into the design of technology forecasting systems, regarding the interplay between generative forecasting and discriminative classification. A primary observation is the failure of the Transformer-S2S classifier within the combined pipeline. Despite achieving the lowest Oracle error ($\Delta = 0.371$) in the combined pipeline and scoring the highest in classification task (F1-macro: 0.785), its performance collapses when integrated with a forecaster, resulting in a mean $\Delta \geq 3.026$. This discrepancy suggests that attention-based classifiers could be significantly more influenced by covariate shift, where they tend to overfit to the precise, "clean" temporal patterns of ground-truth patent histories and lack the necessary inductive bias to remain stable when processing the smoothed or noisy trajectories typical of neural forecasters. + +In contrast, the LSTM-seq2seq classifier consistently shows resilience in the results (achieving 0.724--0.728 TDR). Architecturally, the recurrent nature of the LSTM serves as a temporal regularizer. Unlike the Transformer-S2S, which relies on global self-attention across the entire sequence, the LSTM’s state-based transition mechanism forces a sequential dependency that possibly helps it maintain a coherent lifecycle trajectory even when the forecaster introduces point-wise fluctuations or noise. This positions the LSTM not as a labeler, but as a noise filter that effectively preserves the logical progression of technology phases. + +%Also, the success of the Transformer-Direct and LSTM-seq2seq pairing suggests a "hybrid-best" paradigm for technology scouting. This configuration leverages high-capacity global attention in the forecasting stage to capture long-range dependencies and complex patenting trends, followed by a more constrained, sequential annotator to enforce the chronological rigor of lifecycle transitions. + +% Finally, the observation that the top five neural forecasters—ranging from PatchTST to Informer—produced nearly identical median errors (p50) when paired with the same classifier indicates a decoupled optimization ceiling in univariate patent forecasting. This suggests that the current bottleneck in temporal precision is not the forecasting architecture itself, but rather the sensitivity of the classification interface. From a system-design perspective, these results imply that future improvements in pipeline accuracy are more likely to stem from classifier calibration and uncertainty-aware forecasting (e.g., probabilistic outputs) rather than the development of incrementally more complex point-forecast architectures. + + + + +% \begin{table*}[htb!] +% % \centering +% \caption{Pipeline results aggregated by classifier (mean over all 6 forecasters). p50--p95: percentiles of per-sample year-delta means. FC~imp.: forecasting impact ($\Delta_\mathrm{pred}-\Delta_\mathrm{oracle}$).} +% \vspace{-0.5em} +% \label{tab:combined_cls} +% \footnotesize +% \setlength{\tabcolsep}{3.5pt} +% \begin{tabular}{lcccccccc} +% \toprule +% Classifier & $\Delta$ mean & p50 & p70 & p80 & p90 & p95 & Oracle $\Delta$ & FC~imp. \\ +% \midrule +% \textbf{LSTM-seq2seq} & \textbf{1.974} & \textbf{0.828} & \textbf{1.879} & \textbf{2.799} & 4.676 & 6.494 & 1.051 & 0.923 \\ +% TCN & 2.116 & 1.097 & 2.209 & 3.158 & 4.720 & 6.688 & 0.986 & 1.130 \\ +% InceptionTime & 2.902 & 1.483 & 3.139 & 4.562 & 6.840 & 8.968 & 1.399 & 1.503 \\ +% Transformer-seq2seq & 3.250 & 1.300 & 3.108 & 4.881 & 7.663 & 10.406 & 0.371 & 2.879 \\ +% ResNet & 3.333 & 1.830 & 3.584 & 5.009 & 7.466 & 9.847 & 1.561 & 1.772 \\ +% \bottomrule +% \end{tabular} +% \vspace{-0.5em} +% \end{table*} + + +% To investigate the relative influence of classifier versus forecaster choice on pipeline performance, we aggregate results by classifier across all six forecasters (five neural and Prophet) as shown in Table~\ref{tab:combined_cls}. The spread across classifiers in mean year-delta (1.36~years: $\Delta$~=~1.97 to 3.33) substantially exceeds the spread across the five neural forecasters (0.10~years: $\Delta$~=~2.49 to 2.59), confirming that \emph{classifier choice governs pipeline performance far more than forecaster choice}. LSTM-seq2seq ranks first in mean year-delta (1.974) and p50 (0.828), while TCN follows at mean 2.116 and p50 1.097. The percentile columns further clarify this distributional difference: across p50, p70, and p80, LSTM-seq2seq consistently shows lower values (p50~=~0.828, p70~=~1.879, p80~=~2.799) than TCN (p50~=~1.097, p70~=~2.209, p80~=~3.158), indicating that LSTM-seq2seq more consistently places transitions close to their true positions across the bulk of the distribution. The p90 and p95 gap between these two classifiers is modest (4.676 vs.\ 4.720 at p90; 6.494 vs.\ 6.688 at p95), confirming broadly similar worst-case tail exposure among the two strongest performers. + +% The most striking finding in Table~\ref{tab:combined_cls} is the performance inversion between Transformer-seq2seq and the two strongest pipeline classifiers. In the standalone classification task (Table~\ref{tab:cls_overall}), the Transformer leads by a wide margin (F1-mac~0.785 vs.\ 0.498 for TCN and 0.532 for LSTM-seq2seq). Yet in the combined pipeline on held-out data it ranks fourth among five classifiers ($\Delta$~=~3.250~years), substantially worse than both LSTM-seq2seq (1.974) and TCN (2.116). The inversion is amplified at the upper tail: the Transformer'''s p90 (7.663) and p95 (10.406) far exceed those of LSTM-seq2seq (4.676; 6.494) and TCN (4.720; 6.688). The oracle decomposition explains this precisely: the Transformer achieves the lowest oracle~$\Delta$~(0.371)---confirming superior temporal precision on clean held-out series---but carries by far the largest forecasting impact (2.879), meaning forecast noise alone adds nearly 2.9~years of mean error and drives the p95 above ten years. + +% The mechanism lies in the sharpness of the Transformer'''s learned representations. Its self-attention associates precise input shapes---peak amplitudes, transition slopes, inter-phase timing ratios---with lifecycle labels. This precision translates to high accuracy on ground-truth series. But when forecasted series replace the ground truth, these features are perturbed: peaks are smoothed or shifted by one to two years, secondary cycle amplitudes are reduced, and transition inflection points are displaced. The Transformer'''s confidence collapses at perturbed positions, causing cascading misclassification in surrounding timesteps and inflating the upper tail sharply (p95~=~10.406). The LSTM'''s gated hidden state and the TCN'''s dilated convolutions produce smoother, more conservative decision boundaries that degrade gracefully under perturbation. Their forecasting impacts (0.923 and 1.130 respectively) are less than 40\% of the Transformer'''s (2.879), and their p95 values remain within 6.5--6.7~years, confirming fundamentally higher noise robustness across the full error distribution. The practical implication is direct: \emph{standalone classification accuracy is an unreliable proxy for combined pipeline performance}, particularly under tail-risk evaluation. Pipeline model selection must prioritize noise robustness over clean-data metrics. + + +% The neural forecasters collectively reduce mean year-delta by 27.7\% relative to Prophet (2.552 vs.\ 3.530, averaged across all classifier combinations), confirming the practical value of cross-series learned lifecycle representations over per-series statistical decomposition. The p95 gap between the neural group and Prophet is approximately 2.07~years (8.135 vs.\ 10.210), a practically important contrast for high-risk forecast scenarios where late transition calls carry severe cost. However, marginal variation in mean year-delta across the five neural forecasters is only 0.10~years (2.49--2.59), negligible relative to the 1.36-year classifier-driven spread. This asymmetry implies that forecasting improvements alone yield sharply diminishing pipeline returns as long as classifier noise-sensitivity remains the dominant error source. + +% For the best pipeline configuration (Transformer-Direct + LSTM-seq2seq), year-delta decreases monotonically with observation window length: from $\Delta$~=~1.951 at $\ell$=10 to $\Delta$~=~0.968 at $\ell$=30, a 2.0$\times$ improvement in the mean. TDR rises in parallel from 0.609 to 0.874. The upper tail likewise narrows substantially: p90 improves from 4.207 at $\ell$=10 to 2.541 at $\ell$=30, and p95 from 6.248 to 4.400~years, demonstrating that longer observation windows benefit not only central tendency but also tail-risk reduction. This improvement is driven primarily by forecast quality: as the observation window grows, the remaining forecast horizon shrinks and the model has more lifecycle context, producing predicted series that more closely resemble the ground truth. At $\ell$=30 the median (p50) breaks below one year ($\Delta_{\mathrm{p50}}$~=~0.267), establishing approximately 25--30~years of historical patent data as the practical threshold above which sub-year temporal precision becomes reliably achievable at the median. + +% \textbf{Summary of key experimental findings.} The evaluation produces three principal contributions. \emph{Classification}: the Transformer-seq2seq achieves F1-mac~0.785 on the eight-phase lifecycle labeling task using only raw patent counts and IPC-section one-hot encoding, with no hand-crafted features or domain-specific preprocessing. All mandatory phases are classified with F1~$\geq$~0.857, and even the structurally variable optional second-cycle phases reach F1 between 0.594 and 0.682---establishing reliable phase detection as a realistic baseline for domain-agnostic deployment. \emph{Forecasting}: after per-series normalisation, the top five neural models converge to within 0.07~MAE (7.78--7.85), reducing error by 57\% over Prophet and demonstrating that preprocessing quality dominates architecture selection; any of these models can therefore be substituted with negligible accuracy loss. \emph{Combined pipeline}: under a strict holdout split on 555 unseen IPC subclasses, the best configuration (Transformer-Direct + LSTM-seq2seq) achieves a mean year-delta of 1.754~years and a median of 0.650~years, with the median falling below one year at $\ell$=30 ($\Delta_{\mathrm{p50}}$~=~0.267~years). Percentile analysis exposes a heavy-tailed error profile (p80~=~2.367, p90~=~4.240, p95~=~6.093) driven by rare optional secondary-cycle phases; the oracle decomposition locates the primary bottleneck in classifier noise-robustness, not raw forecasting precision. + +% Overall, the results provide innovation coaches aa fully automated, reproducible alternative to qualitative hype-cycle assessments. A practitioner with 25 or more years of EPO filing history for a target IPC domain can apply the pipeline without any domain-specific feature engineering and expect, at the median, to locate the next lifecycle phase transition within eight months of its true occurrence---precision sufficient for strategic planning and investment-timing decisions. For the 80\% majority of evaluated technologies the transition is predicted within 2.4~years, giving stakeholders a concrete, data-driven planning window. The 57\% reduction in forecasting error over the Prophet baseline, a tool in widespread operational use, validates the benefit of cross-domain lifecycle modeling and implies that replacing per-series statistical baselines with the proposed neural forecaster yields immediate accuracy gains without additional data collection. At the component level, the oracle decomposition offers an actionable diagnostic for system operators: it separates forecasting error from classification error, enabling targeted investment when improving the pipeline---currently pointing toward noise-robust classifier training as the single highest-leverage intervention. + +%Overall, the results indicate that the combined pipeline can achieve high temporal precision for the majority of cases, with median errors below one year. However, performance is constrained by classifier robustness and degrades in the presence of rare or irregular lifecycle patterns. + +Overall, the results show that the proposed pipeline can achieve high temporal precision for the majority of cases, with median errors below one year. Practically, this framework enables more proactive R\&D resource allocation by quantifying transition timing rather than relying on qualitative intuition. A practitioner with 25 or more years of EPO filing history for a target IPC domain can apply the pipeline without any domain-specific feature engineering and expect, at the median, to locate the next lifecycle phase transition within 7 months (0.650 years) of its true occurrence. + + +%generate depth analysis of the contributions in favor of model selection and architectural differences and implications for the performance of the combined pipeline. + +\section{Conclusion} + + +Forecasting technology lifecycle phases is essential for effective innovation scouting, enabling stakeholders to anticipate key technological transitions and make data-driven strategic decisions. In this work, we propose a systematic approach for technology forecasting and lifecycle phase analysis based on patent data from the European Patent Office (EPO). We first detect a universal lifecycle pattern across multiple IPC domains, and after finding stabilized trends and annotating their lifecycle phases, we perform modeling via various classification and time series forecasting models to evaluate their performance. + +The results yield three principal findings. First, a Transformer-seq2seq classifier achieves an F1-macro of 0.785 on the eight-phase labeling task using only raw patent counts and IPC-section encodings, demonstrating that lifecycle phases are identifiable using solely raw patent trend data. Second, forecasting models using five neural architectures on time series data converge to within 7.85 MAE after per-series normalization, outperforming the Prophet baseline by 57\%. Third, at the combined pipeline level, the best configuration (Transformer-Direct paired with LSTM-seq2seq) shows that lifecycle phase transitions are predictable with good precision of a mean year-delta of nearly 1.7 years and a median year-delta of 0.650 years (within seven months) across all test instances. This practically means that 25–30 years of historical patent data offer a practical precision threshold for innovation scouting. + +% Several limitations of the current work merit acknowledgment. First, our framework is built exclusively on EPO patent data (EP-A and EP-B documents), which covers European innovations and is therefore not globally representative; extending the approach to other major patent offices such as the USPTO or WIPO is a natural next step. Second, our focus on \textit{stabilized trends}---IPC series that have completed their full lifecycle---deliberately excludes emerging or currently active technologies with incomplete patent histories. While this ensures training data quality and avoids label noise, it means the pipeline has not been directly evaluated on early-stage trends where forecasting need is often greatest; adapting to incomplete lifecycle scenarios is a key direction for future work. Third, as stated throughout this paper, we analyze patent count time series exclusively and do not mine the textual content of patent documents. Incorporating semantic signals from claims, abstracts, or citation networks could enrich the representation of innovation dynamics beyond what count data reveals. Fourth, faster information sources such as news articles, social media, and scientific publication databases are not considered here; their integration could provide earlier signals of technology emergence that complement the structured but inherently lagged patent record. + +In future work, we aim to investigate the benefits of complementary trend sources in our trained models. In doing so, scientific publication databases such as Web of Science would capture the R\&D aspects of patents and provide a wider context of patent activities. We also plan to explore the use of large language models (LLMs) for both classification and forecasting tasks on the patent text content to capture complex patterns and relationships in data. +%Additionally, we will investigate the impact of incorporating domain-specific features and external data sources on model performance, as well as the potential for transfer learning across different technology domains. + + +% \section{Acknowledgments} + +% This work has been funded by BLINDED, which aims to improve the ability of the science support center of the University BLINDED in the identification, qualification, and incubation of innovation potentials. +%We thank the project partners for their support and feedback on this work, and we are grateful to the EPO for providing access to the patent data used in this study. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +% \begin{acks} +% To Robert, for the bagels and explaining CMYK and color spaces. +% \end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} diff --git a/research/tech_forecasting/submission/sample-sigconf.tex.bak2 b/research/tech_forecasting/submission/sample-sigconf.tex.bak2 new file mode 100644 index 0000000..07bed4e --- /dev/null +++ b/research/tech_forecasting/submission/sample-sigconf.tex.bak2 @@ -0,0 +1,755 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous,review]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2018} +\acmYear{2018} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[Conference acronym 'XX]{Make sure to enter the correct + conference title from your rights confirmation email}{June 03--05, + 2018}{Woodstock, NY} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +\acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{Technology Forecasting through Data-Driven Analysis of Patents} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Identifying emerging technologies is a key task in innovation scouting, enabling coaches and decision makers to stay ahead of technological developments. Patent data, with its historical information on innovation activity, offers a valuable basis for detecting such trends. In this paper, we propose an approach for technology forecasting using LSTM-based time series forecasting models trained on a broad range of patent categories of the European Patent Office. After identifying patent categories that are likely to capture the complete lifecycle of the underlying technology, we generate a universal model, which is then used to classify and forecast trends across all patent domains. The resulting sequence to sequence classifier is able to predict the original label with an accuracy of 88\%, allowing us to forecast different phases of the technology lifecycle with an error of 1.27 years across our validation set. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 00000000.0000000.0000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 500 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 300 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + +\end{CCSXML} + +\ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Patent technology forecasting, Time series analysis, Emerging technologies and innovation, Technology lifecycle} + + +\received{20 February 2007} +\received[revised]{12 March 2009} +\received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +Innovation coaches in a university support researchers and staff in transforming academic ideas into practical innovations by guiding them through processes like commercialization, collaboration, and funding acquisition. Their tasks include scouting for emerging trends and fostering innovation and knowledge transfer. To do this, they engage in systematic scouting and screening activities to identify expertise and trends within and outside of their university, aiming to discover researchers with startup potential. As part of a funded project, we developed tools to assist coaches in these scouting activities by automating data gathering and analysis \cite{arzani2023challenges}. A central function of these tools is to support the identification of emerging technologies and forecast future research trends. By analyzing historical technology developments and combining them with academic data, such as research projects, publications, and researcher profiles, the coaches can more effectively monitor technological trajectories and detect early signals of innovation. + + + +Patent data is particularly valuable for recognizing technology patterns and offer structured, time-stamped records of innovation across disciplines. Unlike informal sources such as news or social media, patents are legally significant and systematically document technical advancements, making them ideal for tracking technology evolution. Their structure also enables the extraction of citation networks, classifications, and inventor collaborations—key indicators of emerging innovation. + + + +However, developing forecasting models that can fully leverage patent data poses significant challenges. A primary obstacle is creating models that are not confined to specific technological domains but can be generalized across diverse areas. Existing models often perform well within narrow fields but struggle to scale because innovation cycles, growth rates, and domain-specific language vary widely between sectors. These differences make it difficult to apply a single predictive framework, as models may misinterpret sector-specific dynamics or fail to detect trends in less studied areas. + +Furthermore, many current approaches to technology forecasting widely referenced models, such as the Gartner Hype Cycle, rely heavily on expert opinions and qualitative assessments. Although these methods provide valuable strategic insights, they are inherently subjective and often lack transparency in how trends are selected, categorized, or timed. This subjectivity limits their reproducibility and may introduce biases based on the perspectives or expertise of the contributing analysts. +% Furthermore, such models typically do not offer the granular, data-driven predictions needed for detailed, system-level innovation scouting. + +Therefore, there is a need for forecasting approaches that combine the objectivity and scalability of data-driven methods with the ability to generalize across technological domains. This paper addresses this challenge by proposing a predictive data-driven approach based on patent trends. As a first step, we extract patents time series data from the EPO from 1978 onwards and find the stabilized patents that capture the complete lifecycle of the underlying technology in order to generate a universal technology trend. Based on the universal trend, we then define the phases of the technology lifecycle and annotate the stabilized trends. Finally, based on the annotated phases of the completed trends, we perform classification as well as forecasting of labels through training a sequence-to-sequence and sequence-to-label LSTM. By leveraging sequence modeling techniques, the proposed approach offers a solution to automate the identification and forecasting of technology trends, in support of innovation scouting activities. The paper delivers the following contributions: +\begin{itemize} + \item We describe a data-driven approach to identify a universal technology lifecycle and its phases using patent data. + \item We develop models that are capable of identifying the lifecycle phases using an accuracy of up to 88\%. + \item We show that it is possible to forecast future phases with an error of only 1.27 years. +\end{itemize} + + + + +\section{Related Work} + +Forecasting technological trends is a central challenge in innovation management. One well-known conceptual model is the Gartner Hype Cycle (GHC), which describes the evolution of technology through five phases, from the initial trigger to broad market adoption~\cite{gartner_5,linden2003understanding}. While the GHC helps assess the maturity and business value of technologies, its qualitative nature and dependence on subjective expert judgment limit its reproducibility and transparency~\cite{dedehayir2016hype,steinert2010scrutinizing}. To overcome these limitations, patent-based approaches have gained traction due to their objectivity and data availability. Early work by Campbell (1983) proposed using patent indicators such as activity levels, immediacy, and dominance to track the lifecycle of technologies and forecast innovation dynamics~\cite{campbell1983patent}. + +Recent advances have focused on leveraging text mining and machine learning techniques to extract insights from patent data \cite{kim2019text,qiu2020technology,choi2021identifying}. Authors of \cite{abbas2014literature} provide a comprehensive overview of such methods, distinguishing between text-based analyses using NLP and semantic extraction, and visual analytics like patent maps and citation networks. Tools such as PatStream and TrendPerceptor combine NLP with interactive visualizations and concept extraction to identify emerging technologies without requiring domain expertise \cite{han2017visual,yoon2012trendperceptor}. Similarly, topic modeling methods like LDA have been applied to uncover latent themes in patent texts and track their evolution over time~\cite{chen2017topic,supraja2015patent,kim2015technology}. Machine learning models, such as ARIMA and LSTM networks, have further improved the forecasting of temporal trends, especially in noisy and nonlinear domains \cite{sagheer2019time,supraja2015patent}. Cluster- and network-based approaches also play a vital role. Some authors use CPC-based clustering combined with patent indicators to identify promising technologies \cite{kim2017novel}, while others integrate k-means clustering and topic modeling for uncovering innovation white spaces \cite{kim2015technology}. Property-function-based analyzes address the limitations of citation delay by extracting semantic relationships directly from patent text, enabling the detection of early-stage innovations \cite{yoon2012analysis}. Integrative frameworks combining bibliometrics, patent data, scenario planning, and system dynamics offer robust strategies for technology forecasting under uncertainty \cite{daim2006forecasting}. Together, these methods highlight the growing maturity and methodological diversity of patent-based forecasting systems. + +In contrast to prior work, which often focuses on domain-specific analyses or requires extensive expert input, our approach introduces a domain-agnostic, methodologically consistent, and reproducible framework for patent-based trend forecasting. By applying unsupervised clustering, we derive universal technological trend patterns from a large-scale patent corpus, independent of specific application fields. This eliminates the need for manual topic selection or domain tailoring, enabling scalability across diverse innovation areas. To model the technology lifecycles, we employ LSTM networks, which have demonstrated performance in capturing nonlinear, high-dimensional time series~\cite{sagheer2019time}. The combination of clustering with deep learning enables us to generalize trend structures and systematically evaluate their predictive quality. In doing so, our approach bridges the gap between interpretability, scalability, and forecasting. + +\section{Patent System} + +% Patents play an important role in fostering innovation by granting the inventors exclusive rights to their innovation for a period of time, typically 20 years. +In this work, our goal is to enable patent-phase classification and forecasting of technology lifecycle phases in support of innovation scouting. As input, we focus on the patent data from the European Patent Office (EPO) \cite{harhoff2009duration}. The EPO is a major patent authority that reviews and grants patents, enabling inventors to secure innovation across different markets. + +Patents are typically categorized in technical domains using systems such as Cooperative Patent Classification (CPC) and International Patent Classification (IPC) \cite{leydesdorff2014interactive}, which organize innovation into sectors such as pharmaceuticals, biotechnology, electronics and information technology. This classification helps streamline patent searches, foster collaborations, and identify technological trends across various domains. For instance, a biotech startup may use IPC to locate similar gene-editing patents before filling its own, while a large firm may analyze classification trends to inform R\&D investments. The EPO organizes patents using the IPC system, which is divided into eight main sections, each representing a broad area of technology. These sections are: A (Human Necessities), B (Performing Operations; Transporting), C (Chemistry; Metallurgy), D (Textiles; Paper), E (Fixed Constructions), F (Mechanical Engineering; Lighting; Heating; Weapons), G (Physics) and H (Electricity). Each section is further divided into classes, subclasses, groups, and subgroups to provide a detailed and hierarchical structure for organizing patents. + +For example, in the field of medical technology, \textit{Section A} covers Human Necessities, while \textit{Class A61} focuses on Medical or Veterinary Science; Hygiene. Within this, \textit{Subclass A61K} is dedicated to Preparations for Medical, Dental, or Toilet Purposes, including drugs, disinfectants, and cosmetic formulations. A more specific breakdown, such as \textit{Group A61K 31/00}, refers to medicinal preparations containing organic active ingredients. This group contains several subgroups, and one such example is \textit{A61K 31/519}, which refers specifically to Medicinal preparations containing macrolides, a subclass of antibiotics. + +EPO data on each IPC class inherently include time-series information, where the number of patent filings is recorded over time for specific technologies. Hereby, innovation coaches construct a time series dataset represents technological activity and innovation intensity over the years. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the count of patents filed in a particular year for a particular IPC class. + +\section{Data Generation and Modeling} + +Using the time-series data from the EPO, we propose a data-driven method for capturing technology lifecycles. Our approach begins by extracting the \textit{stabilized time series} trends of patent filings within IPC classes to construct a \textit{universal trend} that captures the typical evolution pattern of technologies. Then, the universal trend is segmented into \textit{distinct phases of the lifecycle}, based on the structural characteristics of the trend curve. Finally, the labeled phases serve as the baseline for \textit{modeling} using LSTMs, which are then used to classify current technological stages and forecast future lifecycle trajectories. + + +\subsection{Extraction of Stabilized Trends} +\label{extraction_stabilized_trends} + + +Patent activity across IPC domains varies widely in volume, frequency, and maturity. While some domains already went through the full technology lifecycle, others have sparse or incomplete data, reflecting early stage or irregular development. When trying to identify a universal model for the technology lifecycle, the latter will inevitably introduce noise. Thus, to reduce the noise, we apply a filtering process to retain only IPC time series that are likely to capture the complete technology lifecycle. In the following, we refer to these time series as stabilized trends. To identify the stabilized trends, we apply a filtering procedure consisting of 6 steps (depicted on Figure \ref{fig:filtering_pipeline}). + + + +We begin by (1) extracting all patents published by the EPO from 1978 to 2022, yielding 73,739 IPC trends, each represented as a yearly time series of patent counts.\footnote{The IPC dataset will be made publicly available post-review for reproducibility.} Since patents may have multiple IPC codes, (2) we disambiguate trends by isolating subgroup-level IPCs and removing higher-level codes, slightly reducing the dataset to 73,298 trends. (3) A European patent provides exclusive rights for a maximum of 20 years from the filing date, as stated in Article 63(1) EPC \cite{di2002european}. This time frame reflects the legal lifecycle of a patent and defines the maximum period during which a technology can remain under protection. This ensures a balance between incentivizing innovation and eventually allowing public access to the invention once the patent expires. Therefore, each IPC must span a minimum of 20 years between the first and last recorded patent, which results in 58,891 IPCs. + + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.45\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/pipeline_v1.png} + \caption{Filtering process: Extraction of stabilized patents.} + \label{fig:filtering_pipeline} + \end{minipage} + \hfill + \begin{minipage}{0.45\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} + \caption{Comparison of different clustering algorithms.} + \label{fig:clustering_algorithms} + \end{minipage} +\end{figure} + +(4) Each IPC trend must exhibit a distinct peak year, defined as the year with the highest number of published patents. To ensure trend stability, this peak must not fall within the last five years of the observed period, as trends peaking too recently may still be evolving and not fully reflect the technology lifecycle. The five-year window also accounts for the typical duration of the European patent grant process (3–5 years) \cite{guellec2000applications}, during which publication delays and pending examinations can cause incomplete or lagging data. By excluding recent peaks, we reduce the risk of analyzing immature trends, resulting in a refined dataset of 27,831 trends. (5) To filter out insignificant trends, each must have a peak of at least three patents. About 27\% of IPCs peak at only two patents, indicating limited activity and weak signals. This threshold reduces the dataset to 26,845 valid trends. + + +Lastly (6), to ensure trend stability, the last five years of each time series must not exhibit significant fluctuations. Specifically, the difference between the minimum and maximum values within this five-year window must not exceed 10\% of the trend’s peak value. This relative threshold is dynamic, as it scales with the magnitude of the trend peak, ensuring that larger trends can tolerate proportionally larger absolute fluctuations, while still maintaining relative stability. For example, a trend with a peak of 1000 allows for a fluctuation of up to 100, whereas one with a peak of 100 permits only 10, making the filter adaptive to varying trend sizes. The threshold of 10\%, derived from exploratory data analysis, is intentionally conservative: It aims to capture only those trends that we think are likely to have fully completed their lifecycle and are no longer evolving. + +As a final result, the filtering process generates 2,774 stabilized IPC trends across all sections with the following distribution: A:10,9\%, B:17,5\%, C:20,4\%, D:4,3\%, E:2,6\%, F:7\%, G:21,1\%, H:16,2\%. + + +\subsection{Universal Patent Trend} +\label{universal_trend} + +The goal of this step is to find one or more universal patent trends that represent the set of all 2,774 stabilized trends to be able to divide them into phases and define them. The generation of the universal trend pattern consists of two stages. + + +First, to investigate whether multiple universal trend patterns exist, we apply K-Means, K-Medoids \cite{arora2016analysis}, K-Shape \cite{paparrizos2015k}, and DBSCAN \cite{deng2020dbscan} to the stabilized patent trends, using both DTW distances and Pearson correlation. Clustering quality is assessed with the Silhouette Score \cite{shahapure2020cluster} in Figure \ref{fig:clustering_algorithms}, where value 1 on y-axis indicates perfect clustering and values near 0 or negative suggest poor separation. Across all methods and cluster counts (k = 2–6), the scores remain low, e.g., K-Medoids peaked at 0.03 for k = 2, K-Means at 0.16 for k = 2, and K-Shape at 0.05 for k = 3, while DBSCAN produces similarly modest results (max 0.09). These consistently low scores indicate weak cluster structures and limited separation between trends, suggesting that the dataset is best represented by a single dominant pattern. Consequently, we select \textit{k=1} as the optimal choice for describing the entire dataset. + + + + +In the second stage, we derive a universal trend pattern from the identified cluster. In doing so, we compare several Dynamic Time Warping (DTW) methods to aggregate trends into an optimal representative universal pattern \cite{han2020pattern}. The DTW warping path describes the optimal alignment between two given time series sequences. Typically, one of the two trends is used as a reference, and the second trend is aligned to this reference trend. Our analysis reveals that while methods that use a random or preliminary average reference trend introduce bias or information loss, pairwise alignment mitigates reference bias, but results in increased smoothing due to $n^2$ pairings \cite{asesh2021normalization}. + +To overcome the shortcomings of DTW, we utilize Dynamic Time Warping Barycenter Averaging (DBA) \cite{petitjean2014dynamic,petitjean2011global}. DBA is an iterative algorithm that finds a representative "average" time series (the barycenter) for a set of time series by minimizing the sum of their DTW distances to this average. In each iteration, it computes optimal DTW alignments between the current average and all input sequences, then updates the average by taking a weighted "barycenter" of the points aligned to each position of the average. +This method begins by identifying the Medoid which serves as the initial reference with the lowest total DTW distance to all other trends. Figure \ref{fig:uni_trend} shows the universal trend generated by the DBA approach. +% This method avoids repeated averaging and best preserves the original trends information content. + +To validate the resulting trend, we train a Gaussian Mixture Model (GMM) and an LSTM with stabilized trends using a random trend as starting point. +% a representative uniform trend was calculated from them. +A GMM is a probabilistic model that assumes that the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters, enabling soft clustering and density estimation \cite{viroli2019deep}. The GMM with a single component is trained on all stabilized trends and visually compared with the DBA result. Furthermore, the LSTM model consists of two layers: one LSTM layer with 100 neurons and a dense output layer with a single neuron. We train the LSTM using the Mean Squared Error (MSE) and the Adam optimizer, with a learning rate of 0.001 over 50 epochs. +% The same input data was used for both training and prediction, and the output represents the unified trend. + +% \vspace{-0.7cm} +\begin{figure}[!htb] + \vspace{-1em} + \minipage{0.32\textwidth} + \includegraphics[width=\linewidth]{figures/universal_dba_v1.png} + \vspace{-0.8cm} + \caption{DBA} + % \vspace{1cm} + \label{fig:uni_trend} + \endminipage\hfill + \minipage{0.32\textwidth} + \includegraphics[width=\linewidth]{figures/universal_gmm_v1.png} + \vspace{-0.8cm} + \caption{GMM} + \label{fig:gmm_trend} + \endminipage\hfill + \minipage{0.32\textwidth} + \includegraphics[width=\linewidth]{figures/universal_lstm_v1.png} + \vspace{-0.8cm} + \caption{LSTM} + % \vspace{1cm} + \label{fig:lstm_trend} + \endminipage +\end{figure} +% \vspace{-0.5cm} + +Figures \ref{fig:gmm_trend}~and~\ref{fig:lstm_trend} show the identified universal patent trends determined using the GMM and LSTM models (left to right). DBA and LSTM trends are mostly similar in their progression, with both trends initially flattening and then rising to a peak, after which the progression declines again. The GMM trend, on the other hand, exhibits a greater fluctuation than the other two trends. The main difference is the appearance of a second, slightly lower peak. +This concludes that using the cluster, there exists a universal patent trend that describes every stabilized patent's behavior, independent of domain and time. + +\subsection{Definition of Patent Phases with the Universal Trend} +% \vspace{-0.6em} +\label{phase_definitions} + + +The goal of this step is to divide the universal trend into phases for later classification and prediction tasks. In doing so, we manually analyze the stabilized trends based on the universal trend patterns for recurring structures and annotate the defined phases. + +An stabilized IPC code typically goes through several distinct numerated phases throughout its lifecycle as demonstrated in Figure \ref{fig:ideal_trend}. The lifecycle consists of mandatory and \textit{optional} phases as follows: (1) pre-use phase; (2) growth phase; (3) peak phase; (4) decline phase (5a) \textit{optional} second growth phase; (5b) \textit{optional} second peak phase; (5c) \textit{optional} second decline phase; +% (6) optional plateau rise; +(6) plateau phase. +The (1) pre-use phase, marked by minimal patenting activity. This is followed by a (2) growth phase, characterized by a rising number of patent fillings reflecting a growing interest in the technology. The lifecycle then reaches a (3) peak phase, where the maximum number of patents is published, indicating peak point of the IPC. +After this peak, a (4) decline phase sets in, with patent activity decreasing. +Some IPC trends exhibit an optional cycle, representing a smaller, secondary wave of interest. About 17\% (467 out of 2,774) of the stabilized trends show this pattern, which include an (5a) optional second growth phase, an (5b) optional second peak phase, and an (5c) optional second decline phase. +% Beyond these, a small percentage (under 2\%) show an (6) optional plateau rise, where patenting activity slightly increases before stabilizing. +Finally, the IPC enters a (6) plateau phase, a stable level of activity, often near zero, signifying the end of its lifecycle. The duration and intensity (i.e., slope steepness or peak height) of each phase vary from trend to trend. Figure \ref{fig:trends_example} shows some instances of stabilized IPCs in patent sections A, B, C, D, F, G and H with optional and primary phases that demonstrate the latter behavior. This step delivers the annotated technology phases of the stabilized trends. + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.45\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/universal_trend_ideal.png} + \vspace{-1cm} + \caption{Ideal universal trend.} + \label{fig:ideal_trend} + \end{minipage} + % \hfill + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/all_trends.png} + \caption{Example trends.} + \vspace{-0.8cm} + \label{fig:trends_example} + \end{minipage} +\end{figure} + + +\subsection{Forecasting and Classification} +\label{prediction_classification_pipeline} +The modeling of patent trends includes forecasting and classification tasks using the annotated stabilized IPC trends of the previous step. Forecasting is valuable for supporting innovation coaches in their scouting activities, as it enables identifying key lifecycle phases that may occur in the future, such as anticipating when a trend might peak or begin to decline. The classification task, on the other hand, is used to determine the current phase of any given patent trend based on pre-defined lifecycle annotations. This allows the innovation coaches to automatically recognize where a trend stands within its development trajectory, namely pre-use, growth, peak, or decline. + +For \textbf{forecasting} task, we aim to generate future values based on a sequence of any given trend. To achieve this, we train a predictive model using the sequential stabilized subtrends. The input of this model is a single trend time series, and the output is the predicted value for the subsequent year. To enable multi-year forecasting, the model iteratively forecasts the next value, appends it to the input sequence, and reuses this extended sequence to generate further predictions. In this way, the model can construct a complete predicted trend starting from any given point. For \textbf{classification} task, we utilize two separate classification models: a \textit{sequence-to-label} (seq2label) and a \textit{sequence-to-sequence} (seq2seq) model. The seq2label model takes a trend as input and outputs the phase of the final year in the sequence, helping to identify where we are currently in the lifecycle. This is particularly valuable for innovation scouts, as it provides immediate orientation in evaluating the maturity of a technology. In contrast, the seq2seq model outputs a phase label for each year of the input sequence, thus offering a detailed annotation of the entire lifecycle progression. This is helpful for assessing how a trend has evolved over time and for identifying historical peaks or other structural patterns within the trend. + + + + +\section{Evaluation} + +We evaluate the proposed framework across three interconnected tasks: per-timestep lifecycle phase classification, multi-horizon patent activity forecasting, and a combined pipeline that predicts when phase transitions occur. All experiments use the 2,774 stabilized IPC trends described in Section~\ref{extraction_stabilized_trends}, each spanning 45 annual patent counts. + +\subsection{Experimental Settings} + +\textbf{Dataset.} Each of the 2,774 series is annotated with nine per-year lifecycle phase labels (0--8): pre-emergence~(0), growth~(1), first peak~(2), maturity~(3), revival~(4), decline~(5), second growth~(6), second peak~(7), and second decline~(8), corresponding to the phases defined in Section~\ref{phase_definitions}. The class distribution is heavily skewed: majority phases (0, 1, 3, 5) dominate per-timestep labels, while phases 2, 4, 7, and 8 (transient peaks and the revival pattern) represent fewer than 5\% of all labels. The input feature tensor for classification is $(N, 45, 9)$: one raw patent count per timestep plus an 8-dimensional IPC-section one-hot encoding (sections A--H). Forecasting uses a $(N, 45, 10)$ feature tensor, adding a normalised observation-length indicator. + +\textbf{Classification splits.} We apply 5-fold stratified cross-validation, stratified by each series' majority phase, yielding approximately 2,219 training and 555 test samples per fold. Sub-sequence augmentation during training expands the effective training set by $15\times$. + +\textbf{Forecasting splits.} A fixed 80/20 train/test split (random seed 42) yields 2,219 training and 555 test IPC series. Each test series is evaluated at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$ years, producing 2,775 test instances and forecast horizons of 35 to 15 years respectively. + +\textbf{Models.} Classification evaluates seven models: \emph{Transformer-seq2seq} (Transformer encoder with per-timestep output); \emph{LSTM-seq2seq} (stacked LSTM with time-distributed head); \emph{TCN} (dilated causal convolutions); \emph{InceptionTime} and \emph{ResNet} (convolutional baselines); \emph{LSTM-Segment} (single majority-label output, segment-level baseline); and \emph{ROCKET}~\cite{dempster2020rocket} (random convolutional kernel transform). Forecasting evaluates eight neural and three statistical models: \emph{Transformer-Direct}, \emph{Informer}, \emph{PatchTST}, \emph{LSTM-Direct}, \emph{TCN-Direct} (direct multi-step); \emph{LSTM-AR} and \emph{TCN-AR} (autoregressive); \emph{Autoformer} (series-decomposition based); and statistical baselines \emph{Prophet}, \emph{ETS}, and \emph{ARIMA}. + +\textbf{Metrics.} Classification: accuracy, macro-averaged F1 (F1-mac), weighted F1 (F1-wgt), Cohen's~$\kappa$. Forecasting: MAE, RMSE, sMAPE. Combined pipeline: \emph{year-delta}~($\Delta$, primary metric) and \emph{transition detection rate} (TDR). Year-delta measures, for each true phase-transition timestep, the absolute temporal distance to the nearest matching predicted transition; lower~$\Delta$ indicates higher temporal precision. TDR reports the fraction of true transition timesteps for which the predicted class appears anywhere in the forecast window. + +\textbf{Implementation.} All neural models use PyTorch with the Adam optimiser. Classifiers train at learning rate $10^{-3}$; forecasters at $10^{-4}$. Both groups use batch size~32. Two training configurations are compared throughout: a \emph{baseline}~(v0) with unweighted loss and conservative epoch budgets, and an \emph{improved}~(v1) configuration with targeted refinements described in each subsection. + + +\subsection{Phase Classification} +\label{ssec:cls} + +\textbf{Goal.} Assign one of nine lifecycle phase labels to each of the 45 timesteps in a patent count time series (seq2seq classification). The central challenge is class imbalance: majority phases occupy the bulk of timesteps, while rare and transient phases --- particularly the revival (class~4) and the two peak markers (classes 2, 7) --- together constitute fewer than 5\% of labels. + +\textbf{v0\,$\to$\,v1 changes.} Three modifications were applied simultaneously to all PyTorch classifiers: \emph{(i)}~class-weighted cross-entropy loss, with inverse-frequency weights derived from per-fold training labels; \emph{(ii)}~sub-sequence augmentation at stride~3 (prefix lengths 5, 8, 11,~$\ldots$,~44), expanding seq2seq training data by ${\sim}15\times$; \emph{(iii)}~extended epoch budget (50--60 epochs vs.\ 15--25) with CosineAnnealingLR scheduling. These changes shift optimization explicitly toward minority-class recall at the expected cost of majority-class accuracy, which is the correct operating point when the goal is detecting phase transitions rather than maximizing aggregate accuracy. + +\textbf{Results.} Table~\ref{tab:cls_overall} reports v1 results across all models. Transformer-seq2seq leads with accuracy 0.880 and F1-mac 0.727 ($\kappa$~=~0.847). LSTM-seq2seq follows at F1-mac 0.476. Both segment-level baselines (LSTM-Segment, ROCKET) achieve F1-mac $\leq$ 0.22, confirming that per-timestep seq2seq modeling is essential for fine-grained lifecycle labeling. + +\begin{table}[htb!] + \centering + \caption{Classification results (v1, 5-fold CV mean). Best values in bold.} + \label{tab:cls_overall} + \small + \begin{tabular}{lcccc} + \toprule + Model & Acc. & F1-mac & F1-wgt & $\kappa$ \\ + \midrule + \textbf{Transformer-S2S} & \textbf{0.880} & \textbf{0.727} & \textbf{0.882} & \textbf{0.847} \\ + LSTM-seq2seq & 0.692 & 0.476 & 0.692 & 0.605 \\ + TCN & 0.634 & 0.448 & 0.657 & 0.546 \\ + InceptionTime & 0.585 & 0.355 & 0.599 & 0.478 \\ + ResNet & 0.575 & 0.315 & 0.569 & 0.452 \\ + \midrule + LSTM-Segment & 0.365 & 0.216 & 0.361 & 0.190 \\ + ROCKET & 0.395 & 0.199 & 0.374 & 0.204 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +Table~\ref{tab:cls_perclass} shows per-class F1 for the two strongest classifiers. The Transformer achieves F1 $\geq$ 0.857 on all majority phases (0, 1, 3, 5) and reasonable discrimination at the first peak marker (class~2: 0.767). Class~4 (revival) is the hardest across all models (Transformer: 0.259, LSTM-seq2seq: 0.025), owing to its extreme rarity and structural variability; no model reliably detects this phase. Late-lifecycle classes~7 and~8 also remain weak (0.343--0.633), though the Transformer performs meaningfully above chance. + +\begin{table}[htb!] + \centering + \caption{Per-class F1 (v1 mean across 5 folds). Phase labels from Section~\ref{phase_definitions}.} + \label{tab:cls_perclass} + \small + \begin{tabular}{clcc} + \toprule + Class & Phase & Trans.-S2S & LSTM-S2S \\ + \midrule + 0 & Pre-emergence & 0.898 & 0.768 \\ + 1 & Growth & 0.914 & 0.654 \\ + 2 & First peak & 0.767 & 0.377 \\ + 3 & Maturity & 0.857 & 0.636 \\ + 4 & Revival & 0.259 & 0.025 \\ + 5 & Decline & 0.934 & 0.884 \\ + 6 & Second growth & 0.682 & 0.178 \\ + 7 & Second peak & 0.594 & 0.343 \\ + 8 & Second decline & 0.633 & 0.416 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +\textbf{Discussion.} Comparing v0 and v1, F1-mac improved for all models except ResNet (Transformer: $+$3.1~pp, LSTM-seq2seq: $+$1.2~pp), confirming that class-weighted loss and augmentation redirect learning toward minority phases. Accuracy dropped 3--8~pp across deep models as expected. The gap between accuracy (0.880) and F1-mac (0.727) on the Transformer quantifies the residual imbalance: the model handles well-represented phases reliably but struggles with structurally rare transitions. ResNet is the sole regression case in v1 (F1-mac $-$5.9~pp), consistent with known instability of residual architectures under combined epoch-extension and class reweighting on small datasets. Seq2seq structured models are strictly superior to segment-level and whole-series classifiers: the 23~pp F1-mac gap between LSTM-seq2seq (0.476) and LSTM-Segment (0.216) confirms that temporal label continuity is essential for lifecycle phase annotation. + +\textbf{Strengths.} The Transformer-seq2seq achieves consistent performance across five of nine phases with no hand-crafted features or domain-specific preprocessing beyond IPC section encoding. Sub-sequence augmentation provides effective minority-class regularization at minimal additional data cost. + +\textbf{Shortcomings.} Class~4 (revival) remains below F1~=~0.26 across all models; its $<$1\% label frequency lies below the effective compensation threshold of inverse-frequency weighting. The absence of a within-fold validation split means training convergence is controlled by a fixed epoch budget rather than adaptive early stopping. + + +\subsection{Patent Activity Forecasting} +\label{ssec:fcst} + +\textbf{Goal.} Given the first $\ell$ years of a patent count series with IPC encoding, predict the remaining $45 - \ell$ years in a single forward pass (direct) or step-by-step (autoregressive). The dataset presents a 700$\times$ range in series magnitude (median per-series max: 9; mean: 36.5; maximum: 2,165), making scale-invariant learning the dominant modelling challenge. + +\textbf{v0\,$\to$\,v1 changes.} Three modifications were applied: \emph{(i)}~per-series normalisation --- each series is divided by its observed maximum before training and the scale is restored at prediction time, ensuring all series contribute equally to the MSE loss; \emph{(ii)}~masked MSE loss for direct models, ignoring zero-padded positions beyond the true forecast horizon; \emph{(iii)}~extended training (30--40 epochs from 10--15) with CosineAnnealingLR. Per-series normalisation is the dominant intervention, yielding an average $-$16.7\% MAE reduction across all eight neural models. + +\textbf{Results.} Table~\ref{tab:fcst_overall} reports v1 overall results. Transformer-Direct achieves the lowest MAE (7.78), with the top five neural models concentrated within a 0.07~MAE band (7.78--7.85). Given per-series standard deviations of $\sigma \approx 28$--$33$, these differences are not statistically distinguishable; architecture choice among the top five is effectively equivalent in absolute forecast accuracy. Autoformer is the weakest neural model (MAE~9.21), explained by its series-decomposition assumption being inapplicable to non-seasonal yearly patent data. Statistical baselines lag by a factor of ${\geq}2.3$. + +\begin{table}[htb!] + \centering + \caption{Forecasting results v1 (averaged across all 5 observation windows). + Statistical baselines below the rule. Best neural value in bold per column.} + \label{tab:fcst_overall} + \small + \begin{tabular}{lccc} + \toprule + Model & MAE$\downarrow$ & RMSE$\downarrow$ & sMAPE$\downarrow$ \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{7.78} & 10.54 & 148.0 \\ + Informer & 7.79 & 10.57 & 148.8 \\ + PatchTST & 7.81 & \textbf{10.52} & 145.8 \\ + LSTM-Direct & 7.85 & 10.55 & \textbf{141.8} \\ + TCN-Direct & 7.85 & 10.58 & 146.1 \\ + TCN-AR & 8.04 & 10.67 & 153.9 \\ + LSTM-AR & 8.32 & 11.19 & 153.2 \\ + Autoformer & 9.21 & 11.87 & 149.0 \\ + \midrule + Prophet & 17.89 & 20.66 & 147.5 \\ + ETS & 20.05 & 23.52 & 147.8 \\ + ARIMA & 21.12 & 24.90 & 155.6 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +Table~\ref{tab:fcst_pl} breaks down MAE by observation window. All neural models improve as $\ell$ grows: Transformer-Direct drops from MAE~9.67 at $\ell$=10 to 5.66 at $\ell$=30 ($-$41\%). LSTM-AR showed the largest v0-to-v1 overall improvement ($-$41.5\% MAE), having been most penalized by scale heterogeneity combined with autoregressive error compounding on unnormalised inputs. Prophet's MAE is non-monotone across $\ell$ (rising from 15.6 to 19.8 between $\ell$=10 and $\ell$=15), indicating its trend-decomposition heuristics do not reliably improve with additional context on this dataset. + +\begin{table}[htb!] + \centering + \caption{MAE by observation window $\ell$ (v1). Top-5 neural models and Prophet.} + \label{tab:fcst_pl} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{lccccc} + \toprule + Model & $\ell$=10 & $\ell$=15 & $\ell$=20 & $\ell$=25 & $\ell$=30 \\ + \midrule + Transformer-Dir. & 9.67 & 8.55 & 8.02 & 7.02 & \textbf{5.66} \\ + Informer & 9.72 & 8.62 & 8.00 & \textbf{6.91} & 5.70 \\ + PatchTST & 9.65 & 8.60 & \textbf{7.95} & 7.03 & 5.80 \\ + LSTM-Direct & \textbf{9.56} & 8.64 & 8.11 & 7.11 & 5.82 \\ + TCN-Direct & 9.58 & \textbf{8.45} & 7.99 & 7.14 & 6.08 \\ + \midrule + Prophet & 15.59 & 19.76 & 18.90 & 17.50 & 17.72 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +\textbf{Discussion.} Model rankings shifted substantially from v0 to v1: Transformer-Direct rose from 3rd to 1st; TCN-Direct dropped from 1st to 5th. This inversion is explained by architecture-specific scale sensitivity. TCN's dilated convolutions operate locally, making them inherently more robust to inter-series magnitude variation because relative local patterns are scale-independent. Transformer's global self-attention computes dot-product similarity across all 45 positions: with raw counts varying 700$\times$, attention weights are dominated by high-count series, starving low-activity series of gradient signal. Per-series normalisation eliminates this bias, allowing the Transformer to learn temporal dependencies across all activity levels. Direct prediction outperforms autoregressive decoding: LSTM-Direct (MAE~7.85) beats LSTM-AR (8.32) while training 22$\times$ faster, as autoregressive error compounding amplifies deviations over the long horizons required here (up to 35 steps). sMAPE worsened uniformly (+1 to +14~pp) in v1 as a known artefact: v0 models predicted near-zero for 51\% of low-activity series, yielding artificially low percentage errors; v1 models actively predict all series, exposing inherently high relative errors on near-zero targets. MAE is therefore the appropriate primary metric for this task. + +\textbf{Strengths.} All five top neural forecasters converge to within 0.07~MAE, a ${\geq}55\%$ improvement over Prophet. Per-series normalisation is a low-cost preprocessing step that yielded the highest single-intervention impact across all modifications tested. + +\textbf{Shortcomings.} sMAPE remains near 142--154 across all models, driven by structural near-zero values in 51\% of series. All models train on clean ground-truth inputs, creating a distribution mismatch when predictions feed into the downstream classifier. + + +\subsection{Combined Lifecycle Prediction Pipeline} +\label{ssec:combined} + +\textbf{Goal.} Given only the first $\ell$ years of a technology's patent history, predict \emph{when} each lifecycle phase transition will occur over the remaining $45 - \ell$ years. The forecaster extends the observed series; the classifier assigns phase labels to each extended timestep; year-delta quantifies the temporal accuracy of the resulting lifecycle annotation. + +\textbf{Experiment design.} All 30 pairwise combinations of the top-5 forecasters (by MAE) and top-5 classifiers (by F1-mac) are evaluated, plus Prophet as a weak forecasting baseline (35 configurations total). Each combination is also evaluated in \emph{oracle mode}: the classifier receives ground-truth series, isolating pure classification error from forecasting noise. The \emph{forecasting impact} ($\Delta_\mathrm{pred} - \Delta_\mathrm{oracle}$) causally attributes pipeline error to each stage. + +\textbf{Results.} Table~\ref{tab:combined_top} presents representative combinations sorted by mean year-delta. The best configuration is Transformer-Direct\,+\,LSTM-seq2seq ($\Delta$~=~0.913 years, median~=~0.235 years): for a typical technology, the predicted phase transition falls within approximately three months of the true transition. All five neural forecasters paired with LSTM-seq2seq remain below $\Delta$~=~1.01 years. By contrast, combinations using Transformer-seq2seq as classifier yield the worst pipeline results ($\Delta$~=~3.41--3.56) despite it being the strongest standalone classifier. + +\begin{table*}[htb!] + \centering + \caption{Selected pipeline combinations (averaged over all 5 observation windows), sorted by mean year-delta~$\Delta$. + Oracle~$\Delta$: classifier error on ground-truth input. Fcst.\ impact: additional error attributable to forecast noise.} + \label{tab:combined_top} + \small + \setlength{\tabcolsep}{5.5pt} + \begin{tabular}{llccccc} + \toprule + Forecaster & Classifier & $\Delta$ mean & $\Delta$ median & TDR & Oracle $\Delta$ & Fcst.\ impact \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{LSTM-seq2seq} & \textbf{0.913} & \textbf{0.235} & 0.740 & 0.005 & 0.908 \\ + Informer & LSTM-seq2seq & 0.928 & 0.214 & 0.740 & 0.005 & 0.923 \\ + TCN-Direct & LSTM-seq2seq & 0.944 & 0.250 & 0.740 & 0.005 & 0.939 \\ + PatchTST & LSTM-seq2seq & 0.977 & 0.250 & 0.740 & 0.005 & 0.972 \\ + LSTM-Direct & LSTM-seq2seq & 1.008 & 0.300 & 0.741 & 0.005 & 1.003 \\ + \midrule + Transformer-Dir. & TCN & 1.818 & 0.875 & 0.830 & 0.783 & 1.035 \\ + Prophet & LSTM-seq2seq & 2.197 & 0.750 & 0.663 & 0.005 & 2.192 \\ + \midrule + LSTM-Direct & Transformer-S2S & 3.406 & 1.000 & 0.850 & 0.161 & 3.245 \\ + Prophet & Transformer-S2S & 4.557 & 2.958 & 0.775 & 0.161 & 4.395 \\ + \bottomrule + \end{tabular} +\end{table*} + +Table~\ref{tab:combined_cls} aggregates results by classifier across all six forecasters. LSTM-seq2seq achieves the lowest mean $\Delta$ (1.161) and the smallest oracle~$\Delta$ (0.005), confirming near-perfect classification on ground-truth input with graceful degradation under forecast noise. Transformer-seq2seq shows the inverse: low oracle~$\Delta$ (0.161, second-best) but the highest forecasting impact (3.521), i.e., the model overfits to clean training data and fails when inputs are perturbed by forecasting errors. + +\begin{table}[htb!] + \centering + \caption{Combined results aggregated by classifier (mean over all 6 forecasters).} + \label{tab:combined_cls} + \small + \begin{tabular}{lcccc} + \toprule + Classifier & $\Delta$ mean & $\Delta$ med. & Oracle $\Delta$ & Fcst.\ impact \\ + \midrule + \textbf{LSTM-seq2seq} & \textbf{1.161} & \textbf{0.333} & \textbf{0.005} & 1.156 \\ + TCN & 2.000 & 1.024 & 0.783 & 1.217 \\ + ResNet & 2.840 & 1.507 & 0.863 & 1.977 \\ + InceptionTime & 3.606 & 1.617 & 1.170 & 2.437 \\ + Transformer-seq2seq & 3.682 & 1.242 & 0.161 & 3.521 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +\textbf{Observation window sensitivity.} For the best combination, $\Delta$ decreases monotonically from 1.374 at $\ell$=10 to 0.336 at $\ell$=30 --- a 4.1$\times$ improvement --- with TDR rising in parallel (0.626 $\to$ 0.906). Oracle analysis confirms this improvement is driven entirely by better forecasts: LSTM-seq2seq achieves $\Delta_\mathrm{oracle} \approx 0$ at all observation windows. At $\ell$=20 the best combination reaches $\Delta$~=~0.805~years, establishing 20~years of historical data as the practical threshold for sub-1-year temporal precision. + +\textbf{Discussion.} The dominant finding is that \emph{classifier choice determines pipeline performance far more than forecaster choice}. The spread across classifiers is 2.52~years (1.16 to 3.68); the spread across the five neural forecasters is only 0.07~years (2.48 to 2.55) --- an order of magnitude smaller. Investing further in forecasting refinement yields diminishing returns unless classifier robustness improves simultaneously. + +The accuracy--robustness paradox is explained by the oracle decomposition. Transformer-seq2seq achieves accuracy~0.922 and F1-mac~0.885 on clean input, but on forecasted data per-class F1 for class~4 (revival) collapses to 0.000 and class~6 (second growth) to 0.166 --- both exceeded 0.68 in oracle mode. The model has learned a tight representation that is brittle to small input perturbations. LSTM-seq2seq, with class~4 F1~=~0.222 on forecasted data, degrades less catastrophically because LSTM's recurrent inductive bias produces smoother, more noise-tolerant decision surfaces. This makes LSTM-seq2seq the dominant choice for the combined pipeline despite its weaker standalone accuracy. Neural forecasters reduce mean $\Delta$ by 25.3\% over Prophet ($\Delta$~2.52 vs.\ 3.37), confirming practical value above a simple statistical baseline. Year-delta grows sublinearly with future horizon ($\Delta$~=~0.404 at horizon~5, 1.374 at horizon~35), indicating that models learn directionally correct lifecycle trajectories even at long forecast distances. + +\textbf{Strengths.} The oracle/predicted error decomposition provides causal attribution of pipeline error to each component, a methodology rarely applied in combined forecasting--classification systems. Year-delta measures lifecycle transition timing precision directly, which is the operationally relevant quantity for technology scouts. Evaluating all 30 combinations reveals cross-stage interaction effects invisible in single best-pair reporting --- most importantly, that standalone accuracy is an unreliable proxy for combined pipeline performance. + +\textbf{Shortcomings.} All classifiers are trained exclusively on clean ground-truth inputs, creating a distribution mismatch when tested on forecasted series; noise-augmented or forecaster-in-the-loop training could substantially improve robustness. Class~4 (revival) F1 remains $\leq$~0.222 even in the best configuration, driven by the compounding of label rarity and forecasting-induced input perturbation. The combined evaluation uses a single train/test split without cross-validation, so variance estimates for year-delta are not available. + +\textbf{Summary of key experimental contributions.} Three concrete results emerge from the evaluation. \emph{First}, the Transformer-seq2seq classifier achieves F1-mac~0.727 and accuracy~0.880 on a nine-class imbalanced lifecycle labeling task using only raw patent counts and IPC section encoding. \emph{Second}, after per-series normalisation, the top five neural forecasters converge to within 0.07~MAE of each other (7.78--7.85) and reduce error by 57\% over the Prophet baseline, demonstrating that neural multi-horizon forecasting is effective and largely architecture-agnostic within the current model frontier. \emph{Third}, the best combined configuration (Transformer-Direct\,+\,LSTM-seq2seq) achieves a median year-delta of 0.235~years --- approximately three months --- indicating that technology phase transitions can be anticipated with high temporal precision from partial patent histories. The error decomposition establishes that this result is governed by classifier noise-robustness rather than forecasting precision, identifying noise-aware classifier training as the highest-leverage direction for future improvement. + + +\section{Conclusion} + +Identifying emerging technologies is essential for effective innovation scouting, allowing stakeholders to anticipate and adapt to new developments. In this work, we presented an approach to technology forecasting using LSTM-based time series models trained on patent trends from the European Patent Office. By identifying stabilized trends, we defined a universal technology lifecycle, which we used to annotate our extracted IPC trends. Next, we generated a universal LSTM sequence-to-sequence classifier capable of predicting original trend labels with an accuracy of 88\%, as well as a forecasting LSTM model achieving an average temporal offset of only 1.27 years in the validation set. + +In future work, we aim to investigate the benefits of complementary trend sources in our trained models. In doing so, scientific publication databases such as Web of Science would capture the R\&D aspects of patents and provide a wider context of patent activities. + + +\section{Acknowledgments} + +Identification of funding sources and other support, and thanks to +individuals and groups that assisted in the research and the +preparation of the work should be included in an acknowledgment +section, which is placed just before the reference section in your +document. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +\begin{acks} +To Robert, for the bagels and explaining CMYK and color spaces. +\end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} +\endinput +%% +%% End of file `sample-sigconf.tex'. diff --git a/research/tech_forecasting/submission/sample-sigconf.tex.bak3 b/research/tech_forecasting/submission/sample-sigconf.tex.bak3 new file mode 100644 index 0000000..90b5324 --- /dev/null +++ b/research/tech_forecasting/submission/sample-sigconf.tex.bak3 @@ -0,0 +1,932 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous,review]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2018} +\acmYear{2018} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[Conference acronym 'XX]{Make sure to enter the correct + conference title from your rights confirmation email}{June 03--05, + 2018}{Woodstock, NY} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +\acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{Technology Forecasting through Data-Driven Analysis of Patents} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Identifying emerging technologies is a key task in innovation scouting, enabling coaches and decision makers to stay ahead of technological developments. Patent data, with its historical information on innovation activity, offers a valuable basis for detecting such trends. In this paper, we propose an approach for technology forecasting using LSTM-based time series forecasting models trained on a broad range of patent categories of the European Patent Office. After identifying patent categories that are likely to capture the complete lifecycle of the underlying technology, we generate a universal model, which is then used to classify and forecast trends across all patent domains. The resulting sequence to sequence classifier is able to predict the original label with an accuracy of 88\%, allowing us to forecast different phases of the technology lifecycle with an error of 1.27 years across our validation set. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 00000000.0000000.0000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 500 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 300 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + +\end{CCSXML} + +\ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Patent technology forecasting, Time series analysis, Emerging technologies and innovation, Technology lifecycle} + + +\received{20 February 2007} +\received[revised]{12 March 2009} +\received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +Innovation coaches in a university support researchers and staff in transforming academic ideas into practical innovations by guiding them through processes like commercialization, collaboration, and funding acquisition. Their tasks include scouting for emerging trends and fostering innovation and knowledge transfer. To do this, they engage in systematic scouting and screening activities to identify expertise and trends within and outside of their university, aiming to discover researchers with startup potential. As part of a funded project, we developed tools to assist coaches in these scouting activities by automating data gathering and analysis \cite{arzani2023challenges}. A central function of these tools is to support the identification of emerging technologies and forecast future research trends. By analyzing historical technology developments and combining them with academic data, such as research projects, publications, and researcher profiles, the coaches can more effectively monitor technological trajectories and detect early signals of innovation. + + + +Patent data is particularly valuable for recognizing technology patterns and offer structured, time-stamped records of innovation across disciplines. Unlike informal sources such as news or social media, patents are legally significant and systematically document technical advancements, making them ideal for tracking technology evolution. Their structure also enables the extraction of citation networks, classifications, and inventor collaborations—key indicators of emerging innovation. + + + +However, developing forecasting models that can fully leverage patent data poses significant challenges. A primary obstacle is creating models that are not confined to specific technological domains but can be generalized across diverse areas. Existing models often perform well within narrow fields but struggle to scale because innovation cycles, growth rates, and domain-specific language vary widely between sectors. These differences make it difficult to apply a single predictive framework, as models may misinterpret sector-specific dynamics or fail to detect trends in less studied areas. + +Furthermore, many current approaches to technology forecasting widely referenced models, such as the Gartner Hype Cycle, rely heavily on expert opinions and qualitative assessments. Although these methods provide valuable strategic insights, they are inherently subjective and often lack transparency in how trends are selected, categorized, or timed. This subjectivity limits their reproducibility and may introduce biases based on the perspectives or expertise of the contributing analysts. +% Furthermore, such models typically do not offer the granular, data-driven predictions needed for detailed, system-level innovation scouting. + +Therefore, there is a need for forecasting approaches that combine the objectivity and scalability of data-driven methods with the ability to generalize across technological domains. This paper addresses this challenge by proposing a predictive data-driven approach based on patent trends. As a first step, we extract patents time series data from the EPO from 1978 onwards and find the stabilized patents that capture the complete lifecycle of the underlying technology in order to generate a universal technology trend. Utilizing the universal trend, we then define the phases of the technology lifecycle and annotate the stabilized trends. Finally, based on the annotated phases of the completed trends, we perform classification as well as forecasting of labels through training a multiple statistical and neural network models. + + +%adjust the following contributions based on the results of the evaluation + + + + +By leveraging sequence and transformer modeling techniques, the proposed approach offers a solution to automate the identification and forecasting of technology trends, in support of innovation scouting activities. The paper delivers the following contributions: +%TODO: add more contributions if needed +\begin{itemize} + \item We describe a data-driven approach to identify a universal technology lifecycle and its phases using patent data. + \item We develop models that are capable of identifying the lifecycle phases using an accuracy of up to 88\%. + \item We show that it is possible to forecast future phases with an error of only 1.27 years. +\end{itemize} + + + + +\section{Related Work} + +Forecasting technological trends is a central challenge in innovation management. One well-known conceptual model is the Gartner Hype Cycle (GHC), which describes the evolution of technology through five phases, from the initial trigger to broad market adoption~\cite{gartner_5,linden2003understanding}. While the GHC helps assess the maturity and business value of technologies, its qualitative nature and dependence on subjective expert judgment limit its reproducibility and transparency~\cite{dedehayir2016hype,steinert2010scrutinizing}. To overcome these limitations, patent-based approaches have gained traction due to their objectivity and data availability. Early work by Campbell (1983) proposed using patent indicators such as activity levels, immediacy, and dominance to track the lifecycle of technologies and forecast innovation dynamics~\cite{campbell1983patent}. + +Recent advances have focused on leveraging text mining and machine learning techniques to extract insights from patent data \cite{kim2019text,qiu2020technology,choi2021identifying}. Authors of \cite{abbas2014literature} provide a comprehensive overview of such methods, distinguishing between text-based analyses using NLP and semantic extraction, and visual analytics like patent maps and citation networks. Tools such as PatStream and TrendPerceptor combine NLP with interactive visualizations and concept extraction to identify emerging technologies without requiring domain expertise \cite{han2017visual,yoon2012trendperceptor}. Similarly, topic modeling methods like LDA have been applied to uncover latent themes in patent texts and track their evolution over time~\cite{chen2017topic,supraja2015patent,kim2015technology}. Statistical models, such as ARIMA and LSTM networks, have further improved the forecasting of temporal trends, especially in noisy and nonlinear domains \cite{sagheer2019time,supraja2015patent}. Cluster- and network-based approaches also play a important role. Some authors use CPC-based clustering combined with patent indicators to identify promising technologies \cite{kim2017novel}, while others integrate k-means clustering and topic modeling for uncovering innovation white spaces \cite{kim2015technology}. Property-function-based analyzes address the limitations of citation delay by extracting semantic relationships directly from patent text, enabling the detection of early-stage innovations \cite{yoon2012analysis}. Integrative frameworks combining bibliometrics, patent data, scenario planning, and system dynamics offer robust strategies for technology forecasting under uncertainty \cite{daim2006forecasting}. + +%Together, these methods highlight the growing maturity and methodological diversity of patent-based forecasting systems. + +In contrast to prior work, which often focuses on domain-specific analyses or requires extensive expert input, our approach introduces a domain-agnostic, methodologically consistent, and reproducible framework for patent-based trend forecasting. By applying unsupervised clustering, we derive universal technological trend patterns from a large-scale patent corpus, independent of specific application fields. This eliminates the need for manual topic selection or domain tailoring, enabling scalability across diverse innovation areas. To model the technology lifecycles, we provide a benchmark of stastical and state-of-the-art models, which have demonstrated performance in capturing nonlinear, high-dimensional time series~\cite{sagheer2019time}. The combination of clustering with deep learning enables us to generalize trend structures and systematically evaluate their predictive quality. In doing so, our approach bridges the gap between interpretability, scalability, and forecasting. + +\section{Patent System} + +% Patents play an important role in fostering innovation by granting the inventors exclusive rights to their innovation for a period of time, typically 20 years. +In this work, our goal is to enable patent-phase classification and forecasting of technology lifecycle phases in support of innovation scouting. As input, we focus on the patent data from the European Patent Office (EPO) \cite{harhoff2009duration}. The EPO is a major patent authority that reviews and grants patents, enabling inventors to secure innovation across different markets. + +Patents are typically categorized in technical domains using systems such as Cooperative Patent Classification (CPC) and International Patent Classification (IPC) \cite{leydesdorff2014interactive}, which organize innovation into sectors such as pharmaceuticals, biotechnology, electronics and information technology. This classification helps streamline patent searches, foster collaborations, and identify technological trends across various domains. For instance, a biotech startup may use IPC to locate similar gene-editing patents before filling its own, while a large firm may analyze classification trends to inform R\&D investments. The EPO organizes patents using the IPC system, which is divided into eight main sections, each representing a broad area of technology. These sections are: A (Human Necessities), B (Performing Operations; Transporting), C (Chemistry; Metallurgy), D (Textiles; Paper), E (Fixed Constructions), F (Mechanical Engineering; Lighting; Heating; Weapons), G (Physics) and H (Electricity). Each section is further divided into classes, subclasses, groups, and subgroups to provide a detailed and hierarchical structure for organizing patents. + +For example, in the field of medical technology, \textit{Section A} covers Human Necessities, while \textit{Class A61} focuses on Medical or Veterinary Science; Hygiene. Within this, \textit{Subclass A61K} is dedicated to Preparations for Medical, Dental, or Toilet Purposes, including drugs, disinfectants, and cosmetic formulations. A more specific breakdown, such as \textit{Group A61K 31/00}, refers to medicinal preparations containing organic active ingredients. This group contains several subgroups, and one such example is \textit{A61K 31/519}, which refers specifically to Medicinal preparations containing macrolides, a subclass of antibiotics. + +EPO data on each IPC class inherently include time-series information, where the number of patent filings is recorded over time for specific technologies. Hereby, innovation coaches construct a time series dataset represents technological activity and innovation intensity over the years. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the count of patents filed in a particular year for a particular IPC class. + +\section{Data Generation and Modeling} + +Using the time-series data from the EPO, we propose a data-driven method for capturing technology lifecycles. Our approach begins by extracting the \textit{stabilized time series} trends of patent filings within IPC classes to construct a \textit{universal trend} that captures the typical evolution pattern of technologies. Then, the universal trend is segmented into \textit{distinct phases of the lifecycle}, based on the structural characteristics of the trend curve. Finally, the labeled phases serve as the baseline for \textit{modeling} using multiple models, which are then used to classify current technological stages and forecast future lifecycle trajectories. + + +\subsection{Extraction of Stabilized Trends} +\label{extraction_stabilized_trends} + + +Patent activity across IPC domains varies widely in volume, frequency, and maturity. While some domains already went through the full technology lifecycle, others have sparse or incomplete data, reflecting early stage or irregular development. When trying to identify a universal model for the technology lifecycle, the latter will inevitably introduce noise. Thus, to reduce the noise, we apply a filtering process to retain only IPC time series that are likely to capture the complete technology lifecycle. In the following, we refer to these time series as \textit{stabilized trends}, which are time series data with minimized short-term noise and variance, allowing analysts to accurately model the long-term patterns of introduction, growth, maturity, and decline \cite{wu2023linkage}. +To identify the stabilized trends, we apply a filtering procedure consisting of 6 steps (depicted on Figure \ref{fig:filtering_pipeline}). + +\begin{figure}[h] + \centering + \includegraphics[width=\linewidth]{figures/pipeline_v1.png} + \vspace{-0.8cm} + \caption{Filtering process: Extraction of stabilized patents.} + \label{fig:filtering_pipeline} +\end{figure} + +We begin by (1) extracting all patents published by the EPO from 1978 to 2022, yielding 73,739 IPC trends, each represented as a yearly time series of patent counts.\footnote{The IPC dataset will be made publicly available post-review for reproducibility.} Since patents may have multiple IPC codes, (2) we disambiguate trends by isolating subgroup-level IPCs and removing higher-level codes, slightly reducing the dataset to 73,298 trends. (3) A European patent provides exclusive rights for a maximum of 20 years from the filing date, as stated in Article 63(1) EPC \cite{di2002european}. This time frame reflects the legal lifecycle of a patent and defines the maximum period during which a technology can remain under protection. This ensures a balance between incentivizing innovation and eventually allowing public access to the invention once the patent expires. Therefore, each IPC must span a minimum of 20 years between the first and last recorded patent, which results in 58,891 IPCs. + +% \begin{figure}[ht] +% \centering +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/pipeline_v1.png} +% \caption{Filtering process: Extraction of stabilized patents.} +% \label{fig:filtering_pipeline} +% \end{minipage} +% \hfill +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} +% \caption{Comparison of different clustering algorithms.} +% \label{fig:clustering_algorithms} +% \end{minipage} +% \end{figure} + +(4) Each IPC trend must exhibit a distinct peak year, defined as the year with the highest number of published patents. To ensure trend stability, this peak must not fall within the last five years of the observed period, as trends peaking too recently may still be evolving and not fully reflect the technology lifecycle. The five-year window also accounts for the typical duration of the European patent grant process (3–5 years) \cite{guellec2000applications}, during which publication delays and pending examinations can cause incomplete or lagging data. By excluding recent peaks, we reduce the risk of analyzing immature trends, resulting in a refined dataset of 27,831 trends. (5) To filter out insignificant trends, each must have a peak of at least three patents. About 27\% of IPCs peak at only two patents, indicating limited activity and weak signals. This threshold reduces the dataset to 26,845 valid trends. + + +Lastly (6), to ensure trend stability, the last five years of each time series must not exhibit significant fluctuations. Specifically, the difference between the minimum and maximum values within this five-year window must not exceed 10\% of the trend’s peak value. This relative threshold is dynamic, as it scales with the magnitude of the trend peak, ensuring that larger trends can tolerate proportionally larger absolute fluctuations, while still maintaining relative stability. For example, a trend with a peak of 1000 allows for a fluctuation of up to 100, whereas one with a peak of 100 permits only 10, making the filter adaptive to varying trend sizes. The threshold of 10\%, derived from exploratory data analysis, is intentionally conservative: It aims to capture only those trends that we think are likely to have fully completed their lifecycle and are no longer evolving. + +As a final result, the filtering process generates 2,774 stabilized IPC trends across all sections with the following distribution: A:10,9\%, B:17,5\%, C:20,4\%, D:4,3\%, E:2,6\%, F:7\%, G:21,1\%, H:16,2\%. + + +\subsection{Universal Patent Trend} +\label{universal_trend} + +The goal of this step is to find one or more universal patent trends that represent the set of all 2,774 stabilized trends to be able to divide them into phases and define them. The generation of the universal trend pattern consists of two stages. + +\begin{figure}[h] + \centering + \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} + \vspace{-0.8cm} + \caption{Comparison of different clustering algorithms.} + \label{fig:clustering_algorithms} +\end{figure} + +First, to investigate whether multiple universal trend patterns exist, we apply K-Means, K-Medoids \cite{arora2016analysis}, K-Shape \cite{paparrizos2015k}, and DBSCAN \cite{deng2020dbscan} to the stabilized patent trends, using both DTW distances and Pearson correlation. Clustering quality is assessed with the Silhouette Score \cite{shahapure2020cluster} in Figure \ref{fig:clustering_algorithms}, where value 1 on y-axis indicates perfect clustering and values near 0 or negative suggest poor separation. Across all methods and cluster counts (k = 2–6), the scores remain low, e.g., K-Medoids peaked at 0.03 for k = 2, K-Means at 0.16 for k = 2, and K-Shape at 0.05 for k = 3, while DBSCAN produces similarly modest results (max 0.09). These consistently low scores indicate weak cluster structures and limited separation between trends, suggesting that the dataset is best represented by a single dominant pattern. Consequently, we select \textit{k=1} as the optimal choice for describing the entire dataset. + + +In the second stage, we derive a universal trend pattern from the identified cluster. In doing so, we compare several Dynamic Time Warping (DTW) methods to aggregate trends into an optimal representative universal pattern \cite{han2020pattern}. The DTW warping path describes the optimal alignment between two given time series sequences. Typically, one of the two trends is used as a reference, and the second trend is aligned to this reference trend. Our analysis reveals that while methods that use a random or preliminary average reference trend introduce bias or information loss, pairwise alignment mitigates reference bias, but results in increased smoothing due to $n^2$ pairings \cite{asesh2021normalization}. + +To overcome the shortcomings of DTW, we utilize Dynamic Time Warping Barycenter Averaging (DBA) \cite{petitjean2014dynamic,petitjean2011global}. DBA is an iterative algorithm that finds a representative \textit{average} time series (the barycenter) for a set of time series by minimizing the sum of their DTW distances to this average. In each iteration, it computes optimal DTW alignments between the current average and all input sequences, then updates the average by taking a weighted \textit{barycenter} of the points aligned to each position of the average. +This method begins by identifying the Medoid which serves as the initial reference with the lowest total DTW distance to all other trends. Figure \ref{fig:uni_trend} shows the universal trend generated by the DBA approach. +% This method avoids repeated averaging and best preserves the original trends information content. + +To validate the resulting trend, we also train a Gaussian Mixture Model (GMM) and an LSTM with stabilized trends using a random trend as starting point. +% a representative uniform trend was calculated from them. +A GMM is a probabilistic model that assumes that the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters, enabling soft clustering and density estimation \cite{viroli2019deep}. The GMM with a single component is trained on all stabilized trends and visually compared with the DBA result. Furthermore, the LSTM model consists of two layers: one LSTM layer with 100 neurons and a dense output layer with a single neuron. We train the LSTM using the Mean Squared Error (MSE) and the Adam optimizer, with a learning rate of 0.001 over 50 epochs. +% The same input data was used for both training and prediction, and the output represents the unified trend. + +% \vspace{-0.7cm} +\begin{figure}[!htb] + \vspace{-1em} + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_dba_v1.png} + \vspace{-0.8cm} + \caption{DBA} + % \vspace{1cm} + \label{fig:uni_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_gmm_v1.png} + \vspace{-0.8cm} + \caption{GMM} + \label{fig:gmm_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_lstm_v1.png} + \vspace{-0.8cm} + \caption{LSTM} + % \vspace{-0.6cm} + \label{fig:lstm_trend} + \endminipage +\end{figure} +% \vspace{-0.5cm} + +Figures \ref{fig:gmm_trend}~and~\ref{fig:lstm_trend} show the identified universal patent trends determined using the GMM and LSTM models (left to right). DBA and LSTM trends are mostly similar in their progression, with both trends initially flattening and then rising to a peak, after which the progression declines again. The GMM trend, on the other hand, exhibits a greater fluctuation than the other two trends. The main difference is the appearance of a major second, slightly lower peak. +This concludes that using the cluster, there exists a universal patent trend that describes every stabilized patent's behavior, independent of domain and time. + +\subsection{Definition of Patent Phases with the Universal Trend} +% \vspace{-0.6em} +\label{phase_definitions} + + +The goal of this step is to divide the universal trend into phases for later classification and prediction tasks. In doing so, we manually analyze and annotate the stabilized trends based on the universal trend patterns for recurring structures and annotate the defined phases. + +An stabilized IPC code typically goes through several distinct numerated phases throughout its lifecycle as demonstrated in Figure \ref{fig:ideal_trend}. The lifecycle consists of mandatory and \textit{optional} phases as follows: (1) pre-use phase; (2) growth phase; (3) peak phase; (4) decline phase (5a) \textit{optional} second growth phase; (5b) \textit{optional} second peak phase; (5c) \textit{optional} second decline phase; +% (6) optional plateau rise; +(6) plateau phase. +The (1) pre-use phase, marked by minimal patenting activity. This is followed by a (2) growth phase, characterized by a rising number of patent fillings reflecting a growing interest in the technology. The lifecycle then reaches a (3) peak phase, where the maximum number of patents is published, indicating peak point of the IPC. +After this peak, a (4) decline phase sets in, with patent activity decreasing. +Some IPC trends exhibit an optional cycle, representing a smaller, secondary wave of interest. About 17\% (467 out of 2,774) of the stabilized trends show this pattern, which include an (5a) optional second growth phase, an (5b) optional second peak phase, and an (5c) optional second decline phase. +% Beyond these, a small percentage (under 2\%) show an (6) optional plateau rise, where patenting activity slightly increases before stabilizing. +Finally, the IPC enters a (6) plateau phase, a stable level of activity, often near zero, signifying the end of its lifecycle. The duration and intensity (i.e., slope steepness or peak height) of each phase vary from trend to trend. Figure \ref{fig:trends_example} shows some instances of stabilized IPCs in patent sections A, B, C, D, F, G and H with optional and primary phases that demonstrate the latter behavior. This step delivers the annotated technology phases of the stabilized trends. + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/universal_trend_ideal.png} + \vspace{-1cm} + \caption{Ideal universal trend.} + \label{fig:ideal_trend} + \end{minipage} + % \hfill + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/all_trends.png} + \vspace{-0.8cm} + \caption{Example stabilized trends.} + \vspace{-0.5cm} + \label{fig:trends_example} + \end{minipage} +\end{figure} + + +\subsection{Modelling of Patent Trends} +\label{modelling} + +The modeling of patent trends encompasses three interconnected experimental tasks using the annotated stabilized IPC trends: classification of lifecycle phases, forecasting of patent activity, and a combined pipeline that predicts when future phase transitions will occur. + +\textbf{Phase classification.} The classification task takes a trend as input and outputs the phase of the final year in the sequence, helping to identify where we are currently in the lifecycle. This is particularly valuable for innovation scouts, as it provides immediate orientation in evaluating the maturity of a technology. + +%\textbf{Classification overview.} +The task assigns one of the eight lifecycle phases defined in Section~\ref{phase_definitions} to each year of a patent trend. We formulate this as a \textit{sequence-to-sequence} (seq2seq) problem: given the full 45-year input series, the model produces a phase label for every timestep. This per-timestep labeling captures the temporal structure of lifecycles, including the precise timing of transitions between phases. To do this, we evaluate seven models across four model families including Transformer encoders \cite{yuan2020self} , Long Short-Term Memory networks (LSTMs), Temporal Convolutional Networks (TCNs) \cite{pelletier2019temporal}, as well as convolutional time series classifiers (InceptionTime, ResNet) \cite{ismail2020inceptiontime} and the random convolutional kernel transform ROCKET~\cite{dempster2020rocket}. + +%\textbf{Classification models.} +The \emph{Transformer-seq2seq}, is a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. The \emph{LSTM-seq2seq} includes a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. +The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +%explain the latter: the LSTM's gating mechanisms allow it to learn when to retain or forget information, which can help it model the gradual transitions between lifecycle phases, while the Transformer's attention mechanism may capture more complex, non-local dependencies but may require more data to learn smooth transitions effectively. +The \emph{TCN} is a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. he TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%The increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +%explain the latter: the TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%dialations and exponetional grow meaning +Additionally, \emph{InceptionTime} and \emph{ResNet} are convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolutional blocks along the temporal dimension which are adapted here for sequence-to-sequence output by incorporating a per-timestep classification head. +% ; although originally designed for univariate whole-series classification, they +We also consider two baselines: \emph{LSTM-Segment} a segment-level classification model and a non-neural time series classifier \emph{ROCKET}. The LSTM-Segment model, is a single-layer LSTM that predicts one majority phase label for the entire input sequence. Hereby, each 45-year trend is reduced to its most frequent lifecycle phase and the model predicts this single label for the whole sequence. This baseline tests whether the task can be solved by assigning one coarse label to the entire trend, or whether per-timestep sequence labeling is necessary to capture phase transitions. ROCKET is a another baseline that applies a random convolutional kernel transform to generate high-dimensional feature representations, followed by a ridge classifier, and is designed for efficient single-label time series classification. + + + +\textbf{Patent activity forecasting.} The forecasting task predicts the future patent filing counts given a partial observation of the first $\ell$ years of a trend. This is valuable for supporting innovation scouts, as it enables identifying key lifecycle phases that may occur in the future, such as anticipating when a trend might peak or begin to decline. + +For this task, we investigate two prediction strategies: In \textit{direct} multi-step forecasting, the model outputs all remaining $45 - \ell$ future values in a single forward pass, avoiding iterative error accumulation. +%How does a single forward pass work (look at the code): the model takes the observed sequence of length $\ell$ as input and produces a fixed-length output vector of size $45 - \ell$, where each element corresponds to the predicted patent count for a future year. This approach allows the model to learn the joint distribution of future values conditioned on the observed history, potentially capturing complex temporal dependencies across the entire forecast horizon. +In \textit{autoregressive} (AR) forecasting, the model predicts one step at a time, appending each predicted value to the input sequence and iterating forward. Direct models avoid the error compounding inherent to autoregressive decoding at the expense of a more complex output distribution. To achive this, we evaluate eleven models are evaluated across four model families including Transformer-based architectures (standard Transformer, Informer, PatchTST, Autoformer) \cite{zhou2021informer,huang2024long,wu2021autoformer}, recurrent models (LSTM), and convolutional models (TCN), each in both direct and autoregressive modes where applicable. We also add statistical baselines (Prophet, ETS, ARIMA) \cite{ning2022comparative,jain2017study} that fit each series independently. +%serve as reference methods. + +%\textbf{Forecasting models.} +Among the neural direct forecasting models, \emph{Transformer-Direct} uses $d_\mathit{model}=64$, 4 attention heads, and 2 layers, while \emph{Informer} reduces computational complexity through ProbSparse self-attention, \emph{PatchTST} applies patch-based tokenisation of the time series, \emph{LSTM-Direct} uses a 2-layer architecture with 128 hidden units, and \emph{TCN-Direct} relies on dilated convolutions with 64 filters. +%difference between informer, patchtst and transformer: Informer reduces the computational complexity of self-attention from $O(L^2)$ to $O(L \log L)$ by selecting only the most relevant queries based on their sparsity, making it more efficient for long sequences. PatchTST, on the other hand, divides the time series into fixed-size patches and treats each patch as a token, allowing it to capture local patterns effectively while still leveraging the Transformer's global attention mechanism. The direct forecasting models are trained to predict all future values in one forward pass, which allows them to learn complex temporal dependencies across the entire forecast horizon without being affected by error accumulation. +All of these models generate the full forecast horizon in a single forward pass. In contrast, the neural autoregressive models, namely \emph{LSTM-AR} and \emph{TCN-AR}, predict one step at a time and feed each prediction back into the model as input for the next step. This iterative strategy can better capture fine-grained temporal dynamics, although it is more vulnerable to error accumulation over longer forecasting horizons. \emph{Autoformer} represents a Transformer-based variant that incorporates built-in series decomposition into trend and seasonal components through auto-correlation attention, making it suitable for data with pronounced seasonal structure. In addition, the comparison includes statistical baselines such as \emph{Prophet}, which uses additive trend decomposition with changepoint detection, \emph{ETS}, which is based on exponential smoothing, and \emph{ARIMA}, which follows an autoregressive integrated moving average formulation. Unlike the neural approaches, these classical methods fit each time series independently and therefore cannot exploit cross-series patterns arising from the shared lifecycle structure. +%difference between autoformer and other transformer-based models: Autoformer incorporates a series decomposition mechanism that separates the input time series into trend and seasonal components using auto-correlation attention. This allows it to model complex temporal patterns more effectively, especially in data with strong seasonality, whereas standard Transformer-based models may struggle to capture such patterns without explicit decomposition. + + + +\textbf{Combined pipeline.} The combined task chains the forecasting and classification stages into a single end-to-end pipeline: given the first $\ell$ years of a technology's patent history, the forecaster predicts the remaining years and the classifier annotates the predicted series with lifecycle phase labels. The operationally relevant question for innovation scouts is not merely \textit{what} phase a technology will enter, but \textit{when} each phase transition will occur. To quantify this, we introduce the \textit{year-delta} metric, which measures the average temporal distance between predicted and true phase transition points. We evaluate all pairwise combinations of top-performing forecasters and classifiers, and additionally run each classifier in \textit{oracle mode} on ground-truth series. The oracle baseline enables a causal decomposition of pipeline error into classification error (measured on clean inputs) and forecasting-induced error (the additional degradation when predicted series replace ground truth). + + + +\section{Evaluation} + +In this section, we evaluate the proposed approach across the three mentioned interconnected tasks. After describing the experimental settings, we present the results for lifecycle phase classification. Then, we evaluate the performance of forecasting models in predicting future patent activity. Finally, we assess the combined performance of the classification and forecasting models in predicting future phase transitions. + +%All experiments use the 2,774 stabilized IPC trends described in Section~\ref{extraction_stabilized_trends}, each spanning 45 annual patent counts (1978--2022). Training was performed on a single NVIDIA A6000 GPU (48\,GB VRAM). + +\subsection{Experimental Settings} + +% \textbf{Dataset and phase labels.} Each of the 2,774 series is annotated with eight per-year lifecycle phase labels corresponding to the phases defined in Section~\ref{phase_definitions}: pre-use~(0), growth~(1), peak~(2), decline~(3), second growth~(4), second peak~(5), second decline~(6), and plateau~(7). The mandatory phases---pre-use, growth, peak, decline, and plateau---occur in every series, while the optional second cycle (phases 4--6) appears in approximately 17\% of technologies. The resulting class distribution is heavily skewed: the mandatory phases dominate per-timestep labels, while the optional second-cycle phases and the peak marker represent fewer than 5\% of all labels. The input feature tensor for classification is $(N, 45, 9)$: one raw patent count value per timestep plus an 8-dimensional IPC-section one-hot encoding (sections A--H), repeated identically at each timestep. Forecasting uses a $(N, 45, 10)$ tensor, adding a normalised observation-length indicator that encodes the fraction of the series observed so far. + + + +% \textbf{Classification models.} Seven architectures are evaluated, spanning four model families: +% \begin{itemize} +% \item \emph{Transformer-seq2seq}: a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. +% \item \emph{LSTM-seq2seq}: a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +% \item \emph{TCN}: a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The exponentially increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +% \item \emph{InceptionTime} and \emph{ResNet}: convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolution blocks across the temporal dimension. Originally designed for univariate whole-series classification, we adapt them for seq2seq output by applying a per-timestep classification head. +% \item \emph{LSTM-Segment}: a single-layer LSTM that outputs one majority phase label for the entire input sequence, serving as a segment-level baseline that tests whether per-timestep annotation is necessary. +% \item \emph{ROCKET}~\cite{dempster2020rocket}: a random convolutional kernel transform that generates a high-dimensional feature vector from random convolution kernels followed by a ridge classifier. ROCKET is designed for fast single-label time series classification and provides a non-neural baseline. +% \end{itemize} + + +% \textbf{Forecasting models.} Eleven models are evaluated across four families: +% \begin{itemize} +% \item \emph{Neural direct models}: Transformer-Direct ($d_\mathit{model}=64$, 4 heads, 2 layers), Informer (ProbSparse self-attention for reduced complexity), PatchTST (patch-based tokenisation of the time series), LSTM-Direct (2-layer, 128 hidden units), and TCN-Direct (dilated convolutions, 64 filters). All output the full forecast horizon in a single forward pass. +% \item \emph{Neural autoregressive models}: LSTM-AR and TCN-AR, which predict one step at a time and feed each prediction back as input for the next step. This iterative scheme can capture fine-grained temporal dynamics but is susceptible to error compounding over long horizons. +% \item \emph{Autoformer}: a Transformer variant with built-in series decomposition (trend + seasonal components) via auto-correlation attention. Designed for data with strong seasonal patterns. +% \item \emph{Statistical baselines}: Prophet (additive trend decomposition with changepoint detection), ETS (exponential smoothing), and ARIMA (autoregressive integrated moving average). These classical methods fit each series independently and cannot leverage cross-series patterns from the shared lifecycle structure. +% \end{itemize} + +%\textbf{Metrics.} +We adapt the evaluation metrics to the specific properties of each task. For \textbf{classification task}, the heavy class imbalance necessitates metrics that reflect performance on minority classes. Accuracy alone is insufficient because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. Macro-averaged F1 (F1-mac) gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Weighted F1 (F1-wgt) averages by class frequency, providing a more optimistic estimate that may be inflated by majority classes. Cohen's $\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. + + +For the \textbf{forecasting task}, the direct forecasting models utilize a binary mask (Masked MSE) that zeros out loss contributions from zero-padded output positions beyond the true forecast horizon. This prevents the model from learning to predict zeros at invalid positions. +%how it works: $\kappa = (p_o - p_e) / (1 - p_e)$ where $p_o$ is the observed agreement and $p_e$ is the expected agreement by chance. A $\kappa$ of 1 indicates perfect agreement, while 0 indicates agreement no better than random chance. what it captures: $\kappa$ captures the degree to which the model's predictions are better than random chance, accounting for class imbalance. A high $\kappa$ indicates that the model is effectively learning to distinguish between classes, while a low $\kappa$ suggests that the model's performance may be largely due to chance, particularly in imbalanced settings where majority classes dominate accuracy. how it differs from F1: while F1 focuses on the balance between precision and recall for each class, $\kappa$ provides an overall measure of agreement that accounts for the possibility of random correct predictions, making it a more robust metric in scenarios with significant class imbalance. how it complements F1: $\kappa$ complements F1 by providing a holistic measure of model performance that considers both the balance of precision and recall (F1) and the likelihood of achieving correct predictions by chance ($\kappa$), offering a more comprehensive evaluation of classification quality in imbalanced datasets. +Furthermore, mean absolute error (MAE) is the primary metric because stakeholders interpret results in terms of absolute patent numbers. Root mean squared error (RMSE) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. Symmetric mean absolute percentage error (sMAPE) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero, which is a frequent occurrence in patent data, where 51\% of series have a maximum count below~10 and is therefore reported for completeness but not as the primary ranking criterion. + +For the \textbf{combined pipeline}, we utilize the year-delta metric as the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. Transition detection rate (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +%explain TDR technically and with examples: TDR is calculated by identifying all true transition points in the forecast window where the phase label changes from one class to another. For each true transition point, we check if the predicted sequence contains the same class label anywhere within the forecast window. If it does, we count that transition as detected. The TDR is then computed as the ratio of detected transitions to the total number of true transitions. For example, if there are 10 true transition points in the forecast window and the model's predictions include the correct phase label for 7 of those transitions at any point in the forecast window, the TDR would be 0.7 or 70\%. This metric captures whether the model is at least predicting the correct phases somewhere in the future, even if it does not get the timing exactly right, which is crucial for evaluating models that may struggle with precise temporal alignment but still capture important lifecycle stages. + +% \begin{itemize} +% \item \emph{Classification}: We report \textbf{accuracy} (proportion of correctly labeled timesteps), \textbf{macro-averaged F1} (F1-mac, the unweighted mean of per-class F1 scores), \textbf{weighted F1} (F1-wgt, F1 averaged by class frequency), and \textbf{Cohen's~$\kappa$} (agreement corrected for chance). Accuracy alone is insufficient under class imbalance because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. F1-mac gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Cohen's~$\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. +% \item \emph{Forecasting}: \textbf{MAE} (mean absolute error) measures the average absolute deviation in patent counts and is the primary metric because stakeholders interpret results in terms of absolute patent numbers. \textbf{RMSE} (root mean squared error) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. \textbf{sMAPE} (symmetric mean absolute percentage error) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero---a frequent occurrence in patent data, where 51\% of series have a maximum count below~10---and is therefore reported for completeness but not as the primary ranking criterion. +% \item \emph{Combined pipeline}: \textbf{Year-delta}~($\Delta$) is the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. \textbf{Transition detection rate} (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +% \end{itemize} + +\begin{table}[htb!] + \centering + \caption{Training configuration.} + \vspace{-0.9em} + \label{tab:train_config} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{llccl} + \toprule + Task & Model & Epochs & LR & Loss \\ + \midrule + Classification & Transformer-S2S & 60 & $10^{-3}$ & Weighted CE \\ + & LSTM-S2S / Segment & 50 & $10^{-3}$ & Weighted CE \\ + & TCN / InceptionTime & 50 & $10^{-3}$ & Weighted CE \\ + & ResNet & 50 & $10^{-3}$ & Weighted CE \\ + \midrule + Forecasting & Direct models & 40 & $10^{-4}$ & Masked MSE \\ + & AR models & 30 & $10^{-4}$ & MSE \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + + +\textbf{Training configuration.} All neural models introduced in \ref{modelling} are implemented in PyTorch and trained with the Adam optimiser on a single NVIDIA A6000 GPU. Table~\ref{tab:train_config} summarises the training hyperparameters. All models use a CosineAnnealingLR learning rate scheduler that decays the learning rate smoothly from its initial value to near zero over the total epoch budget, enabling fine-grained parameter refinement in later epochs without manual step-wise LR tuning. The batch size is 32 for all models. Statistical forecasting baselines (Prophet, ETS, ARIMA) fit each series independently at inference time with default hyperparameters. + + +\subsection{Phase Classification} +\label{ssec:cls} + +% The classification task assigns one of eight lifecycle phases to each of the 45 timesteps in a patent count time series. Because the label distribution is heavily skewed toward the mandatory phases (pre-use, growth, decline, plateau), the central challenge is achieving reliable detection of the rare optional phases and the peak marker, which together constitute fewer than 5\% of all timestep labels but carry the most diagnostic information for lifecycle timing. +%\textbf{Classification settings.} +We utilize a 5-fold stratified cross-validation, stratified by each series' majority phase (the most frequent label across its 45 timesteps), yielding approximately 2,219 training and 555 test samples per fold. In addition, we apply sub-sequence augmentation by generating shorter prefix versions of each training sequence at different lengths. This expands the training set and exposes the models to partial lifecycle histories to improve robustness when only an early part of a trend is available. In doing so, sub-sequence augmentation generates left-padded prefix sub-sequences at stride~3 (prefix lengths 5, 8, 11, $\ldots$, 44) from each training sample, expanding the effective training set to approximately 33,285 samples per fold (${\sim}15\times$ expansion), while leaving the test set un-augmented. Also, to address the inherent class imbalance in lifecycle phase distributions, where majority phases such as pre-use, growth, and plateau dominate the label space, all models use class-weighted cross-entropy \cite{xu2020class}. Class-weighted cross-entropy loss inverses the frequency of each class in the training fold to compute weights, calculated as $w_c = N / (C \cdot n_c)$ where $n_c$ is the count of class $c$, $N$ is the total label count, and $C = 8$ is the number of classes. This weighting scheme forces the optimizer to allocate more gradient signal to minority phases, such as peaks and optional second-cycle phases, rather than concentrating on the majority classes, thereby improving the model's ability to learn from underrepresented lifecycle stages. + +Table~\ref{tab:cls_overall} reports classification results across all seven models. The Transformer-seq2seq achieves the best performance on every metric, with accuracy~0.880, F1-mac~0.785, and Cohen's $\kappa$~=~0.847. The multi-head self-attention mechanism enables direct comparison of any two timesteps in the 45-year series, allowing the model to learn long-range transition patterns, such as the temporal distance between growth and peak phases. LSTM-seq2seq follows at F1-mac~0.532, while TCN achieves F1-mac~0.498. Furthermore, the convolutional baselines InceptionTime (0.397) and ResNet (0.349) perform substantially worse. + +%The relatively moderate performance of TCN and InceptionTime suggests that while convolutional temporal models can capture local patterns, they struggle with the global structure and phase transitions that characterize technological life cycles. Similarly, the lower scores of ResNet-based approaches reinforce the assumption that architectures originally designed for spatial hierarchies do not transfer optimally to this type of structured temporal classification task. + +Among the convolutional models, TCN (F1-mac~0.498) outperforms both InceptionTime (0.397) and ResNet (0.349) because its dilated causal convolutions explicitly preserve temporal ordering and enables capturing long-range dependencies more effectively than the symmetric convolutions of InceptionTime and ResNet, which disregard the directional time axis. ResNet exhibits higher cross-fold variance (F1-mac std$\approx$0.025) than other models, consistent with known instability of residual architectures under class reweighting on small datasets, where the random initialization of residual connections can lead to divergent training dynamics across folds. + +\begin{table}[htb!] + \centering + \caption{Classification results (5-fold CV, mean).} + \vspace{-0.9em} + \label{tab:cls_overall} + \small + \begin{tabular}{lcccc} + \toprule + Model & Acc. & F1-mac & F1-wgt & $\kappa$ \\ + \midrule + \textbf{Transformer-S2S} & \textbf{0.880} & \textbf{0.785} & \textbf{0.882} & \textbf{0.847} \\ + LSTM-seq2seq & 0.692 & 0.532 & 0.692 & 0.605 \\ + TCN & 0.634 & 0.498 & 0.657 & 0.546 \\ + InceptionTime & 0.585 & 0.397 & 0.599 & 0.478 \\ + ResNet & 0.575 & 0.349 & 0.569 & 0.452 \\ + \midrule + LSTM-Segment & 0.365 & 0.243 & 0.361 & 0.190 \\ + ROCKET & 0.395 & 0.224 & 0.374 & 0.204 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +The segment-level baselines (LSTM-Segment and ROCKET), produce F1-mac values of 0.243 and 0.224, demonstrating that assigning a single majority label to an entire 45-year series is fundamentally inadequate for patent lifecycle analysis, since it fails to capture the temporal continuity of patent sequences. The 29\% F1-mac gap between LSTM-seq2seq~(0.532) and LSTM-Segment~(0.243), which share the same recurrent architecture but differ only in output structure, confirms that per-timestep seq2seq modeling is essential for this task. Additionally, ROCKET’s reliance on random convolutional kernels without learned temporal representations is insufficient to capture the complex, multi-phase structure of patent lifecycles, leading to its poor performance relative to even the segment-level LSTM baseline. + +The gap between accuracy~(0.880) and F1-mac~(0.785) on the Transformer quantifies the residual challenge of class imbalance. Even with inverse-frequency class weighting and sub-sequence augmentation, the optional phases remain harder because they are structurally variable. Therby, the secondary cycle can occur at different temporal positions and with varying amplitude across technologies, preventing the model from learning a single robust template. Nonetheless, the class-weighted loss and augmentation are effective, since without them, models tend to predict only majority phases, achieving high accuracy (${\sim}0.88$) but severely degraded F1-mac as minority phases receive zero recall. + +\begin{table}[htb!] + \centering + \caption{Per-class F1-mac (mean across 5 folds).} + \vspace{-0.9em} + %Phase names from Section~\ref{phase_definitions}; phases 4--6 are optional.} + \label{tab:cls_perclass} + \small + \begin{tabular}{clcc} + \toprule + Phase & Name & Trans.-S2S & LSTM-S2S \\ + \midrule + 1 & Pre-use & 0.898 & 0.768 \\ + 2 & Growth & 0.914 & 0.654 \\ + 3 & Peak & 0.767 & 0.377 \\ + 4 & Decline & 0.857 & 0.636 \\ + \midrule + 5a & Second growth\textsuperscript{*} & 0.682 & 0.178 \\ + 5b & Second peak\textsuperscript{*} & 0.594 & 0.343 \\ + 5c & Second decline\textsuperscript{*}& 0.633 & 0.416 \\ + \midrule + 6 & Plateau & 0.934 & 0.884 \\ + \bottomrule + \multicolumn{4}{l}{\textsuperscript{*}Optional phases, present in ${\sim}$17\% of trends.} + \end{tabular} + \vspace{-0.5em} +\end{table} + +Table~\ref{tab:cls_perclass} provides the per-class F1-mac scores breakdown for the two strongest seq2seq classifiers. The Transformer achieves $\geq$~0.857 on all mandatory phases and strong discrimination on the peak marker (phase~2: F1-mac~=~0.767). The plateau phase~(7) is the easiest to classify (F1-mac~=~0.934) because the terminal low-activity pattern is structurally unambiguous. Among the optional phases, second growth~(4) is the most detectable (F1-mac~=~0.682); second peak~(5b) and second decline~(5c) remain harder (F1-mac~=~0.594 and 0.633) because the secondary cycle has lower amplitude and shorter duration than the primary cycle, making its structural markers less distinctive. The LSTM-seq2seq shows consistent degradation on all phases relative to the Transformer, with the sharpest drop on second growth (F1-mac~=~0.178 vs.\ 0.682), suggesting that the LSTM's sequential processing cannot diffrentiate the secondary cycle from noise as effectively as the Transformer's global attention. + + + + +%The sub-sequence augmentation has the additional benefit of exposing models to partial observations of varying length during training, which builds robustness to the varying observation windows used in the combined pipeline evaluation (Section~\ref{ssec:combined}). + +%The principal limitation of the classification stage is the absence of a within-fold validation split; all classifiers train for a fixed epoch budget rather than using early stopping on held-out loss. While the CosineAnnealingLR scheduler mitigates overfitting by smoothly decaying the learning rate, monitoring a validation loss curve would provide a more principled stopping criterion. Additionally, the sub-sequence augmentation disproportionately inflates phase~0 (pre-use) labels because short prefix sub-sequences predominantly contain early-lifecycle timesteps; the class-weighted loss partially compensates but the inflated distribution may still bias the model toward pre-use predictions on ambiguous inputs. + +Overall, the results support the argument that patent phase classification is a high-level sequence understanding problem requiring both long-term dependency modeling and adaptive feature weighting. Also, the Transformer's superior performance suggests that its global attention mechanism is particularly effective at capturing the complex temporal dependencies and structural patterns in patent lifecycles, in comparison to recurrent and convolutional architectures that may struggle with long-range interactions and class imbalance. + +\subsection{Patent Activity Forecasting} +\label{ssec:fcst} + +% The forecasting task predicts future patent filing counts given a partial observation of the first $\ell$ years. The dominant modelling challenge is scale heterogeneity: the 2,774 series span a 700$\times$ range in maximum patent count (median per-series max: 9; mean: 36.5; maximum: 2,165), with 51\% of series having a maximum below 10 and only 7\% exceeding 100. Without normalisation, the MSE loss gradient is dominated by the handful of high-count series, and models learn to predict near-zero for the majority of low-activity technologies. + +% Per-series normalisation maps each series to the $[0, 1]$ interval by dividing by its observed maximum before training. This ensures that every technology contributes equally to the loss function regardless of its absolute count magnitude. At inference time, predictions are rescaled using the stored per-series maximum for evaluation against the original patent counts. This single preprocessing step yields an average 16.7\% MAE reduction across all eight neural models, making it the highest-impact intervention in the forecasting pipeline. For direct models, an additional masked MSE loss ignores zero-padded positions beyond the true forecast horizon, preventing the model from being penalised for predictions outside the valid output range. + +%\textbf{Forecasting settings.} +We apply a fixed 80/20 split yielding 2,219 training and 555 test IPC series. Each test series is evaluated at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$ years, producing 2,775 test instances with forecast horizons of 35 to 15 years respectively. Furthermore, to ensure that all series contribute equally to the mean squared error loss regardless of their absolute scale, we apply per-series normalization by dividing each time series by its observed maximum value before training. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss would be dominated by a few high-count series while the majority of low-activity technologies would receive negligible gradient signal. At prediction time, the forecasts are rescaled back to their original magnitude using the same maximum value. +%For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%Add masked MSE loss: For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. + +%A critical preprocessing step is per-series normalization, where each time series is divided by its observed maximum value before training and rescaled to the original magnitude at prediction time. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss is dominated by a few high-count series while the majority of low-activity technologies receive negligible gradient signal. + +%Per-series normalisation divides each time series by its observed maximum before training, ensuring that all series contribute equally to the mean squared error loss regardless of their absolute scale. At prediction time, the inverse transformation restores the original magnitude. + +%TODO +%For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. + +%Wxplain: the binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%TODO: Explain the rationale for this masking strategy and how it affects training dynamics. +%Autoregressive models are trained to predict one step at a time, using teacher forcing during training (feeding the true previous value) and autoregressive decoding at test time (feeding the model's own previous prediction). This allows them to capture fine-grained temporal dynamics but makes them susceptible to error compounding over long horizons, which is reflected in their performance metrics. +%Statistical baselines (Prophet, ETS, ARIMA) are fitted independently to each series using the \texttt{statsmodels} library, with hyperparameters selected via grid search on the training set. These models cannot leverage cross-series patterns and serve as reference points for the added value of learning from the shared lifecycle structure. + + +Table~\ref{tab:fcst_overall} reports forecasting results averaged across all five observation windows. +At first glance, an important observation regarding the sMAPE metric is that all neural models show sMAPE values between 141 and 154, which are close to the theoretical maximum of 200 \cite{chicco2021coefficient}. This does not indicate poor model quality but rather reflects a structural property of the data. Since 51\% of series have maximum counts below 10, many timesteps have true values near zero. For such timesteps, sMAPE approaches its upper bound ($\frac{2|y - \hat{y}|}{|y| + |\hat{y}|} \to 200$) even when the absolute error is negligible (e.g., predicting 1 when the truth is 0). +%For instance, if the true patent count for a timestep is 0 and the model predicts 1, the sMAPE would be calculated as $\frac{2|0 - 1|}{|0| + |1|} = \frac{2}{1} = 200$. This illustrates how sMAPE can yield a value of 200 for small absolute errors when the true value is near zero, which is common in this dataset due to the prevalence of low-activity series. Therefore, while sMAPE is a useful scale-independent metric in many contexts, it is not informative for this particular dataset and should be interpreted with caution. +The latter is furthur intensified by per-series normalization, where the model often produces predctions for low activity series that are non-zero in the normalized space but correspond to near-zero counts in the original scale, pushing sMAPE values into the high range. Therefore, we focus on MAE as the primary metric and only report sMAPE for completeness, acknowledging its limitations in this context. + +Transformer-Direct achieves the lowest MAE~(7.78), with the top five neural models concentrated within a narrow 0.07~MAE band (7.78--7.85). Given that per-series standard deviations range from $\sigma \approx 28$ to $\sigma \approx 33$, these inter-model differences are not statistically distinguishable. +%; architecture choice among the top five is effectively equivalent in absolute forecast accuracy. +This convergence indicates that, once per-series normalization levels the playing field, model capacity rather than architecture is the binding constraint for this dataset size. + +Autoformer is the weakest neural model (MAE~9.21) because its built-in series decomposition separates the input into trend and seasonal components via moving-average filters. Annual patent data is inherently non-seasonal, where each datapoint represents one year, with no repeating sub-annual cycle. Therefore, Autoformer's decomposition adds unnecessary complexity without capturing meaningful structure. Also, autoregressive models (LSTM-AR: 8.32, TCN-AR: 8.04) lag behind their direct counterparts because autoregressive decoding accumulates prediction errors at each step. For LSTM-Direct versus LSTM-AR, the MAE gap is 0.47 (7.85 vs.\ 8.32), and the direct variant trains approximately 22$\times$ faster because it avoids the iterative loop of feeding predictions back as input for the next step. + +The statistical baselines are substantially weaker: Prophet (17.89), ETS (20.05), and ARIMA (21.12) produce MAE values 2.3--2.7$\times$ higher than the best neural model. These methods fit each series independently, using trend decomposition heuristics (Prophet) or autoregressive error structure (ARIMA, ETS), and cannot exploit the shared lifecycle pattern that the neural models learn from training on samples simultaneously. + +\begin{table}[htb!] + \centering + \caption{Forecasting results (mean over all 5 time windows).} + \vspace{-0.5em} + \label{tab:fcst_overall} + \small + \begin{tabular}{lccc} + \toprule + Model & MAE$\downarrow$ & RMSE$\downarrow$ & sMAPE$\downarrow$ \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{7.78} & 10.54 & 148.0 \\ + Informer & 7.79 & 10.57 & 148.8 \\ + PatchTST & 7.81 & \textbf{10.52} & 145.8 \\ + LSTM-Direct & 7.85 & 10.55 & \textbf{141.8} \\ + TCN-Direct & 7.85 & 10.58 & 146.1 \\ + TCN-AR & 8.04 & 10.67 & 153.9 \\ + LSTM-AR & 8.32 & 11.19 & 153.2 \\ + Autoformer & 9.21 & 11.87 & 149.0 \\ + \midrule + Prophet & 17.89 & 20.66 & 147.5 \\ + ETS & 20.05 & 23.52 & 147.8 \\ + ARIMA & 21.12 & 24.90 & 155.6 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +%The Transformer's ascent to the top forecasting rank (from 3rd place without normalisation in preliminary runs to 1st place with normalisation) +%The Transformer's performance (1st place) is explained by its attention mechanism's sensitivity to input scale. The dot-product attention scores $\mathbf{Q}\mathbf{K}^T / \sqrt{d_k}$ are computed across all 45 positions on normalized data, which prevents the model from being dominated by a few high-count series and allows it to learn patterns across the full spectrum of activity levels. +%when input magnitudes vary by 700$\times$, +%The key vectors for high-count series produce large attention scores, that effectively masking the contributions of low-activity series during training. +%In contrast, the TCN's dilated convolutions are local operators that process each timestep's neighborhood independently. Also, the convolution kernel weights adapt to relative patterns regardless of absolute scale, explaining why TCN was the strongest model before normalisation but benefited comparatively less from it. + + +Table~\ref{tab:fcst_pl} breaks down MAE by observation window. All neural models improve monotonically as $\ell$ grows (Transformer-Direct drops from MAE~9.67 at $\ell$=10 to 5.66 at $\ell$=30, a 41\% reduction). This is rather expected, since longer observation windows provide more context about the lifecycle trajectory and simultaneously reduce the forecast horizon (from 35 to 15 years). At $\ell$=10, where the model has observed only 22\% of the series and must extrapolate 35 years, all five top models converge near MAE~$\approx$~9.6. This convergence at long horizons suggests that, the choice of model architecture has minimal impact on forecast accuracy, and all models are effectively operating at the same performance floor determined by the data's intrinsic uncertainty. +%---the intrinsic difficulty floor for extreme extrapolation. +At $\ell$=30, inter-model spread widens (5.66--6.08), suggesting that with enough context, architectural differences begin to matter. Here, the Transformer's global attention can integrate information from all 30 observed positions simultaneously, which gives it it an advantage over the TCN's local receptive field for capturing the overall shape of the lifecycle. + +As the baseline, Prophet's MAE is non-monotone across $\ell$ (rising from 15.6 to 19.8 between $\ell$=10 and $\ell$=15), indicating that its trend-decomposition heuristic extracts misleading changepoints when given additional data. This sensitivity to input length is a known weakness of Prophet's piecewise-linear trend model, which tends to be align with seasonal trends \cite{9449743}. + + +\begin{table}[htb!] + \centering + \caption{MAE by time window $\ell$. Top-5 neural models and Prophet baseline.} + \vspace{-0.5em} + \label{tab:fcst_pl} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{lccccc} + \toprule + Model & $\ell$=10 & $\ell$=15 & $\ell$=20 & $\ell$=25 & $\ell$=30 \\ + \midrule + Transformer-Dir. & 9.67 & 8.55 & 8.02 & 7.02 & \textbf{5.66} \\ + Informer & 9.72 & 8.62 & 8.00 & \textbf{6.91} & 5.70 \\ + PatchTST & 9.65 & 8.60 & \textbf{7.95} & 7.03 & 5.80 \\ + LSTM-Direct & \textbf{9.56} & 8.64 & 8.11 & 7.11 & 5.82 \\ + TCN-Direct & 9.58 & \textbf{8.45} & 7.99 & 7.14 & 6.08 \\ + \midrule + Prophet & 15.59 & 19.76 & 18.90 & 17.50 & 17.72 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +%The principal limitation of the forecasting stage is that all models are trained exclusively on ground-truth inputs. When predictions from these models feed into the downstream classifier in the combined pipeline, the classifier encounters a distribution it was never trained on---forecasted series with smoothed peaks, shifted inflection points, and accumulated prediction noise. This train-test distribution mismatch is the dominant source of pipeline error, as quantified in the following section. + + +\subsection{Combined Lifecycle Prediction Pipeline} +\label{ssec:combined} + +The combined pipeline builds upon the forcaster and classifier to answer the operationally relevant question for technology scouts: given only the first $\ell$ years of a technology's patent history, \textit{when} will each future lifecycle phase transition occur? To this end, the forecaster extends the observed series, the classifier annotates the extended series with phase labels and finally, the year-delta quantifies the temporal precision of the resulting lifecycle prediction. + +To achieve this, w evaluate all 30 pairwise combinations of the top-5 neural forecasters (ranked by MAE) and top-5 classifiers (ranked by F1-mac), plus Prophet as the forecasting baseline. + +%maybe should be changed +For each pipeline configuration, we compute the year-delta $\Delta$ for each test instance and report the mean and median across all 2,775 instances. The mean year-delta captures the average temporal deviation of predicted transitions from their true positions, while the median year-delta provides a robust measure of typical performance that is less sensitive to outliers. +%how is median calculated and what it represents? The median year-delta is calculated by first computing the year-delta $\Delta$ for each of the 2,775 test instances, which represents the absolute difference in years between the predicted phase transition and the true phase transition. Then, these 2,775 year-delta values are sorted in ascending order, and the median is the value at the middle position (or the average of the two middle values if there is an even number of instances). The median year-delta represents the typical performance of the pipeline, indicating that for at least half of the test instances, the predicted transition occurs within that many years of the true transition. This is particularly useful for understanding how well the pipeline performs on a typical case, as it is not skewed by a few instances with very large errors. + +Each classifier is additionally evaluated in oracle mode (receiving ground-truth series instead of forecasted ones), to enable a causal decomposition of pipeline error. The decomposition quantifies the extent to which classification error arises from the classifier's inherent error (oracle year-delta: $\Delta_\mathrm{oracle}$) versus the additional error introduced by forecast noise (forecasting impact: $\Delta_\mathrm{pred} - \Delta_\mathrm{oracle}$). + +%here +Table~\ref{tab:combined_top} presents selected pipeline configurations sorted by mean year-delta. The best configuration is Transformer-Direct paired with LSTM-seq2seq, achieving $\Delta$~=~0.913~years with a median of 0.235~years. In practical terms, for a typical technology the predicted phase transition deviates from the true transition by approximately three months. All five neural forecasters paired with LSTM-seq2seq remain below $\Delta$~=~1.01~years, confirming that the pipeline delivers sub-year temporal precision for the best classifier across all tested forecasting architectures. + + +%what is the practical meaning of a year-delta of 0.913 years? It means that, on average, the predicted phase transition occurs within approximately 11 months of the true transition. The median year-delta of 0.235 years indicates that for at least half of the cases, the predicted transition is within about 3 months of the actual transition. This level of precision is quite high for forecasting technology lifecycles, as it allows stakeholders to make informed decisions based on predictions that are closely aligned with real-world events. + +\begin{table*}[htb!] + \centering + \caption{Selected pipeline combinations (mean over all 5 time windows), sorted by mean year-delta~$\Delta$. + Oracle~$\Delta$: classifier error on ground-truth input. Fcst.\ impact: additional error attributable to forecast noise.} + \vspace{-0.5em} + \label{tab:combined_top} + \small + \setlength{\tabcolsep}{5.5pt} + \begin{tabular}{llccccc} + \toprule + Forecaster & Classifier & $\Delta$ mean & $\Delta$ median & TDR & Oracle $\Delta$ & Fcst.\ impact \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{LSTM-seq2seq} & \textbf{0.913} & \textbf{0.235} & 0.740 & 0.005 & 0.908 \\ + Informer & LSTM-seq2seq & 0.928 & 0.214 & 0.740 & 0.005 & 0.923 \\ + TCN-Direct & LSTM-seq2seq & 0.944 & 0.250 & 0.740 & 0.005 & 0.939 \\ + PatchTST & LSTM-seq2seq & 0.977 & 0.250 & 0.740 & 0.005 & 0.972 \\ + LSTM-Direct & LSTM-seq2seq & 1.008 & 0.300 & 0.741 & 0.005 & 1.003 \\ + \midrule + Transformer-Dir. & TCN & 1.818 & 0.875 & 0.830 & 0.783 & 1.035 \\ + Prophet & LSTM-seq2seq & 2.197 & 0.750 & 0.663 & 0.005 & 2.192 \\ + \midrule + LSTM-Direct & Transformer-S2S & 3.406 & 1.000 & 0.850 & 0.161 & 3.245 \\ + Prophet & Transformer-S2S & 4.557 & 2.958 & 0.775 & 0.161 & 4.395 \\ + \bottomrule + \end{tabular} +\end{table*} + +Table~\ref{tab:combined_cls} aggregates results by classifier across all six forecasters. The spread across classifiers is 2.52~years ($\Delta$~=~1.16 to 3.68), while the spread across the five neural forecasters is only 0.07~years ($\Delta$~=~2.48 to 2.55). This order-of-magnitude difference establishes that \emph{classifier choice determines pipeline performance far more than forecaster choice}. Within the classifier rankings, LSTM-seq2seq achieves the lowest mean $\Delta$~(1.161) and the smallest oracle~$\Delta$~(0.005), meaning it classifies ground-truth series almost perfectly and degrades gracefully under forecast noise. + +\begin{table}[htb!] + \centering + \caption{Pipeline results aggregated by classifier (mean over all 6 forecasters).} + \vspace{-0.5em} + \label{tab:combined_cls} + \small + \begin{tabular}{lcccc} + \toprule + Classifier & $\Delta$ mean & $\Delta$ med. & Oracle $\Delta$ & Fcst.\ impact \\ + \midrule + \textbf{LSTM-seq2seq} & \textbf{1.161} & \textbf{0.333} & \textbf{0.005} & 1.156 \\ + TCN & 2.000 & 1.024 & 0.783 & 1.217 \\ + ResNet & 2.840 & 1.507 & 0.863 & 1.977 \\ + InceptionTime & 3.606 & 1.617 & 1.170 & 2.437 \\ + Transformer-seq2seq & 3.682 & 1.242 & 0.161 & 3.521 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +The most striking finding in Table~\ref{tab:combined_cls} is the performance inversion between Transformer-seq2seq and LSTM-seq2seq. In the standalone classification task (Table~\ref{tab:cls_overall}), the Transformer is the strongest classifier by a wide margin (F1-mac~0.785 vs.\ 0.532). Yet in the combined pipeline it produces the worst year-delta (3.682), more than three times the LSTM's result (1.161). This accuracy--robustness paradox is explained by the oracle decomposition: the Transformer achieves an oracle~$\Delta$ of only 0.161 (second-best), confirming that it classifies clean data with high temporal precision. However, its forecasting impact is 3.521---by far the largest---meaning that forecasting noise alone adds 3.5~years of temporal error. In contrast, LSTM-seq2seq has a forecasting impact of only 1.156, indicating that it absorbs forecast noise with less than one-third of the degradation. + +The mechanism behind this divergence lies in the models' learned representations. The Transformer's self-attention learns precise associations between input patterns and phase labels: given the exact shape of a growth-to-peak transition, it can label the peak timestep with high accuracy. But this tight coupling means that even moderate input perturbations---such as a peak that is shifted by 1--2 years or smoothed in amplitude due to forecasting error---trigger misclassification of the surrounding timesteps. On forecasted data, the Transformer's F1 for the optional second-cycle phases drops to 0.166--0.257, down from 0.594--0.682 in standalone evaluation. The LSTM, through its recurrent hidden state, produces smoother decision surfaces that tolerate perturbations: its per-class F1 on forecasted data remains at 0.262--0.521 for the same phases. This robustness difference fully accounts for the pipeline ranking inversion and has a direct practical implication: \emph{standalone classification accuracy is an unreliable proxy for combined pipeline performance}. Model selection for a two-stage system should be based on robustness to input noise, not clean-data accuracy. + +The neural forecasters collectively reduce mean $\Delta$ by 25.3\% compared to Prophet ($\Delta$~=~2.52 vs.\ 3.37), confirming that learned forecasting provides practical value above a standard statistical baseline. However, the marginal differences between the five neural forecasters are negligible for the pipeline ($\Delta$ spread of 0.07~years). This indicates that forecasting improvements beyond the current frontier yield diminishing returns unless the classifier is simultaneously improved, particularly its robustness to noisy inputs. + +For the best pipeline configuration, year-delta is strongly sensitive to the observation window length. $\Delta$ decreases monotonically from 1.374 at $\ell$=10 to 0.336 at $\ell$=30---a 4.1$\times$ improvement---with TDR rising from 0.626 to 0.906 in parallel. The oracle analysis confirms that this improvement is driven entirely by better forecasts: LSTM-seq2seq maintains $\Delta_\mathrm{oracle} \approx 0$ at all window lengths. At $\ell$=20, the best configuration reaches $\Delta$~=~0.805, establishing approximately 20~years of historical patent data as the practical threshold above which sub-year temporal precision becomes achievable. + +Several limitations affect the combined evaluation. All classifiers are trained exclusively on clean ground-truth inputs, creating a train-test distribution mismatch when they process forecasted series. Noise-augmented or forecaster-in-the-loop training---where classifiers are exposed to forecasted series during training---could substantially improve robustness, particularly for the Transformer. The combined evaluation uses a single train/test split rather than cross-validation, so variance estimates for year-delta are not available. Finally, the year-delta metric weights all phase transitions equally; in practice, missing the timing of a growth-to-peak transition may be more consequential for innovation scouts than missing a secondary-decline boundary. + +\textbf{Summary of key experimental findings.} The evaluation produces three principal contributions. First, the Transformer-seq2seq classifier achieves F1-mac~0.785 on an eight-phase lifecycle labeling task using only raw patent counts and IPC-section one-hot encoding, with no hand-crafted features or domain-specific preprocessing. Mandatory lifecycle phases are classified with F1~$\geq$~0.857, and even the optional second-cycle phases achieve F1 between 0.594 and 0.682. Second, after per-series normalisation, the top five neural forecasters converge to within 0.07~MAE (7.78--7.85), reducing error by 57\% compared to the Prophet baseline. The convergence of architecturally diverse models after normalisation demonstrates that data preprocessing---not architecture selection---is the dominant factor for this dataset. Third, the best combined configuration (Transformer-Direct + LSTM-seq2seq) achieves a median year-delta of 0.235~years, indicating that technology phase transitions can be anticipated with approximately three-month precision from partial patent histories. The oracle decomposition establishes that this result is governed by classifier robustness to forecast noise rather than forecasting accuracy, identifying noise-aware classifier training as the highest-leverage direction for future improvement. + + +\section{Conclusion} + +Identifying emerging technologies is essential for effective innovation scouting, allowing stakeholders to anticipate and adapt to new developments. In this work, we presented an approach to technology forecasting using LSTM-based time series models trained on patent trends from the European Patent Office. By identifying stabilized trends, we defined a universal technology lifecycle, which we used to annotate our extracted IPC trends. Next, we generated a universal LSTM sequence-to-sequence classifier capable of predicting original trend labels with an accuracy of 88\%, as well as a forecasting LSTM model achieving an average temporal offset of only 1.27 years in the validation set. + +In future work, we aim to investigate the benefits of complementary trend sources in our trained models. In doing so, scientific publication databases such as Web of Science would capture the R\&D aspects of patents and provide a wider context of patent activities. + + +\section{Acknowledgments} + +Identification of funding sources and other support, and thanks to +individuals and groups that assisted in the research and the +preparation of the work should be included in an acknowledgment +section, which is placed just before the reference section in your +document. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +\begin{acks} +To Robert, for the bagels and explaining CMYK and color spaces. +\end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} +\endinput +%% +%% End of file `sample-sigconf.tex'. diff --git a/research/tech_forecasting/submission/sample-sigconf.tex.bak4 b/research/tech_forecasting/submission/sample-sigconf.tex.bak4 new file mode 100644 index 0000000..323dd34 --- /dev/null +++ b/research/tech_forecasting/submission/sample-sigconf.tex.bak4 @@ -0,0 +1,948 @@ +%% +%% This is file `sample-sigconf.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% samples.dtx (with options: `all,proceedings,bibtex,sigconf') +%% +%% IMPORTANT NOTICE: +%% +%% For the copyright see the source file. +%% +%% Any modified versions of this file must be renamed +%% with new filenames distinct from sample-sigconf.tex. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file samples.dtx. +%% +%% This generated file may be distributed as long as the +%% original source files, as listed above, are part of the +%% same distribution. (The sources need not necessarily be +%% in the same archive or directory.) +%% +%% +%% Commands for TeXCount +%TC:macro \cite [option:text,text] +%TC:macro \citep [option:text,text] +%TC:macro \citet [option:text,text] +%TC:envir table 0 1 +%TC:envir table* 0 1 +%TC:envir tabular [ignore] word +%TC:envir displaymath 0 word +%TC:envir math 0 word +%TC:envir comment 0 0 +%% +%% The first command in your LaTeX source must be the \documentclass +%% command. +%% +%% For submission and review of your manuscript please change the +%% command to \documentclass[manuscript, screen, review]{acmart}. +%% +%% When submitting camera ready or to TAPS, please change the command +%% to \documentclass[sigconf]{acmart} or whichever template is required +%% for your publication. +%% +%% + + +\documentclass[sigconf,anonymous,review]{acmart} +%% +%% \BibTeX command to typeset BibTeX logo in the docs +\AtBeginDocument{% + \providecommand\BibTeX{{% + Bib\TeX}}} + +%% Rights management information. This information is sent to you +%% when you complete the rights form. These commands have SAMPLE +%% values in them; it is your responsibility as an author to replace +%% the commands and values with those provided to you when you +%% complete the rights form. +\setcopyright{acmlicensed} +\copyrightyear{2018} +\acmYear{2018} +\acmDOI{XXXXXXX.XXXXXXX} +%% These commands are for a PROCEEDINGS abstract or paper. +\acmConference[Conference acronym 'XX]{Make sure to enter the correct + conference title from your rights confirmation email}{June 03--05, + 2018}{Woodstock, NY} +%% +%% Uncomment \acmBooktitle if the title of the proceedings is different +%% from ``Proceedings of ...''! +%% +%%\acmBooktitle{Woodstock '18: ACM Symposium on Neural Gaze Detection, +%% June 03--05, 2018, Woodstock, NY} +\acmISBN{978-1-4503-XXXX-X/2018/06} + + +%% +%% Submission ID. +%% Use this when submitting an article to a sponsored event. You'll +%% receive a unique submission ID from the organizers +%% of the event, and this ID should be used as the parameter to this command. +%%\acmSubmissionID{123-A56-BU3} + +%% +%% For managing citations, it is recommended to use bibliography +%% files in BibTeX format. +%% +%% You can then either use BibTeX with the ACM-Reference-Format style, +%% or BibLaTeX with the acmnumeric or acmauthoryear sytles, that include +%% support for advanced citation of software artefact from the +%% biblatex-software package, also separately available on CTAN. +%% +%% Look at the sample-*-biblatex.tex files for templates showcasing +%% the biblatex styles. +%% + +%% +%% The majority of ACM publications use numbered citations and +%% references. The command \citestyle{authoryear} switches to the +%% "author year" style. +%% +%% If you are preparing content for an event +%% sponsored by ACM SIGGRAPH, you must use the "author year" style of +%% citations and references. +%% Uncommenting +%% the next command will enable that style. +%%\citestyle{acmauthoryear} + +\usepackage[T1]{fontenc} +% T1 fonts will be used to generate the final print and online PDFs, +% so please use T1 fonts in your manuscript whenever possible. +% Other font encondings may result in incorrect characters. +% +\usepackage{graphicx} +% Used for displaying a sample figure. If possible, figure files should +% be included in EPS format. +% +% If you use the hyperref package, please uncomment the following two lines +% to display URLs in blue roman font according to Springer's eBook style: +%\usepackage{color} +%\renewcommand\UrlFont{\color{blue}\rmfamily} +%\urlstyle{rm} +% +\usepackage{booktabs} +\usepackage{array} +\usepackage{diagbox} +\usepackage{multirow} +\usepackage{rotating} + +\usepackage{graphicx} +\usepackage{rotating} + +\usepackage[table]{xcolor} +\usepackage{colortbl} + +% \definecolor{lightred}{rgb}{1, 0.8, 0.8} +% \definecolor{medred}{rgb}{1, 0.6, 0.6} +% \definecolor{darkred}{rgb}{1, 0.4, 0.4} +% \definecolor{graycell}{gray}{0.9} + +\definecolor{lightblue}{rgb}{0.8, 0.8, 1} +\definecolor{medblue}{rgb}{0.6, 0.6, 1} +\definecolor{darkblue}{rgb}{0.4, 0.4, 1} +\definecolor{graycell}{gray}{0.9} + + +% \newcommand{\cellcolorval}[1]{% +% \ifdim #1 pt > 2.0 pt +% \cellcolor{darkred}#1 +% \else\ifdim #1 pt > 1.5 pt +% \cellcolor{medred}#1 +% \else\ifdim #1 pt > 1.0 pt +% \cellcolor{lightred}#1 +% \else +% #1 +% \fi\fi\fi +% } +\newcommand{\cellcolorval}[1]{% + \ifdim #1 pt > 2.0 pt + \cellcolor{darkblue}#1 + \else\ifdim #1 pt > 1.5 pt + \cellcolor{medblue}#1 + \else\ifdim #1 pt > 1.0 pt + \cellcolor{lightblue}#1 + \else + #1 + \fi\fi\fi +} + + +%% +%% end of the preamble, start of the body of the document source. +\begin{document} + +%% +%% The "title" command has an optional parameter, +%% allowing the author to define a "short title" to be used in page headers. +\title{Technology Forecasting through Data-Driven Analysis of Patents} + +%% +%% The "author" command and its associated commands are used to define +%% the authors and their affiliations. +%% Of note is the shared affiliation of the first two authors, and the +%% "authornote" and "authornotemark" commands +%% used to denote shared contribution to the research. +\author{Ben Trovato} +\authornote{Both authors contributed equally to this research.} +\email{trovato@corporation.com} +\orcid{1234-5678-9012} +\author{G.K.M. Tobin} +\authornotemark[1] +\email{webmaster@marysville-ohio.com} +\affiliation{% + \institution{Institute for Clarity in Documentation} + \city{Dublin} + \state{Ohio} + \country{USA} +} + +\author{Lars Th{\o}rv{\"a}ld} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{larst@affiliation.org} + +\author{Valerie B\'eranger} +\affiliation{% + \institution{Inria Paris-Rocquencourt} + \city{Rocquencourt} + \country{France} +} + +\author{Aparna Patel} +\affiliation{% + \institution{Rajiv Gandhi University} + \city{Doimukh} + \state{Arunachal Pradesh} + \country{India}} + +\author{Huifen Chan} +\affiliation{% + \institution{Tsinghua University} + \city{Haidian Qu} + \state{Beijing Shi} + \country{China}} + +\author{Charles Palmer} +\affiliation{% + \institution{Palmer Research Laboratories} + \city{San Antonio} + \state{Texas} + \country{USA}} +\email{cpalmer@prl.com} + +\author{John Smith} +\affiliation{% + \institution{The Th{\o}rv{\"a}ld Group} + \city{Hekla} + \country{Iceland}} +\email{jsmith@affiliation.org} + +\author{Julius P. Kumquat} +\affiliation{% + \institution{The Kumquat Consortium} + \city{New York} + \country{USA}} +\email{jpkumquat@consortium.net} + +%% +%% By default, the full list of authors will be used in the page +%% headers. Often, this list is too long, and will overlap +%% other information printed in the page headers. This command allows +%% the author to define a more concise list +%% of authors' names for this purpose. +\renewcommand{\shortauthors}{Trovato et al.} + +%% +%% The abstract is a short summary of the work to be presented in the +%% article. +\begin{abstract} +Identifying emerging technologies is a key task in innovation scouting, enabling coaches and decision makers to stay ahead of technological developments. Patent data, with its historical information on innovation activity, offers a valuable basis for detecting such trends. In this paper, we propose an approach for technology forecasting using LSTM-based time series forecasting models trained on a broad range of patent categories of the European Patent Office. After identifying patent categories that are likely to capture the complete lifecycle of the underlying technology, we generate a universal model, which is then used to classify and forecast trends across all patent domains. The resulting sequence to sequence classifier is able to predict the original label with an accuracy of 88\%, allowing us to forecast different phases of the technology lifecycle with an error of 1.27 years across our validation set. +\end{abstract} + +%% +%% The code below is generated by the tool at http://dl.acm.org/ccs.cfm. +%% Please copy and paste the code instead of the example below. +%% +\begin{CCSXML} + + + 00000000.0000000.0000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 500 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 300 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + + 00000000.00000000.00000000 + Do Not Use This Code, Generate the Correct Terms for Your Paper + 100 + + +\end{CCSXML} + +\ccsdesc[500]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[300]{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc{Do Not Use This Code~Generate the Correct Terms for Your Paper} +\ccsdesc[100]{Do Not Use This Code~Generate the Correct Terms for Your Paper} + +%% +%% Keywords. The author(s) should pick words that accurately describe +%% the work being presented. Separate the keywords with commas. +\keywords{Patent technology forecasting, Time series analysis, Emerging technologies and innovation, Technology lifecycle} + + +\received{20 February 2007} +\received[revised]{12 March 2009} +\received[accepted]{5 June 2009} + +%% +%% This command processes the author and affiliation and title +%% information and builds the first part of the formatted document. +\maketitle + +\section{Introduction} + + +Innovation coaches in a university support researchers and staff in transforming academic ideas into practical innovations by guiding them through processes like commercialization, collaboration, and funding acquisition. Their tasks include scouting for emerging trends and fostering innovation and knowledge transfer. To do this, they engage in systematic scouting and screening activities to identify expertise and trends within and outside of their university, aiming to discover researchers with startup potential. As part of a funded project, we developed tools to assist coaches in these scouting activities by automating data gathering and analysis \cite{arzani2023challenges}. A central function of these tools is to support the identification of emerging technologies and forecast future research trends. By analyzing historical technology developments and combining them with academic data, such as research projects, publications, and researcher profiles, the coaches can more effectively monitor technological trajectories and detect early signals of innovation. + + + +Patent data is particularly valuable for recognizing technology patterns and offer structured, time-stamped records of innovation across disciplines. Unlike informal sources such as news or social media, patents are legally significant and systematically document technical advancements, making them ideal for tracking technology evolution. Their structure also enables the extraction of citation networks, classifications, and inventor collaborations—key indicators of emerging innovation. + + + +However, developing forecasting models that can fully leverage patent data poses significant challenges. A primary obstacle is creating models that are not confined to specific technological domains but can be generalized across diverse areas. Existing models often perform well within narrow fields but struggle to scale because innovation cycles, growth rates, and domain-specific language vary widely between sectors. These differences make it difficult to apply a single predictive framework, as models may misinterpret sector-specific dynamics or fail to detect trends in less studied areas. + +Furthermore, many current approaches to technology forecasting widely referenced models, such as the Gartner Hype Cycle, rely heavily on expert opinions and qualitative assessments. Although these methods provide valuable strategic insights, they are inherently subjective and often lack transparency in how trends are selected, categorized, or timed. This subjectivity limits their reproducibility and may introduce biases based on the perspectives or expertise of the contributing analysts. +% Furthermore, such models typically do not offer the granular, data-driven predictions needed for detailed, system-level innovation scouting. + +Therefore, there is a need for forecasting approaches that combine the objectivity and scalability of data-driven methods with the ability to generalize across technological domains. This paper addresses this challenge by proposing a predictive data-driven approach based on patent trends. As a first step, we extract patents time series data from the EPO from 1978 onwards and find the stabilized patents that capture the complete lifecycle of the underlying technology in order to generate a universal technology trend. Utilizing the universal trend, we then define the phases of the technology lifecycle and annotate the stabilized trends. Finally, based on the annotated phases of the completed trends, we perform classification as well as forecasting of labels through training a multiple statistical and neural network models. + + +%adjust the following contributions based on the results of the evaluation + + + + +By leveraging sequence and transformer modeling techniques, the proposed approach offers a solution to automate the identification and forecasting of technology trends, in support of innovation scouting activities. The paper delivers the following contributions: +%TODO: add more contributions if needed +\begin{itemize} + \item We describe a data-driven approach to identify a universal technology lifecycle and its phases using patent data. + \item We develop models that are capable of identifying the lifecycle phases using an accuracy of up to 88\%. + \item We show that it is possible to forecast future phases with an error of only 1.27 years. +\end{itemize} + + + + +\section{Related Work} + +Forecasting technological trends is a central challenge in innovation management. One well-known conceptual model is the Gartner Hype Cycle (GHC), which describes the evolution of technology through five phases, from the initial trigger to broad market adoption~\cite{gartner_5,linden2003understanding}. While the GHC helps assess the maturity and business value of technologies, its qualitative nature and dependence on subjective expert judgment limit its reproducibility and transparency~\cite{dedehayir2016hype,steinert2010scrutinizing}. To overcome these limitations, patent-based approaches have gained traction due to their objectivity and data availability. Early work by Campbell (1983) proposed using patent indicators such as activity levels, immediacy, and dominance to track the lifecycle of technologies and forecast innovation dynamics~\cite{campbell1983patent}. + +Recent advances have focused on leveraging text mining and machine learning techniques to extract insights from patent data \cite{kim2019text,qiu2020technology,choi2021identifying}. Authors of \cite{abbas2014literature} provide a comprehensive overview of such methods, distinguishing between text-based analyses using NLP and semantic extraction, and visual analytics like patent maps and citation networks. Tools such as PatStream and TrendPerceptor combine NLP with interactive visualizations and concept extraction to identify emerging technologies without requiring domain expertise \cite{han2017visual,yoon2012trendperceptor}. Similarly, topic modeling methods like LDA have been applied to uncover latent themes in patent texts and track their evolution over time~\cite{chen2017topic,supraja2015patent,kim2015technology}. Statistical models, such as ARIMA and LSTM networks, have further improved the forecasting of temporal trends, especially in noisy and nonlinear domains \cite{sagheer2019time,supraja2015patent}. Cluster- and network-based approaches also play a important role. Some authors use CPC-based clustering combined with patent indicators to identify promising technologies \cite{kim2017novel}, while others integrate k-means clustering and topic modeling for uncovering innovation white spaces \cite{kim2015technology}. Property-function-based analyzes address the limitations of citation delay by extracting semantic relationships directly from patent text, enabling the detection of early-stage innovations \cite{yoon2012analysis}. Integrative frameworks combining bibliometrics, patent data, scenario planning, and system dynamics offer robust strategies for technology forecasting under uncertainty \cite{daim2006forecasting}. + +%Together, these methods highlight the growing maturity and methodological diversity of patent-based forecasting systems. + +In contrast to prior work, which often focuses on domain-specific analyses or requires extensive expert input, our approach introduces a domain-agnostic, methodologically consistent, and reproducible framework for patent-based trend forecasting. By applying unsupervised clustering, we derive universal technological trend patterns from a large-scale patent corpus, independent of specific application fields. This eliminates the need for manual topic selection or domain tailoring, enabling scalability across diverse innovation areas. To model the technology lifecycles, we provide a benchmark of stastical and state-of-the-art models, which have demonstrated performance in capturing nonlinear, high-dimensional time series~\cite{sagheer2019time}. The combination of clustering with deep learning enables us to generalize trend structures and systematically evaluate their predictive quality. In doing so, our approach bridges the gap between interpretability, scalability, and forecasting. + +\section{Patent System} + +% Patents play an important role in fostering innovation by granting the inventors exclusive rights to their innovation for a period of time, typically 20 years. +In this work, our goal is to enable patent-phase classification and forecasting of technology lifecycle phases in support of innovation scouting. As input, we focus on the patent data from the European Patent Office (EPO) \cite{harhoff2009duration}. The EPO is a major patent authority that reviews and grants patents, enabling inventors to secure innovation across different markets. + +Patents are typically categorized in technical domains using systems such as Cooperative Patent Classification (CPC) and International Patent Classification (IPC) \cite{leydesdorff2014interactive}, which organize innovation into sectors such as pharmaceuticals, biotechnology, electronics and information technology. This classification helps streamline patent searches, foster collaborations, and identify technological trends across various domains. For instance, a biotech startup may use IPC to locate similar gene-editing patents before filling its own, while a large firm may analyze classification trends to inform R\&D investments. The EPO organizes patents using the IPC system, which is divided into eight main sections, each representing a broad area of technology. These sections are: A (Human Necessities), B (Performing Operations; Transporting), C (Chemistry; Metallurgy), D (Textiles; Paper), E (Fixed Constructions), F (Mechanical Engineering; Lighting; Heating; Weapons), G (Physics) and H (Electricity). Each section is further divided into classes, subclasses, groups, and subgroups to provide a detailed and hierarchical structure for organizing patents. + +For example, in the field of medical technology, \textit{Section A} covers Human Necessities, while \textit{Class A61} focuses on Medical or Veterinary Science; Hygiene. Within this, \textit{Subclass A61K} is dedicated to Preparations for Medical, Dental, or Toilet Purposes, including drugs, disinfectants, and cosmetic formulations. A more specific breakdown, such as \textit{Group A61K 31/00}, refers to medicinal preparations containing organic active ingredients. This group contains several subgroups, and one such example is \textit{A61K 31/519}, which refers specifically to Medicinal preparations containing macrolides, a subclass of antibiotics. + +EPO data on each IPC class inherently include time-series information, where the number of patent filings is recorded over time for specific technologies. Hereby, innovation coaches construct a time series dataset represents technological activity and innovation intensity over the years. From a technical standpoint, these data reflect a univariate time series, where each data point corresponds to the count of patents filed in a particular year for a particular IPC class. + +\section{Data Generation and Modeling} + +Using the time-series data from the EPO, we propose a data-driven method for capturing technology lifecycles. Our approach begins by extracting the \textit{stabilized time series} trends of patent filings within IPC classes to construct a \textit{universal trend} that captures the typical evolution pattern of technologies. Then, the universal trend is segmented into \textit{distinct phases of the lifecycle}, based on the structural characteristics of the trend curve. Finally, the labeled phases serve as the baseline for \textit{modeling} using multiple models, which are then used to classify current technological stages and forecast future lifecycle trajectories. + + +\subsection{Extraction of Stabilized Trends} +\label{extraction_stabilized_trends} + + +Patent activity across IPC domains varies widely in volume, frequency, and maturity. While some domains already went through the full technology lifecycle, others have sparse or incomplete data, reflecting early stage or irregular development. When trying to identify a universal model for the technology lifecycle, the latter will inevitably introduce noise. Thus, to reduce the noise, we apply a filtering process to retain only IPC time series that are likely to capture the complete technology lifecycle. In the following, we refer to these time series as \textit{stabilized trends}, which are time series data with minimized short-term noise and variance, allowing analysts to accurately model the long-term patterns of introduction, growth, maturity, and decline \cite{wu2023linkage}. +To identify the stabilized trends, we apply a filtering procedure consisting of 6 steps (depicted on Figure \ref{fig:filtering_pipeline}). + +\begin{figure}[h] + \centering + \includegraphics[width=\linewidth]{figures/pipeline_v1.png} + \vspace{-0.8cm} + \caption{Filtering process: Extraction of stabilized patents.} + \label{fig:filtering_pipeline} +\end{figure} + +We begin by (1) extracting all patents published by the EPO from 1978 to 2022, yielding 73,739 IPC trends, each represented as a yearly time series of patent counts.\footnote{The IPC dataset will be made publicly available post-review for reproducibility.} Since patents may have multiple IPC codes, (2) we disambiguate trends by isolating subgroup-level IPCs and removing higher-level codes, slightly reducing the dataset to 73,298 trends. (3) A European patent provides exclusive rights for a maximum of 20 years from the filing date, as stated in Article 63(1) EPC \cite{di2002european}. This time frame reflects the legal lifecycle of a patent and defines the maximum period during which a technology can remain under protection. This ensures a balance between incentivizing innovation and eventually allowing public access to the invention once the patent expires. Therefore, each IPC must span a minimum of 20 years between the first and last recorded patent, which results in 58,891 IPCs. + +% \begin{figure}[ht] +% \centering +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/pipeline_v1.png} +% \caption{Filtering process: Extraction of stabilized patents.} +% \label{fig:filtering_pipeline} +% \end{minipage} +% \hfill +% \begin{minipage}{0.45\textwidth} +% \centering +% \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} +% \caption{Comparison of different clustering algorithms.} +% \label{fig:clustering_algorithms} +% \end{minipage} +% \end{figure} + +(4) Each IPC trend must exhibit a distinct peak year, defined as the year with the highest number of published patents. To ensure trend stability, this peak must not fall within the last five years of the observed period, as trends peaking too recently may still be evolving and not fully reflect the technology lifecycle. The five-year window also accounts for the typical duration of the European patent grant process (3–5 years) \cite{guellec2000applications}, during which publication delays and pending examinations can cause incomplete or lagging data. By excluding recent peaks, we reduce the risk of analyzing immature trends, resulting in a refined dataset of 27,831 trends. (5) To filter out insignificant trends, each must have a peak of at least three patents. About 27\% of IPCs peak at only two patents, indicating limited activity and weak signals. This threshold reduces the dataset to 26,845 valid trends. + + +Lastly (6), to ensure trend stability, the last five years of each time series must not exhibit significant fluctuations. Specifically, the difference between the minimum and maximum values within this five-year window must not exceed 10\% of the trend’s peak value. This relative threshold is dynamic, as it scales with the magnitude of the trend peak, ensuring that larger trends can tolerate proportionally larger absolute fluctuations, while still maintaining relative stability. For example, a trend with a peak of 1000 allows for a fluctuation of up to 100, whereas one with a peak of 100 permits only 10, making the filter adaptive to varying trend sizes. The threshold of 10\%, derived from exploratory data analysis, is intentionally conservative: It aims to capture only those trends that we think are likely to have fully completed their lifecycle and are no longer evolving. + +As a final result, the filtering process generates 2,774 stabilized IPC trends across all sections with the following distribution: A:10,9\%, B:17,5\%, C:20,4\%, D:4,3\%, E:2,6\%, F:7\%, G:21,1\%, H:16,2\%. + + +\subsection{Universal Patent Trend} +\label{universal_trend} + +The goal of this step is to find one or more universal patent trends that represent the set of all 2,774 stabilized trends to be able to divide them into phases and define them. The generation of the universal trend pattern consists of two stages. + +\begin{figure}[h] + \centering + \includegraphics[width=\linewidth]{figures/bar_k_dbscan.png} + \vspace{-0.8cm} + \caption{Comparison of different clustering algorithms.} + \label{fig:clustering_algorithms} +\end{figure} + +First, to investigate whether multiple universal trend patterns exist, we apply K-Means, K-Medoids \cite{arora2016analysis}, K-Shape \cite{paparrizos2015k}, and DBSCAN \cite{deng2020dbscan} to the stabilized patent trends, using both DTW distances and Pearson correlation. Clustering quality is assessed with the Silhouette Score \cite{shahapure2020cluster} in Figure \ref{fig:clustering_algorithms}, where value 1 on y-axis indicates perfect clustering and values near 0 or negative suggest poor separation. Across all methods and cluster counts (k = 2–6), the scores remain low, e.g., K-Medoids peaked at 0.03 for k = 2, K-Means at 0.16 for k = 2, and K-Shape at 0.05 for k = 3, while DBSCAN produces similarly modest results (max 0.09). These consistently low scores indicate weak cluster structures and limited separation between trends, suggesting that the dataset is best represented by a single dominant pattern. Consequently, we select \textit{k=1} as the optimal choice for describing the entire dataset. + + +In the second stage, we derive a universal trend pattern from the identified cluster. In doing so, we compare several Dynamic Time Warping (DTW) methods to aggregate trends into an optimal representative universal pattern \cite{han2020pattern}. The DTW warping path describes the optimal alignment between two given time series sequences. Typically, one of the two trends is used as a reference, and the second trend is aligned to this reference trend. Our analysis reveals that while methods that use a random or preliminary average reference trend introduce bias or information loss, pairwise alignment mitigates reference bias, but results in increased smoothing due to $n^2$ pairings \cite{asesh2021normalization}. + +To overcome the shortcomings of DTW, we utilize Dynamic Time Warping Barycenter Averaging (DBA) \cite{petitjean2014dynamic,petitjean2011global}. DBA is an iterative algorithm that finds a representative \textit{average} time series (the barycenter) for a set of time series by minimizing the sum of their DTW distances to this average. In each iteration, it computes optimal DTW alignments between the current average and all input sequences, then updates the average by taking a weighted \textit{barycenter} of the points aligned to each position of the average. +This method begins by identifying the Medoid which serves as the initial reference with the lowest total DTW distance to all other trends. Figure \ref{fig:uni_trend} shows the universal trend generated by the DBA approach. +% This method avoids repeated averaging and best preserves the original trends information content. + +To validate the resulting trend, we also train a Gaussian Mixture Model (GMM) and an LSTM with stabilized trends using a random trend as starting point. +% a representative uniform trend was calculated from them. +A GMM is a probabilistic model that assumes that the data points are generated from a mixture of a finite number of Gaussian distributions with unknown parameters, enabling soft clustering and density estimation \cite{viroli2019deep}. The GMM with a single component is trained on all stabilized trends and visually compared with the DBA result. Furthermore, the LSTM model consists of two layers: one LSTM layer with 100 neurons and a dense output layer with a single neuron. We train the LSTM using the Mean Squared Error (MSE) and the Adam optimizer, with a learning rate of 0.001 over 50 epochs. +% The same input data was used for both training and prediction, and the output represents the unified trend. + +% \vspace{-0.7cm} +\begin{figure}[!htb] + \vspace{-1em} + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_dba_v1.png} + \vspace{-0.8cm} + \caption{DBA} + % \vspace{1cm} + \label{fig:uni_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_gmm_v1.png} + \vspace{-0.8cm} + \caption{GMM} + \label{fig:gmm_trend} + \endminipage\hfill + \minipage{0.30\textwidth} + \includegraphics[width=\linewidth]{figures/universal_lstm_v1.png} + \vspace{-0.8cm} + \caption{LSTM} + % \vspace{-0.6cm} + \label{fig:lstm_trend} + \endminipage +\end{figure} +% \vspace{-0.5cm} + +Figures \ref{fig:gmm_trend}~and~\ref{fig:lstm_trend} show the identified universal patent trends determined using the GMM and LSTM models (left to right). DBA and LSTM trends are mostly similar in their progression, with both trends initially flattening and then rising to a peak, after which the progression declines again. The GMM trend, on the other hand, exhibits a greater fluctuation than the other two trends. The main difference is the appearance of a major second, slightly lower peak. +This concludes that using the cluster, there exists a universal patent trend that describes every stabilized patent's behavior, independent of domain and time. + +\subsection{Definition of Patent Phases with the Universal Trend} +% \vspace{-0.6em} +\label{phase_definitions} + + +The goal of this step is to divide the universal trend into phases for later classification and prediction tasks. In doing so, we manually analyze and annotate the stabilized trends based on the universal trend patterns for recurring structures and annotate the defined phases. + +An stabilized IPC code typically goes through several distinct numerated phases throughout its lifecycle as demonstrated in Figure \ref{fig:ideal_trend}. The lifecycle consists of mandatory and \textit{optional} phases as follows: (1) pre-use phase; (2) growth phase; (3) peak phase; (4) decline phase (5a) \textit{optional} second growth phase; (5b) \textit{optional} second peak phase; (5c) \textit{optional} second decline phase; +% (6) optional plateau rise; +(6) plateau phase. +The (1) pre-use phase, marked by minimal patenting activity. This is followed by a (2) growth phase, characterized by a rising number of patent fillings reflecting a growing interest in the technology. The lifecycle then reaches a (3) peak phase, where the maximum number of patents is published, indicating peak point of the IPC. +After this peak, a (4) decline phase sets in, with patent activity decreasing. +Some IPC trends exhibit an optional cycle, representing a smaller, secondary wave of interest. About 17\% (467 out of 2,774) of the stabilized trends show this pattern, which include an (5a) optional second growth phase, an (5b) optional second peak phase, and an (5c) optional second decline phase. +% Beyond these, a small percentage (under 2\%) show an (6) optional plateau rise, where patenting activity slightly increases before stabilizing. +Finally, the IPC enters a (6) plateau phase, a stable level of activity, often near zero, signifying the end of its lifecycle. The duration and intensity (i.e., slope steepness or peak height) of each phase vary from trend to trend. Figure \ref{fig:trends_example} shows some instances of stabilized IPCs in patent sections A, B, C, D, F, G and H with optional and primary phases that demonstrate the latter behavior. This step delivers the annotated technology phases of the stabilized trends. + + +\begin{figure}[ht] + \centering + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/universal_trend_ideal.png} + \vspace{-1cm} + \caption{Ideal universal trend.} + \label{fig:ideal_trend} + \end{minipage} + % \hfill + \begin{minipage}{0.35\textwidth} + \centering + \includegraphics[width=\linewidth]{figures/all_trends.png} + \vspace{-0.8cm} + \caption{Example stabilized trends.} + \vspace{-0.5cm} + \label{fig:trends_example} + \end{minipage} +\end{figure} + + +\subsection{Modelling of Patent Trends} +\label{modelling} + +The modeling of patent trends encompasses three interconnected experimental tasks using the annotated stabilized IPC trends: classification of lifecycle phases, forecasting of patent activity, and a combined pipeline that predicts when future phase transitions will occur. + +\textbf{Phase classification.} The classification task takes a trend as input and outputs the phase of the final year in the sequence, helping to identify where we are currently in the lifecycle. This is particularly valuable for innovation scouts, as it provides immediate orientation in evaluating the maturity of a technology. + +%\textbf{Classification overview.} +The task assigns one of the eight lifecycle phases defined in Section~\ref{phase_definitions} to each year of a patent trend. We formulate this as a \textit{sequence-to-sequence} (seq2seq) problem: given the full 45-year input series, the model produces a phase label for every timestep. This per-timestep labeling captures the temporal structure of lifecycles, including the precise timing of transitions between phases. To do this, we evaluate seven models across four model families including Transformer encoders \cite{yuan2020self} , Long Short-Term Memory networks (LSTMs), Temporal Convolutional Networks (TCNs) \cite{pelletier2019temporal}, as well as convolutional time series classifiers (InceptionTime, ResNet) \cite{ismail2020inceptiontime} and the random convolutional kernel transform ROCKET~\cite{dempster2020rocket}. + +%\textbf{Classification models.} +The \emph{Transformer-seq2seq}, is a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. The \emph{LSTM-seq2seq} includes a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. +The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +%explain the latter: the LSTM's gating mechanisms allow it to learn when to retain or forget information, which can help it model the gradual transitions between lifecycle phases, while the Transformer's attention mechanism may capture more complex, non-local dependencies but may require more data to learn smooth transitions effectively. +The \emph{TCN} is a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. he TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%The increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +%explain the latter: the TCN's hierarchical convolutional structure enables it to capture both short-term and long-term dependencies in the patent trends, which is crucial for accurately identifying lifecycle phases that may have varying durations and transition patterns. +%dialations and exponetional grow meaning +Additionally, \emph{InceptionTime} and \emph{ResNet} are convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolutional blocks along the temporal dimension which are adapted here for sequence-to-sequence output by incorporating a per-timestep classification head. +% ; although originally designed for univariate whole-series classification, they +We also consider two baselines: \emph{LSTM-Segment} a segment-level classification model and a non-neural time series classifier \emph{ROCKET}. The LSTM-Segment model, is a single-layer LSTM that predicts one majority phase label for the entire input sequence. Hereby, each 45-year trend is reduced to its most frequent lifecycle phase and the model predicts this single label for the whole sequence. This baseline tests whether the task can be solved by assigning one coarse label to the entire trend, or whether per-timestep sequence labeling is necessary to capture phase transitions. ROCKET is a another baseline that applies a random convolutional kernel transform to generate high-dimensional feature representations, followed by a ridge classifier, and is designed for efficient single-label time series classification. + + + +\textbf{Patent activity forecasting.} The forecasting task predicts the future patent filing counts given a partial observation of the first $\ell$ years of a trend. This is valuable for supporting innovation scouts, as it enables identifying key lifecycle phases that may occur in the future, such as anticipating when a trend might peak or begin to decline. + +For this task, we investigate two prediction strategies: In \textit{direct} multi-step forecasting, the model outputs all remaining $45 - \ell$ future values in a single forward pass, avoiding iterative error accumulation. +%How does a single forward pass work (look at the code): the model takes the observed sequence of length $\ell$ as input and produces a fixed-length output vector of size $45 - \ell$, where each element corresponds to the predicted patent count for a future year. This approach allows the model to learn the joint distribution of future values conditioned on the observed history, potentially capturing complex temporal dependencies across the entire forecast horizon. +In \textit{autoregressive} (AR) forecasting, the model predicts one step at a time, appending each predicted value to the input sequence and iterating forward. Direct models avoid the error compounding inherent to autoregressive decoding at the expense of a more complex output distribution. To achive this, we evaluate eleven models are evaluated across four model families including Transformer-based architectures (standard Transformer, Informer, PatchTST, Autoformer) \cite{zhou2021informer,huang2024long,wu2021autoformer}, recurrent models (LSTM), and convolutional models (TCN), each in both direct and autoregressive modes where applicable. We also add statistical baselines (Prophet, ETS, ARIMA) \cite{ning2022comparative,jain2017study} that fit each series independently. +%serve as reference methods. + +%\textbf{Forecasting models.} +Among the neural direct forecasting models, \emph{Transformer-Direct} uses $d_\mathit{model}=64$, 4 attention heads, and 2 layers, while \emph{Informer} reduces computational complexity through ProbSparse self-attention, \emph{PatchTST} applies patch-based tokenisation of the time series, \emph{LSTM-Direct} uses a 2-layer architecture with 128 hidden units, and \emph{TCN-Direct} relies on dilated convolutions with 64 filters. +%difference between informer, patchtst and transformer: Informer reduces the computational complexity of self-attention from $O(L^2)$ to $O(L \log L)$ by selecting only the most relevant queries based on their sparsity, making it more efficient for long sequences. PatchTST, on the other hand, divides the time series into fixed-size patches and treats each patch as a token, allowing it to capture local patterns effectively while still leveraging the Transformer's global attention mechanism. The direct forecasting models are trained to predict all future values in one forward pass, which allows them to learn complex temporal dependencies across the entire forecast horizon without being affected by error accumulation. +All of these models generate the full forecast horizon in a single forward pass. In contrast, the neural autoregressive models, namely \emph{LSTM-AR} and \emph{TCN-AR}, predict one step at a time and feed each prediction back into the model as input for the next step. This iterative strategy can better capture fine-grained temporal dynamics, although it is more vulnerable to error accumulation over longer forecasting horizons. \emph{Autoformer} represents a Transformer-based variant that incorporates built-in series decomposition into trend and seasonal components through auto-correlation attention, making it suitable for data with pronounced seasonal structure. In addition, the comparison includes statistical baselines such as \emph{Prophet}, which uses additive trend decomposition with changepoint detection, \emph{ETS}, which is based on exponential smoothing, and \emph{ARIMA}, which follows an autoregressive integrated moving average formulation. Unlike the neural approaches, these classical methods fit each time series independently and therefore cannot exploit cross-series patterns arising from the shared lifecycle structure. +%difference between autoformer and other transformer-based models: Autoformer incorporates a series decomposition mechanism that separates the input time series into trend and seasonal components using auto-correlation attention. This allows it to model complex temporal patterns more effectively, especially in data with strong seasonality, whereas standard Transformer-based models may struggle to capture such patterns without explicit decomposition. + + + +\textbf{Combined pipeline.} The combined task chains the forecasting and classification stages into a single end-to-end pipeline: given the first $\ell$ years of a technology's patent history, the forecaster predicts the remaining years and the classifier annotates the predicted series with lifecycle phase labels. The operationally relevant question for innovation scouts is not merely \textit{what} phase a technology will enter, but \textit{when} each phase transition will occur. To quantify this, we introduce the \textit{year-delta} metric, which measures the average temporal distance between predicted and true phase transition points. We evaluate all pairwise combinations of top-performing forecasters and classifiers, and additionally run each classifier in \textit{oracle mode} on ground-truth series. The oracle baseline enables a causal decomposition of pipeline error into classification error (measured on clean inputs) and forecasting-induced error (the additional degradation when predicted series replace ground truth). + + + +\section{Evaluation} + +In this section, we evaluate the proposed approach across the three mentioned interconnected tasks. After describing the experimental settings, we present the results for lifecycle phase classification. Then, we evaluate the performance of forecasting models in predicting future patent activity. Finally, we assess the combined performance of the classification and forecasting models in predicting future phase transitions. + +%All experiments use the 2,774 stabilized IPC trends described in Section~\ref{extraction_stabilized_trends}, each spanning 45 annual patent counts (1978--2022). Training was performed on a single NVIDIA A6000 GPU (48\,GB VRAM). + +\subsection{Experimental Settings} + +% \textbf{Dataset and phase labels.} Each of the 2,774 series is annotated with eight per-year lifecycle phase labels corresponding to the phases defined in Section~\ref{phase_definitions}: pre-use~(0), growth~(1), peak~(2), decline~(3), second growth~(4), second peak~(5), second decline~(6), and plateau~(7). The mandatory phases---pre-use, growth, peak, decline, and plateau---occur in every series, while the optional second cycle (phases 4--6) appears in approximately 17\% of technologies. The resulting class distribution is heavily skewed: the mandatory phases dominate per-timestep labels, while the optional second-cycle phases and the peak marker represent fewer than 5\% of all labels. The input feature tensor for classification is $(N, 45, 9)$: one raw patent count value per timestep plus an 8-dimensional IPC-section one-hot encoding (sections A--H), repeated identically at each timestep. Forecasting uses a $(N, 45, 10)$ tensor, adding a normalised observation-length indicator that encodes the fraction of the series observed so far. + + + +% \textbf{Classification models.} Seven architectures are evaluated, spanning four model families: +% \begin{itemize} +% \item \emph{Transformer-seq2seq}: a Transformer encoder with $d_\mathit{model}=128$, 4 attention heads, 2 encoder layers, and feedforward dimension $d_\mathit{ff}=256$. Each input timestep is projected into the model dimension and processed by multi-head self-attention, which enables the model to capture long-range temporal dependencies across all 45 timesteps simultaneously. A time-distributed linear head maps each encoder output to 8 class logits. +% \item \emph{LSTM-seq2seq}: a 2-layer stacked LSTM with 128 hidden units per layer followed by a time-distributed dense head. The recurrent architecture processes the sequence left-to-right, maintaining a hidden state that accumulates temporal context. Unlike the Transformer, the LSTM has an explicit sequential inductive bias that may favour smooth, locally coherent phase transitions. +% \item \emph{TCN}: a Temporal Convolutional Network with dilated causal convolutions (dilation factors 1, 2, 4, 8) and 64 filters per layer. The exponentially increasing dilation allows each output timestep to attend to an exponentially growing receptive field without sacrificing temporal resolution, making TCNs effective for capturing multi-scale temporal patterns. +% \item \emph{InceptionTime} and \emph{ResNet}: convolutional time series classifiers that apply multi-scale (Inception) or residual (ResNet) convolution blocks across the temporal dimension. Originally designed for univariate whole-series classification, we adapt them for seq2seq output by applying a per-timestep classification head. +% \item \emph{LSTM-Segment}: a single-layer LSTM that outputs one majority phase label for the entire input sequence, serving as a segment-level baseline that tests whether per-timestep annotation is necessary. +% \item \emph{ROCKET}~\cite{dempster2020rocket}: a random convolutional kernel transform that generates a high-dimensional feature vector from random convolution kernels followed by a ridge classifier. ROCKET is designed for fast single-label time series classification and provides a non-neural baseline. +% \end{itemize} + + +% \textbf{Forecasting models.} Eleven models are evaluated across four families: +% \begin{itemize} +% \item \emph{Neural direct models}: Transformer-Direct ($d_\mathit{model}=64$, 4 heads, 2 layers), Informer (ProbSparse self-attention for reduced complexity), PatchTST (patch-based tokenisation of the time series), LSTM-Direct (2-layer, 128 hidden units), and TCN-Direct (dilated convolutions, 64 filters). All output the full forecast horizon in a single forward pass. +% \item \emph{Neural autoregressive models}: LSTM-AR and TCN-AR, which predict one step at a time and feed each prediction back as input for the next step. This iterative scheme can capture fine-grained temporal dynamics but is susceptible to error compounding over long horizons. +% \item \emph{Autoformer}: a Transformer variant with built-in series decomposition (trend + seasonal components) via auto-correlation attention. Designed for data with strong seasonal patterns. +% \item \emph{Statistical baselines}: Prophet (additive trend decomposition with changepoint detection), ETS (exponential smoothing), and ARIMA (autoregressive integrated moving average). These classical methods fit each series independently and cannot leverage cross-series patterns from the shared lifecycle structure. +% \end{itemize} + +%\textbf{Metrics.} +We adapt the evaluation metrics to the specific properties of each task. For \textbf{classification task}, the heavy class imbalance necessitates metrics that reflect performance on minority classes. Accuracy alone is insufficient because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. Macro-averaged F1 (F1-mac) gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Weighted F1 (F1-wgt) averages by class frequency, providing a more optimistic estimate that may be inflated by majority classes. Cohen's $\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. + + +For the \textbf{forecasting task}, the direct forecasting models utilize a binary mask (Masked MSE) that zeros out loss contributions from zero-padded output positions beyond the true forecast horizon. This prevents the model from learning to predict zeros at invalid positions. +%how it works: $\kappa = (p_o - p_e) / (1 - p_e)$ where $p_o$ is the observed agreement and $p_e$ is the expected agreement by chance. A $\kappa$ of 1 indicates perfect agreement, while 0 indicates agreement no better than random chance. what it captures: $\kappa$ captures the degree to which the model's predictions are better than random chance, accounting for class imbalance. A high $\kappa$ indicates that the model is effectively learning to distinguish between classes, while a low $\kappa$ suggests that the model's performance may be largely due to chance, particularly in imbalanced settings where majority classes dominate accuracy. how it differs from F1: while F1 focuses on the balance between precision and recall for each class, $\kappa$ provides an overall measure of agreement that accounts for the possibility of random correct predictions, making it a more robust metric in scenarios with significant class imbalance. how it complements F1: $\kappa$ complements F1 by providing a holistic measure of model performance that considers both the balance of precision and recall (F1) and the likelihood of achieving correct predictions by chance ($\kappa$), offering a more comprehensive evaluation of classification quality in imbalanced datasets. +Furthermore, mean absolute error (MAE) is the primary metric because stakeholders interpret results in terms of absolute patent numbers. Root mean squared error (RMSE) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. Symmetric mean absolute percentage error (sMAPE) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero, which is a frequent occurrence in patent data, where 51\% of series have a maximum count below~10 and is therefore reported for completeness but not as the primary ranking criterion. + +For the \textbf{combined pipeline}, we utilize the year-delta metric as the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. Transition detection rate (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +%explain TDR technically and with examples: TDR is calculated by identifying all true transition points in the forecast window where the phase label changes from one class to another. For each true transition point, we check if the predicted sequence contains the same class label anywhere within the forecast window. If it does, we count that transition as detected. The TDR is then computed as the ratio of detected transitions to the total number of true transitions. For example, if there are 10 true transition points in the forecast window and the model's predictions include the correct phase label for 7 of those transitions at any point in the forecast window, the TDR would be 0.7 or 70\%. This metric captures whether the model is at least predicting the correct phases somewhere in the future, even if it does not get the timing exactly right, which is crucial for evaluating models that may struggle with precise temporal alignment but still capture important lifecycle stages. + +% \begin{itemize} +% \item \emph{Classification}: We report \textbf{accuracy} (proportion of correctly labeled timesteps), \textbf{macro-averaged F1} (F1-mac, the unweighted mean of per-class F1 scores), \textbf{weighted F1} (F1-wgt, F1 averaged by class frequency), and \textbf{Cohen's~$\kappa$} (agreement corrected for chance). Accuracy alone is insufficient under class imbalance because a naive majority-class predictor can achieve high accuracy while failing on rare but important phases. F1-mac gives equal weight to every phase regardless of frequency, making it the primary metric for evaluating minority-class performance. Cohen's~$\kappa$ additionally corrects for the expected agreement under random labeling, providing a more conservative estimate of model quality. +% \item \emph{Forecasting}: \textbf{MAE} (mean absolute error) measures the average absolute deviation in patent counts and is the primary metric because stakeholders interpret results in terms of absolute patent numbers. \textbf{RMSE} (root mean squared error) emphasises large deviations and penalises occasional extreme mispredictions more heavily than MAE. \textbf{sMAPE} (symmetric mean absolute percentage error) provides a scale-independent relative error measure; however, it is unreliable when true values are near zero---a frequent occurrence in patent data, where 51\% of series have a maximum count below~10---and is therefore reported for completeness but not as the primary ranking criterion. +% \item \emph{Combined pipeline}: \textbf{Year-delta}~($\Delta$) is the primary metric. For each timestep $t$ in the forecast window where the true phase label is $c$, we locate the nearest timestep $t'$ where the predicted label is also $c$ and compute $|t - t'|$. The year-delta is the mean of these temporal distances across all forecast-window timesteps: $\Delta = 0$ indicates perfect temporal alignment, while $\Delta = 1$ means transitions are predicted within one year on average. \textbf{Transition detection rate} (TDR) reports the fraction of true transition timesteps for which the predicted class appears anywhere in the prediction window, regardless of temporal alignment. A classifier that never predicts a rare phase will have TDR~=~0 for that phase; TDR thus flags models that appear accurate in aggregate but systematically omit minority phases. +% \end{itemize} + +\begin{table}[htb!] + \centering + \caption{Training configuration.} + \vspace{-0.9em} + \label{tab:train_config} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{llccl} + \toprule + Task & Model & Epochs & LR & Loss \\ + \midrule + Classification & Transformer-S2S & 60 & $10^{-3}$ & Weighted CE \\ + & LSTM-S2S / Segment & 50 & $10^{-3}$ & Weighted CE \\ + & TCN / InceptionTime & 50 & $10^{-3}$ & Weighted CE \\ + & ResNet & 50 & $10^{-3}$ & Weighted CE \\ + \midrule + Forecasting & Direct models & 40 & $10^{-4}$ & Masked MSE \\ + & AR models & 30 & $10^{-4}$ & MSE \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + + +\textbf{Training configuration.} All neural models introduced in \ref{modelling} are implemented in PyTorch and trained with the Adam optimiser on a single NVIDIA A6000 GPU. Table~\ref{tab:train_config} summarises the training hyperparameters. All models use a CosineAnnealingLR learning rate scheduler that decays the learning rate smoothly from its initial value to near zero over the total epoch budget, enabling fine-grained parameter refinement in later epochs without manual step-wise LR tuning. The batch size is 32 for all models. Statistical forecasting baselines (Prophet, ETS, ARIMA) fit each series independently at inference time with default hyperparameters. + + +\subsection{Phase Classification} +\label{ssec:cls} + +% The classification task assigns one of eight lifecycle phases to each of the 45 timesteps in a patent count time series. Because the label distribution is heavily skewed toward the mandatory phases (pre-use, growth, decline, plateau), the central challenge is achieving reliable detection of the rare optional phases and the peak marker, which together constitute fewer than 5\% of all timestep labels but carry the most diagnostic information for lifecycle timing. +%\textbf{Classification settings.} +We utilize a 5-fold stratified cross-validation, stratified by each series' majority phase (the most frequent label across its 45 timesteps), yielding approximately 2,219 training and 555 test samples per fold. In addition, we apply sub-sequence augmentation by generating shorter prefix versions of each training sequence at different lengths. This expands the training set and exposes the models to partial lifecycle histories to improve robustness when only an early part of a trend is available. In doing so, sub-sequence augmentation generates left-padded prefix sub-sequences at stride~3 (prefix lengths 5, 8, 11, $\ldots$, 44) from each training sample, expanding the effective training set to approximately 33,285 samples per fold (${\sim}15\times$ expansion), while leaving the test set un-augmented. Also, to address the inherent class imbalance in lifecycle phase distributions, where majority phases such as pre-use, growth, and plateau dominate the label space, all models use class-weighted cross-entropy \cite{xu2020class}. Class-weighted cross-entropy loss inverses the frequency of each class in the training fold to compute weights, calculated as $w_c = N / (C \cdot n_c)$ where $n_c$ is the count of class $c$, $N$ is the total label count, and $C = 8$ is the number of classes. This weighting scheme forces the optimizer to allocate more gradient signal to minority phases, such as peaks and optional second-cycle phases, rather than concentrating on the majority classes, thereby improving the model's ability to learn from underrepresented lifecycle stages. + +Table~\ref{tab:cls_overall} reports classification results across all seven models. The Transformer-seq2seq achieves the best performance on every metric, with accuracy~0.880, F1-mac~0.785, and Cohen's $\kappa$~=~0.847. The multi-head self-attention mechanism enables direct comparison of any two timesteps in the 45-year series, allowing the model to learn long-range transition patterns, such as the temporal distance between growth and peak phases. LSTM-seq2seq follows at F1-mac~0.532, while TCN achieves F1-mac~0.498. Furthermore, the convolutional baselines InceptionTime (0.397) and ResNet (0.349) perform substantially worse. + +%The relatively moderate performance of TCN and InceptionTime suggests that while convolutional temporal models can capture local patterns, they struggle with the global structure and phase transitions that characterize technological life cycles. Similarly, the lower scores of ResNet-based approaches reinforce the assumption that architectures originally designed for spatial hierarchies do not transfer optimally to this type of structured temporal classification task. + +Among the convolutional models, TCN (F1-mac~0.498) outperforms both InceptionTime (0.397) and ResNet (0.349) because its dilated causal convolutions explicitly preserve temporal ordering and enables capturing long-range dependencies more effectively than the symmetric convolutions of InceptionTime and ResNet, which disregard the directional time axis. ResNet exhibits higher cross-fold variance (F1-mac std$\approx$0.025) than other models, consistent with known instability of residual architectures under class reweighting on small datasets, where the random initialization of residual connections can lead to divergent training dynamics across folds. + +\begin{table}[htb!] + \centering + \caption{Classification results (5-fold CV, mean).} + \vspace{-0.9em} + \label{tab:cls_overall} + \small + \begin{tabular}{lcccc} + \toprule + Model & Acc. & F1-mac & F1-wgt & $\kappa$ \\ + \midrule + \textbf{Transformer-S2S} & \textbf{0.880} & \textbf{0.785} & \textbf{0.882} & \textbf{0.847} \\ + LSTM-seq2seq & 0.692 & 0.532 & 0.692 & 0.605 \\ + TCN & 0.634 & 0.498 & 0.657 & 0.546 \\ + InceptionTime & 0.585 & 0.397 & 0.599 & 0.478 \\ + ResNet & 0.575 & 0.349 & 0.569 & 0.452 \\ + \midrule + LSTM-Segment & 0.365 & 0.243 & 0.361 & 0.190 \\ + ROCKET & 0.395 & 0.224 & 0.374 & 0.204 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +The segment-level baselines (LSTM-Segment and ROCKET), produce F1-mac values of 0.243 and 0.224, demonstrating that assigning a single majority label to an entire 45-year series is fundamentally inadequate for patent lifecycle analysis, since it fails to capture the temporal continuity of patent sequences. The 29\% F1-mac gap between LSTM-seq2seq~(0.532) and LSTM-Segment~(0.243), which share the same recurrent architecture but differ only in output structure, confirms that per-timestep seq2seq modeling is essential for this task. Additionally, ROCKET’s reliance on random convolutional kernels without learned temporal representations is insufficient to capture the complex, multi-phase structure of patent lifecycles, leading to its poor performance relative to even the segment-level LSTM baseline. + +The gap between accuracy~(0.880) and F1-mac~(0.785) on the Transformer quantifies the residual challenge of class imbalance. Even with inverse-frequency class weighting and sub-sequence augmentation, the optional phases remain harder because they are structurally variable. Therby, the secondary cycle can occur at different temporal positions and with varying amplitude across technologies, preventing the model from learning a single robust template. Nonetheless, the class-weighted loss and augmentation are effective, since without them, models tend to predict only majority phases, achieving high accuracy (${\sim}0.88$) but severely degraded F1-mac as minority phases receive zero recall. + +\begin{table}[htb!] + \centering + \caption{Per-class F1-mac (mean across 5 folds).} + \vspace{-0.9em} + %Phase names from Section~\ref{phase_definitions}; phases 4--6 are optional.} + \label{tab:cls_perclass} + \small + \begin{tabular}{clcc} + \toprule + Phase & Name & Trans.-S2S & LSTM-S2S \\ + \midrule + 1 & Pre-use & 0.898 & 0.768 \\ + 2 & Growth & 0.914 & 0.654 \\ + 3 & Peak & 0.767 & 0.377 \\ + 4 & Decline & 0.857 & 0.636 \\ + \midrule + 5a & Second growth\textsuperscript{*} & 0.682 & 0.178 \\ + 5b & Second peak\textsuperscript{*} & 0.594 & 0.343 \\ + 5c & Second decline\textsuperscript{*}& 0.633 & 0.416 \\ + \midrule + 6 & Plateau & 0.934 & 0.884 \\ + \bottomrule + \multicolumn{4}{l}{\textsuperscript{*}Optional phases, present in ${\sim}$17\% of trends.} + \end{tabular} + \vspace{-0.5em} +\end{table} + +Table~\ref{tab:cls_perclass} provides the per-class F1-mac scores breakdown for the two strongest seq2seq classifiers. The Transformer achieves $\geq$~0.857 on all mandatory phases and strong discrimination on the peak marker (phase~2: F1-mac~=~0.767). The plateau phase~(7) is the easiest to classify (F1-mac~=~0.934) because the terminal low-activity pattern is structurally unambiguous. Among the optional phases, second growth~(4) is the most detectable (F1-mac~=~0.682); second peak~(5b) and second decline~(5c) remain harder (F1-mac~=~0.594 and 0.633) because the secondary cycle has lower amplitude and shorter duration than the primary cycle, making its structural markers less distinctive. The LSTM-seq2seq shows consistent degradation on all phases relative to the Transformer, with the sharpest drop on second growth (F1-mac~=~0.178 vs.\ 0.682), suggesting that the LSTM's sequential processing cannot diffrentiate the secondary cycle from noise as effectively as the Transformer's global attention. + + + + +%The sub-sequence augmentation has the additional benefit of exposing models to partial observations of varying length during training, which builds robustness to the varying observation windows used in the combined pipeline evaluation (Section~\ref{ssec:combined}). + +%The principal limitation of the classification stage is the absence of a within-fold validation split; all classifiers train for a fixed epoch budget rather than using early stopping on held-out loss. While the CosineAnnealingLR scheduler mitigates overfitting by smoothly decaying the learning rate, monitoring a validation loss curve would provide a more principled stopping criterion. Additionally, the sub-sequence augmentation disproportionately inflates phase~0 (pre-use) labels because short prefix sub-sequences predominantly contain early-lifecycle timesteps; the class-weighted loss partially compensates but the inflated distribution may still bias the model toward pre-use predictions on ambiguous inputs. + +Overall, the results support the argument that patent phase classification is a high-level sequence understanding problem requiring both long-term dependency modeling and adaptive feature weighting. Also, the Transformer's superior performance suggests that its global attention mechanism is particularly effective at capturing the complex temporal dependencies and structural patterns in patent lifecycles, in comparison to recurrent and convolutional architectures that may struggle with long-range interactions and class imbalance. + +\subsection{Patent Activity Forecasting} +\label{ssec:fcst} + +% The forecasting task predicts future patent filing counts given a partial observation of the first $\ell$ years. The dominant modelling challenge is scale heterogeneity: the 2,774 series span a 700$\times$ range in maximum patent count (median per-series max: 9; mean: 36.5; maximum: 2,165), with 51\% of series having a maximum below 10 and only 7\% exceeding 100. Without normalisation, the MSE loss gradient is dominated by the handful of high-count series, and models learn to predict near-zero for the majority of low-activity technologies. + +% Per-series normalisation maps each series to the $[0, 1]$ interval by dividing by its observed maximum before training. This ensures that every technology contributes equally to the loss function regardless of its absolute count magnitude. At inference time, predictions are rescaled using the stored per-series maximum for evaluation against the original patent counts. This single preprocessing step yields an average 16.7\% MAE reduction across all eight neural models, making it the highest-impact intervention in the forecasting pipeline. For direct models, an additional masked MSE loss ignores zero-padded positions beyond the true forecast horizon, preventing the model from being penalised for predictions outside the valid output range. + +%\textbf{Forecasting settings.} +We apply a fixed 80/20 split yielding 2,219 training and 555 test IPC series. Each test series is evaluated at five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$ years, producing 2,775 test instances with forecast horizons of 35 to 15 years respectively. Furthermore, to ensure that all series contribute equally to the mean squared error loss regardless of their absolute scale, we apply per-series normalization by dividing each time series by its observed maximum value before training. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss would be dominated by a few high-count series while the majority of low-activity technologies would receive negligible gradient signal. At prediction time, the forecasts are rescaled back to their original magnitude using the same maximum value. +%For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%Add masked MSE loss: For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. + +%A critical preprocessing step is per-series normalization, where each time series is divided by its observed maximum value before training and rescaled to the original magnitude at prediction time. This is necessary because per-series maximum patent counts range from~3 to over~2{,}000 across IPC domains, and without normalization the mean squared error loss is dominated by a few high-count series while the majority of low-activity technologies receive negligible gradient signal. + +%Per-series normalisation divides each time series by its observed maximum before training, ensuring that all series contribute equally to the mean squared error loss regardless of their absolute scale. At prediction time, the inverse transformation restores the original magnitude. + +%TODO +%For direct forecasting models, a binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. + +%Wxplain: the binary mask zeros out loss contributions from zero-padded output positions beyond the true forecast horizon, preventing the model from learning to predict zeros at invalid positions. For example, if a test instance has an observation window of $\ell=20$ years, the model should only be penalized for its predictions on the next 25 years (positions 21--45), while positions 46--45 are invalid and should not influence the loss. This masking strategy ensures that the model focuses on learning to predict valid future values rather than being biased by the padded zeros, which could otherwise lead to degenerate solutions where the model learns to output zeros for all future positions. +%TODO: Explain the rationale for this masking strategy and how it affects training dynamics. +%Autoregressive models are trained to predict one step at a time, using teacher forcing during training (feeding the true previous value) and autoregressive decoding at test time (feeding the model's own previous prediction). This allows them to capture fine-grained temporal dynamics but makes them susceptible to error compounding over long horizons, which is reflected in their performance metrics. +%Statistical baselines (Prophet, ETS, ARIMA) are fitted independently to each series using the \texttt{statsmodels} library, with hyperparameters selected via grid search on the training set. These models cannot leverage cross-series patterns and serve as reference points for the added value of learning from the shared lifecycle structure. + + +Table~\ref{tab:fcst_overall} reports forecasting results averaged across all five observation windows. +At first glance, an important observation regarding the sMAPE metric is that all neural models show sMAPE values between 141 and 154, which are close to the theoretical maximum of 200 \cite{chicco2021coefficient}. This does not indicate poor model quality but rather reflects a structural property of the data. Since 51\% of series have maximum counts below 10, many timesteps have true values near zero. For such timesteps, sMAPE approaches its upper bound ($\frac{2|y - \hat{y}|}{|y| + |\hat{y}|} \to 200$) even when the absolute error is negligible (e.g., predicting 1 when the truth is 0). +%For instance, if the true patent count for a timestep is 0 and the model predicts 1, the sMAPE would be calculated as $\frac{2|0 - 1|}{|0| + |1|} = \frac{2}{1} = 200$. This illustrates how sMAPE can yield a value of 200 for small absolute errors when the true value is near zero, which is common in this dataset due to the prevalence of low-activity series. Therefore, while sMAPE is a useful scale-independent metric in many contexts, it is not informative for this particular dataset and should be interpreted with caution. +The latter is furthur intensified by per-series normalization, where the model often produces predctions for low activity series that are non-zero in the normalized space but correspond to near-zero counts in the original scale, pushing sMAPE values into the high range. Therefore, we focus on MAE as the primary metric and only report sMAPE for completeness, acknowledging its limitations in this context. + +Transformer-Direct achieves the lowest MAE~(7.78), with the top five neural models concentrated within a narrow 0.07~MAE band (7.78--7.85). Given that per-series standard deviations range from $\sigma \approx 28$ to $\sigma \approx 33$, these inter-model differences are not statistically distinguishable. +%; architecture choice among the top five is effectively equivalent in absolute forecast accuracy. +This convergence indicates that, once per-series normalization levels the playing field, model capacity rather than architecture is the binding constraint for this dataset size. + +Autoformer is the weakest neural model (MAE~9.21) because its built-in series decomposition separates the input into trend and seasonal components via moving-average filters. Annual patent data is inherently non-seasonal, where each datapoint represents one year, with no repeating sub-annual cycle. Therefore, Autoformer's decomposition adds unnecessary complexity without capturing meaningful structure. Also, autoregressive models (LSTM-AR: 8.32, TCN-AR: 8.04) lag behind their direct counterparts because autoregressive decoding accumulates prediction errors at each step. For LSTM-Direct versus LSTM-AR, the MAE gap is 0.47 (7.85 vs.\ 8.32), and the direct variant trains approximately 22$\times$ faster because it avoids the iterative loop of feeding predictions back as input for the next step. + +The statistical baselines are substantially weaker: Prophet (17.89), ETS (20.05), and ARIMA (21.12) produce MAE values 2.3--2.7$\times$ higher than the best neural model. These methods fit each series independently, using trend decomposition heuristics (Prophet) or autoregressive error structure (ARIMA, ETS), and cannot exploit the shared lifecycle pattern that the neural models learn from training on samples simultaneously. + +\begin{table}[htb!] + \centering + \caption{Forecasting results (mean over all 5 time windows).} + \vspace{-0.5em} + \label{tab:fcst_overall} + \small + \begin{tabular}{lccc} + \toprule + Model & MAE$\downarrow$ & RMSE$\downarrow$ & sMAPE$\downarrow$ \\ + \midrule + \textbf{Transformer-Dir.} & \textbf{7.78} & 10.54 & 148.0 \\ + Informer & 7.79 & 10.57 & 148.8 \\ + PatchTST & 7.81 & \textbf{10.52} & 145.8 \\ + LSTM-Direct & 7.85 & 10.55 & \textbf{141.8} \\ + TCN-Direct & 7.85 & 10.58 & 146.1 \\ + TCN-AR & 8.04 & 10.67 & 153.9 \\ + LSTM-AR & 8.32 & 11.19 & 153.2 \\ + Autoformer & 9.21 & 11.87 & 149.0 \\ + \midrule + Prophet & 17.89 & 20.66 & 147.5 \\ + ETS & 20.05 & 23.52 & 147.8 \\ + ARIMA & 21.12 & 24.90 & 155.6 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +%The Transformer's ascent to the top forecasting rank (from 3rd place without normalisation in preliminary runs to 1st place with normalisation) +%The Transformer's performance (1st place) is explained by its attention mechanism's sensitivity to input scale. The dot-product attention scores $\mathbf{Q}\mathbf{K}^T / \sqrt{d_k}$ are computed across all 45 positions on normalized data, which prevents the model from being dominated by a few high-count series and allows it to learn patterns across the full spectrum of activity levels. +%when input magnitudes vary by 700$\times$, +%The key vectors for high-count series produce large attention scores, that effectively masking the contributions of low-activity series during training. +%In contrast, the TCN's dilated convolutions are local operators that process each timestep's neighborhood independently. Also, the convolution kernel weights adapt to relative patterns regardless of absolute scale, explaining why TCN was the strongest model before normalisation but benefited comparatively less from it. + + +Table~\ref{tab:fcst_pl} breaks down MAE by observation window. All neural models improve monotonically as $\ell$ grows (Transformer-Direct drops from MAE~9.67 at $\ell$=10 to 5.66 at $\ell$=30, a 41\% reduction). This is rather expected, since longer observation windows provide more context about the lifecycle trajectory and simultaneously reduce the forecast horizon (from 35 to 15 years). At $\ell$=10, where the model has observed only 22\% of the series and must extrapolate 35 years, all five top models converge near MAE~$\approx$~9.6. This convergence at long horizons suggests that, the choice of model architecture has minimal impact on forecast accuracy, and all models are effectively operating at the same performance floor determined by the data's intrinsic uncertainty. +%---the intrinsic difficulty floor for extreme extrapolation. +At $\ell$=30, inter-model spread widens (5.66--6.08), suggesting that with enough context, architectural differences begin to matter. Here, the Transformer's global attention can integrate information from all 30 observed positions simultaneously, which gives it it an advantage over the TCN's local receptive field for capturing the overall shape of the lifecycle. + +As the baseline, Prophet's MAE is non-monotone across $\ell$ (rising from 15.6 to 19.8 between $\ell$=10 and $\ell$=15), indicating that its trend-decomposition heuristic extracts misleading changepoints when given additional data. This sensitivity to input length is a known weakness of Prophet's piecewise-linear trend model, which tends to be align with seasonal trends \cite{9449743}. + + +\begin{table}[htb!] + \centering + \caption{MAE by time window $\ell$. Top-5 neural models and Prophet baseline.} + \vspace{-0.5em} + \label{tab:fcst_pl} + \small + \setlength{\tabcolsep}{4pt} + \begin{tabular}{lccccc} + \toprule + Model & $\ell$=10 & $\ell$=15 & $\ell$=20 & $\ell$=25 & $\ell$=30 \\ + \midrule + Transformer-Dir. & 9.67 & 8.55 & 8.02 & 7.02 & \textbf{5.66} \\ + Informer & 9.72 & 8.62 & 8.00 & \textbf{6.91} & 5.70 \\ + PatchTST & 9.65 & 8.60 & \textbf{7.95} & 7.03 & 5.80 \\ + LSTM-Direct & \textbf{9.56} & 8.64 & 8.11 & 7.11 & 5.82 \\ + TCN-Direct & 9.58 & \textbf{8.45} & 7.99 & 7.14 & 6.08 \\ + \midrule + Prophet & 15.59 & 19.76 & 18.90 & 17.50 & 17.72 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +%The principal limitation of the forecasting stage is that all models are trained exclusively on ground-truth inputs. When predictions from these models feed into the downstream classifier in the combined pipeline, the classifier encounters a distribution it was never trained on---forecasted series with smoothed peaks, shifted inflection points, and accumulated prediction noise. This train-test distribution mismatch is the dominant source of pipeline error, as quantified in the following section. + + +\subsection{Combined Lifecycle Prediction Pipeline} +\label{ssec:combined} + +The combined pipeline answers the operationally relevant question for technology scouts: given only the first $\ell$ years of a technology's patent history, \textit{when} will each future lifecycle phase transition occur? The forecaster extends the partial observed series, the classifier annotates the extended series with lifecycle phase labels, and the year-delta metric quantifies the temporal precision of the resulting prediction. + +Like previous tasks, we enforce a strict 80/20 holdout split. Classifiers are trained exclusively on the 2,219 training IPCs and the combined pipeline is evaluated on the 555 held-out test IPCs. +%(random seed 42; a leakage guard confirms zero IPC overlap between partitions). +Each test IPC is evaluated at all five observation window lengths $\ell \in \{10, 15, 20, 25, 30\}$, yielding 2,775 evaluation instances (555~IPCs~$\times$~5 window lengths). Forecaster predictions are also computed from the same held-out IPC set. +%This protocol differs from the cross-validation used for standalone classification, where each fold's test data is drawn from the same population as other folds' training data; the holdout design provides an unbiased estimate of pipeline performance on technologies the classifier has never encountered during training. + +\begin{table*}[htb!] + \centering + \caption{Selected pipeline combinations on the held-out test split (mean over 5 time windows).} + %, sorted by mean year-delta~$\Delta$. + % Oracle~$\Delta$: classifier error on ground-truth input. Fcst.\ impact: additional error from forecast noise.} + \vspace{-0.5em} + \label{tab:combined_top} + \small + \setlength{\tabcolsep}{5.5pt} + \begin{tabular}{llccccc} + \toprule + Forecaster & Classifier & $\Delta$ mean & $\Delta$ median & TDR & Oracle $\Delta$ & Fcst.\ impact \\ + \midrule + \textbf{Informer} & \textbf{LSTM-seq2seq} & \textbf{1.898} & \textbf{0.667} & \textbf{0.734} & 1.078 & 0.820 \\ + Transformer-Dir. & TCN & 1.911 & 0.900 & \textbf{0.820} & 1.084 & 0.827 \\ + Transformer-Dir. & LSTM-seq2seq & 1.913 & 0.651 & 0.735 & 1.078 & 0.835 \\ + PatchTST & TCN & 1.930 & 1.000 & 0.816 & 1.084 & 0.847 \\ + TCN-Direct & LSTM-seq2seq & 1.932 & 0.724 & 0.736 & 1.078 & 0.854 \\ + LSTM-Direct & TCN & 1.959 & 1.000 & 0.818 & 1.084 & 0.875 \\ + \midrule + Prophet & LSTM-seq2seq & 3.420 & 1.650 & 0.559 & 1.078 & 2.342 \\ + \midrule + Transformer-Dir. & Transformer-S2S & 3.097 & 0.769 & 0.811 & 0.387 & 2.710 \\ + Prophet & Transformer-S2S & 4.196 & 2.733 & 0.750 & 0.387 & 3.808 \\ + \bottomrule + \end{tabular} +\end{table*} + + +%check 80 and 90 + +We evaluate all 30 pairwise combinations of the top-5 neural forecasters (ranked by MAE) and top-5 classifiers (ranked by F1-mac), plus Prophet as the forecasting baseline. +For each combination we compute the year-delta $\Delta$ for every test instance and report mean and median across all 2,775 test instances. The mean captures the average temporal deviation from true transition points, while the median provides a central tendency that is insensitive to outliers caused by rare phases, which receive large temporal errors. Each classifier is additionally evaluated in oracle mode (receiving ground-truth series instead of forecasted ones), to enable a causal decomposition of pipeline error. The decomposition quantifies the extent to which classification error arises from the classifier's inherent error (oracle year-delta: $\Delta_\mathrm{oracle}$) versus the additional error introduced by forecast noise (forecasting impact: $\Delta_\mathrm{pred} - \Delta_\mathrm{oracle}$). + + + +Table~\ref{tab:combined_top} presents selected pipeline configurations sorted by mean year-delta. The best configuration is \textbf{Informer paired with LSTM-seq2seq}, achieving a mean $\Delta$~=~1.898~years and a median of 0.667 years. The latter indicates that for at least half of all 2,775 test instances the predicted lifecycle phase transition deviates from the true transition by less than eight months. The top configurations are close in mean $\Delta$ (1.898--1.959) but vary more in median (0.651--1.000), reflecting different error distributions. +%what this means in term of technology forecasting for an scout: +This means that, for a given technology with only 10--30 years of patent history, the best pipeline can predict the timing of future lifecycle transitions with an average error of less than two years, and for at least half of cases, with an error of less than one year. +%This level of precision is operationally valuable for technology scouts who need to make informed decisions about emerging technologies based on limited historical data. + +Furthermore, we evaluate the Transition Detection Rate (TDR) which represents the fraction of test instances where the predicted transition falls anywhere within the forecast window, regardless of timing precision. The top two configurations (Informer + LSTM-seq2seq and Transformer-Dir. + TCN) achieve similar or higher TDR (0.734 and 0.820 respectively) values than the next three (0.735, 0.816, 0.736), indicating that they detect a larger fraction of true transitions anywhere in the forecast window, even if their average timing is similar to other configurations. + +%cluster tightly: all five neural forecasters paired with LSTM-seq2seq yield mean $\Delta$ between 1.898 and 1.967~years, while TCN-paired configurations achieve comparable mean $\Delta$ (1.911--1.983) but higher TDR (0.816--0.822). This TDR difference reflects a complementary strength: LSTM-seq2seq achieves more precise transition timing on average, while TCN detects a larger fraction of transitions anywhere in the forecast window. + + +\begin{table}[htb!] + \centering + \caption{Pipeline results aggregated by classifier (mean over all 6 forecasters).} + \vspace{-0.5em} + \label{tab:combined_cls} + \small + \begin{tabular}{lcccc} + \toprule + Classifier & $\Delta$ mean & $\Delta$ med. & Oracle $\Delta$ & Fcst.\ impact \\ + \midrule + \textbf{TCN} & \textbf{2.157} & 1.103 & 1.084 & 1.073 \\ + LSTM-seq2seq & 2.179 & \textbf{0.840} & 1.078 & 1.101 \\ + ResNet & 2.704 & 1.175 & 1.193 & 1.511 \\ + Transformer-seq2seq & 3.249 & 1.159 & 0.387 & 2.861 \\ + InceptionTime & 3.453 & 1.767 & 1.381 & 2.073 \\ + \bottomrule + \end{tabular} + \vspace{-0.5em} +\end{table} + +%the goal of this table in short: to show that classifier choice dominates pipeline performance, and to explain the Transformer’s performance inversion via the oracle decomposition. + +To investigate the relative influence of classifier versus forecaster choice on pipeline performance, we aggregate results by classifier across all six forecasters (five neural and Prophet) instead of by forecaster across all classifiers as demonstrated in Table~\ref{tab:combined_cls}. The spread across classifiers (1.30~years: $\Delta$~=~2.16 to 3.45) substantially exceeds the spread across the five neural forecasters (0.08~years: $\Delta$~=~2.56 to 2.64), confirming that \emph{classifier choice governs pipeline performance far more than forecaster choice}.Also, TCN and LSTM-seq2seq achieve near-identical mean year-delta (2.157 vs.\ 2.179), but diverge substantially in median (1.103 vs.\ 0.840). +%This gap reveals different error distributions. +The reason for this may be that, TCN produces heavier tails with occasional large temporal errors while LSTM-seq2seq more consistently predicts transitions close to their true positions. +%, explaining why its median remains substantially lower despite a similar average. + + +%here +The most striking finding in Table~\ref{tab:combined_cls} is the performance inversion between Transformer-seq2seq and the two strongest pipeline classifiers. In the standalone classification task (Table~\ref{tab:cls_overall}), the Transformer leads by a wide margin (F1-mac~0.785 vs.\ 0.498 for TCN and 0.532 for LSTM-seq2seq). Yet in the combined pipeline on held-out data it ranks fourth among five classifiers ($\Delta$~=~3.249~years), more than 1.5$\times$ worse than both TCN (2.157) and LSTM-seq2seq (2.179). The oracle decomposition explains this precisely: the Transformer achieves the lowest oracle~$\Delta$~(0.387)---confirming superior temporal precision on clean held-out series---but carries by far the largest forecasting impact (2.861), meaning forecast noise alone adds nearly 2.9~years of temporal error. + +The mechanism lies in the sharpness of the Transformer's learned representations. Its self-attention associates precise input shapes---peak amplitudes, transition slopes, inter-phase timing ratios---with lifecycle labels. This precision translates to high accuracy on ground-truth series. But when forecasted series replace the ground truth, these features are perturbed: peaks are smoothed or shifted by one to two years, secondary cycle amplitudes are reduced, and transition inflection points are displaced. The Transformer's confidence collapses at perturbed positions, causing cascading misclassification in surrounding timesteps. The LSTM's gated hidden state and the TCN's dilated convolutions produce smoother, more conservative decision boundaries that degrade gracefully under perturbation. Their forecasting impacts (1.101 and 1.073 respectively) are less than 40\% of the Transformer's (2.861), confirming fundamentally higher noise robustness. The practical implication is direct: \emph{standalone classification accuracy is an unreliable proxy for combined pipeline performance}. Pipeline model selection must prioritize noise robustness over clean-data metrics. + +The neural forecasters collectively reduce mean year-delta by 23.2\% relative to Prophet (2.617 vs.\ 3.407, averaged across all 30 vs.\ 5 classifier combinations respectively), confirming the practical value of cross-series learned lifecycle representations over per-series statistical decomposition. However, marginal variation across the five neural forecasters is only 0.084~years (2.561--2.645), negligible relative to the 1.30-year classifier-driven spread. This asymmetry implies that forecasting improvements alone yield sharply diminishing pipeline returns as long as classifier noise-sensitivity remains the dominant error source. + +For the best pipeline configuration (Informer + LSTM-seq2seq), year-delta decreases monotonically with observation window length: from $\Delta$~=~2.279 at $\ell$=10 to $\Delta$~=~0.960 at $\ell$=30, a 2.4$\times$ improvement. TDR rises in parallel from 0.607 to 0.891. This improvement is driven primarily by forecast quality: as the observation window grows, the remaining forecast horizon shrinks and the model has more lifecycle context, producing predicted series that more closely resemble the ground truth. At $\ell$=25 the pipeline achieves $\Delta$~=~1.505 with TDR~=~0.821, and at $\ell$=30 it breaks below one year ($\Delta$~=~0.960), establishing approximately 25~years of historical patent data as the practical threshold above which sub-year temporal precision becomes reliably achievable. + +%Several limitations affect the combined evaluation. The strict holdout split removes train/test leakage, but all classifiers are still trained on clean ground-truth series. At test time they encounter forecasted inputs, creating a residual train-test domain mismatch that the oracle decomposition quantifies but does not eliminate. Noise-augmented or forecaster-in-the-loop training---where classifiers are exposed to realistically perturbed series during training---is the most direct path to closing this gap and represents the highest-leverage direction for future work. The evaluation uses a single 80/20 holdout rather than repeated splits, so variance estimates for year-delta are not available. Finally, the year-delta metric weights all phase transitions equally; in practice, detecting the growth-to-peak transition earlier may carry greater value for innovation scouts than precisely locating a secondary decline boundary. + +\textbf{Summary of key experimental findings.} The evaluation produces three principal contributions. First, the Transformer-seq2seq classifier achieves F1-mac~0.785 on an eight-phase lifecycle labeling task using only raw patent counts and IPC-section one-hot encoding, with no hand-crafted features or domain-specific preprocessing. Mandatory lifecycle phases are classified with F1~$\geq$~0.857, and even the optional second-cycle phases achieve F1 between 0.594 and 0.682. Second, after per-series normalisation, the top five neural forecasters converge to within 0.07~MAE (7.78--7.85), reducing error by 57\% compared to the Prophet baseline, demonstrating that data preprocessing dominates architecture selection for this dataset. Third, under a strict holdout split on 555 unseen technologies, the best combined configuration (Informer + LSTM-seq2seq) achieves a median year-delta of 0.667~years, with $\Delta$ falling below one year at $\ell$=30 ($\Delta$~=~0.960). The oracle decomposition identifies classifier noise-robustness---not classification accuracy or raw forecasting precision---as the dominant factor governing pipeline performance, with noise-aware classifier training as the highest-leverage direction for future improvement. + +\section{Conclusion} + +Identifying emerging technologies is essential for effective innovation scouting, allowing stakeholders to anticipate and adapt to new developments. In this work, we presented an approach to technology forecasting using LSTM-based time series models trained on patent trends from the European Patent Office. By identifying stabilized trends, we defined a universal technology lifecycle, which we used to annotate our extracted IPC trends. Next, we generated a universal LSTM sequence-to-sequence classifier capable of predicting original trend labels with an accuracy of 88\%, as well as a forecasting LSTM model achieving an average temporal offset of only 1.27 years in the validation set. + +In future work, we aim to investigate the benefits of complementary trend sources in our trained models. In doing so, scientific publication databases such as Web of Science would capture the R\&D aspects of patents and provide a wider context of patent activities. + + +\section{Acknowledgments} + +Identification of funding sources and other support, and thanks to +individuals and groups that assisted in the research and the +preparation of the work should be included in an acknowledgment +section, which is placed just before the reference section in your +document. + + +%% +%% The acknowledgments section is defined using the "acks" environment +%% (and NOT an unnumbered section). This ensures the proper +%% identification of the section in the article metadata, and the +%% consistent spelling of the heading. +\begin{acks} +To Robert, for the bagels and explaining CMYK and color spaces. +\end{acks} + +%% +%% The next two lines define the bibliography style to be used, and +%% the bibliography file. +\bibliographystyle{ACM-Reference-Format} +\bibliography{sample-base} + + +%% +%% If your work has an appendix, this is the place to put it. +\appendix +\end{document} +\endinput +%% +%% End of file `sample-sigconf.tex'. diff --git a/research/tech_forecasting/thesis/NES_template.tex b/research/tech_forecasting/thesis/NES_template.tex new file mode 100644 index 0000000..255a55d --- /dev/null +++ b/research/tech_forecasting/thesis/NES_template.tex @@ -0,0 +1,117 @@ +%\sorgt %ensures the apparition of "Appendix" before each appendix. +%\openany %ensures that a chapter can begin on each side and not only on the right site. +%\bibtotoc %ensures that the bibliography automatically appears in the table of contents. +%\documentclass[colordvi,11pt,a4paper,halfparskip,final,headings,appendixprefix,bibtotoc]{scrbook} +\documentclass[pdftex, chapterprefix, headsepline, footsepline, 11pt, + a4paper, parskip=half, final, appendixprefix, bibliography=totoc]{scrbook}\hfuzz=100pt + +% Define your desired language - will effect your style and texts +%\usepackage[english]{babel} +\usepackage[ngerman]{babel} + +% Here are the needed packages & commands defined +\input{content/utility} + +% The following part mostly defines the title page + +% Sets the titlepage style, true=fance, false=plain +% You may want to change the image in fancy style +% Either change your mainimage.jpg or go into the titlePage.tex +% Optimized for resolution about 5616 x 3744 +\setboolean{fancy}{false} + +% Sets the type of document, true=thesis, false=report (more names, no matnr, different person responsibility) +\setboolean{thesis}{true} + +% Sets true if you want both german and english NDA or Affirmation on oath in german and english +\setboolean{bothlanguages}{true} + +% Fill out +% What type of work is this? +% Bachelor thesis, Master thesis, Bachelor project group report, Master project group report +% Bachelorarbeit, Masterarbeit, Bachelorprojekt Gruppenbericht, Masterprojekt Gruppenbericht +\newcommand{\typeofwork}{Masterarbeit} +\newcommand{\workingtitle}{Technologiebereitschaft und -prognose durch eine eingehende Analyse von Patenten} + +% Write down your name(s) and matriculation number if a thesis +\newcommand{\name}{Theodor Vogl} +\newcommand{\matriculationnumber}{3075851} + +% Fill in the name of your second examiner (if thesis) and supervisor during the work +\newcommand{\secondexaminer}{Prof. Dr. Stefan Schneegass} +\newcommand{\supervisor}{Arman Arzani und Marcus Handte} + +% for a thesis the actual time like "1.Januar 2021 - 1.Juni 2021" +% for a report the term like "Winter term 2020 / 2021" +\newcommand{\timeframe}{17.September 2024 - 15.April 2025} + + +% Start of the actual document +\begin{document} + +% the next two lines influence the detailedness of the table of contents +% and to what structure depth numbers are written before sections/subsections/paragraphs +% You should not touch this +\setcounter{tocdepth}{2} +\setcounter{secnumdepth}{3} +\frontmatter + +% here the titlepage is included. Look into the file "titlePage.tex" to +\input{content/chapters/titlePage} + +\include{content/chapters/abstract} + +\tableofcontents + +\mainmatter + +\include{content/chapters/abbreviation} + +\listoffigures +\addcontentsline{toc}{chapter}{Abbildungsverzeichnis} + +% To assemble the whole document +% Please be aware that each file will begin on a new page +% therefore chapters should be put into such a file. +% There cannot be an include statement inside of an "included" file. +% So if you want to further divide your document - use \input inside of +% the included files. \input will not begin on a new page. +\include{content/chapters/chapter1} %Introduction +\include{content/chapters/chapter2} %Materials and Methods +\include{content/chapters/chapter3} %Analysis +\include{content/chapters/chapter4} %Approach +\include{content/chapters/chapter5} %Implementation +\include{content/chapters/chapter6} %Evaluation +\include{content/chapters/chapter7} %Discussion + +% Appendix chapters to be put here. They will be enumerated with capital letters +% if you did not change the \documentclass options. +\appendix +\include{appendix_chapterA} +% end of appendix + +% Bibliography +% We strongly recommend to use bibtex to manage your bibliography. It helps you +% structure your references and helps avoiding missing important data for a correct +% quotation. If you have no other idea jabref (http://jabref.sourceforge.net/) +% might be a good idea (Jave runtime environment needed). +% This style is good to use in german master thesis'. You need to have activated +% \usepackage{bigerm} above. +% For english documents just use apalike. +%\bibliographystyle{geralpha} +% Use this if you like Numbers [X} instead of Letters +\bibliographystyle{abbrv} + + +% to finally announce where your bibliography is stored use +\bibliography{content/references/references} +% it is also possible to have several files separated by comma. +% Bibliographie Angaben mit \bibliography{} + +\backmatter + +% It may be necessary that you replace "Bachelorarbeit" with "Masterarbeit" here... +% not needed in a report +\include{content/chapters/clause} + +\end{document} \ No newline at end of file diff --git a/research/tech_forecasting/thesis/content/chapters/abbreviation.tex b/research/tech_forecasting/thesis/content/chapters/abbreviation.tex new file mode 100644 index 0000000..300439f --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/abbreviation.tex @@ -0,0 +1,31 @@ +\chapter*{Abkürzungsverzeichnis} +%\addsec{Abkürzungsverzeichnis} +\addcontentsline{toc}{chapter}{Abk\"urzungsverzeichnis} + +\begin{acronym}[DBSCAN] + +\acro{dbscan}[DBSCAN]{Density-Based Spatial Clustering of Applications with Noise} +\acro{dtw}[DTW]{Dynamic Time Warping} +\acro{dba}[DBA]{Dynamic Time Warping Barycenter Averaging} +\acro{cpd}[CPD]{Change Point Detection} +\acro{mse}[MSE]{Mean Squared Error} +\acro{rmse}[RMSE]{Root Mean Squared Error} +\acro{mae}[MAE]{Mean Absolute Error} +\acro{mape}[MAPE]{Mean Absolute Percentage Error} +\acro{smape}[SMAPE]{Symmetric Mean Absolute Percentage Error} +\acro{tp}[TP]{True Positive} +\acro{fp}[FP]{False Positive} +\acro{tn}[TN]{True Negative} +\acro{fn}[FN]{False Negative} +\acro{cnn}[CNN]{Convolutional Neural Network} +\acro{rnn}[RNN]{Recurrent Neural Network} +\acro{gmm}[GMM]{Gaussian Mixture Model} +\acro{lstm}[LSTM]{Long Short Term Memory} +\acro{epa}[EPA]{Europäische Patentamt} +\acro{ghc}[GHC]{Gartner Hype Cycle} +\acro{nlp}[NLP]{Natural Language Processing} +\acro{ipc}[IPC]{International Patent Classification} +\acro{cpc}[CPC]{Cooperative Patent Classification} +\acro{lda}[LDA]{Latent Dirichlet Allocation} + +\end{acronym} \ No newline at end of file diff --git a/research/tech_forecasting/thesis/content/chapters/abstract.tex b/research/tech_forecasting/thesis/content/chapters/abstract.tex new file mode 100644 index 0000000..0d983b5 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/abstract.tex @@ -0,0 +1,60 @@ +%\setcounter{page}{2} + +\cleardoublepage + +\section*{Kurzfassung} + +Technologieprognosen sind essenziell für die strategische Planung von Unternehmen, Regierungen und Forschungseinrichtungen, da sie Investitionsentscheidungen unterstützen und Marktchancen aufzeigen. +Ihre Erstellung ist jedoch oft zeit- und kostenintensiv, da sie spezialisiertes Fachwissen erfordert~\cite{yoon2012trendperceptor}. +Ein datengetriebener Ansatz kann die Abhängigkeit von Experten reduzieren und die Objektivität erhöhen. +Patente dienen als wertvolle Informationsquelle für technologische Innovationen, da sie Entwicklungen dokumentieren und langfristige Innovationsmuster erkennen lassen~\cite{han2017visual}. +Das Europäische Patentamt stellt seit 1977 umfangreiche Patentdaten bereit~\cite{epo_history}, die für wissenschaftliche Analysen genutzt werden können. +Durch die Analyse von Patentdaten lassen sich technologische Trends identifizieren und Zukunftsprognosen ableiten~\cite{abbas2014literature}. +Während manuelle Analysen aufwendig sind und Experten erfordern, ermöglichen automatisierte Verfahren eine effizientere Auswertung großer Datenmengen~\cite{yoon2012trendperceptor}. +Um die Zuverlässigkeit und Aussagekraft der Technologieprognosen zu erhöhen, sind daher Methoden erforderlich, die sich stärker auf die Identifikation von Trends konzentrieren. +Eine datenorientierte Analyse, die technologische Entwicklungen ausschließlich auf Basis von Trends untersucht, könnte eine vielversprechende Alternative zu klassischen, auf natürlicher Sprachverarbeitung basierenden Ansätzen darstellen~\cite{abbas2014literature}. +Solche Methoden bieten die Möglichkeit, robuste und branchenunabhängige Prognosen zu erstellen, ohne tiefgehendes Fachwissen für die semantische Interpretation von Patenttexten zu benötigen. + +In dieser Arbeit wurden daher systematisch stabilisierte Patenttrends extrahiert. +Diese wurden nachfolgend in einem universellen Patenttrend abgebildet, welcher selbst wiederum mathematisch und modellbasiert abgebildet wurde. +Zudem wurden die Trends in Phasen unterteilt, welche den Lebenszyklus der Technologien aus Sicht der Patentklassifikationen widerspiegeln. +Für diese Trends wurden Definitionen herausgearbeitet. +Des Weiteren wurde ein Modell trainiert, welches einen Eingabetrend klassifiziert und den definierten Phasen zuordnet. +Zuletzt wurde ein zweites Modell trainiert, welches Vorhersagen für einen Patenttrend erzeugt. +Die durchgeführten Evaluationen zeigen, dass sich Patentdaten zur Erzeugung von Technologieprognosen eignen. +Die Trendklassifikation liefert mit einer Genauigkeit von $70,5\%$ eine Prognose auf den aktuellen Entwicklungszustand einer Technologie. +Die Vorhersagen erzeugen sowohl kurzfristig als auch langfristig mit einem \emph{SMAPE}-Fehler von bis zu $24,0\%$ eine brauchbare Technologieprognose. +Mittelfristig weisen die Vorhersage jedoch eine gewisse Ungenauigkeit auf. +Die Ergebnisse dieser Arbeit verdeutlichen das Potenzial datengetriebener und trendbasierter Prognoseverfahren im Bereich der Technologiebewertung, wobei die Prognosen von einer Erweiterung der Informationsquellen, wie das Hinzuziehen von weiteren Veröffentlichungen, welche nicht nur auf Patente beschränkt sind, profitieren könnten. +Die gewonnenen Erkenntnisse können Unternehmen und Forschungseinrichtungen dabei unterstützen, frühzeitig technologische Entwicklungen zu erkennen und Innovationsstrategien gezielt auszurichten. + +\clearpage + +\section*{Abstract} + +Technology forecasts are essential for the strategic planning of companies, governments, and research institutions, as they support investment decisions and reveal market opportunities. +However, their creation is often time-consuming and costly, as it requires specialized expertise~\cite{yoon2012trendperceptor}. +A data-driven approach can reduce reliance on experts and increase objectivity. +Patents serve as a valuable source of information for technological innovations, as they document developments and allow for the identification of long-term innovation patterns~\cite{han2017visual}. +The European Patent Office has been providing extensive patent data since 1977~\cite{epo_history}, which can be used for scientific analyses. +By analyzing patent data, technological trends can be identified, and future forecasts can be derived~\cite{abbas2014literature}. +While manual analyses are labor-intensive and require experts, automated methods enable a more efficient evaluation of large datasets~\cite{yoon2012trendperceptor}. +To improve the reliability and significance of technology forecasts, methods that focus more on trend identification are needed. +A data-driven analysis that examines technological developments solely based on trends could be a promising alternative to traditional approaches based on natural language processing~\cite{abbas2014literature}. +Such methods offer the possibility of generating robust and industry-independent forecasts without requiring in-depth expertise for the semantic interpretation of patent texts. + +In this study, systematically stabilized patent trends were extracted. +These were subsequently mapped into an universal patent trend, which was then mathematically and model-based represented. +Additionally, the trends were divided into phases that reflect the life cycle of technologies from the perspective of patent classifications. +Definitions were developed for these trends. +Furthermore, a model was trained to classify an input trend and assign it to the defined phases. +Finally, a second model was trained to generate predictions for a patent trend. +The evaluations conducted demonstrate that patent data are suitable for generating technology forecasts. +The trend classification provides a forecast of a technology's current development status with an accuracy of $70,5\%$. +The predictions deliver both short-term and long-term technology forecasts with a \emph{SMAPE} error of up to $24,0\%$. +However, in the medium term, the predictions exhibit some inaccuracies. +The results of this study highlight the potential of data-driven and trend-based forecasting methods in technology assessment. +The forecasts could benefit from an expansion of information sources, such as incorporating additional publications beyond patents. +The insights gained can help companies and research institutions to identify technological developments early on and strategically align their innovation strategies. + +\cleardoublepage diff --git a/research/tech_forecasting/thesis/content/chapters/chapter1.tex b/research/tech_forecasting/thesis/content/chapters/chapter1.tex new file mode 100644 index 0000000..2463bdb --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter1.tex @@ -0,0 +1,71 @@ +\chapter{Einleitung} + +\section{Motivation} +\label{motivation} + +Die Technologieprognose spielt eine entscheidende Rolle bei der strategischen und finanziellen Planung von Unternehmen, Regierungen, Universitäten und anderen Interessengruppen. +Unternehmen können beispielsweise auf Basis von Prognosen abschätzen, ob Investitionen in bestimmte Technologien langfristig lohnenswert sind. +Dies ermöglicht eine fundierte Entscheidungsfindung und trägt zur Minimierung von Investitionsrisiken bei. +Darüber hinaus helfen Technologieprognosen, aufkommende Trends frühzeitig zu erkennen und neue Marktchancen zu identifizieren. + +Die Erzeugung solcher Prognosen ist jedoch mit Herausforderungen verbunden. +Ein wesentlicher Nachteil besteht darin, dass sie häufig zeitaufwendig und kostenintensiv sind. +Die Durchführung erfordert die Mitarbeit von Fachleuten, die über spezialisiertes Wissen in den zu analysierenden Technologiefeldern verfügen. +Dies führt nicht nur zu einer hohen Abhängigkeit von Experten, sondern auch zu einer begrenzten Verfügbarkeit entsprechender Analysen~\cite{yoon2012trendperceptor}. +Ein datenorientierter Ansatz kann helfen, diese Abhängigkeit zu umgehen. +Hierdurch würden die Ergebnisse der Technologieprognosen objektiver werden und zudem die Verfügbarkeit steigen. + +Patente sind ein bedeutender Indikator für technologische Innovation, da sie konkrete Erfindungen, technologischen Fortschritt und Innovationen repräsentieren. +Sie bieten nicht nur rechtlichen Schutz für geistiges Eigentum, sondern dienen auch als wertvolle Informationsquelle über neue Technologien und deren Entwicklung. +Die systematische Analyse von Patenten ermöglicht es, den technologischen Fortschritt über die Jahre hinweg nachzuvollziehen und langfristige Innovationsmuster zu erkennen~\cite{han2017visual}. +Eine zentrale Institution in diesem Kontext ist das \ac{epa}, welches für die Erteilung von Patenten in vielen europäischen Ländern zuständig ist. +Seit 1977 bearbeitet und veröffentlicht das \ac{epa} Patentanträge~\cite{epo_history}. +Die umfangreichen und strukturierten Informationen in den Patentdokumenten machen sie zu einer informativen Datenquelle für wissenschaftliche Analysen. + +Durch die Auswertung von Patentdaten können technologische Trends identifiziert werden~\cite{han2017visual}. +Solche Analysen ermöglichen es, technologische Entwicklungen über verschiedene Zeiträume hinweg zu verfolgen und Rückschlüsse auf den Innovationsgrad sowie die Marktrelevanz bestimmter Technologien zu ziehen. +Aufbauend auf diesen Erkenntnissen können wertvolle Informationen gesammelt und Prognosen für zukünftige technologische Trends erstellt werden~\cite{abbas2014literature}. +Damit stellen Patente eine Informationsquelle dar, welche für eine datenorientierte Analyse verwendet werden kann, um Technologieprognosen zu erzeugen. + +Die manuelle Analyse von Patentdaten erfordert fachspezifisches Know-how und ist häufig zeit- und kostenintensiv~\cite{yoon2012trendperceptor}. +Daher gewinnen moderne automatisierte Patentanalysen zunehmend an Bedeutung. +Mithilfe von Techniken aus dem Bereich des \ac{nlp} (deutsch: \emph{Natürliche Sprachverarbeitung}) können Informationen effizient aus großen Mengen von Patentdokumenten extrahiert werden~\cite{abbas2014literature}. +Diese Verfahren bieten Potenzial, sind jedoch nicht trivial in ihrer Umsetzung und können fehleranfällig sein~\cite{chopra2013natural,chowdhary2020natural}. + +Um die Zuverlässigkeit und Aussagekraft der Technologieprognosen zu erhöhen, sind daher Methoden erforderlich, die sich stärker auf die Identifikation von Trends konzentrieren. +Eine datenorientierte Analyse, die technologische Entwicklungen ausschließlich auf Basis von Trends untersucht, könnte eine vielversprechende Alternative zu klassischen \ac{nlp}-gestützten Ansätzen darstellen. +Solche Methoden bieten die Möglichkeit, robuste Prognosen zu erstellen, ohne tiefgehendes Fachwissen für die semantische Interpretation von Patenttexten zu benötigen. + +\section{Problemdefinition} +\label{problem} + +Patentanalysen und Technologieprognosen spielen eine zentrale Rolle bei der Bewertung technologischer Entwicklungen und der Identifikation von Innovationspotenzialen. +Sie dienen als Entscheidungsgrundlage für Unternehmen, Forschungseinrichtungen und politische Akteure. +Derzeitige Verfahren zur Durchführung solcher Analysen sind jedoch mit erheblichen Herausforderungen verbunden. +Ein wesentlicher Nachteil besteht darin, dass sie häufig zeitaufwendig und kostenintensiv sind. +Die Durchführung erfordert die Expertise von Fachleuten, die über spezialisiertes Wissen in bestimmten Branchen oder Technologiefeldern verfügen. +Dies führt nicht nur zu einer hohen Abhängigkeit von Experten, sondern auch zu einer begrenzten Verfügbarkeit entsprechender Analysen~\cite{yoon2012trendperceptor}. +Solche Dienstleistungen können insbesondere für kleinere Unternehmen oder Forschungseinrichtungen eine Hürde darstellen. +Die Expertenabhängigkeit bringt weitere Herausforderungen mit sich. +Da Fachleute in der Regel auf bestimmte Technologiebereiche spezialisiert sind, können branchenunabhängige oder interdisziplinäre Analysen erschwert werden. +Die eingeschränkte Zugänglichkeit solcher Analysen behindert somit die freie Verfügbarkeit von Technologieprognosen und Innovationsbewertungen. + +Um diese Problematik zu lösen, ist es erforderlich, branchenunabhängige und expertenunabhängige Methoden zu entwickeln, die automatisiert arbeiten und Prognosen auf Basis von Trendinformationen erzeugen. +Der Schlüssel dazu liegt in der umfassenden Betrachtung vergangener Entwicklungen, um Muster in den Patenttrends zu identifizieren. +Hierfür ist eine systematische Analyse historischer Trendverläufe notwendig, welche eine Ableitung eines allgemein gültigen Verlaufs der Patenttrends ermöglicht. +Dieser allgemein gültige Patenttrend kann als Grundlage für Prognosemodelle dienen. +Ein Ansatz zur Lösung dieses Problems ist die Entwicklung eines Lebenszyklus-Modells (englisch: \emph{Life-Cycle}), das die Phasen eines technologischen Trends abbildet. +Ein solches Modell könnte als Grundlage für weitere Analysen genutzt werden und damit dazu beitragen, den aktuellen Zustand eines Trends präzise zu bestimmen und zukünftige Entwicklungen vorherzusagen. +Die Implementierung automatisierter Analysefunktionen würde nicht nur die Effizienz von Technologieprognosen erheblich steigern, sondern auch die Abhängigkeit von Experten verringern. +Damit die Technologieprognosen effektiv eingesetzt werden können, sind datenorientierte Lösungen nötig, welche diese Analysen automatisch durchführen. +Neben der Unabhängigkeit der Analysen ist es wichtig, dass diese Informationen über den aktuellen Zustand eines Trends erfassen, um eine erste Prognose erzeugen zu können. +Des Weiteren ist es erforderlich, dass konkrete Vorhersagen über die zukünftigen Trends prognostiziert werden, um als Entscheidungsträger detaillierte Informationen für strategische und wirtschaftliche Entscheidungen zur Verfügung zu haben. + +\section{Struktur der Arbeit} + +In Kapitel 2 werden die Grundlagen und verwandte Arbeiten vorgestellt. +Anschließend werden in Kapitel 3 die Anforderungen herausgestellt. +Nachfolgend wird in Kapitel 4 das Konzept beschrieben. +In Kapitel 5 wird die Implementierung erläutert. +Die Evaluation steht in Kapitel 6. +Im letzten Kapitel wird die Arbeit abschließend diskutiert und ein Ausblick gegeben. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter2.1.tex b/research/tech_forecasting/thesis/content/chapters/chapter2.1.tex new file mode 100644 index 0000000..2ef5e23 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter2.1.tex @@ -0,0 +1,486 @@ +\section{Grundlagen} + +In dem folgenden Teil dieses Kapitels werden die Grundlagen der Arbeit beschrieben. + +\subsection{Ähnlichkeit zwischen Zeitreihen} + +In dem folgenden Subteil des Kapitels wird beschrieben, wie die Distanz zwischen zwei Zeitreihen bestimmt werden kann. +Zudem wird erläutert, wie diese Distanz minimiert werden kann, um einen gemeinsamen Verlauf zwischen mehreren Zeitreihen zu finden. +Dies ist notwendig, um einen universellen Trend aller Patentverläufe finden zu können~\ref{problem}. + +\paragraph{Dynamic Time Warping} +\label{dtw} + +\ac{dtw} (deutsch: \emph{dynamische Zeitnormierung}) ist ein Algorithmus, welcher dazu verwendet werden kann, um die Distanz bzw. die Ähnlichkeit zwischen zwei Zeitreihen zu messen~\cite{berndt1994using,wang2018time}. +Hierdurch können Zeitreihen unterschiedlicher Länge miteinander verglichen werden. +Der Ansatz von \ac{dtw} besteht darin, eine lokale Skalierung auf der Zeitachse durchzuführen. +Die Skalierung ist optimal, wenn die Ähnlichkeit beider Zeitreihen maximal ist. +Die Distanz zwischen den angepassten Zeitreihen entspricht der Warping-Distanz. + +Der Ablauf des Algorithmus ist wie folgt: +Als Erstes wird eine Distanzmatrix $M$ initialisiert. +Diese Matrix $M$ besitzt dabei die Größe $n * m$, wobei $n$ die Länge der ersten Zeitreihe und $m$ die Länge der zweiten Zeitreihe ist. +Die Matrix $M$ wird dann mit den Distanzen zwischen den einzelnen Punkten befüllt. +Als Standard wird die euklidische Distanz zwischen diesen beiden Punkten verwendet. +Die euklidische Distanz zwischen zwei Punkten berechnet sich durch $d = |p - q|$~\cite{von2020distanzen}. +Sollten die Punkte aus mehreren Dimensionen bestehen, so berechnet sich die euklidische Distanz mit $d = \sqrt{\sum_{i=1}^{n}(p_i-q_i)^2}$, wobei $n$ die Anzahl der Dimensionen ist. +Diese Distanzen werden als nächstes mittels $K[i][j] = M[i][j] + minimum(M[i-1][j], M[i][j-1], M[i-1][j-1])$ zusammen kumuliert, wodurch die Kostenmatrix $K$ entsteht. +Dabei geben $i$ und $j$ die Position der Felder innerhalb der Matrix $M$ an. +Sollte $i-1$ oder $j-1$ außerhalb der Matrix $M$ liegen, so ist der Wert dieses Feldes $0$. +Die Kostenmatrix $K$ wird nun um eine zusätzliche Reihe, welche die neue erste Reihe ist, und eine zusätzliche Spalte, welche die neue erste Spalte ist, erweitert. +Die Kostenmatrix $K$ hat somit nun die Größe $(n + 1) * (m + 1)$. +Die neuen zusätzlichen Felder haben alle den Wert $\infty$. +Der optimale Warping-Pfad wird nun aus der Kostenmatrix $K$ ausgelesen, indem beginnend vom letzten Feld der Kostenmatrix $K[n][m]$ der kostengünstigste Pfad zum ersten Feld der Kostenmatrix $K[1][1]$ gesucht wird. +Beginnend von $K[n][m]$ wird immer das nächste Feld mit dem geringsten Wert $minimum(K[i-1][j], K[i][j-1], K[i-1][j-1])$ für den Pfad verwendet. +Der vollständige Pfad ist gefunden, sobald das Feld $K[1][1]$ erreicht wurde. +Die endgültigen Kosten des Warping-Pfades sind der Wert, welcher im Feld $K[1][1]$ steht. +Dieser Wert ist die Warping-Distanz. + +\paragraph{Dynamic Time Warping Barycenter Averaging} +\label{dba} + +\ac{dba} ist ein Algorithmus, der in der Zeitreihenanalyse verwendet wird, um aus einer Menge von Zeitreihen einen durchschnittlichen Repräsentanten aller Zeitreihen zu bestimmen, welcher diese bestmöglich abbildet~\cite{petitjean2014dynamic,petitjean2011global}. +Dabei wird \ac{dtw}~\ref{dtw} als Grundlage verwendet. +Der Algorithmus minimiert die Summe aller \ac{dtw}-Distanzen zwischen den Zeitreihen und dem Barycenter, dem Repräsentanten, auf ein Minimum. +Der Algorithmus besteht aus drei Schritten. +Als Erstes wird eine Zeitreihe aus allen zufällig ausgewählt, welche als initiales Barycenter dient. +Alternativ kann auch aus allen Zeitreihen der Medoid all dieser bestimmt und als initiales Barycenter verwendet werden. +Als Zweites wird für jede Zeitreihe der \ac{dtw}-Pfad zwischen dieser Zeitreihe und dem Barycenter berechnet. +Als Drittes werden alle Punkte der Zeitreihen, welche dem selben Punkt des Barycenters entsprechen, gemittelt, um den neuen Barycenter zu bestimmen. +Die Schritte zwei und drei werden iterativ so lange durchgeführt, bis der Barycenter konvergiert. + +\subsection{Clusterbildung} + +In dem folgenden Subteil des Kapitels werden unterschiedliche Techniken zur Bildung von Clustern erläutert. +Dies ist erforderlich, um zu überprüfen, ob es einen einzelnen universellen Trend gibt, welcher alle Patentverläufe abbildet, oder ob hierfür mehrere unterschiedliche universelle Trendverläufe notwendig sind, zwischen denen unterschieden werden muss~\ref{problem}. +Für die Clusterbildungen, welche im Folgenden beschrieben werden, wurde, wenn nicht anders genannt, die \ac{dtw}-Distanz~\ref{dtw} verwendet. + +\paragraph{K-Means} +\label{k_means} + +Der K-Means Algorithmus wird dazu verwendet, eine Menge von Datenpunkten in Cluster aufzuteilen~\cite{hartigan1979k}. +Hierbei muss die Anzahl der Cluster $k$ vor Anwendung des Algorithmus bekannt sein. +Der Algorithmus besteht aus drei Schritten. +Als Erstes werden $k$ Cluster-Schwerpunkte gewählt. +Die Cluster-Schwerpunkte werden auch Centroide genannt. +Diese Schwerpunkte können komplett zufällig gewählt oder zufällig aus allen Datenpunkten ausgewählt werden. +Als Zweites wird jeder Datenpunkt dem Cluster-Schwerpunkt zugeordnet, welcher ihm am nächsten ist. +Hier kann zum Beispiel die euklidische Distanz verwendet werden. +Als Drittes werden die Schwerpunkte neu berechnet, indem der Durchschnitt aller ihm zugeordneten Datenpunkte gebildet wird. +Der Schwerpunkt wird dann auf genau diesen Durchschnittspunkt gesetzt. +Die Schritte zwei und drei werden iterativ so lange durchgeführt, bis kein Punkt einem anderen Cluster zugeordnet wurde. + +\paragraph{K-Medoids} +\label{k_medoids} + +Der K-Medoids Algorithmus wird ebenfalls dazu verwendet, eine Menge von Datenpunkten in Cluster aufzuteilen~\cite{park2009simple}. +Im Gegensatz zu K-Means, welcher mit neu erzeugten Schwerpunkten arbeitet~\ref{k_means}, arbeitet K-Medoids nur mit den Datenpunkten selbst. +Auch hierbei muss die Anzahl der Cluster $k$ vor Anwendung des Algorithmus bekannt sein. +Als Erstes wird aus allen Datenpunkten $k$ Medoide zufällig ausgewählt. +Diese Medoide sind die Datenpunkte, welche ihr eigenes Cluster bestmöglich abbilden, ohne dabei einen neuen Datenpunkt generieren zu müssen. +Als Zweites werden alle Datenpunkte dem Medoid zugeordnet, welcher ihm am nächsten ist. +Auch hier kann wieder die euklidische Distanz verwendet werden. +Als Drittes wird aus allen Datenpunkten eines Clusters der Datenpunkt gewählt, welcher das Cluster am besten abbildet. +Die gesamte Summe aller Distanzen ist für diesen Datenpunkt minimal. +Der nun gewählte Datenpunkt ist der neue Medoid des Clusters. +Die Schritte zwei und drei werden iterativ so lange durchgeführt, bis kein neuer Medoid gewählt wurde. + +Der Vorteil von K-Medoids gegenüber K-Means liegt darin, dass K-Medoids nicht so anfällig auf Ausreißer reagiert wie K-Means. + +\paragraph{Density-Based Spatial Clustering of Applications with Noise} +\label{dbscan} + +Das \ac{dbscan} (deutsch: \emph{Dichtebasierte räumliche Clusteranalyse mit Rauschen}) ist ein Algorithmus, welcher Datenpunkte in Cluster zusammenfasst und dabei Datenpunkte aussortiert, welche als Rauschen zu betrachten sind~\cite{schubert2017dbscan}. +Nötige Informationen für den \ac{dbscan} sind die Datenpunkte selbst, der maximale Abstand, um Nachbarn zu definieren ($\epsilon$) und eine Mindestanzahl an Nachbarn, um einen Kernpunkt zu definieren ($minPts$). +Es muss dementsprechend nicht vorher bekannt sein, wie viele Cluster existieren. +Der Algorithmus selbst besteht aus zwei Phasen. +Zuerst werden die Kernpunkte markiert und anschließend die Cluster gebildet. + +Um die Kernpunkte zu markieren, werden aus allen Punkten diejenigen als Kernpunkte markiert, welche innerhalb des durch $\epsilon$ angegebenen Radius von sich selbst ausgehend mindestens $minPts$ andere Punkte (Nachbarn) besitzen. +Alle verbleibenden Punkte sind keine Kernpunkte. +Als Zweites werden mittels der Kernpunkte nun die Cluster gebildet. +Beginnend mit einem beliebigen Kernpunkt als Startpunkt, wird ein neues Cluster definiert. +Nun werden alle anderen Kernpunkte betrachtet und, wenn diese sich innerhalb von $\epsilon$ zum Startpunkt oder einem anderen bereits hinzufügten Kernpunkt befinden, mit in das Cluster aufgenommen. +Dieser Schritt wird iterativ durchgeführt, bis dem Cluster keine neuen Kernpunkte mehr zugeordnet wurden. +Im Folgenden werden alle normalen Punkte dem Cluster zugeordnet, welche sich innerhalb von $\epsilon$ zu einem Kernpunkt des Clusters befinden. +Von normalen Punkten aus wird das Cluster nicht erweitert. +Sollte es Kernpunkte geben, welche sich noch nicht in einem Cluster befinden, wird von diesem Kernpunkt aus ein neues Cluster gestartet, welches ebenso gebildet wird wie eben beschrieben. +Ein Punkt kann dabei maximal einem Cluster angehören. +Sollte es am Ende der Clusterbildung noch Punkte geben, welche keinem Cluster angehören, so sind dies Rauschpunkte (englisch: \emph{Noise}). + +\paragraph{K-Shape} +\label{k_shape} + +Der K-Shape Algorithmus ist ein auf Clusterbildung von Zeitreihen ausgelegter Algorithmus~\cite{paparrizos2015k}. +Der Algorithmus ist an den K-Means Algorithmus~\ref{k_means} angelehnt. +Entsprechend muss die Anzahl der Cluster $k$ vor Beginn des Algorithmus bekannt sein. +Um die Zeitreihen zu vergleichen, wird deren Form (englisch: \emph{Shape}) betrachtet. +Hierzu wird die kreuzkorrelative Ähnlichkeit zwischen den Zeitreihen verwendet. +Dieses Maß gibt an, wie sehr zwei Zeitreihen miteinander in Beziehung stehen~\cite{costa2021comparing}. +Dabei wird auch eine zeitliche Verzerrung mit beachtet. +Der Wert wird mit $\gamma(\tau)= \frac{\sum_t(x_t-\bar{x})(y_{t+\tau}-\bar{y})}{\sqrt{\sum_t(x_t-\bar{x})^2}\sqrt{\sum_t(y_{t+\tau}-\bar{y})^2}}$ berechnet, wobei $x_t$ der Wert der Zeitreihe $X$ zum Zeitpunkt $t$, $y_{t+\tau}$ der Wert der Zeitreihe $Y$ zum Zeitpunkt $t$ mit der zeitlichen Verzerrung $\tau$, $\bar{x}$ und $\bar{y}$ die Mittelwerte der Zeitreihen und $\tau$ die Zeitverschiebung sind. +Der Ablauf von K-Shape besteht aus drei Schritten. +Als Erstes werden die $k$ Cluster zufällig mit Zeitreihen initialisiert, welche als Form-Prototyp fungieren. +Als Zweites wird jede Zeitreihe dem Form-Prototypen zugewiesen, welcher die größte kreuzkorrelative Ähnlichkeit aufweist. +Als Drittes wird der Form-Prototyp eines jeden Clusters neu berechnet, indem alle zugeordneten Zeitreihen aggregiert und deren Form gemittelt wird. +Die Schritte zwei und drei werden iterativ so lange durchgeführt, bis kein Punkt einem anderen Cluster zugeordnet wurde. + +\subsection{Mathematische Funktionen} + +In dem folgenden Subteil des Kapitels werden unterschiedliche Methoden erläutert, wie zu einer Zeitreihe eine mathematische Funktion bestimmt werden kann. +Dies ist notwendig, um für eine generierte Zeitreihe, welche lediglich in Form einer Liste von Punkten vorliegt, eine mathematische Funktion erzeugen zu können~\ref{problem}. + +\paragraph{Polynomfunktion} +\label{polynom} + +Ein Polynom ist eine mathematische Funktion, die durch eine Summe von Potenzen einer Variablen $x$ dargestellt wird, wobei jeder Summand mit einem konstanten Koeffizienten multipliziert wird~\cite{vamos2013polynomial}. +Die allgemeine Form eines Polynoms vom Grad $n$ ist dabei $P(x) = \alpha_nx^n + \alpha_{n-1}x^{n-1}+...+\alpha_1x+\alpha_0$, wobei $\alpha_n$ bis $\alpha_0$ die Koeffizienten des Polynoms sind, $n$ die höchste Potenz und den Grad des Polynoms angibt und $x$ eine unabhängige Variable darstellt. + +Um für eine Zeitreihe eine Polynomfunktion mathematisch zu approximieren, müssen die Koeffizienten und der Grad bestimmt werden. +Die Parameter sind dann optimal gewählt, wenn der Fehler zwischen der Polynomfunktion und der Zeitreihe minimal ist. + +\paragraph{Gaußverteilung} +\label{gauß} + +Die Gaußverteilung, auch Glockenkurve genannt, beschreibt eine mathematische Funktion, die sich durch ihre symmetrische Form auszeichnet. +Dabei lautet die Formel $f(x) = \frac{1}{\sigma\sqrt{2\pi}}e^{-\frac{1}{2}(\frac{x-\mu}{\sigma})^2}$, wobei $\mu$ den Mittelwert und $\sigma$ die Standardabweichung angibt~\cite{goodman1963statistical}. +Unter Hinzunahme der Schiefe (englisch: \emph{skewness}), eines weiteren Parameters, welcher die Asymmetrie einer Verteilung beschreibt, kann ebenfalls eine asynchrone Gaußverteilung modelliert werden~\cite{seglen1992skewness}. +Die schiefe Gaußverteilung lässt sich mit $f(x)= A * e^{-\frac{(x-\mu)^2}{2\sigma^2}}* (1+ erf(\lambda*\frac{x-\mu}{\sigma}))$ bestimmen, wobei $\mu$ den Mittelwert und $\sigma$ die Standardabweichung, $\lambda$ den Asymmetrie-Parameter, $A$ den Amplitudenfaktor und $erf()$ mit $erf(z) = \frac{2}{\sqrt{\pi}}\int_0^ze^{-t^2}dt$ die Fehlerfunktion angibt. + +Um für eine Zeitreihe eine Gaußfunktion mathematisch zu approximieren, müssen die Parameter bestimmt werden. +Die Parameter sind dann optimal gewählt, wenn der Fehler zwischen der Gaußfunktion und der Zeitreihe minimal ist. + +\subsection{Change Point Detection} +\label{cpd} + +\ac{cpd} ist ein Verfahren, welches verwendet werden kann, um in Zeitreihen abrupte Änderungen des Verlaufs erkennen zu können~\cite{aminikhanghahi2017survey}. +Dies kann dafür verwendet werden, Zeitreihen in Segmente/ bzw. Phasen aufzuteilen~\ref{problem}. +Die Änderungen können eine Veränderung der Mittelwertbildung, Varianz oder anderen statistischen Eigenschaften sein. +Grundsätzlich basiert \ac{cpd} auf der Annahme, dass die zu analysierende Zeitreihe in Segmente unterteilt werden kann, innerhalb derer die statistischen Eigenschaften homogen sind, sich jedoch zwischen den Segmenten ändern. +Das Ziel besteht darin, sowohl die Anzahl der Change Points (deutsch: \emph{Änderungspunkte}) als auch deren genaue Position innerhalb der Zeitreihe zu bestimmen. + +\subsection{Modelle} + +In dem folgenden Subteil des Kapitels werden unterschiedliche künstliche Intelligenzmodelle eingeführt, welche unter anderem für Klassifizierungen und Vorhersagen verwendet werden können. + +\paragraph{Gaussian Mixture Model} +\label{gmm} + +\ac{gmm}s sind stochastische Modelle, welche dazu verwendet werden können, Daten als eine Mischung aus mehreren multivariaten Gauß-Verteilungen (Normalverteilungen) zu modellieren~\cite{reynolds2009gaussian}. +Ein \ac{gmm} beschreibt die Wahrscheinlichkeitsverteilung der Daten $x$ als gewichtete Summe von $K$ Gauß-Verteilungen. +Mathematisch wird diese Verteilung mit $p(x) = \sum_{k=1}^K\pi_kN(x|\mu_k,\sum_k)$ berechnet, wobei $N(x|\mu_k,\sum_k)$ die Dichtefunktion einer Gauß-Verteilung mit dem Mittelwert $\mu_k$ und der Kovarianzmatrix $\sum_k$ darstellt, $\pi_k$ das Mischungsverhältnis (englisch: \emph{mixing coefficient}) für die $k$-te Komponente mit $\sum_{k=1}^K\pi_k=1$ und $K$ die Anzahl der Komponenten im Modell ist. +Die Anzahl der $K$ Komponenten muss hierbei bekannt sein. +Gemeinsam bilden sie das \ac{gmm}. +Jede Komponente $k$ hat dabei die folgenden Parameter: +\begin{itemize} + \item Mittelwerte $\mu_k$: Sie repräsentieren die Zentren der $K$ Gauß-Komponenten + \item Kovarianzmatrizen $\sum_k$: Sie bestimmen die Form und Streuung der Gauß-Komponenten + \item Mischungsgewichte $\pi_k$: Sie geben an, wie viel Gewicht jede Komponente zur Gesamtdichte beiträgt +\end{itemize} + +Diese Parameter müssen während des Trainings optimiert werden. +Hierfür wird die Erwartungsmaximierung, auch EM-Algorithmus genannt, verwendet. +Der EM-Algorithmus besteht aus zwei Schritten. +Als Erstes der Erwartungsschritt, auch E-Schritt genannt, welcher die Wahrscheinlichkeiten für jeden Datenpunkt bestimmt, zu welcher Gauß-Komponente dieser Punkt gehört. +Als Zweites der Maximierungsschritt, auch M-Schritt genannt, welcher die Parameter jeder Komponente mittels der ihr zugeordneten Punkte aktualisiert, indem die Log-Likelihood der Daten maximiert wird. +Die Log-Likelihood wird mit $log\text{ }L(\theta|X)=\sum_{i=1}^Nlog\text{ }p(x_i|\theta)$ berechnet, wobei $X$ die Menge der Datenpunkte und $\theta$ die Parameter der jeweiligen Gauß-Komponente sind. + +Verwendung finden \ac{gmm}s unter anderem in der Clusterbildung und der Datenmodellierung. + +\paragraph{Neural Networks} +\label{neural} + +Neuronale Netze (englisch: \emph{Neural Networks}) sind ein zentraler Bestandteil des maschinellen Lernens~\cite{wu2018development}. +Sie bestehen aus künstlichen Neuronen, die miteinander verknüpft sind, um komplexe Zusammenhänge in Daten zu erkennen und zu modellieren. +Der Aufbau besteht dabei aus drei Abschnitten. +\newpage +\begin{itemize} + \item Eingabeschicht (englisch: \emph{Input Layer}: Diese Schicht nimmt die Eingabedaten auf. + \item Verborgene Schichten (englisch: \emph{Hidden Layers}): Hier findet die eigentliche Informationsverarbeitung statt. Jede Schicht enthält eine Vielzahl von Neuronen, die durch gewichtete Verbindungen miteinander verknüpft sind. Die Anzahl der Schichten oder der Neuronen ist dabei variabel. + \item Ausgabeschicht (englisch: \emph{Output Layer}): Sie liefert das Endergebnis der Berechnungen des Netzes. +\end{itemize} + +\begin{figure}[tbh!] + \centering + \includegraphics[width=0.7\textwidth]{content/images/nn.jpg} + \caption{Aufbau eines Neuronalen Netzes} + \label{fig1} +\end{figure} + +Abbildung~\ref{fig1} stellt den Aufbau eines neuronalen Netzes noch einmal grafisch dar. + +Während des Trainings werden die Gewichte zwischen den Neuronen angepasst. +Hierbei kann das Backpropagation-Verfahren verwendet werden~\cite{rojas1996backpropagation}. +Dabei wird die Ausgabe des Modells für einen Input mit der erwarteten Ausgabe verglichen. +Der dadurch messbare Fehler wird verwendet, um die Gewichte anzupassen, sodass der Fehler minimal wird. + +Während des Trainings sollte sowohl ein \emph{Underfitting} als auch ein \emph{Overfitting} vermieden werden~\cite{wu2018development}. +Ein \emph{Underfitting} tritt auf, wenn das Modell die Daten nicht ausreichend abbildet. +In diesem Fall weicht die tatsächliche Ausgabe des Modells von der gewünschten Ausgabe ab. +Dies deutet darauf hin, dass das Training, die Datengrundlage oder die Architektur des Modells nicht ausreichend sind. +Ein \emph{Overfitting} liegt vor, wenn das Modell auf den Testdaten signifikant schlechter performt als auf den Trainingsdaten. +In diesem Fall wurden die Trainingsdaten auswendig gelernt und keine Generalisierung erzielt. +Dies deutet darauf hin, dass das Training oder die Architektur des Modells zu umfangreich ist. + +Ein solches Netz kann zur Lösung von unterschiedlichen Aufgaben verwendet werden, wie zum Beispiel Klassifikationen oder Vorhersagen. + +\paragraph{Recurrent Neural Network} +\label{rnn} + +Ein \ac{rnn} ist ein spezielles neuronales Netz~\ref{neural}, in dem die einzelnen Schichten nicht nur mit den Neuronen der folgenden Schicht, sondern auch mit Neuronen derselben Schicht oder der vorherigen Schicht verbunden sein können~\cite{dipietro2020deep}. +Das bedeutet, dass bei einem \ac{rnn} der Output eines Neurons auch an Neuronen derselben oder der vorherigen Schicht weitergegeben werden und dort als Input mit verarbeitet werden können. +Dies kann zu einem besseren Lernerfolg führen. + +\paragraph{Convolutional Neural Network} +\label{cnn} + +\ac{cnn}s sind eine spezielle Form von Neuronalen Netzen~\ref{neural}. +Sie basieren auf der Idee der lokalen Rezeptorfelder, wodurch sie Merkmale aus Eingabedaten extrahieren und hierarchisch verarbeiten können~\cite{o2015introduction}. +Der grundlegende Aufbau der Architektur eines \ac{cnn}s ist dabei wie folgt: +\begin{itemize} + \item Faltungsschicht (englisch: \emph{Convolutional Layer}): Diese Schicht nutzt Filter, auch Kernels genannt, um lokale Merkmale aus den Eingabedaten zu extrahieren. Durch die Anwendung von Faltungen werden wesentliche Merkmale wie Kanten, Texturen und komplexe Muster erkannt. + \item Pooling-Schicht (englisch: \emph{Pooling Layer}): Diese Schicht reduziert die Dimensionalität der Merkmale, indem sie beispielsweise Max-Pooling oder Average-Pooling verwendet. Dies verringert die Rechenkomplexität und verbessert die Invarianz gegenüber Verschiebungen. + \item Aktivierungsfunktion: Eine nicht-lineare Aktivierungsfunktion, häufig die ReLU-Funktion (Rectified Linear Unit), wird angewendet, um die Netzwerkausgabe zu normalisieren und komplexe Zusammenhänge besser zu modellieren. + \item Voll verbundene Schicht (englisch: \emph{Fully Connected Layer}): Diese Schicht verbindet alle Neuronen und wird typischerweise für die endgültige Klassifikation oder Regression verwendet. +\end{itemize} + +Diese Architektur kann beliebig angepasst und erweitert werden, um für den entsprechenden Anwendungsfall geeignet zu sein. + +\paragraph{Rocket Klassifikator} +\label{rocket} + +Der ~\emph{Rocket} Klassifikator, wobei ~\emph{Rocket} für Random Convolutional Kernel Transform steht, ist ein speziell für die Zeitreihenklassifizierung entwickelter Algorithmus~\cite{dempster2020rocket}. +Er basiert auf einer Transformation der Zeitreihendaten. +Dabei nimmt der ~\emph{Rocket} Klassifikator zufällige Faltungen von Zeitreihendaten mit einer großen Anzahl von konvolutionellen Kerneln vor. +Diese zufälligen Faltungen erzeugen eine Vielzahl von Merkmalen. +Die Faltungen wiederum werden dann von einem Klassifikator, wie zum Beispiel einem logistischen Regressionsmodell, ausgewertet. + +\paragraph{Hydra Klassifikator} +\label{hydra} + +Der \emph{Hydra} Klassifikator ist ein Multi-Klassifikator-Modell, welches auf die Kombination mehrerer Klassifikatoren setzt~\cite{dempster2023hydra}. +Es basiert auf einer Architektur, die mehrere Klassifikatoren, auch \emph{Köpfe} genannt, verwendet, um robuste Vorhersagen zu treffen. + +\emph{Hydra} verwendet als Basisarchitektur einen \emph{Backbone}, welcher als Einstieg in das Modell dient. +Hier werden die Merkmale mittels eines neuronalen Netzes extrahiert und an die einzelnen Klassifikationsköpfe weitergeleitet. +Die separaten Köpfe, welche unabhängig voneinander arbeiten, klassifizieren diese Merkmale. +Dabei arbeiten die einzelnen Köpfe auf unterschiedlichen Teilmengen aller Merkmale. +Die Ausgaben der einzelnen Köpfe werden aggregiert, zum Beispiel durch Mehrheitsentscheidung oder gewichtete Kombinationen, um die Gesamtausgabe zu bestimmen. + +Durch die Kombination mehrerer Einzelmodelle soll eine höhere Resilienz gegenüber Fehlklassifikationen erreicht werden. +Zudem wird eine höhere Generalisierungsfähigkeit erreicht als bei einfacheren Architekturen, welche lediglich einen Klassifikator nutzen. + +\paragraph{Time-CNN-Classifier} +\label{time_cnn} + +Der \emph{TimeCNNClassifier} ist ein auf \ac{cnn}~\ref{cnn} basierendes Modell zur Klassifikation von Zeitreihen~\cite{zhao2017convolutional}. +Dabei folgt dieser Ansatz der \ac{cnn}-Architektur~\ref{cnn}. +Der \emph{TimeCNNClassifier} basiert auf einer Abfolge von 1-Dimensionalen-CNN-Schichten, die auf Zeitreihendaten angewendet werden. +Es werden Faltungsschichten (englisch: \emph{Convolutional Layer}) verwendet, um zeitliche Abhängigkeiten und Muster in den Daten zu extrahieren. +Diese Schichten führen lokale Faltungen durch, um lokale zeitliche Muster zu identifizieren. +Nachfolgend wird wieder die Pooling-Schicht und die vollverbundene Schicht (englisch: \emph{Fully Connected Layers}) durchlaufen. +Zuletzt wird je nach Klassifikationsaufgabe, Binär- oder \\Mehrklassen-Klassifikation, ein Softmax- oder Sigmoid-Ausgabeneuron verwendet. + +Diese Architektur kann beliebig angepasst und erweitert werden, um für den entsprechenden Anwendungsfall geeignet zu sein. + +\paragraph{Hive Cote 2} +\label{hc2} + +Der \emph{HIVE-COTE 2.0} Algorithmus, wobei \emph{Hive Cote} für Hierarchical Vote Collective of Transformation-based Ensembles steht, ist ein Ensemble-Algorithmus für die Zeitreihenklassifikation~\cite{middlehurst2021hive}. +Er stellt eine Weiterentwicklung des ursprünglichen \emph{HIVE-COTE} dar und verbessert dessen Effizienz sowie Klassifikationsleistung durch optimierte Komponenten. +Der Algorithmus kombiniert mehrere spezialisierte Klassifikationsansätze, die auf unterschiedlichen Repräsentationen der Zeitreihen basieren. +Die grundlegende Architektur ist dabei wie folgt: +\newpage +\begin{itemize} + \item \emph{Temporal Dictionary Ensemble}: Die Eingangszeitreihen werden in Segmente unterteilt. Hierfür kann \emph{BOSS}~\cite{large2018bop}, was für Bag of Symbolic Fourier Approximation Symbols steht, verwendet werden, was auf der symbolischen Repräsentation von Zeitreihen basiert. Anschließend werden Wahrscheinlichkeitsverteilungen über die Segmente gebildet und mit einem Ensemble aus 1-NN-Klassifikatoren klassifiziert. + \item \emph{Arsenal}: Ein Ensemble von Random Convolutional Kernels, um Merkmale zu extrahieren. Die extrahierten Merkmale werden in ein Softmax-basiertes Klassifikationsmodell überführt. + \item \emph{DrCIF} (Diverse Representation Canonical Interval Forest)~\cite{guijo2024unsupervised}: Weitere Extraktion von verschiedenen Merkmalen aus den Zeitintervallen wie Mittelwert, Varianz, Gradienten und Autokorrelationswerte. Die extrahierten Merkmale werden anschließend mit einem Zufallswald (englisch: \emph{Random Forest}) klassifiziert. + \item \emph{Shapelet Transform Classifier}: Ein Klassifikator, der relevante Formmuster (englisch: \emph{Shapelets}) aus den Zeitreihen identifiziert und klassifiziert. + \item \emph{Hybrid Probabilistic Averaging Voting System}: Ein stochastisches Abstimmungssystem, das die Entscheidungen der vier vorherigen Teilklassifikatoren gewichtet kombiniert. +\end{itemize} + +Durch die Kombination mehrerer Klassifikatoren hat \emph{HIVE-COTE 2.0} eine höhere Resilienz gegenüber Fehlklassifikationen. +Zudem wird eine höhere Generalisierungsfähigkeit erreicht als bei einfacheren Architekturen, welche lediglich einen Klassifikator nutzen. + +\paragraph{Catch-22-Classifier} +\label{catch22} + +Der \emph{Catch-22-Classifier} ist ein Klassifikationsverfahren, das auf dem \\\emph{Catch-22}-Merkmalsextraktionsverfahren basiert~\cite{lubba2019catch22}. +\emph{Catch-22}, was für Canonical Time-series Characteristics steht, ist ein Merkmalsset, das für Zeitreihenanalysen entwickelt wurde und eine reduzierte Auswahl von 22 statistischen Kennwerten enthält. +Diese Merkmale wurden aus einer Vielzahl von potenziellen Zeitreihenmerkmalen durch automatisierte Selektion identifiziert und sind darauf optimiert, eine hohe Klassifikationsleistung mit minimaler Rechenkomplexität zu erzielen. +Der \emph{Catch-22-Classifier} nutzt diese 22 Merkmale als Eingabe für einen Klassifikationsalgorithmus wie einen Entscheidungswald (englisch: \emph{Random Forest}). + +\paragraph{Long Short Term Memory} +\label{lstm} + +\ac{lstm} (deutsch: langes Kurzzeitgedächtnis) ist eine Erweiterung eines \ac{rnn}s~\ref{rnn}~\cite{smagulova2019survey}. +Es erweitert dabei die Neuronen eines \ac{rnn}s mit einem eigenen Langzeitgedächtnis (englisch: \emph{Memory}). + +\ac{lstm} verändert dabei den Aufbau der Neuronen, im Folgenden auch Zellen genannt~\cite{yu2019review}. +Zum einen hat jede Zelle nun drei Inputs und zwei Outputs. +Zum anderen besteht jede Zelle nun aus drei \emph{Gates}. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=0.7\textwidth]{content/images/lstm.png} + \caption{Aufbau einer \ac{lstm}-Zelle~\cite{mohammed2024machine}} + \label{fig2} +\end{figure} + +Abbildung~\ref{fig2} zeigt den Aufbau einer Zelle innerhalb eines \ac{lstm}-Netzes. +Die drei Inputs einer Zelle sind dabei die folgenden: +\begin{itemize} + \item \emph{Cell State (Memory)}: der aktuelle Wert im Langzeitgedächtnis der Zelle + \item \emph{Input}: der normale Input der Zelle, wie auch schon beim \ac{rnn} + \item \emph{Hidden Sate}: der Output der Zelle der vorherigen Iteration +\end{itemize} + +Die zwei Outputs einer Zelle sind dabei wie folgt: +\begin{itemize} + \item \emph{Cell State (Memory)}: der neue Wert im Langzeitgedächtnis der Zelle + \item \emph{Output}: der normale Output der Zelle, welche zum Einen an die nachfolgenden Zellen gegeben wird und zum anderen der \emph{Hidden State} der Zelle selbst für die nächste Iteration +\end{itemize} + +Die drei \emph{Gates} sind nachfolgend benannt: +\begin{itemize} + \item 1. \emph{Forget Gate} + \item 2. \emph{Input Gate} + \item 3. \emph{Output Gate} +\end{itemize} + +Im \emph{Forget Gate} wird anhand des Inputs und des \emph{Hidden Sates} bestimmt, welche Werte des \emph{Cell States} erhalten bleiben~\cite{smagulova2019survey,yu2019review}. +Dieses \emph{Gate} ist das erste in der Zelle. +Hierzu wird eine \emph{Sigmoid Funktion} verwendet, welche Ergebnisse innerhalb des Intervalls $[0, 1]$ ausgibt. +Das Ergebnis der \emph{Sigmoid Funktion} wird mit dem \emph{Cell State} multipliziert, um den \emph{Cell State} nach dem \emph{Forget Gate} zu erhalten. +Ein Wert von $0$ bedeutet dabei, dass eine Information im \emph{Cell State} gelöscht werden soll. +Ein Wert von $1$ bedeutet, dass die Information im \emph{Cell State} beibehalten werden soll. +Ein Wert zwischen $0$ $1$ bedeutet, dass die Information im \emph{Cell State} verblasst. + +Im \emph{Input Gate} wird bestimmt, wie stark der aktuelle Input den \emph{Cell State} beeinflussen soll~\cite{smagulova2019survey,yu2019review}. +Hierbei handelt es sich um das zweite \emph{Gate} der Zelle. +Dafür wird wieder eine \emph{Sigmoid Funktion} mit dem Input und dem \emph{Hidden Sates} angewandt. +Zudem werden die selben Werte in eine \emph{$tanh$ Funktion} geschrieben. +Die Ergebnisse beider Funktionen werden miteinander multipliziert und anschließend mit dem \emph{Cell State} addiert. +Der neue \emph{Cell State} ist der Output des \emph{Cell States} dieser Iteration und somit der Input der nächsten Iteration in dieser Zelle. + +Im \emph{Output Gate} wird der Output der Zelle und der \emph{Hidden Sates} für die nächste Iteration der Zelle bestimmt~\cite{smagulova2019survey,yu2019review}. +Dies ist das dritte und letzte \emph{Gate} der Zelle. +Hierfür wird wieder eine \emph{Sigmoid Funktion} mit dem Input und dem \emph{Hidden Sates} verwendet, welche bestimmt, welche Informationen im Output enthalten sein sollen. +Des Weiteren wird eine \emph{$tanh$ Funktion} mit dem \emph{Cell State} berechnet. +Die beiden Ergebnisse der Funktionen werden miteinander multipliziert, um den Output der Zelle zu bestimmen, welcher zeitgleich der \emph{Hidden Sates} der nächsten Iteration ist. + +Die Erweiterung von \ac{lstm} im Vergleich zum normalen \ac{rnn} führt dazu, dass das Training effizienter abläuft~\cite{andi2021accurate,smagulova2019survey,yu2019review}. +Das \ac{lstm}-Netzwerk ist im Gegenzug zum normalen \ac{rnn} dazu in der Lage, Langzeit-Abhängigkeiten zu erkennen, welche sich nicht über eine einzelne Eingabe erkennen lassen, sondern erst über mehrerer solcher Eingaben erkennbar werden~\cite{yu2019review}. +Ebenso können so nicht nur globale, sondern ebenfalls lokale Maxima erlernt werden. +Dementsprechend können komplexere Abhängigkeiten erlernt werden. + +Ein \ac{lstm}-Netzwerk kann dazu verwendet werden, um Vorhersagen für Zeitreihen zu erzeugen~\cite{andi2021accurate}. + +\subsection{Evaluationsmetriken} + +In dieser Arbeit werden unterschiedliche Evaluationsmetriken verwendet, um die Güte von Clusterbildungen, Klassifikationsmodellen und Vorhersagemodellen zu bewerten. +Im folgenden Subteil der Arbeit werden die verwendeten Metriken vorgestellt. + +\subsubsection{Silhouetten-Koeffizient} +\label{silhouetten} + +Der Silhouetten-Koeffizient (englisch: \emph{Silhouetten Score}) ist ein Maß zur Bewertung der Qualität von Clusterbildungen~\cite{shahapure2020cluster}. +Er basiert auf der Kompaktheit und Trennbarkeit der Cluster. +Für jedes Objekt, in dem Kontext dieser Arbeit handelt es sich bei den Objekten um Zeitreihen, wird der Koeffizient $s = \frac{b-a}{max(a,b)}$ berechnet, wobei $a$ die durchschnittliche Distanz des Objekts zu den anderen Objekten im selben Cluster und $b$ die durchschnittliche Distanz zu den Objekten im nächstgelegenen Cluster ist. +Der Wert von $s$ liegt zwischen $-1$ und $1$, wobei höhere Werte auf besser getrennte Cluster hindeuten. + +\subsubsection{Metriken zu Evaluation von Vorhersagen} + +Nachfolgend werden unterschiedliche Metriken zur Messung der Güte von Vorhersagemodellen vorgestellt. + +\paragraph{Mean Squared Error} +\label{mse} + +Der \ac{mse} (deutsch: \emph{Mittlere quadratische Fehler}) misst die durchschnittliche quadratische Abweichung zwischen vorhergesagten und tatsächlichen Werten~\cite{chicco2021coefficient}. +Der Fehler wird mit $MSE = \frac{1}{n} \sum_{i=1}^n(y_i-\hat{y}_i)^2$ berechnet, wobei $n$ die Anzahl der zu vergleichenden Werte ist. +Ein niedrigerer \ac{mse}-Wert weist auf eine bessere Modellgüte hin. + +\paragraph{Root Mean Squared Error} +\label{rmse} + +Der \ac{rmse} ist die Quadratwurzel des \ac{mse}~\ref{mse}~\cite{chicco2021coefficient}. +Der Fehler wird mit $RMSE = \sqrt{MSE}$ berechnet. +Durch die Wurzel besitzt der Fehler die gleiche Einheitengröße wie die Variablen selbst, wodurch die Interpretierbarkeit der Metrik steigt. +Ein niedrigerer \ac{rmse}-Wert weist auf eine bessere Modellgüte hin. + +\paragraph{Mean Absolute Error} +\label{mae} + +Der \ac{mae} (deutsch: \emph{Mittlere absolute Fehler}) misst den durchschnittlichen absoluten Unterschied zwischen den vorhergesagten und den tatsächlichen Werten~\cite{chicco2021coefficient}. +Der Fehler wird mit $MAE = \frac{1}{n} \sum_{i=1}^n|y_i-\hat{y}_i|$ berechnet, wobei $n$ die Anzahl der zu vergleichenden Werte ist. +Ein niedrigerer \ac{mae}-Wert weist auf eine bessere Modellgüte hin. +Der \ac{mae} ist weniger empfindlich gegenüber Ausreißern als der \ac{mse}~\ref{mse}. + +\paragraph{Mean Absolute Percentage Error} +\label{mape} + +Der \ac{mape} (deutsch: \emph{Mittlere absolute prozentuale Fehler}) misst den mittleren Fehler relativ zu den tatsächlichen Werten und gibt diesen in Prozent an~\cite{chicco2021coefficient}. +Der Fehler wird mit $MAPE = \frac{1}{n} \sum_{i=1}^n|\frac{y_i-\hat{y}_i}{y_i}| * 100$ berechnet, wobei $n$ die Anzahl der zu vergleichenden Werte ist. +Ein niedrigerer \ac{mape}-Wert weist auf eine bessere Modellgüte hin. +Der Vorteil des \ac{mape} gegenüber dem \ac{mae}~\ref{mae} liegt darin, dass der Fehler unabhängig von der Einheitengröße interpretierbar ist. + +\paragraph{Symmetric Mean Absolute Percentage Error} +\label{smape} + +Der \ac{smape} (deutsch: \emph{Symmetrische mittlere absolute prozentuale Fehler}) ist eine Modifikation des \ac{mape}~\ref{mape}, die symmetrisch sowohl Über- als auch Unterschätzungen beachtet~\cite{chicco2021coefficient}. +Der Fehler wird mit $SMAPE = \frac{1}{n} \sum_{i=1}^n\frac{|y_i-\hat{y}_i|}{(|y_i| + |\hat{y}_i|)/2} * 100$ berechnet, wobei $n$ die Anzahl der zu vergleichenden Werte ist. +Ein niedrigerer \ac{mape}-Wert weist auf eine bessere Modellgüte hin. +Der Vorteil des \ac{smape} gegenüber dem \ac{mape}~\ref{mape} liegt darin, dass die Symmetrie der Fehler beachtet wird und große Fehler vermieden werden. + +\paragraph{R-Quadrat} +\label{r2} + +Das R-Quadrat (R²) ist ein statistisches Maß, das angibt, wie gut ein Modell die Variabilität der abhängigen Variablen durch die unabhängigen Variablen erklärt~\cite{chicco2021coefficient}. +Der Wert wird mit $R^2 = 1 - \frac{\sum_{i=1}^n(y_i-\hat{y}_i)^2}{\sum_{i=1}^n(y_i-\bar{y}_i)^2}$ berechnet, wobei $n$ die Anzahl der zu vergleichenden Werte ist. +Ein Wert nahe $1$ zeigt eine hohe Modellgüte, während ein Wert nahe $0$ auf eine geringere Güte hinweist. + +\subsubsection{Metriken zu Evaluation von Klassifikationen} + +Nachfolgend werden unterschiedliche Metriken zur Messung der Güte von Klassifikationsmodellen vorgestellt. + +Die Wahrheitsmatrix (englisch: \emph{confusion matrix}) ist eine Möglichkeit, die Güte von Klassifikationsmodellen zu evaluieren~\cite{naidu2023review}. +Die Matrix stellt dabei die Anzahl der korrekten Klassifikationen gegenüber der Anzahl der fehlerhaften Klassifikationen. +Dabei wird zwischen vier Kategorien unterschieden: +\begin{itemize} + \item \ac{tp} (deutsch: \emph{Richtig Positiv}) + \item \ac{fp} (deutsch: \emph{Falsch Positiv}) + \item \ac{tn} (deutsch: \emph{Richtig Negativ}) + \item \ac{fn} (deutsch: \emph{Falsch Negativ}) +\end{itemize} + +\paragraph{Präzision} +\label{precision} + +Die Präzision (englisch: \emph{Precision}) gibt den Anteil der korrekt als positiv klassifizierten Beispiele an allen positiv vorhergesagten Beispielen an~\cite{naidu2023review}. +Sie wird mit $\text{Präzision} = \frac{tp}{tp + fp}$ berechnet. +Das Ergebnis ist ein Wert zwischen $0$ und $1$, wobei $0$ das schlechteste Ergebnis und $1$ das bestmögliche Ergebnis ist. + +\paragraph{Recall} +\label{recall} + +Der Recall, auch als Sensitivität bezeichnet, gibt den Anteil der korrekt als positiv klassifizierten Beispiele an allen tatsächlich positiven Beispielen an~\cite{naidu2023review}. +Sie wird mit $\mathrm{Recall} = \frac{tp}{tp + fn}$ berechnet. +Das Ergebnis ist ein Wert zwischen $0$ und $1$, wobei $0$ das schlechteste Ergebnis und $1$ das bestmögliche Ergebnis ist. +Diese Metrik eignet sich zur Evaluation binärer Klassifikationsmodelle. + +\paragraph{F1-Score} +\label{f1} + +Der F1-Score verknüpft die Präzision~\ref{precision} und den Recall~\ref{recall} miteinander~\cite{naidu2023review}. +Dies bietet den Vorteil, dass eine einzige Metrik zur Evaluation ausreicht, wenn die Präzision und der Recall gleichermaßen wichtig sind. +Sie wird mit $\text{F1-Score} = 2 * \frac{\text{Präzision} * \mathrm{Recall}}{\text{Präzision} + \mathrm{Recall}} = \frac{2 tp}{2tp+fp+fn}$ berechnet. +Das Ergebnis ist ein Wert zwischen $0$ und $1$, wobei $0$ das schlechteste Ergebnis und $1$ das bestmögliche Ergebnis ist. +Ein hoher F1-Score deutet auf ein gut ausbalanciertes Modell hin. + +\paragraph{Genauigkeit} +\label{accuracy} + +Die Genauigkeit (englisch: \emph{Accuracy}) gibt den Anteil der generell korrekt klassifizierten Beispiele an allen vorhergesagten Beispielen an~\cite{naidu2023review}. +Sie wird mit $\mathrm{Genauigkeit} = \frac{t p+ tn}{tp + fp + fp + fn}$ berechnet. +Das Ergebnis ist ein Wert zwischen $0$ und $1$, wobei $0$ das schlechteste Ergebnis und $1$ das bestmögliche Ergebnis ist. +Im Gegenzug zum Recall~\ref{recall} ist diese Metrik besser dazu geeignet, um Klassifikationsmodelle mit mehreren Klassen zu evaluieren. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter2.2.tex b/research/tech_forecasting/thesis/content/chapters/chapter2.2.tex new file mode 100644 index 0000000..14181c4 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter2.2.tex @@ -0,0 +1,187 @@ +\newpage + +\section{Verwandte Arbeiten} +\label{related} + +In dem folgenden Teil dieses Kapitels werden verwandte Arbeiten dargelegt. +Darunter werden Methodiken vorgestellt, welche die Verzerrungen durch subjektive Einschätzungen minimieren, die bei Expertenbefragungen wie der Delphi-Methode~\cite{crisp1997delphi} oder beim \ac{ghc}~\ref{gartner} auftreten können. + +\paragraph{Gartner Hype Cycle} +\label{gartner} + +Der \ac{ghc} (deutsch: \emph{Hype-Zyklus}) ist ein von \emph{Gartner Research} entwickeltes Modell, welches beschreibt, wie fortgeschritten eine Technologie im Zeitverlauf ist~\cite{dedehayir2016hype,gartner_5}. +Dabei beschreibt er die Akzeptanz, den Marktwert und die Reife einer Technologie~\cite{linden2003understanding}. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=0.7\textwidth]{content/images/hype.png} + \caption{Verkauf des Gartner Hype Cycles mitsamt der fünf Phasen~\cite{gartner_png}} + \label{fig3} +\end{figure} + +Im \ac{ghc}-Modell ist die Entwicklung einer neuen Technologie, auch Lebenszyklus genannt, in fünf Phasen gegliedert~\cite{gartner_5}: +\begin{enumerate} + \item \emph{Technologischer Auslöser} (englisch: \emph{Technology Trigger}): Die initiale Phase, in der ein technologischer Durchbruch oder eine Innovation erste öffentliche Aufmerksamkeit erhält. + \item \emph{Gipfel der überzogenen Erwartungen} (englisch: \emph{Peak of Inflated Expectations}): Eine Phase, in der mediale Berichterstattung und hohe Erwartungen zu einem Hype führen, obwohl nur wenige praxistaugliche Anwendungen existieren. + \item \emph{Tal der Enttäuschungen} (englisch: \emph{Trough of Disillusionment}): Eine Phase der Ernüchterung, in der die Technologie hinter den hohen Erwartungen zurückbleibt, was zu abnehmender medialer Aufmerksamkeit und Marktakzeptanz führt. + \item \emph{Pfad der Erleuchtung} (englisch: \emph{Slope of Enlightenment}): In dieser Phase entstehen erste Anwendungen, die den praktischen Nutzen der Technologie aufzeigen und überarbeitete Versionen der Technologie kommen auf den Markt. + \item \emph{Plateau der Produktivität} (englisch: \emph{Plateau of Productivity}): Die Technologie erreicht eine gewisse Marktreife und wird in breiterem Umfang produktiv genutzt. +\end{enumerate} + +Abbildung~\ref{fig3} stellt den Verlauf des \ac{ghc} mitsamt den fünf Phasen noch einmal grafisch dar. + +Der \ac{ghc} kann dabei helfen, den Geschäftswert einer Technologie einzuschätzen und so fundiertere Investitionsentscheidungen für neue Technologien zu treffen~\cite{gartner_5}. +Jedoch sind diese nicht für alle Technologien frei zugänglich, sondern mit finanziellen Kosten verbunden. +Zudem sind die Ergebnisse des \ac{ghc}s abhängig von den mitwirkenden Analysten, wodurch eine Objektivität nicht erreicht wird~\cite{dedehayir2016hype}. + +\paragraph{Patentbasierte Indikatoren zur technologischen Prognose} +\label{erste_prognosen_ursprung} + +Ein früher Beitrag zur Nutzung von Patentanalyse als Instrument der technologischen Prognose wurde von Campbell (1983) vorgestellt~\cite{campbell1983patent}. +In seiner Arbeit beschreibt Campbell die Anwendung von Patentindikatoren zur Bewertung der technologischen Leistungsfähigkeit von Unternehmen und zur Vorhersage von Innovationsdynamiken. +Dabei wird argumentiert, dass Patente als objektive Datenquelle dienen können, um die Entwicklung von Technologien in verschiedenen Phasen, beginnend von der Entstehung bis hin zur Obsoleszenz, nachzuverfolgen und damit einen Lebenszyklus zu beschreiben. + +Ein zentraler Aspekt der Studie ist die Identifikation von acht Schlüsselindikatoren, darunter das Aktivitätsniveau, die \emph{Immediacy}, was die Zeitspanne zwischen einem Patent und dem zitierten Stand der Technik beschreibt, sowie die Dominanz, was der technologischen Führungsposition eines Unternehmens im Patentzitationsnetzwerk entspricht. +Diese Indikatoren ermöglichen es, technologische Trends frühzeitig zu erkennen und Marktbewegungen abzuleiten. +Die Arbeit hebt zudem hervor, dass Patentdaten häufig früher Hinweise auf technologische Veränderungen liefern als wissenschaftliche Publikationen oder Marktstatistiken. + +\paragraph{Abbas et al. (2014)} +\label{literatur_prognosen} + +Abbas et al. (2014) präsentieren eine umfassende Übersicht über aktuelle Techniken und Methoden zur Patentanalyse~\cite{abbas2014literature}. +Die Autoren klassifizieren die bestehenden Ansätze in zwei Hauptkategorien: \emph{Text-Mining}-Methoden und Visualisierungstechniken. +Die \emph{Text-Mining}-Methoden nutzen \ac{nlp}, semantische Analysen oder regelbasierte Ansätze, um relevante Informationen aus patentbezogenen Texten zu extrahieren. +Diese Techniken werden insbesondere für die Identifikation von Technologietrends, die Bewertung von Patentqualität sowie zur Erkennung von Patentverletzungen eingesetzt. +Visualisierungstechniken hingegen stellen die Beziehungen zwischen Patenten in Form von Patentnetzwerken oder Patentkarten dar. +Dies ermöglicht die Identifikation von Technologievakuums oder Innovationshotspots. +Ein Technologievakuum ist dabei ein Technologiegebiet, in dem weniger häufig publiziert wird, wohingegen ein Innovationshotspot ein Gebiet ist, in dem vergleichsweise viel publiziert wird. +Die Autoren betonen die Bedeutung hybrider Ansätze, die sowohl textbasierte als auch visuelle Methoden kombinieren, um umfassendere Analysen zu ermöglichen. + +\paragraph{PatStream} +\label{patstream} + +\emph{PatStream} ist ein System zur Technologieanalyse, welches Patente als Informationsquelle nutzt~\cite{han2017visual}. +Im Gegensatz zu anderen patentbasierten Analysesystemen, die sich primär auf Metadaten oder einfache Schlagwortsuchen stützen, kombiniert \emph{PatStream} \ac{nlp}-Techniken mit interaktiven Visualisierungen, um eine inhaltsorientierte Exploration von Patentsammlungen zu ermöglichen. +Damit adressiert die Arbeit die wachsende Bedeutung von Patentinformationen für strategische Entscheidungsträger, ohne dass diese selbst Experten in dem jeweiligen Fachgebiet sein müssen. + +Das System ermöglicht eine visuelle Darstellung technologischer Trends über Zeiträume hinweg mithilfe sogenannter \emph{Streamgraphs}. +Diese visualisieren nicht nur die Häufigkeit bestimmter Konzepte, sondern erlauben auch eine interaktive Untersuchung der zugrundeliegenden Inhalte. +Ein besonderes Merkmal von \emph{PatStream} ist die Konzeptextraktion mittels \ac{nlp}, die über die bloße Häufigkeitsanalyse von Begriffen hinausgeht. So werden Mehrwortbegriffe (z. B. "magnetischer Datenträger") als inhaltliche Konzepte identifiziert, die den semantischen Gehalt der Patente besser abbilden. +Neben der Visualisierung von Trends integriert \emph{PatStream} auch Informationen zu Patentinhabern, Klassifikationen der \ac{ipc} (deutsch: \emph{Internationale Patentklassifikation}) und die Innovationskraft einzelner Technologien. +Diese ganzheitliche Herangehensweise ermöglicht eine tiefgehende Analyse von Wettbewerbsaktivitäten und neuen technologischen Entwicklungen. +Damit bietet \emph{PatStream} ein System zur Patentanalyse, welches eine Patentvisualisierung und maschinelle Sprachverarbeitung miteinander kombiniert. +Somit lässt sich ein Technologietrend über die Jahre hinweg nachverfolgen und die Reife einer Technologie bewerten. +Die Ergebnisse dieses Ansatzes sind jedoch von der Qualität der Ergebnisse der verwendeten \ac{nlp}-Techniken abhängig. + +\paragraph{Cluster-basierte Prognosen} +\label{cluster_prognosen} + +Patente stellen nicht nur juristische Schutzrechte dar, sondern enthalten auch detaillierte technische Informationen über aktuelle technologische Entwicklungen. +Basierend auf diesem Umstand erläutern Kim und Bae (2016) einen neuen Ansatz zur Patentanalyse und Technologieprognose~\cite{kim2017novel}. +Dabei soll dieser Ansatz objektiv und datenbasiert technologische Trends identifizieren. + +Der vorgeschlagene Ansatz gliedert sich in drei zentrale Schritte: +Zunächst erfolgt die Bildung von Technologieclustern anhand der \ac{cpc} (deutsch: \emph{Gemeinsame Patentklassifikation}), einer neueren Klassifikationsmethode als die \ac{ipc}. +Anschließend werden die Technologiecluster definiert, indem die am häufigsten vorkommenden \ac{cpc}-Codes innerhalb eines Clusters analysiert werden. +Als Letztes werden verschiedene Patentindikatoren wie Vorwärtszitationen, triadische Patentfamilien und unabhängige Patentansprüche herangezogen, um die vielversprechenden Technologien zu identifizieren. + +Die Kombination aus Patent-Clusterbildung, quantitativer Bewertung und maschinellen Lernverfahren bietet dabei einen neuen Ansatz für technologiegetriebene Innovationsprognosen. + +\paragraph{Integratives Modell} +\label{integrierte_prognosen} + +Ein integrativer Ansatz zur Prognose aufkommender Technologien, welcher verschiedene methodische Ansätze miteinander kombiniert, um den Herausforderungen der Vorhersage neuer Technologien ohne umfangreiche historische Daten zu begegnen, wurde von Daim et al. (2006) vorgestellt~\cite{daim2006forecasting}. +Im Zentrum der Arbeit steht die Kombination von bibliometrischen Analysen und Patentanalysen mit Prognosemethoden wie Szenarioplanung, Wachstumskurven und Analogietechniken. +Zusätzlich wird ein ~\emph{System-Dynamics}-Ansatz verwendet, um die dynamischen Wechselwirkungen zwischen technologischer Entwicklung, Marktdurchdringung und externen Einflussfaktoren zu modellieren. +Besonders hervorgehoben wird, dass bibliometrische Analysen und Patentdaten als Indikatoren für den technologischen Reifegrad genutzt werden können, während Szenarioplanung organisatorische und politische Unsicherheiten berücksichtigt. +Die Arbeit zeigt, dass die Kombination mehrerer Prognosemethoden eine differenziertere und robustere Einschätzung der zukünftigen Technologieentwicklung ermöglicht. + +Die Methodik von Daim et al. zeigt einen Ansatz für die Prognose von Technologien in frühen Entwicklungsphasen auf, welcher anwendbar ist, wenn Zeitreihenmodelle aufgrund mangelnder Daten nicht anwendbar sind. +Der integrative Ansatz hebt die Bedeutung interdisziplinärer Perspektiven hervor. + +\paragraph{Themen-basierte Prognosen} +\label{topic_prognosen} + +Ein weiterer Ansatz sind die themenbasierten Prognosen auf Basis von Patentdaten~\cite{chen2017topic}. +Diese themenbasierte Methodik baut auf \ac{lda}~\cite{blei2003latent} auf, um latente technologische Themen aus großen Mengen von Patentansprüchen zu identifizieren und deren zeitliche Entwicklung zu analysieren. +Der Beitrag der Arbeit liegt vor allem in der Verbindung von ~\emph{Text Mining} und Trendprognosen, wodurch nicht nur allgemeine technologische Entwicklungen, sondern auch spezifische Themen inhaltlich und quantitativ analysiert werden. +Die Methode ermöglicht die Identifikation von Themen mit wachsendem oder rückläufigem Einfluss im Zeitverlauf und unterstützt dadurch strategische Entscheidungen in der Technologieentwicklung. + +In einer Fallstudie mit australischen Patenten im Zeitraum von 2000 bis 2014 zeigt das Paper, dass die entwickelte Methode in der Lage ist, technologische Themen wie Druckköpfe, Antikörperzusammensetzungen oder Verbundmaterialien zu erkennen und deren Entwicklungstrends vorherzusagen. +Die Autoren argumentieren, dass die Kombination aus Themenmodellierung und Zeitreihenanalyse eine Unterstützung für die Früherkennung von Innovationspotenzialen und die Entscheidungsfindung in der Technologieplanung bietet. + +\paragraph{Methodologie zur Technologieprognose} +\label{methodologie_prognose} + +Kim et al. (2015) präsentieren in ihrer Arbeit eine Methodologie zur Technologieprognose durch die Analyse von Patentdokumenten~\cite{kim2015technology}. +Dabei wird das wachsende Interesse an Patentanalysemethoden, insbesondere zur Identifikation von sogenannten \emph{Vacant Technologies}, also technologischen Bereichen mit hohem Entwicklungspotenzial, die bisher wenig erforscht sind, adressiert. + +Das entwickelte Verfahren läuft in zwei Stufen ab. +Als Erstes werden die Patentdokumente mithilfe einer \emph{k-Means}-Clusterbildung~\ref{k_means} in Technologiecluster gruppiert. +Die optimale Anzahl der Cluster wird dabei anhand von Validierungsmaßen wie dem \emph{Silhouetten-Score}~\ref{silhouetten} bestimmt. +In einem zweiten Schritt erfolgt die Themenextraktion mittels \ac{lda}, um latente Themen innerhalb der Cluster zu identifizieren. + +Dieses Verfahren ermöglicht es, Technologiecluster nicht nur quantitativ abzugrenzen, sondern auch inhaltlich zu charakterisieren. +Die Methode wurde auf Patente aus dem Bereich der erneuerbaren Energien angewandt, die zwischen 1998 und 2012 beim \emph{United States Patent and Trademark Office} eingereicht wurden. +Die Ergebnisse zeigen, dass sich anhand der identifizierten Cluster sowohl gesättigte Technologien als auch potenzielle Innovationsfelder abgrenzen lassen. + +Der systematische Ansatz der Studie, der eine Kombination aus quantitativen Clusterbildungsverfahren und inhaltlicher Themenanalyse nutzt, schafft dabei eine objektivere Grundlage für die Identifikation von Innovationspotenzialen. + +\paragraph{Trendanalyse durch maschinelle Lernverfahren} +\label{machine_prognosen} + +Supraja et al. (2015) präsentieren in ihrer Arbeit ein System zur Patentsuche und Trendanalyse, das auf maschinellen Lernverfahren basiert~\cite{supraja2015patent}. +Der Fokus der Arbeit liegt auf der automatisierten Identifikation und Analyse von Patentdokumenten zur Unterstützung von Innovationsprozessen. +Hierfür wird ein mehrstufiger Ansatz vorgestellt, der sowohl \emph{Information Retrieval} (deutsch: \emph{Informationsrückgewinnung}) als auch Technologieprognosen umfasst. + +Das System nutzt \ac{lda} zur automatischen Generierung von Themenclustern aus Patenttexten. +Die extrahierten Cluster dienen als Grundlage für eine Informationssuche, bei der relevante Patente anhand thematischer Ähnlichkeit identifiziert werden. +Zur Gewichtung der Relevanz und zur Rangbildung der Suchergebnisse wird der \emph{BM25F-Algorithmus}~\cite{perez2010using} eingesetzt, der neben inhaltlicher Relevanz auch die Aktualität der Patente berücksichtigt. +Ein weiteres zentrales Element des Systems ist die Technologieprognose, die mittels \emph{ARIMA-Zeitreihenmodellen}~\cite{ariyo2014stock} zukünftige Entwicklungen in bestimmten Technologiefeldern vorhersagt. +Die Evaluation des Systems zeigt, dass die vorgeschlagene Methode sowohl bei der Informationssuche als auch bei der Vorhersage von Technologietrends konkurrenzfähige Ergebnisse gegenüber bestehenden Ansätzen liefert. + +Die Arbeit von Supraja et al. (2015) hebt sich durch die Kombination von maschinellem Lernen mit Zeitreihenanalysen zur Vorhersage technologischer Entwicklungen hervor. +Besonders die Integration von Themenclustern und die Nutzung von \emph{ARIMA-Modellen} bieten einen neuen Ansatz für die Patentanalyse und Technologieprognosen. + +\paragraph{Property-Function-Based Patent Network} +\label{property_prognosen} + +Während zitationsbasierte Analysen häufig neuere Patente unterschätzen, da diese aufgrund ihres Alters seltener zitiert wurden, adressiert die \emph{Property-Function-Based Patent Network}-Methode dieses Problem~\cite{yoon2012analysis}. +Hierbei werden mithilfe von \ac{nlp}-Techniken die in den Patentschriften beschriebenen Eigenschaften (englisch: \emph{Properties}) und Funktionen (englisch: \emph{Functions}) extrahiert und in Form von binären Relationen abgebildet. +Diese Relationen werden in einer \emph{Co-Occurrence-Matrix} zusammengefasst, welche die internen Beziehungen zwischen Patenten quantifizierbar macht. + +Die Autoren zeigen anhand von Patenten zu siliziumbasierten Dünnschichtsolarzellen, dass die vorgeschlagene Methode technologische Trends auch bei jungen Patenten sichtbar machen kann. +Mit Hilfe von Netzwerkmetriken wie der \emph{Degree Centrality}~\cite{zhang2017degree} und dem \emph{Technological Cycle Time Index}~\cite{kayal1999empirical} lassen sich die technologische Relevanz von Patenten, die technologische Leistungsfähigkeit von Unternehmen sowie die Geschwindigkeit des technologischen Fortschritts bestimmen. +Dadurch stellt die Methodik ein Instrument für die strategische Planung in dynamischen Technologiefeldern dar. + +\paragraph{TrendPerceptor} +\label{trendPerceptor} + +Ein zentraler Ansatz zur Identifikation von Technologietrends ist die automatisierte Analyse von Patenten. +Der \emph{TrendPerceptor} ist ein System, das eine \emph{Property Function}-basierte Methodik zur Extraktion von Innovationskonzepten aus Patenten nutzt~\cite{yoon2012trendperceptor}. +Der Fokus liegt darauf, technologische Entwicklungen systematisch zu erfassen, ohne eine aufwändige manuelle Vorselektion von Schlüsselwörtern durch Experten vornehmen zu müssen. + +Das System basiert auf der Analyse von Eigenschaften (englisch: \emph{Properties}) und Funktionen (englisch: \emph{Functions}) innerhalb von Patentschriften. +Eigenschaften werden dabei als Adjektiv-Substantiv-Paare, wie zum Beispiel "transparente Oberfläche", und Funktionen als Verb-Substantiv-Paare, wie zum Beispiel "erzeugt Energie", extrahiert. +Diese binären Relationen werden mithilfe von \ac{nlp}-Techniken aus Patenttexten gewonnen. + +Die extrahierten \emph{Property Function}-Relationen werden in Form von Netzwerken \emph{Property-Function-Based Network}~\ref{property_prognosen} analysiert. +Die Netzwerkanalyse ermöglicht die Identifikation von Schlüsseltechnologien anhand von Metriken wie Zentralität, Häufigkeit oder Vernetzungsgrad. +Dadurch lassen sich technologische Entwicklungspotenziale prognostizieren. + +Yoon und Kim evaluieren ihr System anhand zweier Fallstudien, Silizium-basierte Dünnschicht-Solarzellen und Regenschirmen, und zeigen, dass sich mit dem System nicht nur aktuelle Trends identifizieren lassen, sondern auch zukünftige Innovationspfade ableitbar sind. +Die Automatisierung reduziert dabei den Expertenaufwand erheblich und ermöglicht eine breitere Anwendung auf verschiedene Technologiebereiche. + +\paragraph{Vorhersagen bei Zeitreihen} +\label{lstm_prognosen} + +In den letzten Jahren haben sich Methoden des maschinellen Lernens als leistungsstarke Ansätze zur Vorhersage von Zeitreihen erwiesen, insbesondere bei hochkomplexen und nichtlinearen Daten. +Eine prominente Methode in diesem Bereich ist das \ac{lstm}-Netzwerk~\ref{lstm}. + +\ac{lstm}s wurden in verschiedenen Anwendungsgebieten erfolgreich eingesetzt, um Zeitreihenprognosen mit hoher Genauigkeit zu erstellen. +Ein Beispiel hierfür liefert die Arbeit von Sagheer und Kotb (2019), in der ein \ac{lstm}-Netzwerk zur Vorhersage der Erdölproduktion in der Erdölindustrie verwendet wurde~\cite{sagheer2019time}. +Die Autoren zeigen, dass \ac{lstm}s aufgrund ihrer Fähigkeit, sowohl kurz- als auch langfristige Abhängigkeiten in Zeitreihendaten zu erfassen, klassische statistische Methoden wie \emph{ARIMA} übertreffen. +Besonders bei hochgradig nichtlinearen und verrauschten Daten zeigen \ac{lstm}s eine signifikant bessere Vorhersagegenauigkeit. +Die Studie demonstriert, dass durch die Stapelung mehrerer \ac{lstm}-Schichten eine hierarchische Repräsentation der Zeitreihenmerkmale ermöglicht wird, was zu einer verbesserten Modellgenauigkeit führt. +Diese Ergebnisse bestätigen die Eignung von LSTMs als leistungsfähiges Werkzeug zur Prognose von Zeitreihen, insbesondere in Anwendungsbereichen mit nichtlinearen, hochdimensionalen und verrauschten Daten. +Die Verwendung von tiefen LSTM-Architekturen ermöglicht es, komplexe Muster in den Daten zu erfassen und so präzisere Vorhersagen zu treffen. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter2.tex b/research/tech_forecasting/thesis/content/chapters/chapter2.tex new file mode 100644 index 0000000..08b6da4 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter2.tex @@ -0,0 +1,7 @@ +\chapter{Grundlagen und verwandte Arbeiten} + +In dem folgenden Teil der Arbeit werden die Grundlagen erläutert und verwandte Arbeiten dargelegt. + +\input{content/chapters/chapter2.1} + +\input{content/chapters/chapter2.2} diff --git a/research/tech_forecasting/thesis/content/chapters/chapter3.tex b/research/tech_forecasting/thesis/content/chapters/chapter3.tex new file mode 100644 index 0000000..e7be196 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter3.tex @@ -0,0 +1,41 @@ +\chapter{Anforderungsanalyse} +\label{requirements} + +In diesem Abschnitt werden die Anforderungen zur Lösung des Problems~\ref{problem} herausgestellt. + +Es sollen Technologieprognosen erzeugt werden, welche branchen- und expertenunabhängig angewendet werden können. +Dabei sollen die Prognosen automatisch erzeugt werden und sowohl Prognosen zum Ist-Zustand als auch Vorhersagen in die Zukunft beinhalten. + +Hierfür müssen folgende Funktionen gegeben sein: + +\begin{enumerate} + \item Systematische Extraktion von stabilisierten Patenttrends + \item Erzeugung eines universellen Trendverlaufs + \item Definition von Patentphasen + \item Klassifikation des Patenttrends in die Patentphasen + \item Vorhersagen für zukünftige Patenttrends +\end{enumerate} + +Die erste Anforderung ist eine systematische Extraktion von stabilisierten Patenttrends. +Als Grundlage werden die Patente des \ac{epa}s seit 1978 bis einschließlich 2022 verwendet. +Hierfür sollen alle Patente ihren Patentklassifikationen entsprechend in Trends gefasst werden. +Diese Trends sind Zeitreihen, welche die Informationen enthalten, in welchem Jahr wie viele Patente für die jeweilige Patentklassifikation veröffentlicht wurden. +Die Zeitreihen sollen nachfolgend analysiert werden, um die Patente zu finden, welche sich am Ende ihres Lebenszyklus befinden. +Hierfür sollen Anforderungen definiert werden, welche bestimmen, wann sich eine Patentklasse an diesem Ende befindet und damit als stabilisierter Trend gilt. + +Nach dem Herausfiltern der stabilisierten Trends sollen diese als Zweites in einen universellen Trend zusammengefasst werden. +Diese Zeitreihe soll den Lebenszyklus der Patentklassen abbilden und verdeutlichen. +Dies umfasst die Untersuchung, ob es einen oder mehrere universelle Trends gibt, zwischen denen unterschieden werden muss. +Der universelle Trend soll mit einer mathematischen Funktion oder einem mathematischen Modell dargestellt werden. + +Als Drittes soll auf Grundlage des oder der universellen Trends der Lebenszyklus der Patenttrends definiert und in Phasen unterteilt werden. +Jede Phase soll dabei eine Definition erhalten. + +Die vierte Anforderung ist, dass jeder Trend auf Basis der in Schritt drei definierten Phasen klassifiziert wird. +Hierdurch soll feststellbar sein, in welcher Phase des Lebenszyklus sich der Trend einer Patentklassifikation befindet. +Diese Information soll erste Prognosen ermöglichen. + +Als letztes sollen konkrete Vorhersagen für zukünftige Patenttrends erzeugt werden. +Hierbei soll die Menge der Vorhersagen variabel sein und für mehrere Jahre in die Zukunft möglich sein. + +Des Weiteren gibt es die Anforderung, dass die Funktionen branchenunabhängig funktionieren sollen, um eine breite Anwendung finden zu können. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter4.tex b/research/tech_forecasting/thesis/content/chapters/chapter4.tex new file mode 100644 index 0000000..a154354 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter4.tex @@ -0,0 +1,199 @@ +\chapter{Konzept} +\label{concept} + +In dem folgenden Teil der Arbeit werden die Konzepte zur Erfüllung der Anforderungen~\ref{requirements} erläutert. + +\section{Systematische Extraktion von stabilisierten Patenttrends} +\label{stabil} + +Als Datengrundlage werden alle Patente, welche zwischen 1978 bis einschließlich 2022 von der \ac{epa} veröffentlicht wurden, verwendet. +Diese Patente werden ihren \ac{ipc}-Klassifikationen entsprechend in Trends gefasst. +Insgesamt liegen $73.739$ \ac{ipc}-Klassifikationen und somit auch Trends vor. +Jeder Trend ist dabei eine Zeitreihe, die angibt, in welchem Jahr wie viele Patente veröffentlicht wurden. +Die Zeitreihen beinhalten die absoluten Werte für die einzelnen Jahre. +Eine kumulative Darstellung der Werte in den Zeitreihen führt zu keinem Informationsgewinn, sondern lediglich zu einer anderen Datendarstellung. +Eine Normalisierung der Daten in den Zeitreihen hingegen führt zu einem Informationsverlust, da hierbei der maximale Wert eines jeden Trends auf eins gesetzt werden würde. +Somit könnte nicht mehr zwischen einem Maximum von $40$ und einem Maximum von $500$ unterschieden werden. +Dies würde zu Schwierigkeiten bei den Lösungen der späteren Anforderungen führen, insbesondere bei den Vorhersagen, da dort absolute Werte bestimmt werden sollen. +Neben der jährlichen Betrachtung der Trends werden ebenfalls die monatlichen Trends betrachtet. +Hierbei ist die Zeitreihe um den Faktor zwölf länger. + +Die \ac{ipc} besitzt fünf hierarchische Ebenen~\cite{ipc}. +Jede hierarchisch tiefere Ebene beschreibt eine spezifischere Thematik der darüber liegenden Ebene. +Die erste Ebene ist die \emph{Section}, zum Beispiel \emph{G: Physics}. +Die nächste Ebene ist die \emph{Class}, zum Beispiel \emph{G06: Computing; calculating or counting}. +Die dritte Ebene ist die \emph{Subclass}, zum Beispiel \emph{G06T: Image data processing or generation, in general}. +Die vierte und fünfte Ebenen sind als \emph{Group} zusammengefasst, welche sich in \emph{Main group} und \emph{Subgroup} unterteilen lassen, zum Beispiel \emph{G06T 9/00: Image coding}. +Für die Bildung der Trends nach den \ac{ipc}-Klassifikationen werden die \ac{ipc}s auf der \emph{Subgroup}-Ebene verwendet. +Die fünfte Ebene stellt die detaillierteste und kleinstmögliche \ac{ipc} Aufteilung dar. +Dies bietet den Vorteil, dass mehr unterschiedliche \ac{ipc}s und damit mehr Trends vorliegen, was wiederum zu einer größeren Datengrundlage für die weiteren Schritte führt. + +Für eine Steigerung der Vergleichbarkeit beginnen alle Trends im Jahre 1978 und enden im Jahr 2022. +Damit haben alle Trends die selbe Länge, was einen Vergleich zwischen den einzelnen Zeitreihen erleichtert. +Im Folgenden sind die Jahreszahlen nicht mehr von Belang. +Stattdessen werden die Werte nur noch sequentiell aufsteigend betrachtet mit Wert $0$ bis $44$. +Hierdurch wird sichergestellt, dass die Zeitreihen unabhängig von den Jahreszahlen sind. +Dies fördert die Vergleichbarkeit zwischen den einzelnen Zeitreihen. + +Die Zeit zwischen dem ersten veröffentlichten Patent und dem zuletzt veröffentlichten Patent einer Zeitreihe muss mindestens 20 Jahre umfassen. +20 Jahre entsprechen der maximalen Gültigkeit von Patenten~\cite{epo_max}. +Nach dieser Zeit könnte es zu neuen Folgepatenten kommen, welche nicht auf aktuell bestehenden Patenten aufbauen. +Die maximale Lebensdauer eines einzelnen Patents ist dann erreicht und somit auch im Trend enthalten. + +Jeder Trend/bzw. jede Zeitreihe besitzt einen Höhepunkt, im Folgenden \emph{Peak} genannt. +Der Peak beschreibt das Jahr, in dem die höchste Anzahl an veröffentlichten Patenten im gesamten Trend vorliegt. +Um eine Verzerrung durch nahezu ungenutzte \ac{ipc}s des Gesamtbildes aller Trends zu verhindern, muss dieser Peak mindestens bei drei liegen. +Ein kleinerer Peak bedeutet, dass die zum Trend gehörige \ac{ipc} nicht aktiv genutzt wird. +Abbildung~\ref{fig5} zeigt einen Ausschnitt der Verteilung der Peakwerte, nachdem alle anderen Filterungen angewandt wurden. +Hier ist zu erkennen, dass umgerechnet $26,85\%$ aller Peaks einen Wert von zwei besitzen. +Aus diesem Grund muss der Peak mindestens bei drei liegen, um einen \emph{Bias} in den Daten zu verhindern. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/peak_distribution_0_10_ger.png} + \caption{Ausschnitt der Verteilung der Peakhöhen nach Anwendung aller sonstigen Filterungen} + \label{fig5} +\end{figure} + +Aus den nun vorliegenden Trends müssen die stabilisierten Patenttrends herausgefiltert werden. +Ein Trend gilt dabei als stabilisiert, wenn er die folgenden zwei Eigenschaften erfüllt: +Als Erstes darf der Peak nicht in den letzten fünf Jahren des Trends liegen. +Sollte sich der aktuelle Zeitpunkt in einem Trend im Peak oder nahe zum Peak befinden, so ist dieser Trend nicht stabil. +5 Jahre entsprechen der maximalen Erteilungsdauer eines Patents~\cite{epo_timings}. +Nach dieser Zeit ist ein Patent entweder abgelehnt oder angenommen. +Als Zweites darf der Trend innerhalb der letzten fünf Jahre des Trends keine starken Schwankungen enthalten. +Sollte der Trend zum Ende hin noch starke Schwankungen aufweisen, so ist dieser noch nicht stabilisiert. +Eine Schwankung gilt hierbei als stark, wenn die Differenz zwischen dem niedrigsten und dem höchsten Wert innerhalb dieser fünf Jahre zehn Prozent des Peak-Wertes übersteigt. +Der Grenzwert von zehn Prozent wurde durch eine explorative Datenanalyse ermittelt. +Hierfür wurden unterschiedliche Grenzwerte zwischen $5\%$ und $100\%$ in $5\%$-Schritten getestet und die Ergebnisse miteinander verglichen. +Die zehn Prozent stellen einen Kompromiss zwischen einer möglichst geringen Schwankung, um einen stabilen Trend zu garantieren, und einer möglichst hohen Anzahl an akzeptierten Patenttrends, um für die weiteren Schritte der Arbeit einen möglichst großen Datensatz zur Verfügung zu haben, dar. + +Die nach der Filterung vorliegenden Trends sind die stabilisierten Patenttrends. +Von den insgesamt $73.739$ Trends sind $2.774$ Patenttrends stabilisiert. + +\section{Erzeugung eines universellen Trendverlaufs} +\label{universell} + +Die Erzeugung des universellen Trendverlaufs besteht aus drei Schritten. + +Als Erstes wird geprüft, ob es einen oder mehrere universelle Trendverläufe gibt. +Hierfür wird versucht, die stabilisierten Patenttrends~\ref{stabil} in Cluster zu fassen. +Dabei werden mehrere unterschiedliche Methoden zur Clusterbildung verwendet, um eine bestmögliche Aufteilung der Cluster zu erhalten. +Um zu überprüfen, ob die gefundenen Cluster sinnvoll sind, müssen diese mittels einer Clusterevaluationsmetrik miteinander verglichen werden. +Die Cluster sind dann sinnvoll, wenn diese voneinander unterscheidbar sind. +Sind diese nicht unterscheidbar, so gibt es nur einen einzigen universellen Trend. +Ansonsten gibt es für jedes gefundene Cluster einen universellen Trend. + +Als Zweites werden die universellen Trendverläufe bestimmt. +Sollte es nur einen universellen Trend geben, so werden die folgenden Schritte einmalig auf allen stabilisierten Trends durchgeführt. +Bei einer Unterteilung in mehrere Cluster werden diese Schritte für die Trends eines jeden Clusters getrennt voneinander ausgeführt. +Um die Trends in einem universellen Trendverlauf zu vereinen, werden wieder mehrere unterschiedliche Methoden verwendet und miteinander verglichen, um einen bestmöglichen universellen Trend zu finden. +Ein universeller Trend ist gefunden, wenn er die Summe der zu ihm gehörenden Einzeltrends optimal abbildet. + +Als Drittes werden die universellen Trendverläufe mittels mathematischer Funktionen oder Modelle abgebildet. +Hierfür werden wieder mehrere Methoden verwendet, um eine bestmögliche Abbildung des universellen Trends auf eine Funktion zu erlangen. + +Am Ende dieses Schrittes liegen eine oder mehrere universelle Trendverläufe mitsamt einer mathematischen oder modellbasierten Abbildung vor. + +\section{Definition von Patentphasen} +\label{phasen} + +Um die Patentphasen zu definieren, müssen diese erst einmal bestimmt werden. +Hierzu werden die stabilisierten Trends~\ref{stabil} und die universellen Trends~\ref{universell} näher betrachtet und nach Gemeinsamkeiten untersucht. +Diese Untersuchung wird zum einen mithilfe einer automatischen Segmentierung und zum anderen manuell durchgeführt. + +Die hieraus resultierenden Phasen sind die folgenden: +\begin{enumerate} + \item Pre-Nutzungsphase + \item Steigungsphase + \item Peakphase + \item Neigungsphase + \item Optionaler zweiter Peak: \begin{enumerate} + \item Optionale zweite Steigungsphase + \item Optionaler zweiter Peak + \item Optionale zweite Neigungsphase + \end{enumerate} + \item Optionale Plateausteigung + \item Plateauphase +\end{enumerate} + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/B65F3_20_marked.png} + \caption{Beispielhafte Phasenaufteilung mitsamt aller optionalen Phasen anhand des Trends der \ac{ipc} \emph{B65F3/20}} + \label{fig4} +\end{figure} + +Die Abbildung~\ref{fig4} zeigt eine beispielhafte Phasenaufteilung des Trends der \ac{ipc} \emph{B65F3/20} mitsamt aller optionalen Phasen. +Die einzelnen Phasen sind nachfolgend näher definiert. + +Die erste Phase ist die \emph{Pre-Nutzungsphase}. +In dieser Phase des Trends wird eine \ac{ipc} maximal zweimal im Jahr verwendet. +Dies bedeutet, dass nur wenige Patente innerhalb des Themas der entsprechenden \ac{ipc} veröffentlicht werden. + +Die zweite Phase ist die \emph{Steigungsphase}. +In dieser Phase steigt die Anzahl der Patentveröffentlichungen an. + +In der dritten Phase, der \emph{Peakphase}, haben die Veröffentlichungen ihren Höhepunkt erreicht. +Die Nutzung einer \ac{ipc} ist zu diesem Zeitpunkt maximal. +Die Höhe der Peaks ist hierbei von Trend zu Trend unterschiedlich. +Der höchste Peak liegt bei $2.165$. + +Nach dem Peak beginnt als viertes die \emph{Neigungsphase}. +Hier nimmt die Nutzung wieder ab. +Entsprechend sinkt der Trendverlauf wieder nach unten. +Der Höhepunkt der Patentveröffentlichungen zu einer Thematik ist nun vorbei. +In der \emph{Neigungsphase} kann die Nutzung einer \ac{ipc} wieder auf null abfallen, kann jedoch auch auf einem höheren Niveau enden. + +Nach der \emph{Neigungsphase} kann es als fünftes einen \emph{zweiten optionalen Peakverlauf} geben. +Dieser optionale Peakverlauf besteht ebenfalls wieder aus einer \emph{Steigungsphase}, einer \emph{Peakphase} und einer \emph{Neigungsphase}. +Die Höhe des zweiten optionalen Peaks ist dabei geringer als der Hauptpeak der ersten \emph{Peakphase}. +Von allen $2.774$ Trendverläufen besitzen 467 Trends einen \emph{zweiten optionalen Peakverlauf}. +Dies entspricht $17\%$ aller stabilisierten Trends. + +Die sechste Phase ist die \emph{optionale Plateausteigung}. +In dieser Phase steigt die Nutzung einer \ac{ipc} noch einmal leicht an. +Lediglich $46$ der Trendverläufe besitzen diese Phase. +Dies entspricht unter zwei Prozent aller stabilisierten Trends. + +Die siebte und letzte Phase ist die \emph{Plateauphase}. +In dieser Phase ist der Lebenszyklus einer \ac{ipc} am Ende angekommen. +Die Anzahl der Patentveröffentlichungen bleibt stabil auf einem Niveau und liegt hierbei nahe der X-Achse. + +Die Länge der Phasen, also wie viele Jahre eine Phase umfassen, ist wie die Höhe der Peaks von Trend zu Trend unterschiedlich und kann nicht klar definiert werden. +Dies gilt für jede der Phasen. +Ebenfalls variiert der Grad der Steigungen und Neigungen. +Wenn die Trends der monatlichen Datendarstellung anstatt der jährlichen Betrachtungsweise für die Phasendefinitionen verwendet werden, ändern sich die Definitionen nicht, sondern werden noch einmal bestätigt. + +\section{Klassifikation des Patenttrends in die Patentphasen} +\label{classification} + +Bei der Klassifikation eines Patenttrends geht es darum, dass ein Patenttrend vorliegt und für diesen Trend geprüft werden soll, in welcher Phase~\ref{phasen} sich dieser am Ende des Trends befindet. +Um dies zu erreichen, wird ein Klassifikationsmodell (englisch: \emph{classification model}) trainiert. +Es werden mehrere unterschiedliche Modelle ausprobiert, um das Modell zu finden, welches die Klassifikationen bestmöglich durchführt. +Die Modelle werden auf den zuvor definierten Phasen trainiert und evaluiert. +Hierfür müssen die stabilisierten Trends~\ref{stabil} jedoch zuvor annotiert werden. +Hierbei muss bei jedem Trend markiert werden, wann welche Phase beginnt und wieder endet. + +Für die Annotationen gibt es die folgenden Anforderungen. +Die Phasen $1$, $2$, $3$ und $4$ müssen auf jedem Trend in exakt dieser Reihenfolge annotiert sein. +Die Phase $5$ ist optional. +Sollte diese jedoch vorliegen, so müssen nach der Phase $4$ die Phasen $5a$, $5b$ und $5c$ in dieser Reihenfolge annotiert werden. +Nach den Phasen $4$ und $5c$ kann optional Phase $6$ annotiert werden. +Jeder Trend muss mit einer Annotation der Phase $7$ enden. +Hierbei muss jedes Jahr der Trends in einer Annotation mit inbegriffen sein. +Es darf somit keine Leerstellen zwischen den Annotationen geben. +Ebenso muss das Jahr $0$ und das Jahr $44$ annotiert sein. +Zuletzt dürfen sich Annotationen nicht überschneiden. +Dies bedeutet, dass, wenn eine Annotation im Jahr $22$ endet, die nächste Annotation nicht bereits im Jahr $21$ beginnen darf. + +Die Ergebnisse der Annotationen werden anschließend für das Training und die Evaluation der Modelle verwendet. +Dabei sollen Trends unabhängig von ihrer Länge klassifiziert werden können. + +\section{Vorhersagen für zukünftige Patenttrends} +\label{predictions} + +Bei den Vorhersagen von zukünftigen Patenttrends sollen zukünftige Werte eines Trends vorhergesagt werden. +Hierbei soll ein Trend beliebiger Länge als Input dienen und beliebig weit in die Zukunft vorhergesagt werden. +Um dies zu erreichen, wird ein Modell trainiert. +Für das Training und die Evaluation des Modells werden die stabilisierten Trends~\ref{stabil} verwendet. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter5.tex b/research/tech_forecasting/thesis/content/chapters/chapter5.tex new file mode 100644 index 0000000..11c8f29 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter5.tex @@ -0,0 +1,334 @@ +\chapter{Implementierung} +\label{implementation} + +In dem folgenden Teil der Arbeit wird die Implementierung zur Umsetzung des Konzeptes~\ref{concept} erläutert. +Hierfür werden die Implementierungen, aufgetretenen Probleme und deren Lösungen dargelegt. + +Für die Implementierung wird die Programmiersprache \emph{Python}~\cite{python} mit der Version $3.9.19$ verwendet. +Zusätzlich werden unterschiedliche Pakete des \emph{Python Package Index}~\cite{pypi} verwendet. + +\section{Erzeugung eines universellen Trendverlaufs} +\label{universell_implementierung} + +Die Erzeugung eines universellen Trendverlaufs erfordert drei zentrale Arbeitsschritte. +Als Erstes muss mittels einer Clusterbildung überprüft werden, ob es einen oder mehrere universelle Trendverläufe gibt. +Als Nächstes muss aus allen Trends ein gemeinsamer Trendverlauf bestimmt werden. +Als Drittes ist eine mathematische oder modellbasierte Abbildung dieser Verläufe nötig. +Nach diesen Schritten liegen die universellen Trendverläufe vor. +Im Folgenden werden die Implementierungen dieser drei Schritte im Detail erläutert. + +\paragraph{Clusterbildung} + +Um zu überprüfen, ob ein einzelner universeller Trendverlauf ausreicht, um alle stabilisierten Patenttrends~\ref{stabil} abzubilden, oder ob hierfür mehrere unterschiedliche Verläufe notwendig sind, wird versucht, die Einzeltrends in Cluster zu unterteilen. +Jedes einzelne Cluster erfordert einen eigenen gemeinsamen Trendverlauf. +Um die Cluster zu bestimmen, werden mehrere unterschiedliche Methodiken zur Clusterbildung angewandt. +Die Algorithmen \emph{K-Means}~\ref{k_means}, \emph{K-Medoids}~\ref{k_medoids} und \emph{\ac{dbscan}}~\ref{dbscan} werden in Kombination mit den \emph{\ac{dtw}-Distanzen}~\ref{dtw} und den Korrelationen zwischen den einzelnen Trends verwendet, um die Cluster zu berechnen. +Des Weiteren wird \emph{K-Shape}~\ref{k_shape} zur Clusterbildung angewendet. +Somit werden insgesamt sieben unterschiedliche Methodiken zur Clusterbildung geprüft. +Um die Anzahl der Cluster $k$ für die Algorithmen \emph{K-Means}, \emph{K-Medoids} und \emph{K-Shape} zu finden, werden Werte zwischen $2$ und $6$ für $k$ getestet. +Um die Qualität der gefundenen Cluster miteinander zu vergleichen, wird der \emph{Silhouetten Score}~\ref{silhouetten} für alle Clusterbildungen berechnet. +Da der \emph{Silhouetten Score} für ein höheres $k$ stetig sinkt, werden keine Werte größer als $6$ für $k$ getestet. +Für den \emph{\ac{dbscan}}-Algorithmus werden ebenfalls unterschiedliche Parameter für $\epsilon$ und $minPts$ getestet. +Zusätzlich werden die Clusterbildungen zum einen anhand aller stabilisierten Patenttrends zusammen und zum anderen mit einer Vorunterteilung anhand der einzelnen \emph{Sections} durchgeführt. +Die Nutzung von unterschiedlichen Cluster-Algorithmen mit unterschiedlichen Distanzmetriken mitsamt der Parameteroptimierungen dient dem Zweck, bestmögliche Cluster zu finden. +Um die Qualität der endgültig gefundenen Cluster miteinander zu vergleichen, wird wieder der \emph{Silhouetten Score} für alle Cluster berechnet. +Die erzielten Werte liegen hierbei zwischen $-0,52$ und $0,32$. +Diese erzielten \emph{Silhouetten Scores} bedeuten, dass die gefundenen Clusterunterteilungen nicht eindeutig sind und sich die Cluster ähneln. +Eine Clusterbildung ist somit nicht notwendig. + +Um dieses Ergebnis noch einmal zu bestätigen, wird ein \ac{gmm}~\ref{gmm} trainiert. +Hierbei wird die Anzahl der \emph{Gaussians} bestimmt, indem zwischen zwei und einschließlich zehn \emph{Gaussians} überprüft werden. +Dieses \ac{gmm} wird verwendet, um die stabilisierten Trends in Cluster zu unterteilen. +Den besten \emph{Silhouetten Score} wird durch das \ac{gmm} mit zwei \emph{Gaussians} erreicht. +Das \ac{gmm} erreicht einen \emph{Score} von $0,95$, was auf eine sinnvolle Clusterbildung hindeutet. +Jedoch liegt die Clusteraufteilung bei $2.751$ Trends im ersten Cluster zu $23$ Trends im zweiten Cluster. +Diese ungleiche Verteilung der Trends auf die Cluster bedeutet, dass die gefundene Clusterunterteilung nicht sinnvoll ist. + +Da keine sinnvolle Unterteilung in mehrere Cluster gefunden werden kann, bei der die einzelnen Cluster klar voneinander unterschieden werden können, bedeutet dies, dass es nur einen einzigen universellen Trendverlauf gibt und nicht mehrere. + +\paragraph{Gemeinsamer Trendverlauf} +\label{gemein_trend} + +Um einen gemeinsamen Trend zu finden, welcher alle stabilisierten Trends~\ref{stabil} in einem Trend zusammenfasst, werden ebenfalls wieder mehrere unterschiedliche Methodiken geprüft. +Insgesamt werden vier Methodiken angewendet. +Alle diese Methoden basieren auf dem \emph{\ac{dtw}-Warping-Pfad}~\ref{dtw}. +Abbildung~\ref{fig12} stellt die Abläufe dieser Methoden grafisch dar. +Die einzelnen Methoden werden im Folgenden noch einmal detailliert erläutert. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/flows.png} + \caption{Ablaufdiagramme der vier Methoden zur Findung des gemeinsamen Trendverlaufs} + \label{fig12} +\end{figure} + +Die erste Methode nutzt den ersten Trend aller stabilisierten Patenttrends, welche zusammengefasst werden sollen, als Referenzpfad. +Für alle weiteren Trends wird der \emph{Warping-Pfad} zu dem Referenzpfad bestimmt. +Nachdem alle Trends an die Referenz angepasst sind, wird ein Durchschnittstrend aus allen \emph{Warping-Pfaden} berechnet. +Dieser Durchschnittstrend ist der gemeinsame Trend, welcher alle Trends abbildet. +Das Problem bei dieser Methode ist die Wahl des Referenzpfades. +Da jeder Trend an diese Referenz angepasst wird, bestimmt die Referenz maßgeblich den Durchschnittstrend, wodurch der Einfluss der einzelnen Trends nicht gleichermaßen ist. + +Um dieses Problem zu lösen, werden weitere unterschiedliche Referenzen ausprobiert. +Die zweite Methode bildet als erstes einen Durchschnittstrend aus allen Trends. +Dieser Durchschnittstrend wird anschließend als Referenztrend verwendet. +Der restliche Verlauf ist wie bei der ersten Methode. +Das Problem bei dieser Methode ist, dass zweimal nacheinander ein Durchschnitt aus Trends gebildet wird, wodurch ein Informationsverlust entsteht. +Dieser Informationsverlust führt zu einem ungenauen gemeinsamen Trend, welcher die Details der einzelnen Trends nicht mehr mit abbildet. +Dies äußert sich dadurch, dass die Höhen der Peaks durch die Durchschnittsbildung abflachen und nicht mehr abgebildet werden. +Kleine lokale Maxima werden durch diese Abflachung überhaupt nicht mehr mit abgebildet. + +Um das Problem der doppelten Durchschnittsbildung zu lösen, wird in der dritten Methode jeder Trend paarweise an jeden anderen Trend angepasst. +Somit dient jeder Trend einmalig als Referenz für jeden anderen Trend. +Damit ist das Problem gelöst, dass der Referenztrend stärker gewichtet im gemeinsamen Trend Einfluss nimmt, als die anderen Trends, da jeder Trend als Referenz dient. +Aus der Menge der dadurch resultierenden \emph{Warping-Pfaden} wird wie in der ersten Methode wieder ein Durchschnittstrend gebildet, welcher als gemeinsamer Trend fungiert. +Somit wird bei dieser Methode nur einmalig ein Durchschnitt gebildet. +Das Problem bei dieser Methode ist, dass anstatt wie zuvor nur aus $n$ Trends der einmalige Durchschnitt dieses Mal aus $n^2$ Trends gebildet wird, wobei $n$ die Anzahl der einzelnen Trends entspricht. +Diese erhöhte Anzahl an Trends führt bei der Durchschnittsbildung wieder zu einem Informationsverlust durch die Abflachung der Kurve. + +Um einen Informationsverlust durch jegliche Trend-Durchschnittsbildungen zu vermeiden, wird in der vierten Methode komplett auf diese verzichtet. +In der vierten Methode wird der \ac{dba}-Algorithmus~\ref{dba} verwendet. +Hierfür wird zuerst der \emph{Medoid-Trend} gesucht. +Der Medoid ist der Trend, welcher die geringste Summe der \emph{\ac{dtw}-Distanzen} zu allen anderen Trends aufweist. +Er bildet die Menge der Trends initial bestmöglich ab. +Dieser Medoid wird als Referenz, bei \ac{dba} auch \emph{Barycenter} genannt, für den \ac{dba}-Algorithmus verwendet. +Das Ergebnis hiervon wird als gemeinsamer Trend verwendet, welcher ohne Informationsverlust die Menge aller stabilisierten Trends bestmöglich abbildet. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=0.75\textwidth]{content/images/uni_trend.png} + \caption{Durch \ac{dba} ermittelter gemeinsame Trendverlauf} + \label{fig6} +\end{figure} + +Abbildung~\ref{fig6} zeigt den durch \ac{dba} ermittelten gemeinsamen Trendverlauf. +Die definierten Pflichtphasen~\ref{phasen} sind auf der Abbildung erkennbar. +So zeigen sich die Phasen 1, 2, 3, 4 und 7. + +Um diesen Verlauf zu bestätigen, wird sowohl ein \ac{gmm} als auch ein \ac{lstm}~\ref{lstm} trainiert. +Das \ac{gmm} wird mit einer einzigen Komponente auf allen stabilisierten Trends trainiert. +Das trainierte \ac{gmm} wird grafisch abgebildet, um den von dem Modell gelernten Verlauf mit dem \ac{dba}-Verlauf zu vergleichen. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/gmm_common_time_series_resampled.png} + \caption{Durch das \ac{gmm} ermittelter gemeinsame Trendverlauf} + \label{fig7} +\end{figure} + +Abbildung~\ref{fig7} zeigt den durch das \ac{gmm} ermittelten gemeinsamen Trendverlauf. +Zusätzlich zu den Pflichtphasen sind nun auch die Phasen des optionalen zweiten Peaks~\ref{phasen} +zu erkennen. +So zeigen sich die Phasen 1, 2, 3, 4, 5a, 5b, 5c und 7. + +Das \ac{lstm}-Modell besteht aus zwei Schichten: eine \ac{lstm}-Schicht mit 100 Neuronen und eine \emph{Dense}-Schicht mit einem Neuron, welche als Ausgabeschicht dient. +Dieses Modell verwendet den \ac{mse} als Fehlerfunktion. +Zudem wird für das Training ein \emph{Adam-Optimizer} mit einer \emph{Learning Rate} (deutsch: \emph{Lernrate}) von $0,001$ verwendet. +Als Trainingsdaten dienen alle stabilisierten Trends sowohl als Eingabe als auch als erwartete Ausgabe. +Das Training selbst umfasst 50 Epochen. +Um den gemeinsamen Trend zu generieren, werden genau diese Trends nach dem Training erneut in das Modell eingegeben. +Die hieraus resultierende Ausgabe wird als gemeinsamer Trendverlauf verwendet. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/lstm_common_time_series_best.png} + \caption{Durch das \ac{lstm} ermittelter gemeinsame Trendverlauf} + \label{fig8} +\end{figure} + +Abbildung~\ref{fig8} zeigt den durch das \ac{lstm} ermittelten gemeinsamen Trendverlauf. +Der Verlauf ähnelt grundlegend dem Verlauf der \ac{dba}-Methode. +Lediglich die Längen und Höhen der einzelnen Phasen unterscheiden sich. +So zeigen sich die Phasen 1, 2, 3, 4 und 7. + +\paragraph{Mathematische und modellbasierte Abbildung des gemeinsamen Trendverlaufs} +\label{abbildung} + +Um den universellen Trendverlauf abschließend zu bestimmen, soll der gemeinsame Trendverlauf mathematisch oder modellbasiert abgebildet werden. +Ebenfalls werden wieder mehrere unterschiedliche Methodiken zur Erstellung der Abbildung geprüft. + +Da der durch die \ac{dba}-Methode gefundene gemeinsame Trendverlauf einem polynomialen Verlauf ähnelt, wird als erstes eine Polynomfunktion~\ref{polynom} berechnet, um den Trendverlauf mathematisch abzubilden. +Um die Qualität der Funktion zu bestimmen, werden drei unterschiedliche Fehlermetriken verwendet. +Diese Metriken sind der \emph{R-Quadrat}~\ref{r2}, der \ac{rmse}~\ref{rmse} und der \ac{mae}~\ref{mae}. +Um den Grad der Polynomfunktion zu bestimmen, wird der Grad der Funktion schrittweise erhöht, solange ein höherer Grad den \emph{R-Quadrat}-Wert um mindestens $0,01$, den \ac{rmse}-Wert und \ac{mae}-Wert um mindestens $0,001$ verbessert. +Diese Grenzwerte stellen einen Kompromiss zwischen einer optimalen Funktionsabbildung und der Funktionskomplexität dar. +Die Koeffizienten der Polynomfunktion werden anschließend so angepasst, dass die Fehler minimiert werden. +Die sich ergebene Funktion lautet $f(x) = -5,795*10^{-5}x^3+0,004x^2-0,056x+0,269$. +Hieraus ergeben sich Fehler von $\mathrm{R^2}=0,074$, $\mathrm{RMSE}=0,487$ und $\mathrm{MAE}=0,312$. +Diese Fehler lassen nicht auf eine genaue mathematische Abbildung des gemeinsamen Trendverlaufs schließen. + +Aus diesem Grund wird als zweites eine Summe aus gaußschen Funktionen~\ref{gauß}, auch Normalverteilungen genannt, verwendet, um den Trendverlauf mathematisch abzubilden. +Sowohl die Anzahl der Normalverteilungen als auch die Parameter selbst für jede einzelne Verteilung werden dabei so optimiert, dass die Fehlerwerte minimiert werden. +Die sich ergebene Funktion lautet: +\begin{equation}\begin{aligned} +f(x) = & -1,532 * e^{ -\frac{(x - 21,432)^2}{2 * (1,409)^2}} + 4,266 * e^{ -\frac{(x - 37,356)^2}{2 * (15,613)^2}} + 28,133 * e^{ -\frac{(x - 29,054)^2}{2 * (0,48)^2}} \\ +& - 1,353 * e^{ -\frac{(x - 17,381)^2}{2 * (8,568)^2}} - 57,06 * e^{ -\frac{(x - 45,413)^2}{2 * (0,799)^2}} + 13,13 * e^{ -\frac{(x - 26,373)^2}{2 * (0,254)^2}} \\ +& + 9,337 * e^{ -\frac{(x - 44,306)^2}{2 * (0,668)^2}} +\end{aligned}\end{equation} +Hieraus ergeben sich Fehler von $\mathrm{R^2}=0,997$, $\mathrm{RMSE}=0,275$ und $\mathrm{MAE}=0,164$. +Durch diese Funktion ist der gefundene gemeinsame Verlauf mathematisch abgebildet und stellt somit den universellen Trendverlauf dar. + +Um den gemeinsamen Verlauf modellbasiert abzubilden, sind keine weiteren Schritte notwendig. +Da bereits ein \ac{gmm} und ein \ac{lstm}-Modell trainiert wurden, um den gemeinsamen Trendverlauf zu bestimmen, muss an dieser Stelle kein neues Modell erzeugt werden. +Diese beiden Modelle stellen eine modellbasierte Abbildung des gemeinsamen Trendverlaufes dar. + +\section{Definition von Patentphasen} +\label{phasen_implementierung} + +Damit die Patentphasen definiert werden können, müssen alle stabilisierten Patenttrends~\ref{stabil} und der universelle Trend~\ref{universell} analysiert werden, um die einzelnen Phasen herauszufiltern. +Der erste Ansatz ist eine automatische Segmentierung der Trends. +Hierzu wird eine \ac{cpd}~\ref{cpd} durchgeführt. +Um die \ac{cpd} anzuwenden, muss ein Grenzwert, der \emph{Penalty}, definiert werden, welcher bestimmt, wann ein Segment endet und somit ein neues Segment beginnt. +Es kann kein Wert für den \emph{Penalty} bestimmt werden, welcher auf allen zu segmentierenden Trends zu gleichwertigen Ergebnissen führt. +Da die automatische Segmentierung mittels \ac{cpd} für diesen Anwendungsfall nicht funktioniert, wird eine manuelle Segmentierung durchgeführt. + +\section{Klassifikation des Patenttrends in die Patentphasen} +\label{classification_implementierung} + +Bei der Klassifikation soll für einen einzelnen Patenttrend basierend auf den Phasendefinitionen~\ref{phasen} geprüft werden, in welcher Phase sich dieser Trend zu einem beliebigen Zeitpunkt befindet. +Hierzu wird ein Klassifikationsmodell trainiert, welches diese Aufgabe löst. +Hierfür müssen zwei Aufgaben erledigt werden. +Zum einen müssen die Trainingsdaten erzeugt werden und zum anderen muss das Modell erstellt und anschließend trainiert werden. + +\subsection{Trainingsdaten} +\label{traindata} + +Um die Trainingsdaten für das Klassifikationsmodell zu erzeugen, müssen alle stabilisierten Trends~\ref{stabil} entsprechend der definierten Phasen~\ref{phasen} annotiert werden. +Dies bedeutet, dass auf jedem der Trends markiert werden muss, zu welchem Zeitpunkt welche Phase beginnt und wann diese wieder endet. + +Um die Annotationen anzufertigen, wird zuerst ein automatisierter Ansatz implementiert, welcher die Annotationen erstellt. +Das automatisierte Annotieren besteht aus drei Schritten. +Als Erstes wird der universelle Trendverlauf manuell annotiert. +Als Zweites werden die \emph{Warping-Pfade} der stabilisierten Trends zum universellen Trendverlauf mittels \ac{dtw}~\ref{dtw} bestimmt. +Als Drittes werden die Annotationen des universellen Trends entsprechend ihrer \emph{Warping-Pfade} auf die einzelnen Trends übertragen. +Dieser Annotationsansatz ermöglicht ein schnelles Annotieren der Einzeltrends. +Jedoch ergeben sich hierbei zwei Probleme. +Zum Einen führt die Annotationsübertragung zu einer Verletzung der Annotationsanforderungen~\ref{classification}. +So werden zum Beispiel die ersten 44 Jahre des Trends der \ac{ipc} \emph{A01B33/14} der Klasse 0 zugeordnet und das letzte Jahr der Klasse 5. +Somit liegt hier eine Verletzung der Anforderungen an die Annotationen vor. +Des Weiteren sind die optionalen Phasen nicht im universellen Trendverlauf vertreten. +Somit sind diese Phasen auch nicht in den Annotationen vorhanden und können entsprechend nicht auf die Einzeltrends übertragen werden. + +Um diese beiden Probleme zu lösen, werden die Annotationen manuell angefertigt. +Dies bedeutet, dass auf jedem der stabilisierten Trends einzeln die Starts und die Enden jeder Phase markiert werden müssen. +Für dieses manuelle Annotieren ist ein Tool zur manuellen Annotation von Zeitreihen notwendig, welches Methoden bietet, um die einzelnen Phasenstarts und -enden jeder Phase manuell auf jedem Trend einzutragen und diese abzuspeichern. +Zudem soll das Tool die Einhaltung der Annotationsanforderungen überprüfen. +Es wird ein Programm implementiert, welches die eben genannten Funktionen mitsamt einer grafischen Benutzeroberfläche zur Verfügung stellt. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/label_bird.png} + \caption{Benutzeroberfläche des Annotationstools} + \label{fig9} +\end{figure} + +Abbildung~\ref{fig9} zeigt einen Bildausschnitt der Benutzeroberfläche des implementierten Annotationstools. +Das Programm bietet die folgenden Funktionen: +Der Hauptteil des Fensters zeigt den aktuell zu annotierenden Trend. +Aus ihm können die Starts und Enden der Phasen durch ein einfaches Klicken markiert werden. +Die gesetzten Annotationen werden zur besseren Visualisierung direkt über dem Trend eingeblendet. +Rechts im Fenster stehen Informationen zu den jeweiligen Klassennummern. +Unter der Trendabbildung kann die Klasse der nächsten Annotation über Buttons gewählt werden. +Zudem gibt es die Möglichkeit, wenn eine Annotation fehlerhaft gesetzt wurde, die Annotation für diesen Trend von vorne zu beginnen. +Über den \emph{Save Segments}-Button kann der fertig annotierte Trend abgespeichert werden. +Bevor die Annotationen tatsächlich abgespeichert werden, wird zuerst geprüft, ob die Annotationsanforderungen eingehalten wurden. +Sollte dies nicht der Fall sein, so wird eine Fehlermeldung mit der Verletzung ausgegeben und der Fehler muss korrigiert werden. +Nach dem Speichern wird der nächste Trend in das Fenster geladen. + +\subsection{Modell} +\label{modeltraining} + +Das Klassifikationsmodell soll dazu verwendet werden können, um zu bestimmen, in welcher Phase~\ref{phasen} sich ein Trend zu einem beliebigen Zeitpunkt befindet. +Hierzu müssen als Erstes die Trainingsdaten erweitert werden. +Als Erstes werden die einzelnen Trends zum Ende jeder Phase beginnend ab Jahr Null geteilt. +Somit entstehen aus jedem Trend mehrere Subtrends. +Wenn Phase 0 von Jahr 0 bis ins Jahr 10 verläuft, so sind diese Jahre der erste Subtrend. +Verläuft Phase 1 von Jahr 11 bis in das Jahr 15, so geht dieser Teiltrend von Jahr 0 bis ins Jahr 15 des Originaltrends. +Dies wird für jede Phase und jeden stabilisierten Trend~\ref{stabil} einzeln durchgeführt. +Damit alle Subtrends die gleiche Länge besitzen, wird \emph{Padding} angewendet. +Hierbei werden diese Subtrends mit vorne angehängten Nullen auf eine Länge von 45 aufgestockt. +Das zu lernende Label für jeden dieser Trends ist die Klasse, welche dieser Trend in seinem letzten Jahr laut den erstellten Annotationen inne hat. +Hierbei wird zwischen den normalen Labeln und den \emph{Soft-Labeln} unterschieden. +Ein \emph{Soft-Labeln} ist das Label eines Subtrends, für welchen mehr als eine einzelne Klasse korrekt ist. +Dies kann zum Beispiel dann eintreten, wenn vor dem Peak lediglich Nullen stehen. +Hierbei wäre die Trendabfolge 0, 0, 0 und dann der Peak. +In diesem Fall beginnt die Steigungsphase im letzten Jahr mit einer Null und endet ein Jahr später in dem Jahr des Peaks. +Dieses Folgejahr ist jedoch ebenfalls die Peakphase. +Somit hätte dieses Jahr zwei akzeptierte Klassen als Label. +Dieses Label wird im folgenden \emph{Soft-Label} genannt. +Von allen Labeln besitzen lediglich $1,27\%$ ein \emph{Soft-Label} mit mehr als einem Label. +Für das nachfolgende Training und die Evaluation wird das gesamte Datenset mit einem $80/20$-Split geteilt, wobei $80\%$ des Datenset für das Training und die restlichen $20\%$ für die Evaluation verwendet werden. + +Als nächstes muss für die Klassifikation ein passendes Modell gewählt werden. +Hierfür werden mehrere unterschiedliche Modelle ausprobiert und getestet, um das beste Modell zu finden. +An dieser Stelle ist anzumerken, dass alle nachfolgend genannten Parameter so optimiert werden, dass eine möglichst hohe Genauigkeit erreicht wird. +Das erste Modell ist der \emph{Rocket Classifier}~\ref{rocket} mit $2.000$ Kerneln. +Dieses Modell erreicht eine Genauigkeit~\ref{accuracy} von $0,881$. +Das zweite Modell ist der \emph{Hydra Classifier}~\ref{hydra}. +Dieses Modell kann nicht abschließend trainiert werden, da der Speicherbedarf den zur Verfügung stehenden Speicher von $128 ~\mathrm{GB}$ übersteigt. +Als Drittes wird das \emph{HIVE COTE V2}-Modell~\ref{hc2} getestet. +Hiermit kann eine Genauigkeit von $0,877$ erreicht werden. +Das nächste Modell ist der \emph{TimeCNNClassifier}~\ref{time_cnn}. +Dieses Modell wird mit 2 Schichten und der \emph{Sigmoid-Aktivierungsfunktion} verwendet. +Zudem beinhaltet das Training den \emph{Adam-Optimizer} und umfasst 500 Epochen. +Der \emph{TimeCNNClassifier} kann eine Genauigkeit von $0,889$ erreichen. +Als nächstes wird der \emph{Catch22Classifier}~\ref{catch22} getestet. +Dieses Modell erreicht eine Genauigkeit von $0,779$. +Als letztes Modell wird ein \ac{lstm}-Modell~\ref{lstm} trainiert. +Für das Training des \ac{lstm}s werden die Label in eine \emph{One-Hot-Encoding}-Darstellung umgewandelt. +Die Architektur des \ac{lstm} besteht aus vier Schichten. +Die ersten drei Schichten sind \ac{lstm}-Schichten mit $128$, $128$ und $256$ Neuronen. +Die vierte Schicht ist eine \emph{Dense}-Schicht mit neun Neuronen und einer \emph{Softmax-Aktivierungsfunktion}. +Diese letzte Schicht fungiert als Ausgabeschicht des Modells und hat ein Neuron je Klasse. +Als Fehlerfunktion wird die \emph{kategorische Kreuzentropie} (englisch: \emph{categorical crossentropy}) verwendet, mit der Genauigkeit als zusätzliche Metrik. +Für das Training wird der \emph{Adam-Optimizer} mit einer \emph{Learning Rate} von $0,001$ verwendet. +Das Training selbst läuft über acht Epochen. +Das \ac{lstm}-Modell erreicht eine Genauigkeit von $0,913$. + +Da das \ac{lstm}-Modell die höchste Genauigkeit aufweist, wird nachfolgend nur noch mit diesem Modell gearbeitet. +Um die Genauigkeit weiter zu steigern, wird das Datenset mit zwei weiteren Features erweitert. +Zu diesen Features gehört die Längenangabe, wie lang der Subtrend vor dem \emph{Padding} war. +Zudem wird die Information mit hinzugefügt, welche Phasenklasse der Subtrend in jedem einzelnen Jahr besitzt. +Die durch das \emph{Padding} vorne angehangenen Nullen werden alle der Klasse Null zugeordnet. +Mit dem erweiterten Datenset erreicht das \ac{lstm}-Modell eine Genauigkeit von $0,917$. + +Das trainierte Modell klassifiziert die Patenttrends mit einer Genauigkeit von $0,917$ zum Ende jeder Phase. +Das Problem hierbei ist, dass die Trends zu jedem beliebigen Zeitpunkt klassifiziert werden sollen, also auch, wenn sich ein Trend am Anfang oder mitten in einer Phase befindet. +Wenn die Trends zu jedem beliebigen Zeitpunkt klassifiziert werden, dann sinkt die erreichte Genauigkeit auf $0,38$ ab. +Um diese Problematik zu beheben, wird das Modell erneut trainiert. +Dieses Mal werden die Subtrends nicht zum Ende einer jeden Phase, sondern für jedes nachfolgende Jahr erstellt. +Die hierdurch entstehenden sequentiellen Subtrends umfassen dabei die Jahre $0-1, 0-2, \ldots, 0-44$. +Somit entstehen aus einem stabilisierten Trend 44 Subtrends. +Das Datenset umfasst nun $403.821$ Subtrends. +Die Architektur des \ac{lstm}-Modells wird auf insgesamt sechs Schichten erweitert. +Die ersten vier Schichten sind \ac{lstm}-Schichten mit $128$, $128$, $256$ und $256$ Neuronen. +Die fünfte Schicht ist eine \emph{Dense}-Schicht mit $128$ Neuronen und der \emph{ReLU-Aktivierungsfunktion}. +Die letzte Schicht, welche als Ausgabeschicht fungiert, ist eine \emph{Dense}-Schicht mit $9$ Neuronen und der \emph{Sigmoid-Aktivierungsfunktion}. +Als Fehlerfunktion wird dieses Mal die \emph{binäre Kreuzentropie} (englisch: \emph{binary crossentropy}) verwendet. +Alle weiteren Parameter sind identisch zum ersten \ac{lstm}-Modell. +Die \emph{binäre Kreuzentropie} in Kombination mit der \emph{Sigmoid-Aktivierungsfunktion} betrachtet die neun Klassen getrennt voneinander. +Somit wird für jede mögliche Klasse eine eigene unabhängige Klassifikation durchgeführt. +Dabei wird von dem Modell für jede Klasse eine Wahrscheinlichkeit berechnet, die angibt, ob der Eingabetrend zu der jeweiligen Klasse gehört oder nicht. +Als endgültiges Klassifikationsergebnis wird die Klasse gewählt, welche die höchste Wahrscheinlichkeit aufweist. +Eine Klassifikation ist korrekt, wenn das Klassifikationsergebnis in dem zu diesem Subtrend gehörenden \emph{Soft-Label} vorhanden ist. +Das erweiterte \ac{lstm}-Modell erreicht eine Genauigkeit von $0,705$ auf den sequentiellen Subtrends. + +\section{Vorhersagen für zukünftige Patenttrends} +\label{predictions_implementierung} + +Bei den Vorhersagen von zukünftigen Patenttrends sollen zukünftige Werte eines Trends vorhergesagt werden. +Hierbei soll ein Trend beliebiger Länge als Input dienen und beliebig weit in die Zukunft vorhergesagt werden. +Um dies zu erreichen, wird ein \ac{lstm}-Modell~\ref{lstm} trainiert. +Als Datenset für das Training und die Evaluation wird das erweiterte Datenset wie bei der Klassifikation verwendet. +Dieses Mal besteht das Label jedoch nicht aus einer Klassennummer, sondern aus dem Wert, welcher im nachfolgenden Jahr vorliegt und durch das trainierte Modell vorhergesagt werden soll. +Die Architektur des Modells besteht für die Vorhersagen aus vier Schichten. +Zuerst drei \ac{lstm}-Schichten mit $128$, $128$ und $256$ Neuronen. +Und zum Schluss eine \emph{Dense}-Schicht mit einem Neuron und der \emph{ReLU-Aktivierungsfunktion}, welche als Ausgabeschicht fungiert. +Als Fehlerfunktion wird der \ac{mse}~\ref{mse} verwendet, mit dem \ac{mae}~\ref{mae} als zusätzliche Metrik. +Für das Training wird der \emph{Adam-Optimizer} mit einer \emph{Learning Rate} von $0,0001$ verwendet. +Das Training selbst läuft über acht Epochen. +Das hierdurch trainierte Modell wird verwendet, um für einen Eingabetrend den Wert für das nächste Jahr vorherzusagen. +Wenn mehrere Jahre vorhergesagt werden sollen, dann wird zunächst das erste Jahr vorhergesagt. +Dieses vorhergesagte Wert wird anschließend an den Eingabetrend hinten angehängt und das \emph{Padding} vorne wird um ein Jahr verkürzt. +Der nun entstandene neue Trend wird als neuer Eingabetrend für die nächste Vorhersage verwendet. +Somit können Werte beliebig viele Jahre in die Zukunft vorhergesagt werden. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter6.tex b/research/tech_forecasting/thesis/content/chapters/chapter6.tex new file mode 100644 index 0000000..4eaf3cc --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter6.tex @@ -0,0 +1,292 @@ +\chapter{Evaluation} +\label{evaluation} + +In dem folgenden Teil der Arbeit wird die Evaluation dargelegt. + +Die Anforderung der systematischen Extraktion von stabilisierten Patenttrends wurde mittels der Implementierung der Pipeline erfüllt~\ref{stabil}. +Ebenso wurde die Anforderung erfüllt, den Lebenszyklus der Patente in Phasen zu unterteilen und diese mit Definitionen zu beschreiben~\ref{phasen}. + +Die restlichen Anforderungen werden im Folgenden näher betrachtet. + +\section{Erzeugung des universellen Trendverlaufs} +\label{universell_evaluation} + +Mittels der Anwendung von \ac{dba} wurde ein universeller Trendverlauf ermittelt, welcher die Menge aller stabilisierten Trends~\ref{stabil} auf einen einzigen Trendverlauf abbildet~\ref{universell_implementierung}. +Der ermittelte Trend ist in Abbildung~\ref{fig6} dargestellt. +Die Pflichtphasen 1, 2, 3, 4 und 7 sind in dem Verlauf eindeutig zu erkennen. +Um den Verlauf noch einmal zu bestätigen, wurde sowohl ein \ac{gmm} als auch ein \ac{lstm}-Modell trainiert. +Der ermittelte Trend des \ac{gmm}s ist in Abbildung~\ref{fig7} dargestellt. +Im Gegensatz zum zuvor gefundenen Verlauf sind im \ac{gmm}-Verlauf ebenfalls die Phasen des optionalen Peaks 5a, 5b und 5c erkennbar. +Zudem sind die Längen und Höhen der einzelnen Phasen unterschiedlich. +Der grundlegende Verlauf ist jedoch identisch zu dem \ac{dba}-Verlauf, nur mit dem Zusatz des optionalen Peaks. +Somit bestätigt das \ac{gmm} den \ac{dba}-Verlauf. +Der ermittelte Trend des \ac{lstm}-Modells ist in Abbildung~\ref{fig8} dargestellt. +Lediglich die Längen und Höhen der einzelnen Phasen unterscheiden sich vom \ac{dba}-Verlauf. +Der grundlegende Verlauf ist jedoch identisch zu dem \ac{dba}-Verlauf. +Somit bestätigt auch das \ac{lstm}-Modell den \ac{dba}-Verlauf. +Des Weiteren wurde der ermittelte Verlauf durch eine manuelle Sichtung der stabilisierten Trends mit dem \ac{dba}-Trend verglichen, um zu kontrollieren, dass der gefundene Trendverlauf die Menge aller Trends gut abbildet. +Hierbei wurden die Einzeltrends betrachtet und visuell mit dem \ac{dba}-Verlauf verglichen, ob die Pflichtphasen~\ref{phasen} aus dem \ac{dba}-Verlauf auf den Einzeltrend übertragen werden können. + +Der Umstand, dass der optionale Peak durch den \ac{dba}- und den \ac{lstm}-Verlauf nicht mit abgebildet wurde, ist darauf zurückzuführen, dass gerade einmal $17\%$ aller $2.774$ stabilisierten Patenttrends überhaupt einen optionalen Peak aufweisen~\ref{phasen}. +Da der \ac{gmm}-Trend diesen optionalen Peak im Vergleich zu den anderen beiden Verläufen zusätzlich mit abbildet, ist der \ac{gmm}-Verlauf mit Blick auf die definierten Phasen~\ref{phasen} die vollständigere Abbildung der gesamten Menge aller stabilisierten Patenttrends~\ref{stabil}. +Der Umstand, dass die optionale Steigungsphase~\ref{phasen} in keinem der drei Trendverläufe zu finden ist, liegt daran, dass lediglich $46$ aller Trendverläufe~\ref{phasen} diese Phase aufweisen. + +Schlussendlich lässt sich sagen, dass der ermittelte universelle Trendverlauf die Menge aller stabilisierten Patenttrends gut abbildet, da dieser von drei unterschiedlichen und unabhängigen Methoden ermittelt und bestätigt wurde. + +\section{Abbildung des universellen Trendverlaufs} +\label{abbildung_evaluation} + +Der gefundene universelle Trendverlauf soll mathematisch und modellbasiert abgebildet werden. +Die modellbasierte Abbildung ist durch das Trainieren der Modelle, dem \ac{gmm}~\ref{abbildung} und dem \ac{lstm}-Modell~\ref{abbildung}, erfüllt. +Die Abbildung mittels einer mathematischen Funktion wird im Folgenden beschrieben. + +\subsection{Methode} + +Um den universellen Patentverlauf mathematisch abzubilden, wurden zwei Funktionen, eine Polynomfunktion und eine Funktion bestehend aus mehreren gaußschen Funktionen, aufgestellt~\ref{abbildung}. +Um diese Funktionen zu evaluieren, wurde der Fehler zwischen dem gefundenen universellen \ac{dba}-Verlauf und den aufgestellten Funktionen berechnet. +Hierzu wurden drei unterschiedliche Fehlermetriken verwendet. +Diese Metriken sind der \emph{R-Quadrat}~\ref{r2}, der \ac{rmse}~\ref{rmse} und der \ac{mae}~\ref{mae}. + +\subsection{Ergebnisse} +\label{abbildung_evaluation_ergebnisse} + +Die Fehler der Polynomfunktion sind $\mathrm{R^2}=0,074$, $\mathrm{RMSE}=0,487$ und $\mathrm{MAE}=0,312$. +Die Funktion der Kombination der gaußschen Funktionen hat Fehler von $\mathrm{R^2}=0,997$, $\mathrm{RMSE}=0,275$ und $\mathrm{MAE}=0,164$. + +\subsection{Diskussion} + +Die mathematische Abbildung des universellen Trendverlaufs mittels der Kombination der gaußschen Funktionen ist besser als die Abbildung mittels der Polynomfunktion. +Dies ist durch die errechneten Fehler belegt, welche bei den gaußschen Funktionen bessere Werte aufweisen~\ref{abbildung_evaluation_ergebnisse}. + +Im Vergleich zwischen den mathematischen und den modellbasierten Abbildungen sollten die modellbasierten bevorzugt werden, da diese eine detailliertere Abbildung ausgeben. +So bildet das \ac{gmm} zusätzlich noch den optionalen zweiten Peak mit ab. + +\section{Klassifikation des Patenttrends in die Patentphasen} +\label{classification_evaluation} + +Bei der Klassifikation soll für einen einzelnen Patenttrend basierend auf den Phasendefinitionen~\ref{phasen} geprüft werden, in welcher Phase sich dieser Trend zu einem beliebigen Zeitpunkt befindet. +Hierzu wurde ein \ac{lstm}-Klassifikationsmodell trainiert~\ref{classification_implementierung}. +Die Evaluation dieses Modells wird im Folgenden beschrieben. + +\subsection{Methode} + +Um das \ac{lstm}-Klassifikationsmodell zu evaluieren, wurde die Genauigkeit~\ref{accuracy} der Klassifikationsergebnisse berechnet. +Die Genauigkeit sagt aus, wie viele von allen getroffenen Klassifikationen richtig klassifiziert wurden. +Für die Evaluation wurde hierbei der sequentielle Testdatensatz~\ref{modeltraining} verwendet, welcher $20\%$ des gesamten Datensatzes enthält. +Die gesamte Evaluation umfasst hierbei drei Teilevaluationen. +Als Erstes wurde der gesamte Testdatensatz evaluiert, um die Gesamtgenauigkeit zu ermitteln. +Als Nächstes wurde der Testdatensatz in zwei Untertestdatensätze unterteilt. +Einmal alle Testtrends des Testdatensatzes, deren Peaks unter zehn liegen, und einmal alle Testtrends, deren Peaks bei zehn oder höher liegen. +Für diese beiden Untertestdatensätze wurde ebenfalls eine Evaluation durchgeführt und die Genauigkeit bestimmt. +Die zweite Evaluation überprüft, ob das \ac{lstm}-Klassifikationsmodell, abhängig von der Höhe des Peaks des zu evaluierenden Patenttrends, unterschiedlich performant ist. +Die dritte Evaluation bestimmt die Genauigkeit für jede einzelne Klasse getrennt voneinander. +Hierfür wurde der Testdatensatz in neun Untertestdatensätze nach den Klassen entsprechend sortiert aufgeteilt. +Jede dieser neun Untertestdatensätze wurde einzeln evaluiert. +Hierbei wurde zum einen wieder die Genauigkeit berechnet, zum anderen wurde hier auch überprüft, welchen Klassen die fehlerhaft klassifizierten Klassifikationen zugeordnet wurden. +Diese Evaluation dient dem Zweck, um zu überprüfen, ob das Modell für jede Klasse gleich gut abschneidet. +Zudem wird überprüft, ob bei den fehlerhaften Klassifikationen Muster auftreten. + +\subsection{Ergebnisse} + +Die Gesamtgenauigkeit nach der ersten Teilevaluation auf dem gesamten sequentiellen Testdatensatz liegt bei $0.705$. +Dies bedeutet, dass von allen Testfällen $70,5\%$ richtig klassifiziert wurden. + +Die Ergebnisse der zweiten Teilevaluation zeigen, dass das \ac{lstm}-Klassifikationsmodell, abhängig von der Höhe der Peaks, unterschiedlich gut klassifiziert. +So liegt die Genauigkeit bei den Patenttrends, welche einen Peak von unter neun besitzen, bei $0,66$. +Die Genauigkeit von Trends mit einem Peak von zehn oder höher liegt jedoch bei $0,835$. +Somit ist die Genauigkeit bei Trends mit höheren Peaks um $0,175$ besser als bei Trends mit niedrigeren Peaks. + +Die Ergebnisse der dritten Teilevaluation sind nachfolgend tabellarisch aufgelistet. + +\begin{table}[htb!] + \centering + \begin{tabular}{l|l} + Klasse & Genauigkeit \\ + \toprule + 1 & $0,612$ \\ + 2 & $0,076$ \\ + 3 & $0,78$ \\ + 4 & $0,828$ \\ + 5a & $0,154$ \\ + 5b & $0,414$ \\ + 5c & $0,645$ \\ + 6 & $0,564$ \\ + 7 & $1,0$ \\ + \midrule + Gesamt & $0,705$ \\ + \bottomrule + \end{tabular} + \caption{\label{tab1}Ergebnisse der dritten Teilevaluation des \ac{lstm}-Klassifikationsmodells: Genauigkeit der Klassifikationsergebnisse unterteilt in die einzelnen Klassen} +\end{table} + +Tabelle~\ref{tab1} zeigt die Genauigkeit der Klassifikationsergebnisse des \ac{lstm}-Klassifikationsmodells unterteilt in die einzelnen Klassen. +Hier ist zu erkennen, dass die einzelnen Klassen nicht gleich performant klassifiziert wurden. +So wurde die Klasse $7$~\ref{phasen} zu $100\%$ korrekt klassifiziert, wohingegen die Klasse $2$ lediglich in $7,6\%$ der Fälle korrekt klassifiziert wurde. +Ebenfalls ist ersichtlich, dass die Steigungsklassen mit $7,6\%$ und $15,4\%$ die Gesamtgenauigkeit nach unten ziehen. +Des Weiteren ist erkennbar, dass die Klassen der optionalen Phasen, im Vergleich zu den Pflichtklassen, mit Ausnahme von den Steigungsklassen $2$ und $5a$ weniger oft korrekt klassifiziert wurden. +So wurden die optionalen Klassen zwischen $41,4\%$ und $64,5\%$ der Fälle richtig klassifiziert, wobei die optionale Steigungsklasse $5a$ mit $15,4\%$ als Ausreißer unter den optionalen Klassen zu betrachten ist. +Hingegen liegen die Pflichtklassen zwischen $61,2\%$ und $100\%$, wobei die Steigungsklasse $2$ mit $7,6\%$ als Ausreißer unter den Pflichtklassen zu betrachten ist. + +\begin{table}[htb!] + \centering + \begin{tabular}{l|l|l|l|l|l|l|l|l|l} + Klasse & ZzK 1 & ZzK 2 & ZzK 3 & ZzK 4 & ZzK 5a & ZzK 5b & ZzK 5c & ZzK 6 & ZzK 7 \\ + \toprule + 1 & $2.734$ & $11$ & $1.619$ & $101$ & $0$ & $0$ & $0$ & $0$ & $0$ \\ + 2 & $581$ & $488$ & $9.365$ & $1.640$ & $1$ & $22$ & $2$ & $0$ & $0$ \\ + 3 & $460$ & $391$ & $9.713$ & $1.793$ & $2$ & $22$ & $6$ & $0$ & $0$ \\ + 4 & $21$ & $183$ & $2.552$ & $14.912$ & $58$ & $104$ & $169$ & $4$ & $5$ \\ + 5a & $1$ & $67$ & $454$ & $900$ & $378$ & $1.072$ & $42$ & $5$ & $0$ \\ + 5b & $0$ & $59$ & $425$ & $870$ & $311$ & $1.277$ & $71$ & $2$ & $0$ \\ + 5c & $0$ & $3$ & $46$ & $1.075$ & $17$ & $115$ & $2.307$ & $11$ & $1$ \\ + 6 & $1$ & $0$ & $15$ & $100$ & $0$ & $11$ & $29$ & $202$ & $0$ \\ + 7 & $0$ & $0$ & $0$ & $0$ & $0$ & $0$ & $0$ & $0$ & $24.966$ \\ + \bottomrule + \end{tabular} + \footnotesize\textbf{Abkürzungen:}\begin{labeling}[~--]{ZzK} + \centering + \item[ZzK] \textbf{Z}uordnung \textbf{z}ur \textbf{K}lasse + \end{labeling} + \caption{\label{tab2}Ergebnisse der dritten Teilevaluation des \ac{lstm}-Klassifikationsmodells: Angabe, wie oft eine Klasse welcher Klasse zugeordnet wurde} +\end{table} + +Tabelle~\ref{tab2} zeigt durch Angabe der Zuordnung zur Klasse, wie oft welche Klasse welcher Klasse zugeordnet wurde. +So ist zu erkennen, dass die Trends der Klasse $2$ in den meisten Fällen als Klasse $3$ klassifiziert wurden. +Ebenso wurde die Klasse $5a$ in den meisten Fällen als Klasse $5b$ klassifiziert. +Somit wurden die Klassen der Steigungsphasen eher den nachfolgenden Peakphasen zugeordnet. +Des Weiteren ist erkennbar, dass die optionalen Klassen in etwa $1/3$ der Fälle als Klasse $4$ klassifiziert wurden. + +\subsection{Diskussion} + +In $70,5\%$ der Testfälle klassifizierte das \ac{lstm}-Modell die korrekte Phase. +Dieses Ergebnis ist in Anbetracht des Umstandes, dass zwischen neun Klassen unterschieden werden muss, ein guter Wert. +Es gab jedoch Unterschiede in den Ergebnissen zwischen den einzelnen Klassen. + +So war die erreichte Genauigkeit der Pflichtklassen im Durchschnitt höher als die der optionalen Klassen. +Dies ist darauf zurückzuführen, dass die optionalen Klassen im Datenset weniger oft vertreten sind. +So beinhalten lediglich $17\%$ der $2.774$ Patenttrends einen optionalen zweiten Peak. +Die optionale Steigungsphase, die Phase $6$, ist in nur $46$ der Trends gegeben. +Zudem sind die optionalen Phasen kürzer als die Pflichtphasen. +Diese beiden Aspekte führen dazu, dass sowohl im Trainingsdatensatz als auch im Testdatensatz die optionalen Klassen weniger stark vertreten waren. +Dies führte im Training dazu, dass die optionalen Klassen weniger gut durch das Modell erlernt wurden. +Hierdurch erklärt sich, warum die Pflichtklassen häufiger korrekt klassifiziert wurden als die optionalen Klassen. + +Des Weiteren liegt die erreichte Genauigkeit der Steigungsphasen $2$ und $5a$ mit $7,6\%$ und $15,4\%$ weit unter der Gesamtgenauigkeit von $70,5\%$. +Dies bedeutet, dass die Klassifikation der Steigungsphasen vor den Peaks weniger gut als die restlichen Klassen funktionierte. +Tabelle ~\ref{tab2} zeigt, dass diese Klassen in der Regel als die Klassen der nachfolgenden Peakphasen klassifiziert wurden. +Erkennbar ist dies dadurch, dass Klasse $2$ mit $9.365$ Zuordnungen größtenteils der Klasse $3$ und die Klasse $5a$ mit $1.072$ Zuordnungen größtenteils der Klasse $5b$ zugeordnet wurde. +Dies deutet darauf hin, dass das \ac{lstm}-Modell während des Trainings gelernt hat, dass der höchste Wert der Eingabezeitreihe der Peakklasse entspricht. +Hierdurch werden die Steigungsphasen eher als Peak klassifiziert, da das Ende der Steigungsphase des zu klassifizierenden Trendabschnitts in den meisten Fällen der höchste Punkt der Zeitreihe ist. + +\section{Vorhersagen für zukünftige Patenttrends} +\label{prediction_evaluation} + +Bei den Vorhersagen von zukünftigen Patenttrends sollen zukünftige Werte eines Trends vorhergesagt werden. +Hierbei soll ein Trend beliebiger Länge als Input dienen und beliebig weit in die Zukunft vorhergesagt werden. +Hierzu wurde ein \ac{lstm}-Vorhersagemodell trainiert~\ref{predictions_implementierung}. +Die Evaluation dieses Modells wird im Folgenden beschrieben. + +\subsection{Methode} + +Um das \ac{lstm}-Vorhersagemodell zu evaluieren, wurden zuerst mehrere Metriken berechnet. +Diese Metriken sind der \ac{mae}~\ref{mae}, der \ac{mse}~\ref{mse} und der \ac{rmse}~\ref{rmse}. +Problematisch an den verwendeten Metriken ist, dass diese einen absoluten Fehler bestimmen. +Dieser ist jedoch in Anbetracht der unterschiedlichen Peakhöhen schwer zu interpretieren. +Die Peaks der Trends liegen zwischen $3$ und $2.165$. +So wäre ein beispielhafter Fehler von $4$ bei einem Wert von $2.000$ ein sehr gutes Ergebnis, wohingegen derselbe Fehler bei einem Wert $3$ ein sehr schlechtes Ergebnis darstellen würde. +Um diese Abhängigkeit zwischen dem Fehler und dem zugehörigen Wert zu unterbinden, wurde stattdessen der \ac{smape}~\ref{smape} als Fehlermetrik berechnet. +Der \ac{smape} berechnet einen prozentualen Fehler, welcher einfacher zu interpretieren ist. +Für die Evaluation wurde hierbei der sequentielle Testdatensatz~\ref{predictions_implementierung} verwendet, welcher $20\%$ des gesamten Datensatzes enthält. +Die gesamte Evaluation umfasst zwei Teilevaluationen. +Als Erstes wurde der gesamte Testdatensatz evaluiert, um den Gesamtfehler zu ermitteln. +Als Zweites wurde der Testdatensatz noch einmal in Abhängigkeit der Länge der originalen Eingabetrends und der Tiefe der Ausgabejahre evaluiert. +Diese zweite detaillierte Evaluation dient dem Zweck, zu überprüfen, inwiefern die Länge des originalen Eingabetrends und die Tiefe der Ausgabejahre den Fehler beeinflussen. + +\subsection{Ergebnisse} + +Die Gesamtfehler nach der ersten Teilevaluation auf dem gesamten sequentiellen Testdatensatz liegt bei $61,66\%$. +Dies bedeutet, dass die von dem \ac{lstm}-Vorhersagemodell getroffenen Vorhersagen im Durchschnitt um $61,66\%$ des tatsächlichen Werts von diesem Wert abwichen. + +Die Ergebnisse der zweiten Teilevaluation werden nachfolgend dargelegt. +\input{content/chapters/chapter6_tables} +Die Tabellen~\ref{tab3},~\ref{tab4}~und~\ref{tab5} zeigen die durch die zweite Teilevaluation des \ac{lstm}-Vorhersagemodells berechneten \ac{smape}-Werte. +Dabei werden die Fehler der Vorhersagen für einen Eingabetrend einer bestimmten Länge in Abhängigkeit der Tiefe der Vorhersage angegeben. +Hierbei sind die Längen der originalen Eingabetrends in den Reihen angegeben. +Die Länge gibt dabei an, wie lang der Eingabetrend vor dem \emph{Padding} war~\ref{predictions_implementierung}. +Sie kann Werte zwischen $1$ und $44$ annehmen, wobei $1$ bedeutet, dass in dem Eingabetrend lediglich $1$ Jahr mit tatsächlichen Werten beschrieben ist und die anderen Werte des Trends aus \emph{Padding} bestehen. +Die Tiefe der Vorhersagen ist in den Spalten der Tabellen angegeben. +Die Tiefe gibt an, wie viele Jahre in die Zukunft vorhergesagt wurde. +So bedeutet eine Tiefe von $5$, dass die Vorhersagen für $5$ Jahre in die Zukunft getroffen wurden. +Dabei deckt Tabelle~\ref{tab3} die Tiefen $1$ bis $18$, Tabelle~\ref{tab4} die Tiefen $19$ bis $36$ und Tabelle~\ref{tab5} die Tiefen $37$ bis $44$ ab. +Alle Angaben sind als die prozentuale Differenz zwischen dem tatsächlichen Wert und der Vorhersage ausgehend vom tatsächlichen Wert zu verstehen. +In dem Feld der Reihe $1$ und Spalte $2$ ist der \ac{smape} angegeben, welcher bei der Evaluation für die Vorhersagen für zwei Jahre in die Zukunft mit einem Eingabetrend mit der originalen Länge von eins errechnet wurde. +Die leeren Felder in der Tabelle liegen außerhalb der Evaluation. +Da die maximale Länge der originalen Trends bei $45$ liegt, kann die Evaluation nur in diesen Jahren stattfinden. +Wenn der Eingabetrend bereits 44 Jahre umfasst, kann hier nur noch die Vorhersage für ein Jahr in die Zukunft evaluiert werden. +Die restlichen Felder dieser Reihe in der Tabelle sind entsprechend leer. + +In den Tabellen~\ref{tab3},~\ref{tab4}~und~\ref{tab5} ist einsehbar, dass der in der Evaluation minimal errechnete \ac{smape} bei $24,0\%$ und der maximal errechnete \ac{smape} bei $134,6\%$ liegt. +Des Weiteren ist erkennbar, dass der Fehler von der Länge des originalen Eingabetrends und der Tiefe der Vorhersagen abhängt. +So sinkt der Fehler bei zunehmender Eingabelänge. +Des Weiteren steigt der Fehler in Abhängigkeit von der Vorhersagentiefe zunächst an und fällt später wieder ab. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/error_sorted_by_original_length.png} + \caption{Minimaler und Maximaler \ac{smape} der Vorhersagen in Abhängigkeit der Länge des originalen Eingabetrends} + \label{fig10} +\end{figure} + +Abbildung~\ref{fig10} zeigt den minimalen und maximalen Fehler in Abhängigkeit von der Länge des originalen Eingabetrends. +Hier ist noch einmal erkennbar, dass der Fehler bei zunehmender Eingabelänge abnimmt. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/error_sorted_by_prediction_depths.png} + \caption{Minimaler und Maximaler \ac{smape} der Vorhersagen in Abhängigkeit der Tiefe der Vorhersagen} + \label{fig11} +\end{figure} + +Abbildung~\ref{fig11} zeigt den minimalen und maximalen Fehler in Abhängigkeit von der Tiefe der getroffenen Vorhersagen. +Hier ist noch einmal erkennbar, dass der Fehler in Abhängigkeit von der Vorhersagentiefe von Beginn an erst einmal steigt und zum Ende hin wieder abfällt. + +\subsection{Diskussion} + +Die Gesamtfehler nach der ersten Teilevaluation auf dem gesamten sequentiellen Testdatensatz liegt bei $61,66\%$. +Dieser Wert deutet darauf hin, dass die Vorhersagen ungenau sind und nicht der Realität entsprechen. +Die Ergebnisse der zweiten Teilevaluation zeigen ein detaillierteres Bild der Fehler in Abhängigkeit von der ursprünglichen Länge der Eingabesequenz und der Tiefe der Vorhersagen. + +So ist in Abbildung~\ref{fig10} zu erkennen, dass der Fehler mit zunehmender Eingabelänge sinkt. +Dies bedeutet, dass das \ac{lstm}-Modell genauere und damit bessere Vorhersagen trifft, je länger die Eingabelänge ist. +So sinkt der Fehler von $134,6\%$ bei einer Eingabelänge von $1$ auf $24,0\%$ bei einer Eingabelänge von $44$ ab. +Zudem ist erkennbar, dass der Fehler ab Jahr $36$ stärker abfällt, als in den Jahren zuvor. +Diese letzten Jahre gehören häufig zu den Jahren der Plateauphase. +Dies wiederum deutet darauf hin, dass das Ende des Lebenszyklus der \ac{ipc}s von dem Modell sehr gut vorhergesagt werden kann. + +\begin{figure}[tbh!] + \centering + \includegraphics[width=1.0\textwidth]{content/images/example_prediction.png} + \caption{Beispiel einer Vorhersage eines Trends mit einer ursprünglichen Länge von 1, wobei das Original in blau und die Vorhersage in rot abgebildet ist} + \label{fig13} +\end{figure} + +Des Weiteren zeigt Abbildung~\ref{fig11}, dass der Fehler bei zunehmender Vorhersagetiefe zunächst steigt und dann wieder fällt. +Der geringste Fehler mit $24\%$ liegt hierbei bei einer Vorhersagetiefe von einem Jahr. +Aus diesen Aspekten lassen sich mehrere Schlüsse ziehen. +So können genaue Vorhersagen getroffen werden, wenn diese im Schnitt nur bis zu sechs Jahre in die Zukunft getroffen werden sollen. +Die Komplexität der Vorhersagen steigt bei zunehmender Tiefe jedoch an, da sich der Fehler der Vorhersagen akkumuliert, wodurch tiefere Vorhersagen ungenauer werden. +Bei weiter zunehmender Vorhersagetiefe fällt der Fehler jedoch wieder ab. +Dies deutet zum einen darauf hin, dass das Ende des Lebenszyklus genau vorhergesagt werden kann. +Zum anderen deutet dies darauf hin, dass die genauen Werte des Peaks mitsamt der Steigung und Neigung nicht genau vorhergesagt werden können. +Abbildung~\ref{fig13} zeigt die Vorhersage für einen Trend mit einer ursprünglichen Länge von eins im Vergleich zum originalen Trendverlauf. +Hier ist zu erkennen, dass sowohl der Start des Trends als auch das Ende mit geringen Unterschieden zwischen den Vorhersagen und den tatsächlichen Werten vorhergesagt wurden. +Der Peak des Trends wurde jedoch mit einer Ungenauigkeit von $75\%$ vorhergesagt. +Da jedoch sowohl der Peak als auch die Steigungsphase in den richtigen Jahren vorhergesagt wurden und nur die absoluten Werte ungenau sind, ist die Tendenz der Vorhersagen dennoch korrekt. +Lediglich die Genauigkeit der Werte der Vorhersagen der Peakphase und der anliegenden Phasen ist ungenau. + +Schlussendlich lässt sich sagen, dass mit zunehmender Ursprungstrendlänge genauere Vorhersagen getroffen werden können. +Zudem lassen sich die ersten Jahre in die Zukunft nach der Eingabesequenz genau vorhersagen. +Des Weiteren kann das Ende des Lebenszyklus einer \ac{ipc} genau vorhergesagt werden. +Lediglich der Peak mitsamt vorheriger Steigung und nachfolgender Neigung lassen sich nicht genau vorhersagen, auch wenn die Tendenzen der Vorhersagen korrekt sein können. +Um für diese Phasen genauere Vorhersagen zu treffen, muss die zugrundeliegende Informationsbasis erweitert werden. +Das Problem der Vorhersagen ist an dieser Stelle zu komplex, um es lediglich aufgrund der Zeitreihen der Patenttrends zu lösen. diff --git a/research/tech_forecasting/thesis/content/chapters/chapter6_tables.tex b/research/tech_forecasting/thesis/content/chapters/chapter6_tables.tex new file mode 100644 index 0000000..1b0795d --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter6_tables.tex @@ -0,0 +1,297 @@ +\begin{sidewaystable}[htb!] + \centering + \tiny + \begin{tabular}{|c||c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} + \hline + & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 \\ + \hline\hline + 1 & $68,2$ & $73,4$ & $88,8$ & $94,9$ & $97,9$ & $104,4$ & $107,1$ & $110,5$ & $108,1$ & $114,5$ & $122,6$ & $126,0$ & $128,6$ & $127,7$ & $126,4$ & $128,9$ & $134,6$ & $133,1$ \\ + \hline + 2 & $78,3$ & $79,8$ & $92,6$ & $98,1$ & $103,1$ & $102,8$ & $107,2$ & $109,0$ & $113,5$ & $116,6$ & $123,3$ & $129,5$ & $121,4$ & $122,8$ & $127,8$ & $127,2$ & $126,5$ & $123,5$ \\ + \hline + 3 & $75,0$ & $79,2$ & $80,9$ & $87,8$ & $91,1$ & $96,5$ & $97,0$ & $102,4$ & $104,0$ & $110,0$ & $109,4$ & $108,6$ & $110,9$ & $111,1$ & $112,7$ & $111,3$ & $113,9$ & $108,8$ \\ + \hline + 4 & $74,1$ & $76,4$ & $80,0$ & $94,0$ & $94,1$ & $96,8$ & $102,2$ & $101,1$ & $106,6$ & $107,1$ & $107,6$ & $109,5$ & $112,2$ & $114,4$ & $117,0$ & $109,7$ & $113,5$ & $110,8$ \\ + \hline + 5 & $75,1$ & $77,7$ & $86,9$ & $88,2$ & $94,1$ & $100,9$ & $100,7$ & $102,4$ & $102,4$ & $104,2$ & $106,8$ & $109,2$ & $114,8$ & $110,1$ & $110,1$ & $113,0$ & $114,1$ & $108,5$ \\ + \hline + 6 & $78,1$ & $82,6$ & $86,9$ & $89,4$ & $91,3$ & $93,9$ & $94,8$ & $97,2$ & $100,3$ & $102,9$ & $102,6$ & $105,5$ & $109,3$ & $103,0$ & $106,1$ & $106,3$ & $103,9$ & $107,0$ \\ + \hline + 7 & $82,2$ & $80,0$ & $81,6$ & $88,2$ & $89,9$ & $91,9$ & $93,9$ & $95,4$ & $102,6$ & $98,5$ & $106,5$ & $105,7$ & $99,5$ & $104,0$ & $104,6$ & $106,6$ & $104,9$ & $108,8$ \\ + \hline + 8 & $76,0$ & $78,7$ & $84,7$ & $78,5$ & $88,8$ & $94,1$ & $93,7$ & $92,5$ & $94,6$ & $97,3$ & $97,5$ & $95,2$ & $93,0$ & $97,6$ & $97,5$ & $96,7$ & $98,1$ & $96,0$ \\ + \hline + 9 & $75,6$ & $81,7$ & $75,5$ & $81,8$ & $86,2$ & $90,0$ & $90,6$ & $94,7$ & $94,6$ & $96,0$ & $95,0$ & $96,4$ & $92,0$ & $98,3$ & $93,7$ & $96,7$ & $96,7$ & $95,7$ \\ + \hline + 10 & $75,9$ & $72,0$ & $85,1$ & $86,7$ & $88,4$ & $88,8$ & $91,0$ & $93,2$ & $94,2$ & $97,4$ & $95,9$ & $92,1$ & $91,3$ & $91,8$ & $95,5$ & $96,5$ & $93,9$ & $101,2$ \\ + \hline + 11 & $72,7$ & $73,9$ & $78,5$ & $86,8$ & $84,2$ & $87,1$ & $81,7$ & $88,2$ & $84,2$ & $85,5$ & $90,1$ & $92,7$ & $87,0$ & $94,7$ & $89,0$ & $93,3$ & $96,1$ & $100,6$ \\ + \hline + 12 & $73,3$ & $76,4$ & $78,6$ & $81,1$ & $86,4$ & $87,1$ & $85,0$ & $88,6$ & $88,9$ & $91,2$ & $89,5$ & $91,8$ & $93,4$ & $92,2$ & $90,4$ & $92,4$ & $100,9$ & $92,9$ \\ + \hline + 13 & $70,7$ & $75,9$ & $80,1$ & $80,1$ & $79,6$ & $84,9$ & $82,4$ & $84,4$ & $84,0$ & $88,4$ & $85,6$ & $87,6$ & $93,1$ & $86,3$ & $97,5$ & $96,5$ & $93,7$ & $92,9$ \\ + \hline + 14 & $80,2$ & $78,2$ & $80,4$ & $81,8$ & $83,9$ & $83,7$ & $84,6$ & $89,0$ & $87,5$ & $88,3$ & $88,9$ & $90,5$ & $92,6$ & $95,0$ & $102,1$ & $95,4$ & $94,7$ & $94,1$ \\ + \hline + 15 & $68,8$ & $72,7$ & $73,0$ & $77,7$ & $78,7$ & $81,1$ & $84,8$ & $84,6$ & $87,6$ & $85,0$ & $91,0$ & $84,4$ & $92,0$ & $91,3$ & $90,6$ & $92,1$ & $92,8$ & $92,8$ \\ + \hline + 16 & $70,5$ & $72,6$ & $75,8$ & $74,5$ & $74,1$ & $82,0$ & $85,5$ & $90,9$ & $90,4$ & $94,3$ & $87,1$ & $90,4$ & $97,3$ & $88,3$ & $95,0$ & $94,5$ & $93,6$ & $90,7$ \\ + \hline + 17 & $69,8$ & $73,3$ & $75,6$ & $76,8$ & $83,4$ & $83,5$ & $83,1$ & $85,0$ & $87,1$ & $87,6$ & $91,8$ & $94,5$ & $88,2$ & $91,0$ & $95,0$ & $89,8$ & $92,3$ & $88,9$ \\ + \hline + 18 & $66,0$ & $71,3$ & $71,9$ & $74,6$ & $83,3$ & $76,3$ & $84,2$ & $88,3$ & $90,8$ & $82,0$ & $89,2$ & $90,3$ & $96,5$ & $89,7$ & $92,2$ & $93,5$ & $97,4$ & $93,0$ \\ + \hline + 19 & $74,2$ & $71,0$ & $67,8$ & $76,4$ & $73,9$ & $77,0$ & $81,3$ & $79,1$ & $78,2$ & $87,1$ & $83,8$ & $88,1$ & $92,1$ & $91,3$ & $84,8$ & $90,7$ & $95,3$ & $92,1$ \\ + \hline + 20 & $67,2$ & $68,7$ & $73,3$ & $76,7$ & $82,3$ & $83,0$ & $75,6$ & $83,1$ & $87,8$ & $82,6$ & $83,7$ & $84,9$ & $87,1$ & $84,7$ & $88,0$ & $86,9$ & $84,4$ & $83,1$ \\ + \hline + 21 & $65,5$ & $72,5$ & $71,1$ & $75,0$ & $74,6$ & $75,8$ & $80,5$ & $83,8$ & $82,0$ & $84,1$ & $79,7$ & $89,6$ & $90,6$ & $90,4$ & $91,3$ & $88,2$ & $92,6$ & $100,2$ \\ + \hline + 22 & $74,1$ & $72,0$ & $72,9$ & $77,0$ & $77,6$ & $76,0$ & $78,9$ & $84,9$ & $81,7$ & $87,5$ & $89,6$ & $83,6$ & $89,8$ & $89,0$ & $96,1$ & $86,7$ & $94,4$ & $91,0$ \\ + \hline + 23 & $68,0$ & $69,2$ & $71,2$ & $72,1$ & $77,2$ & $81,9$ & $78,3$ & $83,7$ & $82,1$ & $82,7$ & $81,6$ & $86,0$ & $82,6$ & $79,1$ & $79,1$ & $87,3$ & $90,5$ & $69,9$ \\ + \hline + 24 & $67,3$ & $75,4$ & $73,0$ & $73,3$ & $81,4$ & $78,9$ & $81,9$ & $84,8$ & $82,9$ & $83,3$ & $86,7$ & $89,9$ & $94,4$ & $90,5$ & $96,3$ & $94,0$ & $77,0$ & $73,9$ \\ + \hline + 25 & $66,3$ & $71,7$ & $69,7$ & $72,3$ & $80,4$ & $85,2$ & $78,8$ & $83,2$ & $80,7$ & $87,4$ & $86,3$ & $85,0$ & $85,3$ & $84,5$ & $90,0$ & $66,9$ & $67,1$ & $62,8$ \\ + \hline + 26 & $61,5$ & $62,7$ & $71,0$ & $78,3$ & $81,4$ & $81,2$ & $82,4$ & $84,7$ & $91,8$ & $88,1$ & $87,2$ & $85,1$ & $86,5$ & $93,8$ & $77,1$ & $70,7$ & $68,5$ & $64,3$ \\ + \hline + 27 & $70,0$ & $70,4$ & $70,6$ & $77,3$ & $71,5$ & $78,6$ & $81,7$ & $85,2$ & $87,7$ & $84,9$ & $85,8$ & $87,7$ & $95,7$ & $71,6$ & $70,7$ & $67,7$ & $68,3$ & $66,7$ \\ + \hline + 28 & $70,8$ & $77,1$ & $81,3$ & $76,7$ & $87,9$ & $83,5$ & $86,5$ & $93,7$ & $87,3$ & $89,9$ & $91,2$ & $93,0$ & $68,8$ & $70,3$ & $68,0$ & $66,7$ & $66,2$ & \\ + \hline + 29 & $63,3$ & $72,2$ & $72,6$ & $79,1$ & $78,0$ & $78,8$ & $86,7$ & $81,3$ & $84,9$ & $86,1$ & $85,5$ & $62,7$ & $59,5$ & $62,2$ & $61,1$ & $61,5$ & & \\ + \hline + 30 & $67,0$ & $68,1$ & $80,1$ & $78,9$ & $79,6$ & $86,1$ & $78,5$ & $83,3$ & $91,2$ & $86,2$ & $69,2$ & $68,2$ & $65,5$ & $62,1$ & $61,9$ & & & \\ + \hline + 31 & $62,2$ & $73,2$ & $76,5$ & $76,5$ & $83,6$ & $80,1$ & $75,5$ & $83,5$ & $91,4$ & $70,6$ & $63,8$ & $63,7$ & $60,6$ & $60,9$ & & & & \\ + \hline + 32 & $70,5$ & $74,2$ & $79,1$ & $87,0$ & $80,0$ & $82,4$ & $88,5$ & $91,2$ & $70,4$ & $67,6$ & $64,4$ & $65,9$ & $63,3$ & & & & & \\ + \hline + 33 & $64,7$ & $74,2$ & $77,3$ & $75,4$ & $80,5$ & $84,7$ & $94,8$ & $72,7$ & $70,1$ & $66,4$ & $64,9$ & $62,1$ & & & & & & \\ + \hline + 34 & $66,4$ & $65,7$ & $73,9$ & $71,8$ & $79,9$ & $86,2$ & $65,3$ & $62,0$ & $60,8$ & $57,7$ & $56,9$ & & & & & & & \\ + \hline + 35 & $66,4$ & $67,7$ & $66,7$ & $82,4$ & $83,7$ & $62,7$ & $61,5$ & $58,4$ & $59,7$ & $57,2$ & & & & & & & & \\ + \hline + 36 & $63,6$ & $63,7$ & $70,4$ & $80,6$ & $64,8$ & $66,1$ & $63,2$ & $61,5$ & $61,0$ & & & & & & & & & \\ + \hline + 37 & $58,6$ & $73,6$ & $71,8$ & $61,7$ & $58,5$ & $57,3$ & $54,8$ & $57,2$ & & & & & & & & & & \\ + \hline + 38 & $62,0$ & $69,4$ & $53,6$ & $56,8$ & $50,6$ & $49,6$ & $50,3$ & & & & & & & & & & & \\ + \hline + 39 & $68,1$ & $48,2$ & $49,8$ & $46,4$ & $45,6$ & $44,2$ & & & & & & & & & & & & \\ + \hline + 40 & $46,4$ & $44,4$ & $39,8$ & $39,3$ & $39,4$ & & & & & & & & & & & & & \\ + \hline + 41 & $40,1$ & $32,3$ & $36,2$ & $37,9$ & & & & & & & & & & & & & & \\ + \hline + 42 & $25,8$ & $29,9$ & $30,1$ & & & & & & & & & & & & & & & \\ + \hline + 43 & $26,5$ & $25,4$ & & & & & & & & & & & & & & & & \\ + \hline + 44 & $24,0$ & & & & & & & & & & & & & & & & & \\ + \hline + \end{tabular} + \caption{\label{tab3}Ergebnisse der zweiten Teilevaluation des \ac{lstm}-Vorhersagemodells: Tabellarische Darstellung des \ac{smape} sortiert nach der Länge des originalen Eingabetrends (Reihen) und der Tiefe der Vorhersagen (Spalten)} +\end{sidewaystable} + +\begin{sidewaystable}[htb!] + \centering + \tiny + \begin{tabular}{|c||c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|} + \hline + & 19 & 20 & 21 & 22 & 23 & 24 & 25 & 26 & 27 & 28 & 29 & 30 & 31 & 32 & 33 & 34 & 35 & 36 \\ + \hline\hline + 1 & $126,8$ & $125,8$ & $127,7$ & $123,0$ & $124,3$ & $127,3$ & $125,4$ & $123,1$ & $116,8$ & $124,4$ & $121,9$ & $120,4$ & $124,8$ & $117,0$ & $120,7$ & $112,5$ & $107,1$ & $101,3$ \\ + \hline + 2 & $127,0$ & $129,0$ & $120,3$ & $125,7$ & $128,1$ & $124,9$ & $122,7$ & $120,5$ & $121,2$ & $116,7$ & $120,0$ & $117,0$ & $120,5$ & $119,3$ & $120,2$ & $112,7$ & $111,9$ & $103,8$ \\ + \hline + 3 & $115,5$ & $108,6$ & $106,6$ & $113,3$ & $110,8$ & $115,8$ & $108,3$ & $114,1$ & $114,4$ & $112,9$ & $114,9$ & $115,9$ & $111,3$ & $112,1$ & $110,7$ & $108,9$ & $106,6$ & $102,4$ \\ + \hline + 4 & $106,9$ & $110,4$ & $113,0$ & $111,2$ & $112,3$ & $115,8$ & $112,4$ & $118,3$ & $114,6$ & $118,6$ & $113,1$ & $121,2$ & $115,0$ & $113,0$ & $114,6$ & $110,1$ & $104,5$ & $102,7$ \\ + \hline + 5 & $111,5$ & $112,4$ & $111,1$ & $113,9$ & $108,8$ & $115,1$ & $115,7$ & $110,1$ & $117,6$ & $109,0$ & $109,4$ & $109,2$ & $104,1$ & $103,1$ & $105,2$ & $99,7$ & $103,2$ & $86,9$ \\ + \hline + 6 & $107,8$ & $105,8$ & $112,7$ & $110,1$ & $112,9$ & $118,0$ & $109,4$ & $113,8$ & $118,2$ & $112,7$ & $117,8$ & $113,5$ & $113,7$ & $108,2$ & $109,8$ & $106,7$ & $95,5$ & $93,5$ \\ + \hline + 7 & $103,7$ & $109,9$ & $108,2$ & $114,4$ & $113,1$ & $109,2$ & $113,2$ & $113,6$ & $110,9$ & $116,3$ & $113,4$ & $111,3$ & $109,0$ & $106,4$ & $107,1$ & $94,5$ & $89,1$ & $88,5$ \\ + \hline + 8 & $101,1$ & $99,5$ & $103,5$ & $103,3$ & $103,5$ & $104,4$ & $103,9$ & $104,9$ & $105,8$ & $105,4$ & $101,4$ & $101,0$ & $107,1$ & $106,5$ & $88,8$ & $84,7$ & $83,1$ & $76,2$ \\ + \hline + 9 & $97,3$ & $101,5$ & $101,0$ & $101,3$ & $101,7$ & $103,3$ & $103,4$ & $105,2$ & $101,9$ & $101,2$ & $96,8$ & $101,1$ & $106,8$ & $92,6$ & $89,4$ & $86,5$ & $82,8$ & $79,6$ \\ + \hline + 10 & $99,5$ & $95,0$ & $99,6$ & $97,5$ & $98,4$ & $101,7$ & $101,1$ & $99,6$ & $105,7$ & $103,7$ & $93,9$ & $102,7$ & $84,3$ & $84,0$ & $81,7$ & $78,9$ & $78,4$ & \\ + \hline + 11 & $96,6$ & $103,6$ & $103,0$ & $96,6$ & $101,3$ & $103,3$ & $101,5$ & $98,9$ & $102,6$ & $97,9$ & $102,7$ & $79,5$ & $76,1$ & $74,7$ & $71,4$ & $68,6$ & & \\ + \hline + 12 & $97,2$ & $98,8$ & $99,3$ & $101,6$ & $101,5$ & $104,3$ & $99,1$ & $101,6$ & $103,5$ & $104,3$ & $83,7$ & $78,7$ & $79,1$ & $77,8$ & $76,8$ & & & \\ + \hline + 13 & $96,2$ & $95,1$ & $98,0$ & $97,0$ & $99,8$ & $98,0$ & $99,2$ & $100,7$ & $101,2$ & $83,0$ & $84,2$ & $77,3$ & $74,0$ & $72,8$ & & & & \\ + \hline + 14 & $93,0$ & $96,4$ & $98,8$ & $99,1$ & $93,7$ & $90,8$ & $96,5$ & $98,8$ & $79,5$ & $73,6$ & $74,2$ & $68,7$ & $65,6$ & & & & & \\ + \hline + 15 & $93,8$ & $97,1$ & $98,7$ & $92,2$ & $95,6$ & $97,0$ & $95,7$ & $79,5$ & $77,9$ & $76,2$ & $74,2$ & $72,0$ & & & & & & \\ + \hline + 16 & $93,9$ & $95,6$ & $92,0$ & $89,9$ & $93,6$ & $94,6$ & $71,8$ & $71,7$ & $67,0$ & $66,7$ & $63,1$ & & & & & & & \\ + \hline + 17 & $94,1$ & $89,3$ & $90,7$ & $96,8$ & $94,6$ & $78,5$ & $79,3$ & $77,6$ & $73,3$ & $70,3$ & & & & & & & & \\ + \hline + 18 & $95,4$ & $97,5$ & $96,3$ & $103,8$ & $85,4$ & $81,9$ & $76,5$ & $74,5$ & $71,1$ & & & & & & & & & \\ + \hline + 19 & $85,6$ & $94,2$ & $95,3$ & $79,1$ & $76,0$ & $71,5$ & $71,4$ & $65,9$ & & & & & & & & & & \\ + \hline + 20 & $90,5$ & $88,4$ & $72,3$ & $70,0$ & $68,2$ & $67,8$ & $64,3$ & & & & & & & & & & & \\ + \hline + 21 & $94,7$ & $75,9$ & $74,9$ & $72,2$ & $71,5$ & $72,0$ & & & & & & & & & & & & \\ + \hline + 22 & $75,4$ & $72,9$ & $67,3$ & $67,3$ & $64,2$ & & & & & & & & & & & & & \\ + \hline + 23 & $67,9$ & $65,5$ & $61,9$ & $61,9$ & & & & & & & & & & & & & & \\ + \hline + 24 & $72,3$ & $70,6$ & $67,4$ & & & & & & & & & & & & & & & \\ + \hline + 25 & $62,3$ & $62,0$ & & & & & & & & & & & & & & & & \\ + \hline + 26 & $63,3$ & & & & & & & & & & & & & & & & & \\ + \hline + 27 & & & & & & & & & & & & & & & & & & \\ + \hline + 28 & & & & & & & & & & & & & & & & & & \\ + \hline + 29 & & & & & & & & & & & & & & & & & & \\ + \hline + 30 & & & & & & & & & & & & & & & & & & \\ + \hline + 31 & & & & & & & & & & & & & & & & & & \\ + \hline + 32 & & & & & & & & & & & & & & & & & & \\ + \hline + 33 & & & & & & & & & & & & & & & & & & \\ + \hline + 34 & & & & & & & & & & & & & & & & & & \\ + \hline + 35 & & & & & & & & & & & & & & & & & & \\ + \hline + 36 & & & & & & & & & & & & & & & & & & \\ + \hline + 37 & & & & & & & & & & & & & & & & & & \\ + \hline + 38 & & & & & & & & & & & & & & & & & & \\ + \hline + 39 & & & & & & & & & & & & & & & & & & \\ + \hline + 40 & & & & & & & & & & & & & & & & & & \\ + \hline + 41 & & & & & & & & & & & & & & & & & & \\ + \hline + 42 & & & & & & & & & & & & & & & & & & \\ + \hline + 43 & & & & & & & & & & & & & & & & & & \\ + \hline + 44 & & & & & & & & & & & & & & & & & & \\ + \hline + \end{tabular} + \caption{\label{tab4}Ergebnisse der zweiten Teilevaluation des \ac{lstm}-Vorhersagemodells: Tabellarische Darstellung des \ac{smape} sortiert nach der Länge des originalen Eingabetrends (Reihen) und der Tiefe der Vorhersagen (Spalten)} +\end{sidewaystable} + +\begin{table}[htb!] + \centering + \tiny + \begin{tabular}{|c||c|c|c|c|c|c|c|c|} + \hline + & 37 & 38 & 39 & 40 & 41 & 42 & 43 & 44 \\ + \hline\hline + 1 & $100,3$ & $98,9$ & $93,5$ & $74,6$ & $72,6$ & $73,0$ & $69,3$ & $65,9$ \\ + \hline + 2 & $101,7$ & $101,3$ & $90,4$ & $88,2$ & $84,4$ & $80,7$ & $75,5$ & \\ + \hline + 3 & $98,0$ & $83,3$ & $84,8$ & $83,5$ & $78,0$ & $77,8$ & & \\ + \hline + 4 & $89,4$ & $87,6$ & $85,8$ & $81,6$ & $81,7$ & & & \\ + \hline + 5 & $85,1$ & $83,6$ & $83,7$ & $81,1$ & & & & \\ + \hline + 6 & $94,8$ & $92,7$ & $88,2$ & & & & & \\ + \hline + 7 & $83,9$ & $81,6$ & & & & & & \\ + \hline + 8 & $74,4$ & & & & & & & \\ + \hline + 9 & & & & & & & & \\ + \hline + 10 & & & & & & & & \\ + \hline + 11 & & & & & & & & \\ + \hline + 12 & & & & & & & & \\ + \hline + 13 & & & & & & & & \\ + \hline + 14 & & & & & & & & \\ + \hline + 15 & & & & & & & & \\ + \hline + 16 & & & & & & & & \\ + \hline + 17 & & & & & & & & \\ + \hline + 18 & & & & & & & & \\ + \hline + 19 & & & & & & & & \\ + \hline + 20 & & & & & & & & \\ + \hline + 21 & & & & & & & & \\ + \hline + 22 & & & & & & & & \\ + \hline + 23 & & & & & & & & \\ + \hline + 24 & & & & & & & & \\ + \hline + 25 & & & & & & & & \\ + \hline + 26 & & & & & & & & \\ + \hline + 27 & & & & & & & & \\ + \hline + 28 & & & & & & & & \\ + \hline + 29 & & & & & & & & \\ + \hline + 30 & & & & & & & & \\ + \hline + 31 & & & & & & & & \\ + \hline + 32 & & & & & & & & \\ + \hline + 33 & & & & & & & & \\ + \hline + 34 & & & & & & & & \\ + \hline + 35 & & & & & & & & \\ + \hline + 36 & & & & & & & & \\ + \hline + 37 & & & & & & & & \\ + \hline + 38 & & & & & & & & \\ + \hline + 39 & & & & & & & & \\ + \hline + 40 & & & & & & & & \\ + \hline + 41 & & & & & & & & \\ + \hline + 42 & & & & & & & & \\ + \hline + 43 & & & & & & & & \\ + \hline + 44 & & & & & & & & \\ + \hline + \end{tabular} + \caption{\label{tab5}Ergebnisse der zweiten Teilevaluation des \ac{lstm}-Vorhersagemodells: Tabellarische Darstellung des \ac{smape} sortiert nach der Länge des originalen Eingabetrends (Reihen) und der Tiefe der Vorhersagen (Spalten)} +\end{table} + diff --git a/research/tech_forecasting/thesis/content/chapters/chapter7.tex b/research/tech_forecasting/thesis/content/chapters/chapter7.tex new file mode 100644 index 0000000..a9b5693 --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/chapter7.tex @@ -0,0 +1,87 @@ +\chapter{Diskussion} + +In diesem Kapitel wird die Arbeit abschließend diskutiert und ein Ausblick auf zukünftige Arbeiten gegeben. + +Die Definitionen der Phasen~\ref{phasen} ähneln den Phasen des \ac{ghc}~\ref{gartner}. +So kann die Phase des \emph{technologischen Auslösers} des \ac{ghc}s mit der Steigungsphase der \ac{ipc}-Trends gleichgesetzt werden. +In dieser Phase steigt das Interesse an der \ac{ipc}/ bzw. Technologie an. +Der \emph{Gipfel der überzogenen Erwartungen} des \ac{ghc} entspricht der definierten Peakphase. +In diesem Zeitraum ist die Technologie an einem Höhepunkt. +Das nachfolgende \emph{Tal der Enttäuschungen} des \ac{ghc}, in dem das Interesse an der Technologie wieder abfällt, entspricht der Neigungsphase. +Der \emph{Pfad der Erleuchtung} des \ac{ghc} kann der optionalen Steigungsphase zugeordnet werden. +In dieser Phase steigt das Interesse an der Technologie wieder an. +Die letzte Phase des \ac{ghc}, dem \emph{Plateau der Produktivität}, kann mit der Plateauphase gleichgesetzt werden. +In dieser Zeit bleibt das Interesse an der Technologie stabil. +Lediglich die Phasen des optionalen Peaks können nicht im \ac{ghc} wiedergefunden werden. +Dies ist darauf zurückzuführen, dass die angefertigten Definitionen des Patentlebenszyklus eine Technologie nur aus Sicht der Patente betrachtet und weitere Faktoren, welche im \ac{ghc} mit einbezogen werden, hier keine Beachtung erhalten. +Dennoch lässt sich sagen, dass die Phasendefinitionen~\ref{phasen} dem \ac{ghc}~\ref{gartner} gleichen. + +Im Vergleich zu den Technologieprognosen der verwandten Arbeiten~\ref{related} gibt es jedoch einige Unterschiede. +So sind Prognosen nicht immer frei zugänglich, sondern mit finanziellen Kosten verbunden~\ref{gartner}. +Zudem erfordern diese Prognosen die Mitarbeit von Experten, wodurch die Objektivität und Unabhängigkeit der Ergebnisse sinkt~\ref{gartner}. +Die in dieser Arbeit vorgestellten Methoden sind rein datenbasiert~\ref{concept} und dadurch subjektiv und unabhängig. +Des Weiteren basiert diese Arbeit lediglich auf den \ac{ipc}-Patenttrends~\ref{concept} und erfordert nicht, so wie andere Ansätze~\ref{related}, zusätzlich die Anwendung von \ac{nlp}-Methoden, welche die Komplexität der Vorhersagen steigern und damit die Fehleranfälligkeit erhöhen. +Zudem sind die Methoden dieser Arbeit unabhängig der Zitationen anwendbar~\ref{concept}, was die Anwendbarkeit steigert. +Zuletzt wurden die Evaluationen auf einem kompletten Datensatz durchgeführt~\ref{evaluation} und nicht nur auf einem kleinen Teilgebiet, so wie es in anderen Publikationen der Fall ist~\ref{related}, wodurch die Aussagekraft der Evaluation der vorgestellten Methoden höher ist. + +In dieser Arbeit wurde ein universeller Trendverlauf erzeugt, welcher die Menge aller stabilisierten Patenttrends und damit den \ac{ipc}-Lebenszyklus abbildet~\ref{gemein_trend}. +Die Abbildungen~\ref{fig6} und~\ref{fig7} stellen diesen Trendverlauf grafisch dar. +Zudem wurde dieser universelle Trendverlauf mathematisch und modellbasiert abgebildet~\ref{abbildung}. + +Des Weiteren wurde ein \ac{lstm}-Modell trainiert, welches einen Patenttrend beliebiger Länge klassifiziert und einer der neun definierten Phasen~\ref{phasen} zuordnet~\ref{classification_implementierung}. +Die Klassifikation erfolgt mit einer Gesamtgenauigkeit von $70,5\%$~\ref{classification_evaluation}.. +Anzumerken ist, dass die Steigungsphasen weniger häufig korrekt klassifiziert werden als die anderen Klassen, was darauf zurückzuführen ist, dass der höchste Punkt des Eingabetrends in der Regel als Peak klassifiziert wird~\ref{classification_evaluation}. +Würden diese beiden Phasen zusammengelegt betrachtet werden, so würde die Gesamtgenauigkeit signifikant steigen. +An dieser Stelle sind mehr Informationen notwendig, um auch diese Phasen häufiger korrekt klassifizieren zu können. + +Zudem wurde ein zweites \ac{lstm}-Modell trainiert, welches für einen Eingabetrend beliebiger Länge eine Vorhersage über den zukünftigen Verlauf des Trends erzeugt, wobei die Vorhersage beliebig viele Jahre beinhalten kann~\ref{predictions_implementierung}. +Das Vorhersagemodell hat dabei einen \ac{smape}-Fehler von durchschnittlich $61,66\%$~\ref{prediction_evaluation}. +Dieser Fehler deutet darauf hin, dass die Vorhersagen des Modells nicht optimal sind. +Bei einer Eingabelänge von $44$ Jahren fällt dieser Fehler jedoch auf $24,0\%$ ab. +Die Qualität der Vorhersagen steigt somit in Abhängigkeit von der Länge des Eingabetrends. +Zusätzlich steigt der Fehler wieder an, je weiter die Vorhersagen in die Zukunft erzeugt werden sollen. +Lediglich zum Ende des Lebenszyklus hin fällt der Fehler wieder ab. +Somit kann das Ende des Lebenszyklus wiederum vorhergesagt werden. +Um die Vorhersagen generell zu verbessern, ist eine größere Datengrundlage notwendig. +Rein anhand der Patenttrends können die Vorhersagen nicht optimal getroffen werden. + +Mittels des Klassifikationsmodells kann eine Aussage darüber getroffen werden, in welcher Phase sich ein \ac{ipc}-Patenttrend befindet. +In Anbetracht des Hintergrunds dieser Arbeit, Technologieprognosen zu erzeugen und die Technologiebereitschaft festzustellen~\ref{motivation}, sind die am meisten interessanten Phasen die Steigungsphase, zusammengelegt mit dem Peak, die Neigungsphase und das Plateau. +Diese drei Abschnitte können zuverlässig klassifiziert werden. +Mittels des Vorhersagemodells können Prognosen getroffen werden, welche sowohl die ersten sechs zukünftigen Jahre als auch das Ende des Lebenszyklus, welches die letzten fünf Jahre beinhaltet, vorhersagen können. +Somit können kurzfristige und langfristige Vorhersagen getroffen werden. + +Lediglich die mittelfristigen Vorhersagen sind mit Vorsicht zu betrachten. +Diese sollten eher als Tendenz anstatt als absolute Werte interpretiert werden. + +Abschließend lässt sich sagen, dass die Anforderungen~\ref{requirements} zur Lösung des Problems~\ref{problem} erfüllt wurden. +Es wurde ein universeller Patenttrend mitsamt mathematischer und modellbasierter Abbildung systematisch extrahiert, welcher die Menge aller stabilisierten Patenttrends abbildet. +Zudem wurden die Phasen der Patente herausgestellt und definiert. +Des Weiteren wurde ein Klassifikationsmodell für die Phasen erzeugt. +Zuletzt wurde ein Modell für Vorhersagen von zukünftigen Patenttrends trainiert. + +\section*{Eigenschaften} + +Die Vorteile der vorgestellten Methoden sind, dass diese komplett unabhängig angewandt werden können. +Es sind keine Experten notwendig. +Zudem arbeiten die Analysen rein datenbasiert anhand der Patenttrends, weshalb keine Abhängigkeit zu \ac{nlp}-Technologien besteht. +Des Weiteren können die Prognosen flexibel angewandt werden, da Trends analysiert werden können, welche zwischen $1$ und $44$ Jahre lang sind. +Diese Limitierung ist jedoch nicht fest, sondern dem Umstand geschuldet, dass die Patente der \ac{epa} lediglich bis 1978 zurückreichen. +Sobald längere Patenttrends vorliegen, können die Modelle entsprechend neu trainiert werden und somit das Maximum von $44$ erhöht werden. +Außerdem sind die Prognosen branchenunabhängig. +Sie können somit unabhängig von der Technologie selbst verwendet werden. + +Die Nachteile der vorgestellten Methoden sind wie folgt: +Zum einen ist die Unterscheidung des Klassifikationsmodells zwischen der Steigungsphase und der Peakphase nicht korrekt. +Zum anderen sind die Vorhersagen des Vorhersagemodells, vor allem mittelfristig, nicht optimal. +Hierdurch sind die Vorhersagen mit Bedacht zu betrachten. + +\section*{Ausblick} + +Um die Prognosen weiter zu verbessern, könnte das Limit der Prognosen von $44$ weiter angehoben werden. +Hierfür müssten die Modelle mit einer erhöhten maximalen Eingabelänge neu trainiert werden. +Die Prognosen würden hiervon alle paar Jahre erneut profitieren, da dann längere Patenttrends der \ac{epa} vorliegen und damit die Datengrundlage wachsen würde. + +Des Weiteren könnten die Prognosen, vor allem die Vorhersagen, weiter verbessert werden. +Hierfür könnten die Patenttrends mit Trends aus anderen Quellen ergänzt werden. +Für diese Erweiterung könnten die Publikationstrends von \emph{Web of Science}~\cite{wos} extrahiert werden und mit den Patenttrends zusammengefügt werden. diff --git a/research/tech_forecasting/thesis/content/chapters/clause.tex b/research/tech_forecasting/thesis/content/chapters/clause.tex new file mode 100644 index 0000000..8c61ebb --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/clause.tex @@ -0,0 +1,39 @@ +%pagenumbering{null} + +\ + +%clearpage +\cleardoublepage + +\ + + +\pagestyle{empty} +\vfill +\ifthenelse{\boolean{bothlanguages}}{ +\textbf{Versicherung an Eides Statt} +\begin{center} + \textit{German} +\end{center} +Hiermit versichere ich, dass ich die vorliegende Masterarbeit selbständig - mit Ausnahme der Anleitung durch die Betreuer - verfasst, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt, sowie Zitate kenntlich gemacht habe. Ich versichere dass ich alle entsprechenden Angaben nach bestem Wissen und Gewissen vorgenommen habe, dass sie der Wahrheit entspechen und dass ich nichts verschwiegen habe. Mir ist bekannt, dass eine falsche Versicherung an Eides Statt nach \S 156 und nach \S 163 Abs. 1 des Strafgesetzbuches mit Freiheitsstrafe oder Geldstrafe bestraft wird.\\[7ex] +\textbf{Affirmation on oath} +\begin{center} + \textit{English} +\end{center} +I hereby declare that I have written this Master thesis - except for the guidance of the supervisor - independently, using no other than the specified sources and resources, and that all quotations have been indicated. I declare that I have reported to the best of my knowledge all the relevant information, that it is true and that I concealed nothing. I am aware that a false declaration will be punished according to \S 156 and \S 163 par. 1 of the criminal code with a prison sentence or a monetary penalty.\\[5ex] +Essen, \today\\ +\iflanguage{ngerman}{ +$\overline{\parbox{4.5cm}{(Ort, Datum)}} ~~~~~~~~~~~~~~~~~~~~~~~~~~~ \overline{\parbox{5.5cm}{\name}}$}{ +$\overline{\parbox{4.5cm}{(Place, Date)}} ~~~~~~~~~~~~~~~~~~~~~~~~~~~ \overline{\parbox{5.5cm}{\name}}$} +} +{ +\iflanguage{ngerman}{ +\textbf{Versicherung an Eides Statt}\\[5ex] +Hiermit versichere ich, dass ich die vorliegende Masterarbeit selbständig - mit Ausnahme der Anleitung durch die Betreuer - verfasst, keine anderen als die angegebenen Quellen und Hilfsmittel benutzt, sowie Zitate kenntlich gemacht habe. Ich versichere dass ich alle entsprechenden Angaben nach bestem Wissen und Gewissen vorgenommen habe, dass sie der Wahrheit entspechen und dass ich nichts verschwiegen habe. Mir ist bekannt, dass eine falsche Versicherung an Eides Statt nach \S 156 und nach \S 163 Abs. 1 des Strafgesetzbuches mit Freiheitsstrafe oder Geldstrafe bestraft wird.\\[5ex] +Essen, \today\\ +$\overline{\parbox{4.5cm}{(Ort, Datum)}} ~~~~~~~~~~~~~~~~~~~~~~~~~~~ \overline{\parbox{5.5cm}{\name}}$}{ +\textbf{Affirmation on oath}\\[5ex] +I hereby declare that I have written this Master thesis - except for the guidance of the supervisor - independently, using no other than the specified sources and resources, and that all quotations have been indicated. I declare that I have reported to the best of my knowledge all the relevant information, that it is true and that I concealed nothing. I am aware that a false declaration will be punished according to \S 156 and \S 163 par. 1 of the criminal code with a prison sentence or a monetary penalty.\\[5ex] +Essen, \today\\ +$\overline{\parbox{4.5cm}{(Place, Date)}} ~~~~~~~~~~~~~~~~~~~~~~~~~~~ \overline{\parbox{5.5cm}{\name}}$}} + diff --git a/research/tech_forecasting/thesis/content/chapters/titlePage.tex b/research/tech_forecasting/thesis/content/chapters/titlePage.tex new file mode 100644 index 0000000..ad28dfa --- /dev/null +++ b/research/tech_forecasting/thesis/content/chapters/titlePage.tex @@ -0,0 +1,141 @@ +\begin{titlepage} +\vspace*{-1cm} +\newlength{\links} +\setlength{\links}{0.9cm} +\setlength{\TPHorizModule}{1cm} +\setlength{\TPVertModule}{1cm} +\textblockorigin{0pt}{0pt} + +% big if for fancy or not +\ifthenelse{\boolean{fancy}}{ +\pagecolor{uni-beige}\afterpage{\nopagecolor} + \begin{textblock}{21}(0,0) + \noindent + \includegraphics[max size={\textwidth}{0.5\paperheight}]{content/images/mainimage.jpg} + \end{textblock} + + % Change the height according to your Image + \begin{textblock}{20}(0.5,14.5) + {\color{uni-blue} + \normalsize + \raggedleft + \large + \iflanguage{ngerman}{ + Networked Embedded Systems Group \\ + Lehrstuhl für Pervasive Computing \\ + Institut für Informatik und Wirtschaftsinformatik\\ + Fakultät für Informatik \\ + Universität Duisburg-Essen \\[3ex]} + {Networked Embedded Systems Group \\ + Chair of Pervasive Computing \\ + Institute for Computer Science and Business Information Systems\\ + Faculty of Computer Science \\ + Universität Duisburg-Essen \\[3ex]} + + \today\\ + \raggedright + \noindent} + \end{textblock} + + \begin{textblock}{13}(0.5,17.5) + {\color{uni-blue} + \raggedright + \LARGE + \textbf{\typeofwork}\\[2ex] + \Huge + \textbf{\textit{\workingtitle}}\\[2ex] + \Large + \ifthenelse{\boolean{thesis}}{ + \name~~~~~\matriculationnumber\\}{ + \name + }} + \end{textblock} + + \begin{textblock}{10}(14,22) + {\color{uni-blue} + \footnotesize + \raggedright + \iflanguage{ngerman}{ + \ifthenelse{\boolean{thesis}}{ + Erstprüfer: Prof. Dr. Pedro Jos\'e Marr\'on\\ + Zweitprüfer: \secondexaminer\\} + {Lehrstuhlleiter: Prof. Dr. Pedro Jos\'e Marr\'on\\} + Betreuer: \supervisor\\ + Zeitraum: \timeframe + }{\ifthenelse{\boolean{thesis}}{ + First examiner: Prof. Dr. Pedro Jos\'e Marr\'on\\ + Second examiner: \secondexaminer\\} + {Head of Chair: Prof. Dr. Pedro Jos\'e Marr\'on\\} + Supervisor: \supervisor\\ + Time frame: \timeframe + }} + \end{textblock} + + % Fixed height regarding the placement accoring coporate design + \begin{textblock}{7}(14,25) + \noindent + \iflanguage{ngerman}{\includegraphics[width=\textwidth]{content/images/logo_claim_4c.eps}} + {\includegraphics[width=\textwidth]{content/images/logo_claim_en_4c.eps}} + \end{textblock} + + \begin{textblock}{4.5}(0.5,25) + \noindent + {\transparent{0.6}\includegraphics[width=\textwidth]{content/images/NES_Logo_text.png}} + \end{textblock} + +} +{ +\LARGE + +\begin{textblock}{16.5}(2.8,2.6) + \hspace*{-0.25cm} \textbf{UNIVERSITÄT DUISBURG-ESSEN}\\ + \hspace*{-1.15cm} \iflanguage{ngerman}{\rule{5mm}{5mm}}{\rule{7mm}{7mm}} \hspace*{0.05cm} \iflanguage{ngerman}{FAKULTÄT FÜR INFORMATIK}{FACULTY OF COMPUTER SCIENCE}\\ + \large{}\iflanguage{ngerman}{INSTITUT FÜR INFORMATIK UND WIRTSCHAFTSINFORMATIK}{INSTITUTE FOR COMPUTER SCIENCE AND BUSINESS INFORMATION SYSTEMS}\\ + \large{}\iflanguage{ngerman}{LEHRSTUHL FÜR PERVASIVE COMPUTING}{CHAIR OF PERVASIVE COMPUTING} +\end{textblock} + +\begin{textblock}{15}(3.2,8.5) + \large +{ \textbf{\typeofwork}} \\[1cm] +{\LARGE \Large\textbf{\workingtitle}} \\[1.3cm] +\name\\ +\ifthenelse{\boolean{thesis}}{\matriculationnumber}{} +\end{textblock} + + +\begin{textblock}{11.2}(8.5,17.5) +\iflanguage{ngerman}{ +\includegraphics[width=0.57\textwidth]{content/images/logo_claim_4c.eps}}{ +\includegraphics[width=0.57\textwidth]{content/images/logo_claim_en_4c.eps}} +\includegraphics[width=0.4\textwidth]{content/images/NES_Logo_text.png}\\[1ex] +\normalsize +\raggedleft +\iflanguage{ngerman}{ +Networked Embedded Systems Group\\ +Institut für Informatik und Wirtschaftsinformatik\\ +Fakultät für Informatik\\ +Universität Duisburg-Essen \\[2ex]} +{ +Networked Embedded Systems Group\\ +Institute for Computer Science and Business Information Systems\\ +Faculty of Computer Science\\ +Universität Duisburg-Essen\\[2ex]} + +\today\\[15ex] +\raggedright + +\ifthenelse{\boolean{thesis}}{ +\textbf{\iflanguage{ngerman}{Erstprüfer:}{First examiner:}} Prof. Dr. Pedro Jose Marron \\ +\textbf{\iflanguage{ngerman}{Zweitprüfer:}{Second examiner:}} \secondexaminer \\ +\textbf{\iflanguage{ngerman}{Betreuer:}{Supervisor:}} \supervisor \\ +\textbf{\iflanguage{ngerman}{Zeitraum:}{Time frame}} \timeframe}{ + +\textbf{\iflanguage{ngerman}{Lehrstuhlleiter:}{Head of Chair:}} Prof. Dr. Pedro Jose Marron \\ +\textbf{\iflanguage{ngerman}{Betreuer:}{Supervisor:}} \supervisor \\ +\textbf{\iflanguage{ngerman}{Zeitraum:}{Time frame}} \timeframe +} +\end{textblock} + +} + +\end{titlepage} \ No newline at end of file diff --git a/research/tech_forecasting/thesis/content/images/B65F3_20_marked.png b/research/tech_forecasting/thesis/content/images/B65F3_20_marked.png new file mode 100644 index 0000000..2212c72 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/B65F3_20_marked.png differ diff --git a/research/tech_forecasting/thesis/content/images/NES_Logo_text.png b/research/tech_forecasting/thesis/content/images/NES_Logo_text.png new file mode 100644 index 0000000..9fcc713 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/NES_Logo_text.png differ diff --git a/research/tech_forecasting/thesis/content/images/error_sorted_by_original_length.png b/research/tech_forecasting/thesis/content/images/error_sorted_by_original_length.png new file mode 100644 index 0000000..3321b6e Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/error_sorted_by_original_length.png differ diff --git a/research/tech_forecasting/thesis/content/images/error_sorted_by_prediction_depths.png b/research/tech_forecasting/thesis/content/images/error_sorted_by_prediction_depths.png new file mode 100644 index 0000000..3c6a52d Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/error_sorted_by_prediction_depths.png differ diff --git a/research/tech_forecasting/thesis/content/images/example_prediction.png b/research/tech_forecasting/thesis/content/images/example_prediction.png new file mode 100644 index 0000000..d33ece9 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/example_prediction.png differ diff --git a/research/tech_forecasting/thesis/content/images/flows.png b/research/tech_forecasting/thesis/content/images/flows.png new file mode 100644 index 0000000..80d5334 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/flows.png differ diff --git a/research/tech_forecasting/thesis/content/images/gmm_common_time_series_resampled.png b/research/tech_forecasting/thesis/content/images/gmm_common_time_series_resampled.png new file mode 100644 index 0000000..63ed445 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/gmm_common_time_series_resampled.png differ diff --git a/research/tech_forecasting/thesis/content/images/hype.png b/research/tech_forecasting/thesis/content/images/hype.png new file mode 100644 index 0000000..d284c14 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/hype.png differ diff --git a/research/tech_forecasting/thesis/content/images/label_bird.png b/research/tech_forecasting/thesis/content/images/label_bird.png new file mode 100644 index 0000000..40e1897 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/label_bird.png differ diff --git a/research/tech_forecasting/thesis/content/images/lstm.png b/research/tech_forecasting/thesis/content/images/lstm.png new file mode 100644 index 0000000..1cc635a Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/lstm.png differ diff --git a/research/tech_forecasting/thesis/content/images/lstm_common_time_series_best.png b/research/tech_forecasting/thesis/content/images/lstm_common_time_series_best.png new file mode 100644 index 0000000..4ec5060 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/lstm_common_time_series_best.png differ diff --git a/research/tech_forecasting/thesis/content/images/mainimage.jpg b/research/tech_forecasting/thesis/content/images/mainimage.jpg new file mode 100644 index 0000000..9fe9555 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/mainimage.jpg differ diff --git a/research/tech_forecasting/thesis/content/images/nn.jpg b/research/tech_forecasting/thesis/content/images/nn.jpg new file mode 100644 index 0000000..3fb4c16 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/nn.jpg differ diff --git a/research/tech_forecasting/thesis/content/images/peak_distribution_0_10_ger.png b/research/tech_forecasting/thesis/content/images/peak_distribution_0_10_ger.png new file mode 100644 index 0000000..cfb4ed4 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/peak_distribution_0_10_ger.png differ diff --git a/research/tech_forecasting/thesis/content/images/uni_trend.png b/research/tech_forecasting/thesis/content/images/uni_trend.png new file mode 100644 index 0000000..7ada468 Binary files /dev/null and b/research/tech_forecasting/thesis/content/images/uni_trend.png differ diff --git a/research/tech_forecasting/thesis/content/references/references.bib b/research/tech_forecasting/thesis/content/references/references.bib new file mode 100644 index 0000000..ac227af --- /dev/null +++ b/research/tech_forecasting/thesis/content/references/references.bib @@ -0,0 +1,610 @@ +@article{schubert2017dbscan, + title={DBSCAN revisited, revisited: why and how you should (still) use DBSCAN}, + author={Schubert, Erich and Sander, J{\"o}rg and Ester, Martin and Kriegel, Hans Peter and Xu, Xiaowei}, + journal={ACM Transactions on Database Systems (TODS)}, + volume={42}, + number={3}, + pages={1--21}, + year={2017}, + publisher={ACM New York, NY, USA} +} + +@inproceedings{berndt1994using, + title={Using dynamic time warping to find patterns in time series}, + author={Berndt, Donald J and Clifford, James}, + booktitle={Proceedings of the 3rd international conference on knowledge discovery and data mining}, + pages={359--370}, + year={1994} +} + +@inproceedings{wang2018time, + title={Time series clustering based on dynamic time warping}, + author={Wang, Weizeng and Lyu, Gaofan and Shi, Yuliang and Liang, Xun}, + booktitle={2018 IEEE 9th international conference on software engineering and service science (ICSESS)}, + pages={487--490}, + year={2018}, + organization={IEEE} +} + +@article{hartigan1979k, + title={A k-means clustering algorithm}, + author={Hartigan, John A and Wong, Manchek A and others}, + journal={Applied statistics}, + volume={28}, + number={1}, + pages={100--108}, + year={1979}, + publisher={USA} +} + +@article{park2009simple, + title={A simple and fast algorithm for K-medoids clustering}, + author={Park, Hae-Sang and Jun, Chi-Hyuck}, + journal={Expert systems with applications}, + volume={36}, + number={2}, + pages={3336--3341}, + year={2009}, + publisher={Elsevier} +} + +@inproceedings{paparrizos2015k, + title={k-shape: Efficient and accurate clustering of time series}, + author={Paparrizos, John and Gravano, Luis}, + booktitle={Proceedings of the 2015 ACM SIGMOD international conference on management of data}, + pages={1855--1870}, + year={2015} +} + +@article{von2020distanzen, + title={Distanzen zwischen Objekten}, + author={von der Hude, Marlis and von der Hude, Marlis}, + journal={Predictive Analytics und Data Mining: Eine Einf{\"u}hrung mit R}, + pages={43--48}, + year={2020}, + publisher={Springer} +} + +@article{costa2021comparing, + title={Comparing cross correlation-based similarities}, + author={Costa, Luciano da F}, + journal={arXiv preprint arXiv:2111.08513}, + year={2021} +} + +@inproceedings{petitjean2014dynamic, + title={Dynamic time warping averaging of time series allows faster and more accurate classification}, + author={Petitjean, Fran{\c{c}}ois and Forestier, Germain and Webb, Geoffrey I and Nicholson, Ann E and Chen, Yanping and Keogh, Eamonn}, + booktitle={2014 IEEE international conference on data mining}, + pages={470--479}, + year={2014}, + organization={IEEE} +} + +@article{petitjean2011global, + title={A global averaging method for dynamic time warping, with applications to clustering}, + author={Petitjean, Fran{\c{c}}ois and Ketterlin, Alain and Gan{\c{c}}arski, Pierre}, + journal={Pattern recognition}, + volume={44}, + number={3}, + pages={678--693}, + year={2011}, + publisher={Elsevier} +} + +@article{vamos2013polynomial, + title={Polynomial fitting}, + author={Vamos, C˘ alin and Cr˘ aciun, Maria and Vamos, Calin and Craciun, Maria}, + journal={Automatic trend estimation}, + pages={31--42}, + year={2013}, + publisher={Springer} +} + +@article{goodman1963statistical, + title={Statistical analysis based on a certain multivariate complex Gaussian distribution (an introduction)}, + author={Goodman, Nathaniel R}, + journal={The Annals of mathematical statistics}, + volume={34}, + number={1}, + pages={152--177}, + year={1963}, + publisher={JSTOR} +} + +@article{seglen1992skewness, + title={The skewness of science}, + author={Seglen, Per O}, + journal={Journal of the American society for information science}, + volume={43}, + number={9}, + pages={628--638}, + year={1992}, + publisher={Wiley Online Library} +} + +@article{aminikhanghahi2017survey, + title={A survey of methods for time series change point detection}, + author={Aminikhanghahi, Samaneh and Cook, Diane J}, + journal={Knowledge and information systems}, + volume={51}, + number={2}, + pages={339--367}, + year={2017}, + publisher={Springer} +} + +@inproceedings{naidu2023review, + title={A review of evaluation metrics in machine learning algorithms}, + author={Naidu, Gireen and Zuva, Tranos and Sibanda, Elias Mmbongeni}, + booktitle={Computer Science On-line Conference}, + pages={15--25}, + year={2023}, + organization={Springer} +} + +@article{chicco2021coefficient, + title={The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation}, + author={Chicco, Davide and Warrens, Matthijs J and Jurman, Giuseppe}, + journal={Peerj computer science}, + volume={7}, + pages={e623}, + year={2021}, + publisher={PeerJ Inc.} +} + +@inproceedings{shahapure2020cluster, + title={Cluster quality analysis using silhouette score}, + author={Shahapure, Ketan Rajshekhar and Nicholas, Charles}, + booktitle={2020 IEEE 7th international conference on data science and advanced analytics (DSAA)}, + pages={747--748}, + year={2020}, + organization={IEEE} +} + +@inproceedings{rahutomo2012semantic, + title={Semantic cosine similarity}, + author={Rahutomo, Faisal and Kitasuka, Teruaki and Aritsugi, Masayoshi and others}, + booktitle={The 7th international student conference on advanced science and technology ICAST}, + volume={4}, + number={1}, + pages={1}, + year={2012}, + organization={University of Seoul South Korea} +} + +@article{reynolds2009gaussian, + title={Gaussian mixture models.}, + author={Reynolds, Douglas A and others}, + journal={Encyclopedia of biometrics}, + volume={741}, + number={659-663}, + pages={3}, + year={2009}, + publisher={Springer City} +} + +@article{o2015introduction, + title={An introduction to convolutional neural networks}, + author={O'shea, Keiron and Nash, Ryan}, + journal={arXiv preprint arXiv:1511.08458}, + year={2015} +} + +@article{wu2018development, + title={Development and application of artificial neural network}, + author={Wu, Yu-chen and Feng, Jun-wen}, + journal={Wireless Personal Communications}, + volume={102}, + pages={1645--1656}, + year={2018}, + publisher={Springer} +} + +@article{rojas1996backpropagation, + title={The backpropagation algorithm}, + author={Rojas, Raul and Rojas, Ra{\'u}l}, + journal={Neural networks: a systematic introduction}, + pages={149--182}, + year={1996}, + publisher={Springer} +} + +@article{dempster2020rocket, + title={ROCKET: exceptionally fast and accurate time series classification using random convolutional kernels}, + author={Dempster, Angus and Petitjean, Fran{\c{c}}ois and Webb, Geoffrey I}, + journal={Data Mining and Knowledge Discovery}, + volume={34}, + number={5}, + pages={1454--1495}, + year={2020}, + publisher={Springer} +} + +@article{dempster2023hydra, + title={Hydra: Competing convolutional kernels for fast and accurate time series classification}, + author={Dempster, Angus and Schmidt, Daniel F and Webb, Geoffrey I}, + journal={Data Mining and Knowledge Discovery}, + volume={37}, + number={5}, + pages={1779--1805}, + year={2023}, + publisher={Springer} +} + +@article{zhao2017convolutional, + title={Convolutional neural networks for time series classification}, + author={Zhao, Bendong and Lu, Huanzhang and Chen, Shangfeng and Liu, Junliang and Wu, Dongya}, + journal={Journal of systems engineering and electronics}, + volume={28}, + number={1}, + pages={162--169}, + year={2017}, + publisher={BIAI} +} + +@article{middlehurst2021hive, + title={HIVE-COTE 2.0: a new meta ensemble for time series classification}, + author={Middlehurst, Matthew and Large, James and Flynn, Michael and Lines, Jason and Bostrom, Aaron and Bagnall, Anthony}, + journal={Machine Learning}, + volume={110}, + number={11}, + pages={3211--3243}, + year={2021}, + publisher={Springer} +} + +@article{large2018bop, + title={From BOP to BOSS and beyond: Time series classification with dictionary based classifiers}, + author={Large, James and Bagnall, Anthony and Malinowski, Simon and Tavenard, Romain}, + journal={arXiv preprint arXiv:1809.06751}, + year={2018} +} + +@article{guijo2024unsupervised, + title={Unsupervised feature based algorithms for time series extrinsic regression}, + author={Guijo-Rubio, David and Middlehurst, Matthew and Arcencio, Guilherme and Silva, Diego Furtado and Bagnall, Anthony}, + journal={Data Mining and Knowledge Discovery}, + volume={38}, + number={4}, + pages={2141--2185}, + year={2024}, + publisher={Springer} +} + +@article{lubba2019catch22, + title={catch22: CAnonical Time-series CHaracteristics: Selected through highly comparative time-series analysis}, + author={Lubba, Carl H and Sethi, Sarab S and Knaute, Philip and Schultz, Simon R and Fulcher, Ben D and Jones, Nick S}, + journal={Data mining and knowledge discovery}, + volume={33}, + number={6}, + pages={1821--1852}, + year={2019}, + publisher={Springer} +} + +@inproceedings{mohammed2024machine, + title={Machine Learning-Based Position Prediction for Fleet Management Within Port Terminals}, + author={Mohammed, El Karkraoui and Hicham, Attariuas}, + booktitle={International Conference on Digital Age \& Technological Advances for Sustainable Development}, + pages={151--158}, + year={2024}, + organization={Springer} +} + +@incollection{dipietro2020deep, + title={Deep learning: RNNs and LSTM}, + author={DiPietro, Robert and Hager, Gregory D}, + booktitle={Handbook of medical image computing and computer assisted intervention}, + pages={503--519}, + year={2020}, + publisher={Elsevier} +} + +@article{smagulova2019survey, + title={A survey on LSTM memristive neural network architectures and applications}, + author={Smagulova, Kamilya and James, Alex Pappachen}, + journal={The European Physical Journal Special Topics}, + volume={228}, + number={10}, + pages={2313--2324}, + year={2019}, + publisher={Springer} +} + +@article{yu2019review, + title={A review of recurrent neural networks: LSTM cells and network architectures}, + author={Yu, Yong and Si, Xiaosheng and Hu, Changhua and Zhang, Jianxun}, + journal={Neural computation}, + volume={31}, + number={7}, + pages={1235--1270}, + year={2019}, + publisher={MIT Press One Rogers Street, Cambridge, MA 02142-1209, USA journals-info~…} +} + +@article{andi2021accurate, + title={An accurate bitcoin price prediction using logistic regression with LSTM machine learning model}, + author={Andi, Hari Krishnan}, + journal={Journal of Soft Computing Paradigm}, + volume={3}, + number={3}, + pages={205--217}, + year={2021} +} + +@article{han2017visual, + title={Visual patent trend analysis for informed decision making in technology management}, + author={Han, Qi and Heimerl, Florian and Codina-Filba, Joan and Lohmann, Steffen and Wanner, Leo and Ertl, Thomas}, + journal={World Patent Information}, + volume={49}, + pages={34--42}, + year={2017}, + publisher={Elsevier} +} + +@article{abbas2014literature, + title={A literature review on the state-of-the-art in patent analysis}, + author={Abbas, Assad and Zhang, Limin and Khan, Samee U}, + journal={World Patent Information}, + volume={37}, + pages={3--13}, + year={2014}, + publisher={Elsevier} +} + +@article{yoon2012trendperceptor, + title={TrendPerceptor: A property--function based technology intelligence system for identifying technology trends from patents}, + author={Yoon, Janghyeok and Kim, Kwangsoo}, + journal={Expert Systems with Applications}, + volume={39}, + number={3}, + pages={2927--2938}, + year={2012}, + publisher={Elsevier} +} + +@article{yoon2012analysis, + title={An analysis of property--function based patent networks for strategic R\&D planning in fast-moving industries: The case of silicon-based thin film solar cells}, + author={Yoon, Janghyeok and Kim, Kwangsoo}, + journal={Expert Systems with Applications}, + volume={39}, + number={9}, + pages={7709--7717}, + year={2012}, + publisher={Elsevier} +} + +@misc{epo_history, + title = {Die Geschichte des EPA: 1970er-Jahre}, + author={Europäisches Pantentamt}, + howpublished = {\url{https://www.epo.org/de/about-us/timeline/1970s}}, + note = {zuletzt besucht: 25.02.2025} +} + +@article{linden2003understanding, + title={Understanding Gartner’s hype cycles}, + author={Linden, Alexander and Fenn, Jackie and others}, + journal={Strategic Analysis Report N{\textordmasculine} R-20-1971. Gartner, Inc}, + volume={88}, + pages={1423}, + year={2003} +} + +@article{campbell1983patent, + title={Patent trends as a technological forecasting tool}, + author={Campbell, Richard S}, + journal={World patent information}, + volume={5}, + number={3}, + pages={137--143}, + year={1983}, + publisher={Elsevier} +} + +@article{kim2017novel, + title={A novel approach to forecast promising technology through patent analysis}, + author={Kim, Gabjo and Bae, Jinwoo}, + journal={Technological Forecasting and Social Change}, + volume={117}, + pages={228--237}, + year={2017}, + publisher={Elsevier} +} + +@article{daim2006forecasting, + title={Forecasting emerging technologies: Use of bibliometrics and patent analysis}, + author={Daim, Tugrul U and Rueda, Guillermo and Martin, Hilary and Gerdsri, Pisek}, + journal={Technological forecasting and social change}, + volume={73}, + number={8}, + pages={981--1012}, + year={2006}, + publisher={Elsevier} +} + +@article{chen2017topic, + title={Topic-based technological forecasting based on patent data: A case study of Australian patents from 2000 to 2014}, + author={Chen, Hongshu and Zhang, Guangquan and Zhu, Donghua and Lu, Jie}, + journal={Technological Forecasting and Social Change}, + volume={119}, + pages={39--52}, + year={2017}, + publisher={Elsevier} +} + +@misc{kim2015technology, + title={Technology forecasting using topic-based patent analysis}, + author={Kim, Gab Jo and Park, Sang Sung and Jang, Dong Sik}, + year={2015}, + publisher={NISCAIR-CSIR, India} +} + +@article{dedehayir2016hype, + title={The hype cycle model: A review and future directions}, + author={Dedehayir, Ozgur and Steinert, Martin}, + journal={Technological Forecasting and Social Change}, + volume={108}, + pages={28--41}, + year={2016}, + publisher={Elsevier} +} + +@inproceedings{supraja2015patent, + title={Patent search and trend analysis}, + author={Supraja, AM and Archana, S and Suvetha, S and Geetha, TV}, + booktitle={2015 IEEE International Advance Computing Conference (IACC)}, + pages={501--506}, + year={2015}, + organization={IEEE} +} + +@misc{gartner_5, + title = {Gartner Hype Cycle}, + author={Gartner}, + howpublished = {\url{https://www.gartner.de/de/methoden/hype-cycle}}, + note = {zuletzt besucht: 27.02.2025} +} + +@misc{gartner_png, + title = {Introduction to the Gartner Hype Cycle}, + author={Raza, Muhammad}, + howpublished = {\url{https://www.bmc.com/blogs/gartner-hype-cycle/}}, + note = {zuletzt besucht: 27.02.2025} +} + +@article{chowdhary2020natural, + title={Natural language processing}, + author={Chowdhary, KR1442 and Chowdhary, KR}, + journal={Fundamentals of artificial intelligence}, + pages={603--649}, + year={2020}, + publisher={Springer} +} + +@article{chopra2013natural, + title={Natural language processing}, + author={Chopra, Abhimanyu and Prashar, Abhinav and Sain, Chandresh}, + journal={International journal of technology enhancements and emerging engineering research}, + volume={1}, + number={4}, + pages={131--134}, + year={2013}, + publisher={Citeseer} +} + +@article{sagheer2019time, + title={Time series forecasting of petroleum production using deep LSTM recurrent networks}, + author={Sagheer, Alaa and Kotb, Mostafa}, + journal={Neurocomputing}, + volume={323}, + pages={203--213}, + year={2019}, + publisher={Elsevier} +} + +@article{blei2003latent, + title={Latent dirichlet allocation}, + author={Blei, David M and Ng, Andrew Y and Jordan, Michael I}, + journal={Journal of machine Learning research}, + volume={3}, + number={Jan}, + pages={993--1022}, + year={2003} +} + +@article{crisp1997delphi, + title={The delphi method?}, + author={Crisp, Jackie and Pelletier, Dianne and Duffield, Christine and Adams, Anne and Nagy, SUE}, + journal={Nursing research}, + volume={46}, + number={2}, + pages={116--118}, + year={1997}, + publisher={LWW} +} + +@inproceedings{perez2010using, + title={Using BM25F for semantic search}, + author={P{\'e}rez-Ag{\"u}era, Jos{\'e} R and Arroyo, Javier and Greenberg, Jane and Iglesias, Joaquin Perez and Fresno, Victor}, + booktitle={Proceedings of the 3rd international semantic search workshop}, + pages={1--8}, + year={2010} +} + +@inproceedings{ariyo2014stock, + title={Stock price prediction using the ARIMA model}, + author={Ariyo, Adebiyi A and Adewumi, Adewumi O and Ayo, Charles K}, + booktitle={2014 UKSim-AMSS 16th international conference on computer modelling and simulation}, + pages={106--112}, + year={2014}, + organization={IEEE} +} + +@inproceedings{zhang2017degree, + title={Degree centrality, betweenness centrality, and closeness centrality in social network}, + author={Zhang, Junlong and Luo, Yu}, + booktitle={2017 2nd international conference on modelling, simulation and applied mathematics (MSAM2017)}, + pages={300--303}, + year={2017}, + organization={Atlantis press} +} + +@article{kayal1999empirical, + title={An empirical evaluation of the technology cycle time indicator as a measure of the pace of technological progress in superconductor technology}, + author={Kayal, Aymen A and Waters, Robert C}, + journal={IEEE Transactions on Engineering Management}, + volume={46}, + number={2}, + pages={127--131}, + year={1999}, + publisher={IEEE} +} + +@misc{ipc, + title = {Guide to the International Patent Classification}, + author={WIPO - World Intellectual Property Organization}, + howpublished = {\url{https://www.wipo.int/edocs/pubdocs/en/wipo-guide-ipc-2022-en-guide-to-the-international-patent-classification-2022.pdf}}, + note = {zuletzt besucht: 06.03.2025} +} + +@misc{epo_timings, + title = {Der Weg zum Patent}, + author={Europäisches Patentamt}, + howpublished = {\url{https://www.epo.org/de/new-to-patents/how-to-apply-for-a-patent}}, + note = {zuletzt besucht: 06.03.2025} +} + +@misc{epo_max, + title = {Wie lange bleibt ein erteiltes europäisches Patent in Kraft?}, + author={Europäisches Patentamt}, + howpublished = {\url{https://www.epo.org/de/service-support/faq/anmeldung-eines-patents/das-verfahren/wie-lange-bleibt-ein-erteiltes}}, + note = {zuletzt besucht: 06.03.2025} +} + +@misc{python, + title = {Python}, + author={Python Software Foundation}, + howpublished = {\url{https://www.python.org/}}, + note = {zuletzt besucht: 13.03.2025} +} + +@misc{pypi, + title = {Python Package Index}, + author={Python-Gemeinschaft}, + howpublished = {\url{https://pypi.org/}}, + note = {zuletzt besucht: 13.03.2025} +} + +@misc{wos, + title = {Web of Science}, + author={Clarivate}, + howpublished = {\url{https://www.webofscience.com/wos/woscc/basic-search}}, + note = {zuletzt besucht: 31.03.2025} +} + + + + + + diff --git a/research/tech_forecasting/thesis/content/utility.tex b/research/tech_forecasting/thesis/content/utility.tex new file mode 100644 index 0000000..3a891fd --- /dev/null +++ b/research/tech_forecasting/thesis/content/utility.tex @@ -0,0 +1,157 @@ +\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf} +\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf} +\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc} + +% Accept different input encodings +\usepackage[utf8]{inputenc} + +% helps with the occasional warnings +\usepackage{scrhack} + +\usepackage{ifpdf} +\ifx\pdfoutput\undefined +\pdffalse %not PDFLaTeX +\else +\pdfoutput=1 +\pdftrue +\fi +%\tracingstats=2 +%\usepackage{layout} +% english/new german language support (hyphenation etc) + +% for prettier tables +\usepackage{booktabs} + +% provides the \url{} command to pretty print urls +\usepackage{url} + +% needed for a german bibliography-style (s. below) +\usepackage{bibgerm} + +% allows text flowing around figures. +\usepackage{wrapfig} + +% allows to \includegraphics +\usepackage{graphicx} + +% defines some standard colornames like "black" etc. +\usepackage{color} + +% allows to color tablecells +\usepackage{colortbl} + +% provides an easier interface to if-then-else constructs in +% custom macros +\usepackage{ifthen} + +% allows tables to break over pages. +\usepackage{supertabular} + +% allows to have different kinds paper orientations in the same pdf-documnent +\usepackage{pdflscape} + +% allows to specify absolute texpos for textboxes. This is generally only important for the titlepage +\usepackage[absolute,overlay]{textpos} + +% allows to enumerate different figures with a) b) in the same figure-environment. +\usepackage{subfigure} + +% just for demo +%\usepackage{showframe,lipsum} + +% Coloured boxes, for LaTeX examples and theorems, etc +\usepackage[most]{tcolorbox} + +% Graphics package-alike macros for “general” boxes +\usepackage[export]{adjustbox} + +% Simple arithmetic in LaTeX commands +\usepackage{calc} + +% Execute command after the next page break +\usepackage{afterpage} + +% Using a color stack for transparency with pdfTeX +\usepackage{transparent} + +\usepackage{acronym} + +\usepackage{rotating} + +\usepackage{longtable} + +\usepackage{float} + +% finetune the gaps between figure and text in the subfigure environment (basically close the gap as much as possible) +\renewcommand{\subfigtopskip}{0pt} +\renewcommand{\subfigbottomskip}{0pt} + +% corporate desing colors +% primary color +\definecolor{uni-blue}{RGB}{0,76,147} +% secondary color +\definecolor{uni-beige}{RGB}{239,228,191} +% tertiary color +\definecolor{uni-lightblue}{RGB}{223,228,142} +\definecolor{uni-white}{RGB}{255,255,255} +% copy text color +\definecolor{uni-black}{RGB}{0,0,0} +% additional colors +\definecolor{uni-orange}{RGB}{236,114,6} +\definecolor{uni-green}{RGB}{97,162,124} +\definecolor{uni-red}{RGB}{184,16,59} +\definecolor{uni-yellow}{RGB}{254,202,0} +% colors for links +\definecolor{mygrey}{rgb}{0.45,0.45,0.45} +\definecolor{mydarkgrey}{rgb}{0.2,0.2,0.2} + +\ifpdf +% Metadata and configuration of the pdf output: +% Do not forget to enter the correct title, author, subject und keywords + +% For screen viewing it is nice to have references marked in a slightly different +% color than the rest of the text. Since they will be hyperlinks to the +% referenced objects. +\usepackage[pdftex, + pdftitle={}, + colorlinks, + linkcolor={mydarkgrey}, + citecolor={mygrey}, + urlcolor={black}, + plainpages={false}, + bookmarksnumbered={true}, + pdfauthor={}, + pdfsubject={}, + pdfkeywords={}, + pdfstartview={FitBH}]{hyperref} + +% For the final printouts (remember - you need at least three - one for each examiner and one for the archive +% [ This might have changed - so contact the "Prüfungsamt" about the current regulations !! ] - it is better +% to have all text in the same color (namely black). +% +%\usepackage[pdftex, +% pdftitle={}, +% colorlinks, +% linkcolor={black}, +% citecolor={black}, +% urlcolor={black}, +% plainpages={false}, +% bookmarksnumbered={true}, +% pdfauthor={}, +% pdfsubject={}, +% pdfkeywords={}, +% pdfstartview={FitBH}]{hyperref} +\pdfcompresslevel=9 +\fi + +\usepackage{typearea} +\areaset[1.5cm]{418pt}{658pt} +\setlength{\headheight}{37pt} + +% ToDo command for work in progress files +\newcommand{\todo}[1]{\marginpar{\textcolor{red}{ToDo:} #1}} + +% boolean for switching modes +\newboolean{fancy} +\newboolean{thesis} +\newboolean{bothlanguages} \ No newline at end of file