Garment fabric popularity index prediction method and system, medium and computer

By analyzing the historical sales data and macro-industry data of the clothing industry, and using the popularity index prediction model, the problem of predicting the popularity of clothing fabrics is solved, the accuracy of purchasing decisions is improved, and corporate benefits are guaranteed.

CN118607995APending Publication Date: 2024-09-06GUANGZHOU XINJING INFORMATION TECH SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410751119.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult to accurately predict the popularity of clothing fabrics with existing technology, which makes it easy for companies to overstock or understock fabrics when purchasing, affecting efficiency.

Method used

By obtaining historical sales data of the clothing industry, dividing it into unit period data, analyzing fabric categories and macro industry data, using pre-established popularity index prediction models for training and prediction, and calculating the popularity index of fabrics, including using convolutional neural networks and BiLSTM Time series models for feature extraction and prediction.

Benefits of technology

It provides a more scientific judgment of fabric fashion trends, helping enterprises to effectively ensure benefits, avoid fabric procurement errors, and improve the accuracy of procurement decisions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607995A
    Figure CN118607995A
Patent Text Reader

Abstract

The invention relates to a garment fabric popularity index prediction method, a garment fabric popularity index prediction system, a medium and a computer, and establishes a comprehensive garment fabric database by integrating data resources. After the fashion cycles of different fabrics are analyzed, the calculation caliber of the fashion index of the garment fabric is defined, a BiLSTM time sequence prediction model is built by using deep learning, and the fashion index of the fabric is predicted through the model. A more scientific fabric fashion trend judgment basis is provided for the insiders, and the benefits of enterprises can be effectively guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of clothing fabric production, and more specifically, to a clothing fabric fashion index prediction method, system, medium and computer. Background Art

[0002] Prediction of fashion trends has always been a research direction and hot topic. With the popularization of e-commerce platforms, video platforms, and social media, people's living habits and social methods have changed, and the speed of the spread of fashion trends has also been affected. With the promotion of digitalization and intelligent transformation of the clothing industry, "fast, new, and trendy" have become the characteristics of the fashion industry.

[0003] Clothing design elements include outline, style, color, fabric, decoration, style, etc. Among them, clothing fabric is an important part of clothing design elements. Due to the wide variety of clothing fabrics and the small and medium-sized enterprises, it is difficult to timely and accurately count the sales data of various fabrics in the market. If the consumption of clothing fabrics is estimated incorrectly, it will lead to excessive stockpiling of a certain uncommon fabric, or lead to insufficient use of a certain popular fabric, which will affect the benefits of the enterprise. Summary of the invention

