The Design and Implementation of an Intelligent Apparel Recommend Expert System

Now with the rapid development of information science and technology, intelligent apparel recommend has drawn wide attention in apparel retail industry. Intelligent management and effective recommend are two issues of crucial importance for the retail store to enhance its corporate influence and increase its economic benefits.This paper proposes an intelligent recommend system design scheme for apparel retail which is based on expert system. By comprehensive utilization of databasemanagement and expert system technology, the proposed system provides a solid solution in improving the customer shopping experience. This paper presents a kind of object-oriented blackboard structure, which is applied in the apparel recommend expert system and establishes expert rule on the basis of apparel characteristic elements. Through the establishment of the rule base, the system generates personal recommend list by positive rule reasoning mechanism engine. The proposed method thus gives dress collocation scheme for the customer through the human-machine interaction from the point of view of the apparel experts. This design scheme avails the customers to experience targeted service with intellectualization, and personalization and it has certain reference significance for promoting apparel retail intelligence development.


Introduction
Expert system is one of the most active and productive research in the artificial intelligence field now.Since Edward Feganbaum developed the first expert system, DENDRL, expert system has developed rapidly.It simulates the experts' thinking process of solving the problem, and is widely used in medical diagnosis, geological exploration, the petroleum chemical industry, and so forth.Also, it brings great economic and social benefits in these fields [1].
With the expanding of apparel consumer market and increasingly fierce competition, apparel intelligent recommend has drawn wide attention in apparel retail industry.Intelligent recommend is an issue of crucial importance for the retail store to enhance its corporate influence and increase its economic benefits.Over the last several decades, apparel recommended technology has made some achievements at home and abroad.Recommender system firstly appeared in 1997 [2].It refers to an application technology for knowledge discovery in a specific database.Some scholars applied intelligent agent and collaborative filtering technology in recommender service [3,4].Most of the recommendation systems are designed based on the analysis of product attributes, customer attributes, or customer behaviors.In 2003, Lam invented an apparatus for personalized apparel coordination.This invention facilitates a user to select, coordinate, appraise, and harmonize apparel without actually putting on the clothing [5].However, the apparatus is unable to give any evaluations about the coordination.In 2004, Kobayashi proposed a color planning method for coordinating apparel colors [6].However, this method was from the perspective of apparel color to make dress collocation and recommend for users.In 2009, Wong et al. proposed a fashion mix-andmatch expert system [7].In their study, the expert system was developed to provide customers with professional and systematic mix-and-match recommendations automatically.
This system could capture the knowledge and emulate the decisions of fashion designers on apparel coordination, and its knowledge base could store the literal form of information.This system thus generated effective mix-and-match recommendations for customers.Although expert system and apparel recommended technology matures, the case that intelligent recommend system applied in apparel retail is less.
In this study, intelligent recommend system design scheme for apparel retail based on expert system technology is proposed to provide professional and systematic expert recommendations.As is known to all, owing to custom influence, seasonal factor, and fashion trend, apparel industry updates and changes quickly.Improving service quality is therefore essential for enhancing the brand image so as to obtain more economic benefits for the apparel retail.Dress is different from other commodities.It is related to many factors, such as color, style, and collar type.In view of the particularity of apparel goods, this system first consults the customer information such as the body characteristics and color of skin conditions.It then automatically generates recommended clothes which is suitable for the customer.In other words, it can simulate the thinking process of apparel recommend experts and use expert rules to recommend clothes for customers in the perspective of professionals.It avails the customers to experience targeted service with intellectualization and personalization, and it has certain reference significance for promoting apparel retail intelligence development.
The rest of the paper is organized as follows: Section 2 formulates the structure of apparel intelligent recommend expert system.It also analyzes how to represent and acquire the expert system rules.Section 3 presents expert system working process and principle.At the same time, it elaborates the system structure of blackboard in details.Section 4 describes the system design and implementation with experimental data.Section 5 draws the conclusion and the states of the possible further research direction.

Designing of Intelligent Apparel Recommend Expert System
Among all artificial intelligence research fields, expert system has the most practical value, and recently its application technology becomes more mature.Expert system is a kind of computer programming system, which uses specialized knowledge and ratiocination to solve problem in some specific fields [8].That is to say, abundant specialized knowledge about the costume collocation has already been stored in the expert system illustrated in this paper.For those customers who do not qualify with this specialized knowledge, the proposed apparel recommend expert system can generate the recommendations sheet according to their personal information and give explanations on these recommendations.

