# An Interactive Personalized Garment Design Recommendation System Using Intelligent Techniques
## 4 Implementation and Application
### Determination of the Garment Profile  
The garment profile was constituted by the characteristics of the style, color, fabric, and garment fit level. It is assumed that there are five kinds of leggings patterns, five kinds of fabrics, and five kinds of colors in the proposed system. These were the two approaches for determining the style characteristics. For the style elements, whose requirements and characteristics were defined by one-hot vectors, including the silhouette (\(SR_{1}\)), the waistband (\(SR_{4}\)), the leg opening (\(SR_{5}\)), the dart (\(SR_{6}\)), the pleat (\(SR_{7}\)), the yoke (\(SR_{8}\)), the ornament (\(SR_{9}\)), and the pocket (\(SR_{10}\)). For the remaining elements, involving the length (\(SR_{2}\)) and the waistline position (\(SR_{3}\)), their characteristics (see Table 3) were calculated based on fuzzy classification. We take the calculation of the characteristics of the waistline position as an example by which to expound on the proposed method. The concrete procedures were as follows: \begin{table}
\begin{tabular}{c c c c} \hline \hline
**S.N.** & **Category** & **Type** & **Style Requirements** \\ \hline
1 & Silhouette & \(SR_{1}=\left[\begin{array}{cccccc}0&0&0&0&1\end{array}\right]\) & Skinny type \\
2 & Length & \(SR_{2}=\left[\begin{array}{cccccc}0&0&0&0&0.2&0.8\end{array}\right]\) & Close to ankle length by 80\% and full \\  & & & & & length by 20\% \\
3 & Waistline position & \(SR_{3}=\left[\begin{array}{cccccc}0.25&0.75&0\end{array}\right]\) & Close to normal waistline by 75\% and \\  & & & & lower waistline by 25\% \\
4 & Waistband & \(SR_{4}=\left[\begin{array}{cccccc}0&1&0\end{array}\right]\) & Straight waistband \\
5 & Leg opening & \(SR_{5}=\left[\begin{array}{cccccc}1&0&0\end{array}\right]\) & Tapered leg opening \\
6 & Dart & \(SR_{6}=\left[\begin{array}{cccccc}1&0&0&0&1\end{array}\right]\) & No front and back dart \\
7 & Pleat & \(SR_{7}=\left[\begin{array}{cccccc}1&0&0&0\end{array}\right]\) & No front pleat \\
8 & Yoke & \(SR_{8}=\left[\begin{array}{cccccc}1&0&0&0\end{array}\right]\) & No yoke \\
9 & Ornament & \(SR_{9}=\left[\begin{array}{cccccc}0&0&0&0&0&1\end{array}\right]\) & No ornament \\
10 & Pocket & \(SR_{10}=\left[\begin{array}{cccccc}1&0&0&0&0&0\end{array}\right]\) & \(1\) & 0 & 0 & 0 \\ \hline \hline \end{tabular}
\end{table} 
Table 1: The requirements for the pants style elements \(SR\). \begin{table}
\begin{tabular}{c c c c} \hline \hline
**S.N.** & **Feature Position** & \multicolumn{2}{c}{**Normalized Garment Fit Level**} & \multicolumn{2}{c}{**Garment Fit Level**} \\  & & \multicolumn{2}{c}{**Requirements**} & \multicolumn{2}{c}{**Requirements**} \\ \hline
1 & Waist girth & \(FR_{1}=\left[\begin{array}{cccccc}0&1&0&0&0\\ 0&1&0&0&0\end{array}\right]\) & Tight \\
2 & Hip girth & \(FR_{2}=\left[\begin{array}{cccccc}0&1&0&0&0\\ 0&1&0&0&0\end{array}\right]\) & Tight \\
3 & Knee girth & \(FR_{3}=\left[\begin{array}{cccccc}0&1&0&0&0\\ 0&1&0&0&0\end{array}\right]\) & Tight \\
4 & Ankle girth & \(FR_{4}=\left[\begin{array}{cccccc}0&1&0&0&0\end{array}\right]\) & Tight \\ \hline \hline \end{tabular}
\end{table} 
Table 2: The requirements of garment fit levels at feature positions \(FR\). Step 1: The waistline position's fuzzy membership functions \(MF_{SC_{val}}\) are defined as below:  
\[ \begin{split}\text{MF}_{lower\ waist\ line}\Big{(}ge^{val}\Big{)}& =\begin{cases}1,&ge^{val}\in[-\infty,-3]\\ -\frac{ge^{val}}{3},&ge^{val}\in[-3,0]\\ 0,&otherwise\end{cases}\\ \text{MF}_{normal\ waist\ line}\Big{(}ge^{val}\Big{)}&=\begin{cases} \frac{ge^{val}}{3}+1,&ge^{val}\in[-3,0]\\ -\frac{ge^{val}}{3}+1,&ge^{val}\in[0,3]\\ 0,&otherwise\end{cases}\\ \text{MF}_{high\ waist\ line}\Big{(}ge^{val}\Big{)}&=\begin{cases} \frac{ge^{val}}{3},&ge^{val}\in[0,3]\\ 1,&ge^{val}\in[3,+\infty]\\ 0,&otherwise\end{cases}\\ \end{split}  \tag{13}\]  
where \(ge^{val}\) refers to the garment ease allowance of the waistline position.