[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a method, system, medium and computer for predicting the popularity index of clothing fabrics, so as to overcome the shortcomings of the prior art that excessive stockpiling of goods affects the benefits of enterprises due to incorrect estimation of the popularity of fabrics.

[0005] The above technical purpose of the present invention is achieved through the following technical solutions: A method for predicting the popularity index of clothing fabrics, comprising:

[0006] Obtaining historical sales data corresponding to each type of clothing in the clothing industry; dividing the historical sales data into a number of unit period data according to a preset time interval;

[0007] Analyze the data of each unit period respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period;

[0008] Inputting the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period into a pre-established first popularity index prediction model for training, thereby obtaining a trained second popularity index prediction model;

[0009] Obtain the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle, and input them into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle;

[0010] According to the predicted usage, the popularity index of the fabric to be predicted in the next unit period is calculated accordingly.

[0011] Optionally, the obtaining of historical sales data corresponding to each type of clothing in the clothing industry includes:

[0012] Obtain historical sales data for each type of clothing within a predetermined time period through the API interface provided by the platform or using third-party services;

[0013] The data of each unit cycle are analyzed respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit cycle, the total usage of the first fabric in each unit cycle, and the first macro-industry data in each unit cycle, including:

[0014] Get all sizes of clothing, and calculate the amount of fabric used for each size based on the size of each clothing;

[0015] Analyze the data of each unit period separately to obtain the sales quantity corresponding to each size of clothing;

[0016] According to the usage amount of the fabric corresponding to each size of the clothing and the sales quantity of the clothing of each size, the total usage amount of the first fabric corresponding to the clothing in the unit period is calculated;

[0017] According to the date range corresponding to each unit period data, the macro industry data corresponding to each unit period data are obtained respectively; the macro industry data include: climate temperature, clothing consumer price index, clothing purchasing managers index, Keqiao grey cloth index, and clothing import and export data.

[0018] Optionally, the analyzing of each unit period data separately to obtain first fabric category data corresponding to the fabric used by the garment in each unit period, total usage of the first fabric in each unit period, and first macro industry data in each unit period also includes:

[0019] Use the pre-trained convolutional neural network model to perform object detection on the clothing photos and obtain detailed photos of the fabrics used in the clothing;

[0020] Using a pre-trained RestNet model to extract features from the fabric detail photo, obtaining a first feature vector corresponding to the fabric used in the clothing in the clothing photo;

[0021] Compare the first feature vector with each second feature vector in a pre-established fabric database one by one, and obtain a number of similarities accordingly;

[0022] Obtaining a maximum similarity among a plurality of similarities, and recording a second eigenvector corresponding to the maximum similarity as a third eigenvector;

[0023] It is determined whether the maximum similarity is greater than a similarity threshold; if so, the fabric category data corresponding to the third feature vector is recorded as the first fabric category data.

[0024] Optionally, the total usage of the first fabric corresponding to the garment in the unit period is calculated according to the usage of the fabric corresponding to each size of the garment and the sales quantity corresponding to the garment of each size, including:

[0025]

[0026] Among them, k i Indicates the size of clothing; C(k i ) represents the total usage of the first fabric corresponding to the garment, D(k i ) means each k i The number of clothing sold for a certain size, E(k i ) represents k i The number of fabrics used for each garment of the same size, F(k i ) means each k i The amount of fabric used in the main body of the garment of that size;

[0027] The fabric usage of the main body part includes:

[0028] F(k i )=[G(k i )+H(k i )]*[I(k i )+J(k i )]*L(k i );

[0029] Among them, G(k i ) represents k i The length of the garment of the size, H(k i ) represents k i The length of the garment of the size; I(k i ) represents k i The length of the garment of the size, J (k i ) represents k i The length of the garment of the size, L (k i ) represents k iThe clothing material coefficient of the size.

[0030] Optionally, the historical sales data corresponding to each type of clothing in the clothing industry is obtained; and the historical sales data is divided into a number of unit period data according to a preset time interval, including:

[0031] Obtain the historical sales data of each type of clothing in the past three years, taking each month as an interval, and divide the historical sales data into 36 unit period data;

[0032] The first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, including:

[0033] 32 unit cycle data are randomly selected from the 36 unit cycle data as training data, 3 unit cycle data are randomly selected from the remaining 4 unit cycle data as test data, and the other unit cycle data is used as out-of-time data.

[0034] Optionally, the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, further comprising:

[0035] According to predetermined rules, the data of each unit cycle is divided into the data of the introduction period, the data of the growth period, the data of the maturity period and the data of the decline period;

[0036] Establishing three first epidemic index prediction models, respectively inputting the growth stage data, mature stage data and decline stage data into the three first epidemic index prediction models for training, and correspondingly obtaining a growth stage epidemic index prediction model, a mature stage epidemic index prediction model and a decline stage epidemic index prediction model;

[0037] The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained, and input into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle, including:

[0038] The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained; according to the total usage of the second fabric in each past unit cycle, the stage to which the next unit cycle belongs is judged; and the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are input into a popularity index prediction model for the growth stage, a popularity index prediction model for the mature stage, or a popularity index prediction model for the decline stage for prediction, so as to obtain the corresponding predicted usage of the fabric to be predicted in the next unit cycle.

[0039] Optionally, the calculating, according to the predicted usage, a corresponding popularity index of the fabric to be predicted in the next unit period includes:

[0040] Popularity(i)=A(i) / B(i);

[0041] Where Popularity(i) represents the popularity index corresponding to fabric i; A(i) represents the total usage of fabric i in a certain unit cycle; B(i) represents the total usage of fabric i in the first unit cycle.

[0042] A clothing fabric popularity index prediction system, comprising:

[0043] Data division module: used to obtain the historical sales data corresponding to each type of clothing in the clothing industry; divide the historical sales data into several unit period data according to a preset time interval;

[0044] Data analysis module: used to analyze the data of each unit period respectively, and obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period;

[0045] Model training module: used for inputting the first fabric category data, the total usage of the first fabric and the first macro-industry data corresponding to each unit period into a pre-established first popular index prediction model for training, so as to obtain a trained second popular index prediction model;

[0046] Usage prediction module: used to obtain the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro industry data in each past cycle, and input them into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle;

[0047] Popularity index calculation module: used to calculate the popularity index of the fabric to be predicted in the next unit period according to the predicted usage.

[0048] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.

[0049] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.

[0050] In summary, the present invention has the following beneficial effects: This application integrates data resources to establish a comprehensive clothing fabric database. After analyzing the popular cycles of different fabrics, the calculation caliber of the clothing fabric popularity index is defined, and a BiLSTM time series prediction model is built using deep learning to predict the fabric popularity index. This provides industry insiders with a more scientific basis for judging fabric fashion trends, which can effectively protect the benefits of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A flow chart of a method for predicting a fashion index of clothing fabrics according to the present invention;

[0052] Figure 2 A structural diagram of a clothing fabric popularity index prediction system of the present invention;

[0053] Figure 3 is an internal structure diagram of a computer device in an embodiment of the present invention;

[0054] Figure 4 It is a schematic diagram of the stages of the fashion cycle of clothing fabrics;

[0055] Figure 5 It is a classification table of the uses of clothing fabrics.

[0056] In the figure: 1. Data division module; 2. Data analysis module; 3. Model training module; 4. Usage prediction module; 5. Popularity index calculation module. DETAILED DESCRIPTION

[0057] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings. Several embodiments of the present invention are shown in the accompanying drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein.

[0058] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances. The terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.

[0059] In the present invention, unless otherwise clearly specified and limited, the first feature being "above" or "below" the second feature may include the first and second features being in direct contact, or may include the first and second features being in contact not directly but through another feature between them. Moreover, the first feature being "above", "above" and "above" the second feature includes the first feature being directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. The first feature being "below", "below" and "below" the second feature includes the first feature being directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature. The terms "vertical", "horizontal", "left", "right", "above", "below" and similar expressions are for illustrative purposes only, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0060] The present invention is described in detail below in conjunction with the accompanying drawings and embodiments.