Structure of Intelligent Apparel Recommend Expert System.
The expert system illustrated in this paper is based on the expert rules.It can help customers selecting the most suitable clothes among the abundant apparel according to personal condition and increase customers' satisfaction.The structure of apparel recommended expert system is shown in Figure 1.It contains human interface, inference machine, knowledge base, database, and explaining organization.The rule base and inference machine are the kernel of the system.Among all these modules in Figure 1, human machine interface (HMI) module is to realize the interaction between the system and customers.Firstly, the customer's basic information is obtained from the customer via the HMI to generate the personal information elements (skin color preference, figure type, face type, etc.).On the other hand, the recommendation sheet is also provided to the customer via HMI.Inference machine is the "brain" of the system.Depth-first search mechanism is applied in the expert system [9].It uses production rule (a kind of forward reasoning method) [10] to invoke the expert rule in the knowledge base, and finally generates the apparel recommendation sheet.Knowledge base module contains fact base and rule base.Fact base is designed to store the train data of clothes.Rule base is the main part of the knowledge base.The dynamic database stores the intermediate result of system ratiocination.The explaining organization gives reasons on the final recommendation according to the intermediate ratiocination.It makes the expert system more transparent, and further on, increases the customers' satisfaction.Figure 2 shows the flow of the system working.

Presentation of Rule.
Generally, human knowledge expresses and spreads via words and language.However, in order to be understood and ratiocinated by computer, it has to be formalized into a model which computer can recognize.This system introduced a definition of production rule.Usually, knowledge definition of production rules expressed as follows [11]: Which means if  set up,  also, established.It is simplified to

Rules Acquisition.
Apparel is a kind of peculiar commodity.From the perspective of costume design, each piece of apparel is composed of variety of characteristic elements.Whether each apparel characteristic element or the collocation between each factor matchs mainstream aesthetic is closely related to the physical characteristics of personal appearance, body conditions, or other factors.This paper combined with the research on expert advice on apparel merchandise put costume commodity into varieties of characteristic elements and characteristic elements of the decomposition factor.Table 1 shows the detailed apparel commodity characteristics elements, including color, style, collar type, pants type, skirt type, waist type, and sleeve type.
Taking the advice of dress collocation expert, the proposed system is designed from the following aspects: the collocation of skin color and apparel color, the collocation of stature and apparel style, the fitness of collar type to the

Blackboard Structure of Intelligent Apparel Recommend Expert System
3.1.Blackboard Structure.Blackboard structure [12] is applied to the proposed apparel intelligent recommend expert system.It contains three parts: knowledge sources, blackboard and controlling program.Actually, blackboard structure is the global database which is used to store the original data, intermediate ratiocination process, and ratiocination results; it acts as the medium in the interaction and communication of different knowledge sources.The information on the blackboard structure is divided into many layers, and each layer represents the description of costume information in different detail levels [13].High level apparel collation scheme evolves from low level ones, so their relationship can be expressed in a tree structure.Generally, only knowledge sources can modify, insert and delete information on the blackboard.
In the proposed experts system, knowledge sources are the set of rules that generate apparel recommended program from the same point of view.Each knowledge source can complete apparel experts recommend work from different point of view of customers.Knowledge sources include both premise and action.Knowledge sources are independent of each other that cannot be called directly and can only communicate through the blackboard.
Control mechanism is used to monitor the change of blackboard information, which can inspect the premise of each knowledge source continuously.Usually, once the premise of a knowledge source is established, this knowledge will be activated immediately, conduct the action of its part, and generate corresponding apparel recommendation scheme on the blackboard.And when change signal is sent by the information on blackboard, control mechanism can activate other knowledge sources, until the final recommendation scheme is generated [14].The discipline is that when

Show to customers
Continue to screen by price and material factors, and so forth Whether the customer is satisfied?
The final recommendation results the premises of multiple knowledge sources are coupled with the change state of blackboard information, the control mechanism can always choose the knowledge source which offers the best assistance to solve the problem to function first.

Task Tree of Blackboard
Structure.The blackboard model is reasoning to random combinations to multiple knowledge sources multisub(task).The scheduler program between each subtask is a meta-level reasoning [15].It make the use of the information generated from the blackboard to scheduling the reasoning of various knowledge sources; that is, the system is a meta-level knowledge and meta-level reasoning apparel recommended expert system.Based on the blackboard structure model, the problem that needs to be solved can be divided into a quest tree [16].Therefore, a problem consists of multiple tasks, and each task can be solved by taking advantage of different knowledge sources.As shown in Figure 3, the goal of apparel recommended expert system is to generate apparel recommended menu.This paper divides general task into six subtasks; each subtask took advantage of knowledge source to solve.The reasoning process is designed in positive reasoning mechanism engine [17].For example, through invoking the knowledge source of apparel color and skin color collation system can generates an apparel color scheme which is suitable for this customer.In another word, system recommends this customer in the aspect of apparel color and skin color collation, and generate the color scheme.Based on this recommendation, system invokes next knowledge source, makes a recommendation in the aspect of the collation of pants/skirt type and stature, and generate, corresponding scheme.And the like, system will do the similar job until transversing all tasks.

