doc
This commit is contained in:
parent
33bc1f3d10
commit
2c287bcc74
14 changed files with 220 additions and 63 deletions
|
|
@ -221,7 +221,7 @@
|
|||
title={Deep Learning},
|
||||
author={Ian Goodfellow and Yoshua Bengio and Aaron Courville},
|
||||
publisher={MIT Press},
|
||||
note={\url{http://www.deeplearningbook.org}},
|
||||
url={http://www.deeplearningbook.org},
|
||||
year={2016}
|
||||
}
|
||||
|
||||
|
|
@ -343,14 +343,38 @@ year = {2016},
|
|||
|
||||
% This file was created with Citavi 6.15.2.0
|
||||
|
||||
@article{AliCevahir.,
|
||||
@online{AliCevahir.,
|
||||
author = {{Ali Cevahir} and {Koji Murakami}},
|
||||
title = {Large-scale Multi-class and Hierarchical Product Categorization for an E-commerce Giant},
|
||||
url = {https://aclanthology.org/C16-1051.pdf},
|
||||
year ={2016},
|
||||
urldate = {31/05/2023},
|
||||
file = {Ali Cevahir, Koji Murakami - Large-scale Multi-class and Hierarchical Product:Attachments/Ali Cevahir, Koji Murakami - Large-scale Multi-class and Hierarchical Product.pdf:application/pdf}
|
||||
file = {Ali Cevahir, Koji Murakami - Large-scale Multi-class and Hierarchical Product:Attachments/Ali Cevahir, Koji Murakami - Large-scale Multi-class and Hierarchical Product.pdf:application/pdf},
|
||||
}
|
||||
|
||||
|
||||
|
||||
% This file was created with Citavi 6.15.2.0
|
||||
|
||||
@book{BirdKleinLoper09,
|
||||
abstract = {This book offers a highly accessible introduction to Natural Language Processing, the field that underpins a variety of language technologies ranging from predictive text and email filtering to automatic summarization and translation. Using NLTK, you'll learn how to write Python programs to analyze the structure and meaning of texts, drawing on techniques from the fields of linguistics and artificial intelligence.},
|
||||
added-at = {2016-12-06T16:29:36.000+0100},
|
||||
address = {Beijing},
|
||||
author = {Bird, Steven and Klein, Ewan and Loper, Edward},
|
||||
biburl = {https://www.bibsonomy.org/bibtex/2c90dc59441d01c8bef58a947274164d4/flint63},
|
||||
doi = {http://my.safaribooksonline.com/9780596516499},
|
||||
file = {O'Reilly eBook:2009/BirdKleinLoper09.pdf:PDF;O'Reilly Product page:http\://shop.oreilly.com/product/9780596516499.do:URL;Related Web Site:http\://www.nltk.org/:URL;Safari:https\://www.safaribooksonline.com/library/view/natural-language-processing/9780596803346/:URL},
|
||||
groups = {public},
|
||||
interhash = {5408d7da097b9cd81239c238da8bfaf4},
|
||||
intrahash = {c90dc59441d01c8bef58a947274164d4},
|
||||
isbn = {978-0-596-51649-9},
|
||||
keywords = {01841 103 book safari ai software development language processing text python framework},
|
||||
publisher = {O'Reilly},
|
||||
timestamp = {2018-04-16T12:35:20.000+0200},
|
||||
title = {Natural Language Processing with Python: Analyzing Text with the Natural Language Toolkit},
|
||||
url = {http://www.nltk.org/book},
|
||||
username = {flint63},
|
||||
year = 2009
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
|
||||
|
||||
\begin{appendices}
|
||||
|
||||
\chapter*{Appendices}
|
||||
\addcontentsline{toc}{chapter}{Appendices}
|
||||
% Additional appendices can be added here
|
||||
\section{List of Abbreviations}
|
||||
\input{preliminary/acronyms}
|
||||
\section{Appendix A}
|
||||
|
||||
% Content for Appendix A goes here...
|
||||
|
||||
\section{Appendix B}
|
||||
% Content for Appendix B goes here...
|
||||
|
||||
\end{appendices}
|
||||
|
|
@ -1,9 +1,22 @@
|
|||
\chapter{Data collection}
|
||||
\chapter{Feature selection}
|
||||
|
||||
Data collection is simply a process of fetching the data from the data source. However, feature selection is a process of selecting fields from which the target field will be predicted. Suppliers provide stock details along with associated product taxonomy. Importing well-defined taxonomy requires to train the classification model with already existing correct pair of features and label. The already existing pair of features and the correct label for each input is the training data set or training corpora. The classifier built on such a training corpora is termed as supervised classification \parencite{BirdKleinLoper09}.
|
||||
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
\includegraphics[scale=0.9]{supervised-classification.png}
|
||||
\caption{Supervised classification \parencite{BirdKleinLoper09}}
|
||||
\label{fig:supervised-classification}
|
||||
\end{figure}
|
||||
|
||||
As illustrated in figure \ref{fig:supervised-classification}, during training, a pair of feature set and label are fed in to the machine learning algorithm to generate a classifier model. During prediction, same feature set are fed into the model to predict the label. Refer to chapter \ref{ch:feature-extraction} for details on feature extraction.
|
||||
|
||||
In this project, author choose to create a classification model with only one feature that is the name of the product. However, author identifies the potential features to classify the target of n levels of category. These features have been identified based on the understanding of domain of the product. For products with many details will have many more features to be taken into consideration. In such case, selection based on common understanding of the nature of the product may not be sufficient. Hence, Scikit learn \parencite{sklearn_api} provides methods to define feature appropriately.
|
||||
|
||||
|
||||
\section {Fetch existing product taxonomy using Elasticsearch}
|
||||
Elastic search \footnote{https://www.elastic.co/} is a fast and scalable search and analytics engine. It can build a powerful AI and machine learning enabled search experience. In this paper, author fetches labeled dataset of products to serve as the training data for the machine learning model.
|
||||
Refer section \ref {pyenv} for installation detail of version specific python client of Elastic search. For this project, python client elasticsearch 6.8.2 is installed as the client needs to be compatible with Elastic search version being used. The official Python client provides mapping with Elasticsearch REST APIs.
|
||||
For this project, python client elasticsearch 6.8.2 is installed as the client needs to be compatible with Elastic search version being used. The official Python client provides mapping with Elasticsearch REST APIs.
|
||||
|
||||
\begin{lstlisting}[language=Python]
|
||||
resp=self.es.search("english-name-category",{"_source":["id","name","category"],
|
||||
|
|
@ -12,8 +25,7 @@ resp=self.es.search("english-name-category",{"_source":["id","name","category"],
|
|||
"query": {"match_all": {}}})
|
||||
\end{lstlisting}
|
||||
|
||||
The above code fetches indexed product name and its top hierarchy level category. This record serves as a foundation for multi level category prediction.
|
||||
|
||||
The above code fetches indexed product name and its lowest hierarchy level category.
|
||||
\begin{table}[h]
|
||||
\caption{Index: english-name-category statistics}
|
||||
\centering
|
||||
|
|
@ -24,17 +36,19 @@ The above code fetches indexed product name and its top hierarchy level category
|
|||
Samples total&22160 \\
|
||||
Dimensionality&2 \\
|
||||
Features&name \\
|
||||
Target&category \\
|
||||
Label&category \\
|
||||
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
|
||||
Table \ref{table:enc} highlights the total number of products and category, which field is considered as feature and target.
|
||||
|
||||
\section {Feature selection and dataset sources} \label{sec:feature-selection}
|
||||
|
||||
A feature represents a dataset fine-tuned to serve as a training data for machine learning model. The feature selection API from Scikit learn \parencite{sklearn_api} name it as dimensionality reduction. In table \ref{table:enc} the dimensionality is only two. Hence, the obvious choice of feature is "Product name" and target is "Category". Selecting features from higher number of dimensionality is a challenge and a deciding factor to improve the estimators' accuracy scores.\\
|
||||
A feature represents a dataset fine-tuned to serve as a training data for machine learning model. Choosing obvious set of features could get a decent performance on classification task. However, carefully constructed relevant set of features could impact the learning ability and again a significant gain in performance. The feature selection API from Scikit learn \parencite{sklearn_api} also refers to it as dimensionality reduction. A common approach for feature selection is ``kitchen sink'' in which all the features are initially included later each are checked to determine whether they are actually helptfull \parencite{BirdKleinLoper09}.
|
||||
|
||||
In table \ref{table:enc} the dimensionality is only two. Here, the feature is ``Product name'' and label is ``Category''. Selecting features from higher number of dimensionality is a challenge. Appropriate features are factors to improve the classification models' accuracy scores.\\
|
||||
Various methods for feature selection with Scikit Learn API are:-
|
||||
\begin{enumerate}
|
||||
\item Removing features with low variance
|
||||
|
|
@ -43,21 +57,17 @@ Various methods for feature selection with Scikit Learn API are:-
|
|||
|
||||
\end{enumerate}
|
||||
|
||||
% The datasets used primarly for extracting feautures will be from the existing product database. In this paper, the datasets used are of an ecommerce business belonging to automotive industry domain. Secondary dataset used is from the TecDoc catalogue by TecAlliance \footnote{https://www.tecalliance.net/}
|
||||
\section{Potential features}
|
||||
|
||||
Author initially chose to experiment with two-dimensionality, a simple experiment of predicting target which is top level category with feature which is the name of the product. Refer table \ref{table:feature_decription} to view the potential features for an ecommerce domain.
|
||||
% five levels of categories are taken into consideration. The number of category levels differ for each product. Consider an example of category tree with three levels.
|
||||
In this paper, the datasets used are of an ecommerce business specializing in automotive industry domain. Secondary dataset used is from the TecDoc catalogue by TecAlliance \footnote{https://www.tecalliance.net/}.
|
||||
|
||||
% \begin{quote}
|
||||
% \centering
|
||||
% sparepart/cooling-system/thermostat
|
||||
% \end{quote}
|
||||
% In such case, level 4 and level 5 will be appended with values using data imputation techniques, refer section \ref{dataimput}.
|
||||
% \begin{figure}[h]
|
||||
% \centering
|
||||
% \small{This is text. It's in a figure environment but it's still text}
|
||||
% \caption{\label{fig_text}Some text that can float as a figure}
|
||||
% \end{figure}
|
||||
Refer table \ref{table:feature_decription} to view the potential features for an ecommerce domain. In this paper, five levels of categories are taken into consideration. The number of category levels differ for each product. Consider an example of category tree with three levels.
|
||||
|
||||
\begin{quote}
|
||||
\centering
|
||||
sparepart/cooling-system/thermostat
|
||||
\end{quote}
|
||||
In this example, the lowest level of category is ``thermostat'' as level 4 and level 5 does not exist and will be represented by black or NaN. These blank or NaN value records can go through data imputation as discussed in chapter \ref{ch:data-imputation}.
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
\chapter{Text normalization} \label{text_normalization}
|
||||
|
||||
Text normalization is a process of transforming the document into a standard and consistent form of a text. A document is a text from single source. Some examples of document are list of product names from databases, a pdf file, texts retrieved from web scraping. Text normalization enables to perform required operations on the text as the text inputs are consistent across the document. The process of text normalization varies based on the type of text that needs to normalize. There is no standard method for text normalization task. In this paper, text normalization of product name and category from the database source is performed. The text are of two languages, English and Deutsche.
|
||||
Text normalization is a process of transforming the document into a standard and consistent form of a text. A document is a text from single source. Some examples of document are list of product names from databases, a pdf file, texts retrieved from web scraping. Text normalization enables to perform required operations on the text as the text inputs are consistent across the document. The process of text normalization varies based on the type of text that needs to be normalize. There is no standard method for text normalization task. In this paper, text normalization of product name and category from the database source is performed.
|
||||
|
||||
In table \ref{table:TN}, displays the difference in text before and after normalization.
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ In table \ref{table:TN}, displays the difference in text before and after normal
|
|||
&\textbf{Name} & \textbf{Category} \\
|
||||
\midrule
|
||||
\textbf{Before}& Company V10-4245 Stoßdämpfer & Stoßdämpfer \\
|
||||
\textbf{After}&company v104245 stoßdampfer & stoßdampfer \\
|
||||
\textbf{After}&company v104245 stossdaempfer & stossdaempfer \\
|
||||
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
|
|
@ -60,6 +60,19 @@ A product name in Deutsch language may contain umlaute characters such as \"A.
|
|||
if unicodedata.category(c) != 'Mn')
|
||||
\end{lstlisting}
|
||||
|
||||
Another option is to replace the German characters to equivalent English sounding characters. Table \ref{table:deu-eng} lists the common German characters and their equivalent English sounding series of characters. In this way, the reverse translation is easier.
|
||||
\begin{table}[h]
|
||||
\centering
|
||||
\caption{German characters to English}
|
||||
\label{table:deu-eng}
|
||||
\begin{tabular}{ llll }
|
||||
\toprule
|
||||
\"A& Ö& Ü&ß \\
|
||||
Ae&Oe & Ue&ss\\
|
||||
|
||||
\bottomrule
|
||||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
\section{Summary}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
\chapter{Impute missing text data}
|
||||
\chapter{Impute missing text data} \label{ch:data-imputation}
|
||||
|
||||
Machine leaning algorithms requires that their inputs have no missing values.
|
||||
Missing values encoded as NaNs or blanks are incompatible with estimators which represents as the numerical values and assumes all values have and hold meaning. Discarding the entire row and/or columns of a dataset containing the missing values could lead to losing valuable data. The process to fill (impute) missing values are referred to as imputation.
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
\chapter{Feature extraction}
|
||||
\chapter{Feature extraction} \label{ch:feature-extraction}
|
||||
|
||||
Transforming text or image data into numerical representation usable for machine learning is called feature extraction. Raw sequence of data cannot be fed directly into a machine learning algorithm as they expect data in numerical vector and in fixed size. Whereas raw text document are of variable lengths.
|
||||
|
||||
\section{Tokenization}
|
||||
|
||||
Tokenization is splitting the text in sequential words which can be embedded in a vector space.
|
||||
For example, the normalized product name "abc joint kit drive shaft" can be tokenized into "abc", "joint", "kit", "drive", "shaft".
|
||||
For example, the normalized product name ``abc joint kit drive shaft'' can be tokenized into ``abc'',``joint'',``kit'',``drive'',``shaft''.
|
||||
|
||||
|
||||
|
||||
|
|
@ -77,3 +77,9 @@ Pickle \footnote{https://docs.python.org/3/library/pickle.html} module creates a
|
|||
\begin{lstlisting}[language=Python,label=pickle, caption={Pickle vectorization}]
|
||||
pickle.dump(self.vectorizer, open("vector.pickel", "wb"))
|
||||
\end{lstlisting}
|
||||
|
||||
\section{Summary}
|
||||
|
||||
Feature extraction is a process of transforming the normalized text into numerical representation for machine learning. Tokenization of text and Counting are terms to split the text in sequence of words and there occurrence.
|
||||
|
||||
In this thesis, author has used the n-grams vectorization method to convert the feature - product name into a vector format. This creates a vocabulary of product name. For example, consider total number of unique words in entire product name column is 100. The name of the product will be a vector shape of 1 \time 100 with each text represented in one-hot encoded format. Refer table \ref{table:countencode} for visual representation.
|
||||
|
|
@ -106,17 +106,6 @@ For example, consider a vocabulary of 100 unique words in the \textit{ProductNam
|
|||
\end{tabular}
|
||||
\end{table}
|
||||
|
||||
% \section{\Citeauthor{sean} input tensors vs Product name to tensor}
|
||||
|
||||
|
||||
% \begin{lstlisting}[language=Python,label=sean, caption={\Citeauthor{sean} input tensor}]
|
||||
% def lineToTensor(line):
|
||||
% tensor = torch.zeros(len(line), 1, n_letters)
|
||||
% for li, letter in enumerate(line):
|
||||
% tensor[li][0][letterToIndex(letter)] = 1
|
||||
% return tensor
|
||||
% \end{lstlisting}
|
||||
|
||||
\section{Architecture of \acf{RNN}}
|
||||
\acs{RNN} module copied from \parencite{sean} tutorial contains two linear layers which operate on input and hidden state, with LogSoftmax layer after the output layer. \acfp{RNN} \parencite{Rumelhart.1986} is best suited for machine learning problems that involve sequential data and use patterns to predict the output. This machine learning algorithm store information of previous states and holds the memory.
|
||||
\begin{lstlisting}[language=Python,label=code:RNN-class, caption={\acf{RNN} class}]
|
||||
|
|
@ -203,6 +192,8 @@ The graphical representation of code listed in \ref{code:RNN-class} is illustrat
|
|||
\item softmax: Layer used for classification.
|
||||
\end{itemize}
|
||||
|
||||
|
||||
|
||||
\section{Forward propagation equation} \label{sec:forward-propagation}
|
||||
The forward propagation equations for the recurrent neural network (RNN) depicted in code \ref{code:RNN-class}, assuming the tanh activation function for hidden units and a discrete output (used for predicting words or characters) \parencite{Goodfellow-et-al-2016}, are as follows
|
||||
\begin{enumerate}
|
||||
|
|
@ -308,3 +299,12 @@ Adaptive Softmax \parencite{Grave.14092016} is effective when large number of cl
|
|||
Adaptive Softmax \parencite{Grave.14092016} counter this issue by clustering the classes according to their frequency of occurrence. A simple strategy to reduce the overall computation time is to partition the labels \(V\) into two clusters as \(V_h\) and \(V_l\), where \(V_h\) denotes the distribution consisting of the most frequent classes, and where \(V_l\) are many rare classes. The classifier frequently accesses \(V_h\), which motivates the fact that it should be computed efficiently. In contrast, \(V_l\) less frequently, and the corresponding computation can be slower. This suggests defining clusters with unbalanced cardinalities \(|V_h| \geq |V_l|\) and probabilities \(P(V_h) \geq P(V_t)\).
|
||||
|
||||
Pytorch's \parencite{Paszke.03122019} nn.AdaptiveLogSoftmaxWithLoss module implements \acf{ALL}
|
||||
|
||||
|
||||
\section{Summary}
|
||||
|
||||
In this chapter, author describes how he ideated the concept of vocabulary based RNN. This method is a modified version of character level RNN \parencite{sean}. The method of converting the product name into a tensor format is described in this chapter.
|
||||
|
||||
Architecture of the RNN and pictorial representation of flow of data within the neural network is depicted. It gives an overview of the activation functions and forward propagation method.
|
||||
|
||||
Research on mathematical representation of the RNN is conducted in this chapter. Step by step formulation and equations with regard to probability distribution is explained in this chapter.
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
After processing the document into a standard and consistent from as discussed in chapter \ref{text_normalization}. the normalized form data can be stored in any database for frequently accessing the data for training purpose. In this experiment, the database used is Elastic Search. The author initially trained the classification model with only one feature ``Product name'' and the target being the lowest level of category.
|
||||
Table \ref{table:AfterNormal} displays the difference in the number of records after removing the duplicate records on the normalized text. An Index in elastic search is a logical namespace for storing data in JSON format. The indexer names ``english-taxonomy-all'' contains the data before normalization. ``english-taxonomy-normal'' contains the data after normalization and removing the duplicate entries.
|
||||
|
||||
\begin{table}[h]
|
||||
\begin{table}[H]
|
||||
\centering
|
||||
\caption{Record count before and after normalization}
|
||||
\label{table:AfterNormal}
|
||||
|
|
@ -309,7 +309,7 @@ The steps involved in training a model with \acs{CLR} are as follows :
|
|||
|
||||
\begin{figure}[H]
|
||||
\centering
|
||||
\includegraphics[scale=0.7]{loss_nan.png}
|
||||
\includegraphics[scale=0.6]{loss_nan.png}
|
||||
\caption{Result: Loss value returning nan}
|
||||
\label{fig:Loss value}
|
||||
\end{figure}
|
||||
|
|
@ -472,3 +472,23 @@ In this experiment, the model is trained with and without triangular learning ra
|
|||
|
||||
|
||||
\end{enumerate}
|
||||
|
||||
|
||||
\section{Summary}
|
||||
|
||||
This chapter is about the result of classification model. How the normalized text data is indexed and fetched from the elastic search is mentioned in this chapter. Initialization of the Train class and its input parameters detailed explanation is given in this chapter.
|
||||
|
||||
What is \acf*{BPTT}? How its relevant backwards methods works? are mentioned in the chapter.
|
||||
|
||||
Author experiments with the model parameters and evaluates the model based on the logarithmic loss value.
|
||||
|
||||
Few training experiments are:
|
||||
\begin{itemize}
|
||||
\item Training model without any learning parameters.
|
||||
\item Updating the number of hidden states in a neural network.
|
||||
\item Determining the learning rate range.
|
||||
\item Training with Triangular learning rate.
|
||||
\end{itemize}
|
||||
|
||||
|
||||
This chapter also describes the gradient decent \parencite{cauchy} step adjustment and compares the equation with the Pytorchs's tensor gradient method of adjustment with learning rate.
|
||||
|
|
@ -1,32 +1,58 @@
|
|||
\chapter{Introduction}
|
||||
|
||||
\section{Topic overview}
|
||||
\section{Background and context}
|
||||
|
||||
While working at an E-commerce company selling automobile parts, author realized that various manufacture and suppliers of similar kind of automobile parts may have different product taxonomy. Defining the product taxonomy is a prior task of product deployment. Manually defining the product taxonomy requires a significant amount of time and are prone to error. \\
|
||||
While working at an e-commerce industry, specializing in sales of automobile parts, author realized that manufactures and suppliers of similar automobile parts often utilize different product taxonomies. Product taxonomy is hierarchical multi level categorization of the product. Suppliers rely on online platforms to reach out to the customers. In the business context, the term "supplier" encompasses entity contributing to production and distribution of goods and services. Therefore, in this thesis, the term "supplier" include both manufactures or any source which provides information on the product for sale. Suppliers are business partners who provide the stocks of products along with associated product details.
|
||||
|
||||
E-commerce industry is growing, and many products are sold online. Use of machine learning model for suggesting the products to the customer, auto completing the search text, auto filtering of products based on the text provided by the user describing the product are few of the tasks which is managed by artificial intelligence. All the tasks can only be performed appropriately only if the product taxonomy is well-defined. \\
|
||||
However, due to inconsistencies in the product taxonomies among various suppliers, directly importing these product taxonomies into the online platform is not feasible. The inconsistency could be due to use of different vocabulary for the similar product. For example, supplier A may use the term "Motor oil" and supplier B may use the term "Engine oil" for the same product. The process of product deployment is as following: suppliers furnish the product details, online retailers update the product taxonomies with their specific vocabulary. Once the taxonomies are updated these products details are accessible for the customers.
|
||||
|
||||
Defining the product taxonomy is a prior and crucial task of product deployment. A well-defined product taxonomy enables customers to search the product with the fewest possible clicks. Manually defining the product taxonomies requires a significant amount of time and are prone to human error.
|
||||
|
||||
The e-commerce industry is growing substantially, and wide range of products being offered online. Utilization of machine learning model for recommending the products to the customer, auto completing the search text, automatically filtering of products based on the product description provided by the customer are few examples of function facilitated by artificial intelligence. It is important to note that successful execution of all these functionalities primary requirement is to have a well-defined product taxonomy.
|
||||
|
||||
\section{Problem statement and Research question}
|
||||
Customer review monitoring system uses natural language processing to understand the semantic meaning of the comment. Determining whether a customer is satisfied or dissatisfied based on their review can be a complex task. By understanding the semantic meaning helps to identify the negatively commented review regarding a product or service. The reviews are classified as either positive or negative, similar to the classification problem of predicting the product category.
|
||||
|
||||
In this paper, author equates on mathematical functionality of probability distribution and learning mechanism of \acl*{RNN}. These insights are applicable to wide range of classification problem.
|
||||
|
||||
Apart from the classification problem, this paper presents the concept of knowledge base. Online retailers strive to engage with their customers effectively through tools like chatbot, capable of answering frequently asked question. The queries asked by the customers and their relevant answers are in the form of an unstructured textual data. In this thesis, author presents a prototype for converting the unstructured textual data into a directed acyclic graph. These graphs, in conjunction with the question generator machine learning model, can function as a knowledge base. Knowledge base serve as a foundation for chatbot applications to traverse through the graph structure, locate relevant leafs nodes, and formulate human-readable response.
|
||||
|
||||
\section{Research questions}
|
||||
|
||||
\begin{enumerate}[label=\textbf{RQ\arabic*:}]
|
||||
\item What are the use cases in which natural language processing and machine learning model can be utilized in an E-Commerce industry?
|
||||
\item For a product classification task, how to define product features as an input for machine learning model?
|
||||
\item How does a machine learn pattern in product features for classification?
|
||||
\item What are the use cases in E-commerce industry akin to classification problem?
|
||||
\item For product categorization, how to define product features as an input for machine learning model?
|
||||
\item How does a machine learn patterns for classification?
|
||||
\begin{enumerate}[label=\textbf{SRQ\arabic*:}]
|
||||
\item What are the mathematical equations behind the learning process?
|
||||
\item What are the mathematical reasons for applying certain pytorch functions during the training process?
|
||||
\item What are the mathematical equations behind the machine learning process?
|
||||
\item What are the mathematical reasons for applying a certain Pytorch function during the training process?
|
||||
\end{enumerate}
|
||||
|
||||
\item What is the algorithm to train the machine learning model to predict the product taxonomy?
|
||||
\item What algorithm could be used to train the machine learning model to predict the product taxonomy?
|
||||
\item Which are the tasks indirectly dependent on a well-defined product taxonomies?
|
||||
\item What are the future research areas around the created product category prediction model?
|
||||
\end{enumerate}
|
||||
|
||||
\section{Methodology}
|
||||
|
||||
Machine learning model to text classification for predicting the product taxonomy is a methodology in which a lot of research have been conducted \parencite{AliCevahir.} \parencite{Gupta.20062016}. In this thesis, author classifies the product by representing the features of the product into vector of entire vocabulary of dataset. This approach is inspired by \parencite{sean}, in which the language of the name is predicted based on the pattern of characters in name input.
|
||||
\subsection{Start with small prototype}
|
||||
|
||||
\section{Thesis structure}
|
||||
Developing a machine learning model to predict the multi level product categories has series of task and is a complex process. In this paper, to reduce the complexity and primarily focus on the classification problem, author choose to develop a model which predicts the lowest level of category only based on one feature that is the name of the product. Once the smaller working prototype is developed, more features can be integrated along with multiple levels of category.
|
||||
|
||||
\subsection{Data collection}
|
||||
The data on which the research will be conducted belongs to an E-commerce industry specializing in automotive parts \footnote{\url{www.retromotion.com}; Accessed on : 05-09-2023}. Ebay, Amazon are few of the third party business partners from which the source of data is fetched. Automotive parts manufacturing companies such as Mahle GmbH and others furnish stock details. These data from various suppliers will be processed and stored into search analytic engine-Elastic search. In this project, author fetches product features from Elastic search. Author uses Pytorch a machine learning library to create a classification model.
|
||||
|
||||
|
||||
\subsection{Ideate: Vocabulary pattern}
|
||||
Initial approach of finding a solution to product categorization is to analyze already existing solution to a different type of classification problem. For example, \parencite{sean} demonstrates the working of character level RNN. In which, the pattern of series of characters forming a name of a person are classified to predict which language the name belongs to. Analyzing this example author created a vocabulary level RNN to predict the lowest level of category based on the pattern of product name.
|
||||
|
||||
Machine learning model to text classification for predicting the product taxonomy is a methodology in which a lot of research have been conducted. \cite{AliCevahir.} implements classification model at every level using the \acl*{KNN} classifier. Like wise \parencite{Gupta.20062016} proposes a distributional semantics representation for predicting the product taxonomies. Some classifying methods are supervised classification, decision trees, naive Bayes classifier and max entropy classifiers \parencite{BirdKleinLoper09}
|
||||
|
||||
\subsection{Classification model evaluation}
|
||||
|
||||
In this thesis, author has recognized the complexity of task and has opted to base prediction solely on the product feature pattern. Analyzing the confusion matrix of predicted vs actual category will provide a visual evaluation of the model. The result of the model for all the existing data of product will be stored in search analytic engine Elastic search in order to manually check the falsely predicted category.
|
||||
|
||||
\section{Structure of the Thesis}
|
||||
|
||||
In the first chapter, gives the introduction of the thesis along with research questions and methodology.
|
||||
|
||||
|
|
|
|||
BIN
doc/images/supervised-classification.png
Normal file
BIN
doc/images/supervised-classification.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 62 KiB |
4
doc/images/supervised-classification.png:Zone.Identifier
Normal file
4
doc/images/supervised-classification.png:Zone.Identifier
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[ZoneTransfer]
|
||||
ZoneId=3
|
||||
ReferrerUrl=https://www.nltk.org/book/ch06.html
|
||||
HostUrl=https://www.nltk.org/images/supervised-classification.png
|
||||
|
|
@ -1,12 +1,15 @@
|
|||
\documentclass[15pt,twoside]{report}
|
||||
|
||||
|
||||
|
||||
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}
|
||||
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{float}
|
||||
\usepackage{fancyhdr}
|
||||
\usepackage[nohyperlinks, printonlyused, withpage, smaller]{acronym}
|
||||
\usepackage[sorting=nyt,backend=biber,style=authoryear,block=par]{biblatex}
|
||||
\usepackage[sorting=nyt,backend=biber,style=authoryear]{biblatex}
|
||||
\usepackage[inkscapeformat=png]{svg}
|
||||
\usepackage{booktabs,multirow,array}
|
||||
\usepackage{listings}
|
||||
|
|
@ -17,6 +20,8 @@
|
|||
\usepackage{tikz}
|
||||
\usepackage{tocloft}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{appendix}
|
||||
|
||||
\usetikzlibrary{positioning}
|
||||
\captionsetup[table]{skip=5pt}
|
||||
|
||||
|
|
@ -31,6 +36,9 @@
|
|||
\definecolor{codepurple}{rgb}{0.58,0,0.82}
|
||||
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
|
||||
|
||||
|
||||
|
||||
|
||||
% Define the page style "mystyle" for the fancyhdr package
|
||||
\fancypagestyle{mypagestyle}{
|
||||
% Clear all header and footer fields
|
||||
|
|
@ -66,6 +74,19 @@
|
|||
\lstset{style=mystyle}
|
||||
|
||||
\graphicspath{ {images/} }
|
||||
|
||||
\renewbibmacro*{url+urldate}{%
|
||||
\printfield{url}%
|
||||
\iffieldundef{urlyear}
|
||||
{}
|
||||
{\setunit*{\addspace}%
|
||||
\printtext[urldate]{\printurldate}}}
|
||||
|
||||
|
||||
\DeclareFieldFormat{url}{Available at\addcolon\space\url{#1}}
|
||||
|
||||
\DeclareFieldFormat{urldate}{\\Accessed on\addcolon\space#1}
|
||||
|
||||
\addbibresource{References.bib}
|
||||
|
||||
\includeonly{preliminary/title, %
|
||||
|
|
@ -80,15 +101,15 @@ chapters/chapter5,%
|
|||
chapters/chapter6,%
|
||||
chapters/chapter7,%
|
||||
chapters/chapter1,%
|
||||
chapters/conclusion%
|
||||
chapters/conclusion, %
|
||||
chapters/appendix%
|
||||
}
|
||||
|
||||
\begin{document}
|
||||
|
||||
|
||||
%--------------- Prelimanary pages -------------
|
||||
\pagenumbering{roman}
|
||||
\pagestyle{plain}
|
||||
|
||||
|
||||
%--------------------------------------------
|
||||
\include{preliminary/title.tex}
|
||||
|
|
@ -97,10 +118,11 @@ chapters/conclusion%
|
|||
|
||||
|
||||
|
||||
|
||||
\pagenumbering{roman}
|
||||
\pagestyle{plain}
|
||||
\tableofcontents
|
||||
|
||||
|
||||
\clearpage
|
||||
%----------------- chapters --------------------
|
||||
\pagestyle{mypagestyle}
|
||||
\pagenumbering{arabic}
|
||||
|
|
@ -131,14 +153,26 @@ chapters/conclusion%
|
|||
|
||||
\lstlistoflistings
|
||||
\include{preliminary/acronyms}
|
||||
\appendix
|
||||
% \include{chapters/appendix.tex}
|
||||
|
||||
|
||||
|
||||
\clearpage
|
||||
% \printglossary[type=\acronymtype]
|
||||
|
||||
% \printglossary
|
||||
\addcontentsline{toc}{chapter}{Bibliography}
|
||||
\printbibliography
|
||||
\printbibliography[title={References}]
|
||||
|
||||
\defbibheading{bibempty}{}
|
||||
|
||||
\let\oldbib\thebibliography
|
||||
\let\endoldbib\endthebibliography
|
||||
\renewenvironment{thebibliography}
|
||||
{\vspace{\baselineskip}\begin{oldbib}}
|
||||
{\end{oldbib}\vspace{\baselineskip}}
|
||||
|
||||
\addcontentsline{toc}{chapter}{Appendices}
|
||||
\appendix
|
||||
\include{chapters/appendix.tex}
|
||||
|
||||
\end{document}
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
% \begin{acronym}[ECU]
|
||||
|
||||
|
||||
\chapter*{List of abbreviations} \label{LOA}
|
||||
% \chapter*{List of abbreviations} \label{LOA}
|
||||
\begin{acronym}
|
||||
\acro{kg}[KG]{Knowledge graph}
|
||||
\acro{kb}[KB]{Knowledge base}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
|
||||
\begin{titlepage}
|
||||
\section*{Affidavit}
|
||||
|
||||
|
||||
|
|
@ -15,3 +16,5 @@ I, \textbf{Shoney Arickathil}, solemnly affirm and declare:
|
|||
|
||||
|
||||
Heidelberg, \today \hspace*{1mm} \hrulefill
|
||||
|
||||
\end{titlepage}
|
||||
|
|
|
|||
Loading…
Reference in a new issue