[0061] The present invention provides a method for predicting the popularity index of clothing fabrics. Figure 1 As shown, including:

[0062] S1. Obtain historical sales data corresponding to each type of clothing in the clothing industry; divide the historical sales data into a number of unit period data according to a preset time interval;

[0063] S2. Analyze the data of each unit period respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro-industry data in each unit period;

[0064] S3, inputting the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period into a pre-established first popular index prediction model for training, to obtain a trained second popular index prediction model;

[0065] S4, obtaining the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle, and inputting them into the second popular index prediction model, and obtaining the corresponding predicted usage of the fabric to be predicted in the next unit cycle;

[0066] S5. Calculate the popularity index of the fabric to be predicted in the next unit period according to the predicted usage.

[0067] In practical applications, in order to predict the popularity index of each type of fabric separately, it is first necessary to collect the sales data of the clothing, and then determine the predicted usage of the fabric based on the sales volume of the clothing, the fabric category data used in the clothing, and the number of fabrics used in the clothing. Finally, the popularity index of the fabric is calculated based on the predicted usage of the fabric.

[0068] In the present application, the first pre-established popular index prediction model is a bidirectional long short-term memory network (BiLSTM) to build a time series model. When the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each unit cycle in the past, and the second macro-industry data in each cycle in the past are input into the second popular index prediction model for prediction, it is first necessary to convert the category variables in the feature variables into numerical values ​​by means of unique hot encoding; the model is used to output the predicted sales quantity of the fabric in the future unit cycle, and the corresponding popular index is calculated based on the sales quantity. A bidirectional long short-term memory network (BiLSTM) is used to build a time series model for prediction, and multivariate feature variables are used as input, and the sales volume of fabric i is used as the target variable. After model training and testing, the sales volume of fabric i in the next 30 days is output, and then the popular index of fabric i is calculated = the sales volume of fabric i / the sales volume of fabric i on the base day.