Analysis of the Blackboard Structure.
The blackboard structure of apparel recommended expert system is shown in Figure 4. Blackboard structure is the workspace of the global database which is used to store all kinds of statuses produced in the ratiocination.It is divided into different layers.Data used and modified by different knowledge sources is on different layers [18].Blackboard structure of this system is divided into 7 layers; each layer dispatches this layer's knowledge sources (KS) based on the upper layer, generates new recommendation scheme, and stores it to the next layer of the blackboard until all KS are dispatched.KS of this system  can be divided into 4 kinds: KS1 is about the collocation of clothes color and skin color, KS2 is about the collocation of clothes type and stature, KS3 is about the collocation of collar type and face type, and KS4 is about the collocation of clothes style and situation.Command is used to activate KS when scheduling sequence dispatch KS.The scheduling sequence is generated by the scheduling program, which is stored in the control database of this expert system.After the interaction between customer and expert system, system will store the result of interaction on layer 1 of the blackboard automatically.Scheduling program will generate the scheduling sequence, activate KS1, and generate the recommendation scheme in the aspect of color.Then it will store the scheme on layer 2 of black board.System will dispatch KS2, continue the similar preclude on layer 2, and generate the recommendation scheme in the aspect of clothes type.And the like, till invoking KS4, system will form the final clothes recommendation sheet in all the 4 aspects: clothes color, style, type, and dress occasion.
Figure 5 illustrates the execution process of scheduling program from the bottom layer to the top layer of the black board.If the final recommendation sheet does not satisfy the customer successfully, the system could go back to the bottom layerand redo the whole procedure after more interactions with the customer, that makes the system have the feedback link of closed loop.

Realization of Intelligent Apparel
Recommend Expert System 4.1.Development Environment.The common expert system developing languages include PROLOG and LISP, which are specially designed for the development of artificial intelligence system.The disadvantages of these languages include poor performance of visualization, difficulty in developing foreground, and bad controllability of reasoning process.In this paper, SQL Server 2005 is applied to store and process data while foreground program is developed in Visual C#.C# is objected-oriented language, and is the first choice for the development of foreground and various modules because of its excellent performance in the human-machine interaction and graphical display [19].

System
Realization.The principle of the proposed apparel intelligent recommend expert system is that it changes recommend process into a state space search by using the known facts that constitute the initial state to generate of target state.The realization of the recommendation process therefore can be simplified to search route which is from the initial state to a target state in the whole state space by inference machine.System testing data mainly sources from the opening apparel websites.In order to simulate the expert system of apparel shop, this system selects nearly 100 items of apparel information and stores them in the background database.And all these items form the training data set of the intelligent recommend expert system, including apparel name, apparel type, style, color, sleeve type, collar type, waist type, price, season, and material.
Apparel intelligent recommend expert system can call the rules in the rule base to match the fact in the fact repository according to the information which the customer submits via HMI.It then gets expert recommendation results.For example, a customer submits her information to this system which includes shallow yellowness of skin color, standard body shape, inverted triangle face, and dress occasions for home leisure.The expert system could generate apparel recommendation results after running program and show it to the customer via HMI, as shown in Figure 6.If the customer is not satisfied with the recommendations of the system, the system allows the user to further screening according to the price, material, and so forth on the basic of recommendation results.At the same time, expert system can explain the reason of generating recommendation results.If the customer is still not satisfied with recommendation results, this system will automatically recommend popular apparel in sales season.

Conclusions
In this paper, an intelligent recommend expert system design scheme for apparel retail is proposed to provide professional and systematic apparel expert recommendations.The system designs a kind of object-oriented blackboard and establishes expert rule on the basis of apparel characteristic elements.
Through the establishment of rule base, the system generates personal recommend list by positive rule reasoning mechanism engine.The proposed method thus gives dress collocation scheme for the customer through the HMI from the point of view of the apparel experts.The experimental results using the test data demonstrate that the proposed system is effective.In short, the intelligent recommend method based on expert system could recommend the suitable apparel for the customer and improve the customer experience level.It avails the customers to experience targeted service with intellectualization and personalization, and it has certain reference significance for promoting apparel retail intelligence development.
As the popular trend of apparel varies year by year, related recommend knowledge from the experts may be changed as well.How to make the recommend expert systems generate   new rules automatically, namely, machine learning, is one of the possible directions of future research.

Figure 2 :
Figure 2: Flow chart of apparel intelligent recommend expert system.

Figure 3 :
Figure 3: Task tree of blackboard structure.

Table 1 :
Apparel merchandise characteristic elements of the decomposition table.