[0069] For example, in order to train the first popular index prediction model, it is necessary to first establish a data set. In order to collect the data in the data set, it is necessary to collect relevant fabric data from multiple platforms. Clothing is a sales terminal. By sorting and analyzing the sales quantity of clothing, the consumption of fabric can be obtained without duplication. Therefore, it is necessary to collect and sort the sales data of clothing first. Specifically, in this application, the clothing data sold by major e-commerce companies can be counted, and the fabric category used for each type of clothing can be analyzed accordingly. Since the number of fabrics used for clothing of different sizes is different, the total amount of fabric used for clothing fabrics can be calculated according to the size of the clothing and the sales quantity of the size. For example, for a certain clothing, the amount of fabric used for S size is 1.2 meters, the amount of fabric used for M size is 1.5 meters, and the amount of fabric used for L size is 1.8 meters. If S size sells 100 pieces, M size sells 120 pieces, and L size sells 80 pieces, then the total amount of fabric used for the clothing is 1.2*100+1.5*120+1.8*80=444 meters. The e-commerce platforms of this application mainly include: Tmall, Taobao, JD.com, Pinduoduo, Vipshop, Xiaohongshu, Douyin, Kuaishou or other e-commerce platforms that can connect to information data. Macro industry data mainly include: climate temperature, clothing CPI index, PMI, Keqiao grey fabric index, clothing imports and exports, and social media clothing product evaluations.

[0070] Using the above data, the first popular index prediction model is trained, which enables the model to learn the intrinsic relationship between the usage quantity of a specific category of fabrics and the industry's macro data, and then predict the usage quantity of fabrics in a certain period in the future to improve the economic benefits of the enterprise.

[0071] In summary, this application integrates data resources to establish a comprehensive clothing fabric database. After analyzing the popular cycles of different fabrics, the calculation caliber of the clothing fabric popularity index is defined, and a BiLSTM time series prediction model is built using deep learning to predict the fabric popularity index. This provides industry insiders with a more scientific basis for judging fabric fashion trends, which can effectively protect the benefits of enterprises.

[0072] Furthermore, the acquisition of historical sales data corresponding to each type of clothing in the clothing industry includes:

[0073] Obtain historical sales data for each type of clothing within a predetermined time period through the API interface provided by the platform or using third-party services;

[0074] The data of each unit cycle are analyzed respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit cycle, the total usage of the first fabric in each unit cycle, and the first macro-industry data in each unit cycle, including:

[0075] Get all sizes of clothing, and calculate the amount of fabric used for each size based on the size of each clothing;

[0076] Analyze the data of each unit period separately to obtain the sales quantity corresponding to each size of clothing;

[0077] According to the usage amount of the fabric corresponding to each size of the clothing and the sales quantity of the clothing of each size, the total usage amount of the first fabric corresponding to the clothing in the unit period is calculated;

[0078] According to the date range corresponding to each unit period data, the macro industry data corresponding to each unit period data are obtained respectively; the macro industry data include: climate temperature, clothing consumer price index, clothing purchasing managers index, Keqiao grey cloth index, and clothing import and export data.

[0079] Furthermore, the said respectively analyzing each unit cycle data to obtain the first fabric category data corresponding to the fabric used by the garment in each unit cycle, the total usage of the first fabric in each unit cycle and the first macro industry data in each unit cycle also includes:

[0080] Use the pre-trained convolutional neural network model to perform object detection on the clothing photos and obtain detailed photos of the fabrics used in the clothing;

[0081] Using a pre-trained RestNet model to extract features from the fabric detail photo, obtaining a first feature vector corresponding to the fabric used in the clothing in the clothing photo;

[0082] Compare the first feature vector with each second feature vector in a pre-established fabric database one by one, and obtain a number of similarities accordingly;

[0083] Obtaining a maximum similarity among a plurality of similarities, and recording a second eigenvector corresponding to the maximum similarity as a third eigenvector;

[0084] It is determined whether the maximum similarity is greater than a similarity threshold; if so, the fabric category data corresponding to the third feature vector is recorded as the first fabric category data.

[0085] In practical applications, in order to obtain fabric data, it is first necessary to detect the photos of clothing, determine the main fabric parts on the clothing photos, and obtain fabric detail photos; in this application, the YOLOv6 open source model with appropriate scenes is used; the model is trained, tested and tuned again. And according to the information on the fabric detail photos, the category of the fabric is further determined, including feature extraction of the fabric detail photos, obtaining the first feature vector, and comparing the first feature vector with the fabric in the pre-established fabric database to obtain the closest fabric. The comparison method adopts the similarity calculation method, and its formula is: similarity = 1 / (1+d); where d is the distance between the two feature vectors. The closer the two feature vectors, the smaller the distance d, and the higher the similarity. Furthermore, PaddleOCR can also be used to extract the key text information of the fabric in the image, and match the component information with the fabric composition to determine the closest fabric information.

[0086] Furthermore, the total usage of the first fabric corresponding to the garment in the unit period is calculated according to the usage of the fabric corresponding to each size of the garment and the sales quantity corresponding to the garment of each size, including:

[0087]

[0088] Among them, k i Indicates the size of clothing; C(k i ) represents the total usage of the first fabric corresponding to the garment, D(k i ) means each k i The number of clothing sold for a certain size, E(k i ) represents k i The number of fabrics used for each garment of the same size, F(k i ) means each k i The amount of fabric used in the main body of the garment of that size;

[0089] The fabric usage of the main body part includes:

[0090] F(k i )=[G(k i )+H(k i )]*[I(k i )+J(k i )]*L(k i );

[0091] Among them, G(k i ) represents k i The length of the garment of the size, H(k i ) represents k i The length of the garment of the size; I(ki ) represents k i The length of the garment of the size, J (k i ) represents k i The length of the garment of the size, L (k i ) represents k i The clothing material coefficient of the size.

[0092] In actual application, body length is the length from shoulder to waist, clothing length is the length from shoulder to hem of clothing, shoulder width is the length from left shoulder to right shoulder, chest circumference is the length from left chest to right chest, and the coefficient is adjusted according to different clothing styles and sizes.

[0093] Furthermore, the historical sales data corresponding to each type of clothing in the clothing industry is obtained; and the historical sales data is divided into a number of unit period data according to a preset time interval, including:

[0094] Obtain the historical sales data of each type of clothing in the past three years, taking each month as an interval, and divide the historical sales data into 36 unit period data;

[0095] The first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, including:

[0096] 32 unit cycle data are randomly selected from the 36 unit cycle data as training data, 3 unit cycle data are randomly selected from the remaining 4 unit cycle data as test data, and the other unit cycle data is used as out-of-time data.

[0097] In practical applications, the fabric cycle stage is determined based on fabric fashion cycle analysis: the fashion cycle of textile fabrics and clothing generally has the following four periods, including the introduction period, growth period, maturity period, and decline period, such as Figure 4 As shown. By analyzing the trend of fabric sales over time, the four cycle stages of fabrics are judged and identified. In the introduction stage, the data of the new product launch time point is less than 3 months; in the growth stage, the current time point value is taken, which is greater than the historical maximum value; in the mature stage, the current time point value is taken, which is less than the historical maximum value and greater than the historical average value; in the decline stage, the current time point value is taken, which is less than the historical average value; fabrics are classified according to the cycle stage, and the next step is to train the popular index prediction model for fabrics in different cycle stages.

[0098] Furthermore, the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, and further includes:

[0099] According to predetermined rules, the data of each unit cycle is divided into the data of the introduction period, the data of the growth period, the data of the maturity period and the data of the decline period;

[0100] Establishing three first epidemic index prediction models, respectively inputting the growth stage data, mature stage data and decline stage data into the three first epidemic index prediction models for training, and correspondingly obtaining a growth stage epidemic index prediction model, a mature stage epidemic index prediction model and a decline stage epidemic index prediction model;

[0101] The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained, and input into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle, including:

[0102] The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained; according to the total usage of the second fabric in each past unit cycle, the stage to which the next unit cycle belongs is judged; and the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are input into a popularity index prediction model for the growth stage, a popularity index prediction model for the mature stage, or a popularity index prediction model for the decline stage for prediction, so as to obtain the corresponding predicted usage of the fabric to be predicted in the next unit cycle.

[0103] In practical applications, the data set is divided into: prepare daily data for the past three years, 32 months as training data, 3 months as test data, and 1 month as OOT data; build models according to the three stages of the fabric fashion cycle: growth stage, maturity stage, and decline stage.

[0104] Furthermore, the popularity index of the fabric to be predicted in the next unit period is calculated according to the predicted usage, including:

[0105] Popularity(i)=A(i) / B(i);

[0106] Where Popularity(i) represents the popularity index corresponding to fabric i; A(i) represents the total usage of fabric i in a certain unit cycle; B(i) represents the total usage of fabric i in the first unit cycle.

[0107] Furthermore, in addition to collecting data on the fabrics used in clothing, other data can also be collected, including: fabric category sup, attributes (composition, weight, density, weaving method, texture, stretch rate, breathability, color fastness, etc.), sales amount, sales volume, channel, user evaluation, forwarding volume, etc., and all these variables are used as fabric category data and input into the model for training to improve the model's ability to perceive the correlation between macro industry data and fabric category data.

[0108] like Figure 2 As shown, the present invention also provides a clothing fabric fashion index prediction system, comprising:

[0109] Data division module: used to obtain the historical sales data corresponding to each type of clothing in the clothing industry; divide the historical sales data into several unit period data according to a preset time interval;

[0110] Data analysis module: used to analyze the data of each unit period respectively, and obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period;

[0111] Model training module: used for inputting the first fabric category data, the total usage of the first fabric and the first macro-industry data corresponding to each unit period into a pre-established first popular index prediction model for training, so as to obtain a trained second popular index prediction model;

[0112] Usage prediction module: used to obtain the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro industry data in each past cycle, and input them into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle;

[0113] Popularity index calculation module: used to calculate the popularity index of the fabric to be predicted in the next unit period according to the predicted usage.

[0114] The specific definition of a clothing fabric fashion index prediction system can be found in the above definition of a clothing fabric fashion index prediction method, which will not be repeated here. Each module in the above clothing fabric fashion index prediction system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0115] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. When the computer program is executed by the processor, a method for predicting the popularity index of clothing fabrics is implemented.

[0116] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0117] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0118] Obtaining historical sales data corresponding to each type of clothing in the clothing industry; dividing the historical sales data into a number of unit period data according to a preset time interval;

[0119] Analyze the data of each unit period respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period;

[0120] Inputting the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period into a pre-established first popularity index prediction model for training, thereby obtaining a trained second popularity index prediction model;

[0121] Obtain the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle, and input them into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle;

[0122] According to the predicted usage, the popularity index of the fabric to be predicted in the next unit period is calculated accordingly.

[0123] In one embodiment, the obtaining of historical sales data corresponding to each type of clothing in the clothing industry includes:

[0124] Obtain historical sales data for each type of clothing within a predetermined time period through the API interface provided by the platform or using third-party services;

[0125] The data of each unit cycle are analyzed respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit cycle, the total usage of the first fabric in each unit cycle, and the first macro-industry data in each unit cycle, including:

[0126] Get all sizes of clothing, and calculate the amount of fabric used for each size based on the size of each clothing;

[0127] Analyze the data of each unit period separately to obtain the sales quantity corresponding to each size of clothing;

[0128] According to the usage amount of the fabric corresponding to each size of the clothing and the sales quantity of the clothing of each size, the total usage amount of the first fabric corresponding to the clothing in the unit period is calculated;

[0129] According to the date range corresponding to each unit period data, the macro industry data corresponding to each unit period data are obtained respectively; the macro industry data include: climate temperature, clothing consumer price index, clothing purchasing managers index, Keqiao grey cloth index, and clothing import and export data.

[0130] In one embodiment, the analyzing of each unit cycle data to obtain first fabric category data corresponding to the fabric used by the garment in each unit cycle, total usage of the first fabric in each unit cycle, and first macro industry data in each unit cycle also includes:

[0131] Use the pre-trained convolutional neural network model to perform object detection on the clothing photos and obtain detailed photos of the fabrics used in the clothing;

[0132] Using a pre-trained RestNet model to extract features from the fabric detail photo, obtaining a first feature vector corresponding to the fabric used in the clothing in the clothing photo;

[0133] Compare the first feature vector with each second feature vector in a pre-established fabric database one by one, and obtain a number of similarities accordingly;

[0134] Obtaining a maximum similarity among a plurality of similarities, and recording a second eigenvector corresponding to the maximum similarity as a third eigenvector;

[0135] It is determined whether the maximum similarity is greater than a similarity threshold; if so, the fabric category data corresponding to the third feature vector is recorded as the first fabric category data.

[0136] In one embodiment, the total usage of the first fabric corresponding to the garment in the unit period is calculated according to the usage of the fabric corresponding to each size of the garment and the sales quantity corresponding to the garment of each size, including:

[0137]

[0138] Among them, k i Indicates the size of clothing; C(k i ) represents the total usage of the first fabric corresponding to the garment, D(k i ) means each k i The number of clothing sold for a certain size, E(k i ) represents k i The number of fabrics used for each garment of the same size, F(k i ) means each k i The amount of fabric used in the main body of the garment of that size;

[0139] The fabric usage of the main body part includes:

[0140] F(k i )=[G(k i )+H(k i )]*[I(k i )+J(k i )]*L(k i );

[0141] Among them, G(k i ) represents k i The length of the garment of the size, H(k i ) represents k i The length of the garment of the size; I(k i ) represents k i The length of the garment of the size, J (k i ) represents k i The length of the garment of the size, L (k i ) represents ki The clothing material coefficient of the size.

[0142] In one embodiment, the historical sales data corresponding to each type of clothing in the clothing industry is obtained; and the historical sales data is divided into a number of unit period data according to a preset time interval, including:

[0143] Obtain the historical sales data of each type of clothing in the past three years, taking each month as an interval, and divide the historical sales data into 36 unit period data;

[0144] The first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, including:

[0145] 32 unit cycle data are randomly selected from the 36 unit cycle data as training data, 3 unit cycle data are randomly selected from the remaining 4 unit cycle data as test data, and the other unit cycle data is used as out-of-time data.

[0146] In one embodiment, the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, further comprising:

[0147] According to predetermined rules, the data of each unit cycle is divided into the data of the introduction period, the data of the growth period, the data of the maturity period and the data of the decline period;

[0148] Establishing three first epidemic index prediction models, respectively inputting the growth stage data, mature stage data and decline stage data into the three first epidemic index prediction models for training, and correspondingly obtaining a growth stage epidemic index prediction model, a mature stage epidemic index prediction model and a decline stage epidemic index prediction model;

[0149] The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained, and input into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle, including:

[0150] The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained; according to the total usage of the second fabric in each past unit cycle, the stage to which the next unit cycle belongs is judged; and the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are input into a popularity index prediction model for the growth stage, a popularity index prediction model for the mature stage, or a popularity index prediction model for the decline stage for prediction, so as to obtain the corresponding predicted usage of the fabric to be predicted in the next unit cycle.

[0151] In one embodiment, the method of calculating the popularity index of the fabric to be predicted in the next unit period according to the predicted usage includes:

[0152] Popularity(i)=A(i) / B(i);

[0153] Where Popularity(i) represents the popularity index corresponding to fabric i; A(i) represents the total usage of fabric i in a certain unit cycle; B(i) represents the total usage of fabric i in the first unit cycle.

[0154] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0156] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for predicting the popularity index of clothing fabrics, characterized in that: include: Obtaining historical sales data corresponding to each type of clothing in the clothing industry; dividing the historical sales data into a number of unit period data according to a preset time interval; Analyze the data of each unit period respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period; Inputting the first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period into a pre-established first popularity index prediction model for training, thereby obtaining a trained second popularity index prediction model; Obtain the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle, and input them into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle; According to the predicted usage, the popularity index of the fabric to be predicted in the next unit period is calculated accordingly.

2. A method for predicting the popularity index of clothing fabrics according to claim 1, characterized in that: The acquisition of historical sales data corresponding to each type of clothing in the clothing industry includes: Obtain historical sales data for each type of clothing within a predetermined time period through the API interface provided by the platform or using third-party services; The data of each unit cycle are analyzed respectively to obtain the first fabric category data corresponding to the fabric used in the garment in each unit cycle, the total usage of the first fabric in each unit cycle, and the first macro-industry data in each unit cycle, including: Get all sizes of clothing, and calculate the amount of fabric used for each size based on the size of each clothing; Analyze the data of each unit period separately to obtain the sales quantity corresponding to each size of clothing; According to the usage amount of the fabric corresponding to each size of the clothing and the sales quantity of the clothing of each size, the total usage amount of the first fabric corresponding to the clothing in the unit period is calculated; According to the date range corresponding to each unit period data, the macro industry data corresponding to each unit period data are obtained respectively; the macro industry data include: climate temperature, clothing consumer price index, clothing purchasing managers index, Keqiao grey cloth index, and clothing import and export data.

3. A method for predicting the popularity index of clothing fabrics according to claim 2, characterized in that: The method of analyzing the data of each unit period separately to obtain the first fabric category data corresponding to the fabric used by the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period also includes: Use the pre-trained convolutional neural network model to perform object detection on the clothing photos and obtain detailed photos of the fabrics used in the clothing; Using a pre-trained RestNet model to extract features from the fabric detail photo, obtaining a first feature vector corresponding to the fabric used in the clothing in the clothing photo; Compare the first feature vector with each second feature vector in a pre-established fabric database one by one, and obtain a number of similarities accordingly; Obtaining a maximum similarity among a plurality of similarities, and recording a second eigenvector corresponding to the maximum similarity as a third eigenvector; It is determined whether the maximum similarity is greater than a similarity threshold; if so, the fabric category data corresponding to the third feature vector is recorded as the first fabric category data.

4. A method for predicting the popularity index of clothing fabrics according to claim 2, characterized in that: The total usage of the first fabric corresponding to each size of clothing and the sales quantity of clothing of each size are calculated in the unit period, including: Among them, k i Indicates the size of clothing; C(k i ) represents the total usage of the first fabric corresponding to the garment, D(k i ) means each k i The number of garments sold for a certain size, E(k i ) represents k i The number of fabrics used for each garment of the same size, F(k i ) means each k i The amount of fabric used in the main body of the garment of that size; The fabric usage of the main body part includes: F(k i )=[G(k i )+H(k i )]*[I(k i )+J(k i )]*L(k i ); Among them, G(k i ) represents k i The length of the garment of the size, H(k i ) represents k i The length of the garment of the size; I(k i ) represents k i The length of the garment of the size, J (k i ) represents k i The length of the garment of the size, L (k i ) represents k i The clothing material coefficient of the size.

5. The method for predicting the popularity index of clothing fabrics according to claim 1, characterized in that: The historical sales data corresponding to each type of clothing in the clothing industry is obtained; and the historical sales data is divided into a number of unit period data according to a preset time interval, including: Obtain the historical sales data of each type of clothing in the past three years, taking each month as an interval, and divide the historical sales data into 36 unit period data; The first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, including: 32 unit cycle data are randomly selected from the 36 unit cycle data as training data, 3 unit cycle data are randomly selected from the remaining 4 unit cycle data as test data, and the other unit cycle data is used as out-of-time data.

6. A method for predicting the popularity index of clothing fabrics according to claim 5, characterized in that: The first fabric category data, the total usage of the first fabric, and the first macro-industry data corresponding to each unit period are input into a pre-established first popularity index prediction model for training to obtain a trained second popularity index prediction model, and further includes: According to predetermined rules, the data of each unit cycle is divided into the data of the introduction period, the data of the growth period, the data of the maturity period and the data of the decline period; Establishing three first epidemic index prediction models, respectively inputting the growth stage data, mature stage data and decline stage data into the three first epidemic index prediction models for training, and correspondingly obtaining a growth stage epidemic index prediction model, a mature stage epidemic index prediction model and a decline stage epidemic index prediction model; The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained, and input into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle, including: The second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are obtained; according to the total usage of the second fabric in each past unit cycle, the stage to which the next unit cycle belongs is judged; and the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro-industry data in each past cycle are input into a popularity index prediction model for the growth stage, a popularity index prediction model for the mature stage, or a popularity index prediction model for the decline stage for prediction, so as to obtain the corresponding predicted usage of the fabric to be predicted in the next unit cycle.

7. A method for predicting the popularity index of clothing fabrics according to claim 1, characterized in that: The method of calculating the popularity index of the fabric to be predicted in the next unit period according to the predicted usage includes: Popularity(i)=A(i) / B(i); Where Popularity(i) represents the popularity index corresponding to fabric i; A(i) represents the total usage of fabric i in a certain unit cycle; B(i) represents the total usage of fabric i in the first unit cycle.

8. A clothing fabric fashion index prediction system, characterized in that: include: Data division module: used to obtain the historical sales data corresponding to each type of clothing in the clothing industry; divide the historical sales data into several unit period data according to a preset time interval; Data analysis module: used to analyze the data of each unit period respectively, and obtain the first fabric category data corresponding to the fabric used in the garment in each unit period, the total usage of the first fabric in each unit period, and the first macro industry data in each unit period; Model training module: used for inputting the first fabric category data, the total usage of the first fabric and the first macro-industry data corresponding to each unit period into a pre-established first popular index prediction model for training, so as to obtain a trained second popular index prediction model; Usage prediction module: used to obtain the second fabric category data corresponding to the fabric to be predicted, the total usage of the second fabric in each past unit cycle, and the second macro industry data in each past cycle, and input them into the second popularity index prediction model to obtain the predicted usage of the fabric to be predicted in the next unit cycle; Popularity index calculation module: used to calculate the popularity index of the fabric to be predicted in the next unit period according to the predicted usage.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.