Deep learning-based pattern production method and system

By analyzing and screening pattern components based on deep learning methods, the problems of low efficiency and high cost of traditional pattern production are solved, efficient and personalized pattern design is achieved, and design costs are reduced.

CN118736313APending Publication Date: 2024-10-01SHANGHAI THEATRE ACADEMY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410878864.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The traditional pattern production method relies on manual drawing, which results in low efficiency, high cost and the quality is easily affected by human factors, which limits large-scale production and widespread application.

Method used

Using a method based on deep learning, by obtaining historical design pattern data, analyzing and classifying the style attributes of pattern components, screening and combining pattern components according to the needs of the items to be printed, eliminating components with outlier style attributes, and generating printing patterns . Specific steps include classification of pattern components, conversion of demand feature data, training of convolutional neural networks and elimination of outlier components.

Benefits of technology

It reduces design costs, improves the efficiency of pattern design, and ensures that the generated printing patterns are uniform in style and meet individual needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736313A_ABST
    Figure CN118736313A_ABST
Patent Text Reader

Abstract

The invention discloses a pattern production method and system based on deep learning, and relates to the technical field of machine learning, and the method comprises the steps: constructing a pattern and pattern component classification database; based on the functional attributes of the to-be-printed areas of the to-be-printed article, the printing requirement of the to-be-printed article is generated; according to the printing requirement of the to-be-printed object, a plurality of pattern and pattern assemblies meeting the printing requirement in the pattern and pattern assembly classification database are randomly screened to serve as to-be-combined pattern and pattern assemblies; according to the style attributes between the to-be-combined pattern and pattern assemblies, the to-be-combined pattern and pattern assemblies with outlier style attributes are removed, and combinable pattern and pattern assemblies are obtained; and generating a printed pattern pattern based on the combinable graphic pattern component. The method has the advantages that the design cost is reduced, and the pattern design efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning technology, and in particular to a pattern production method and system based on deep learning. Background Art

[0002] Printed patterns are patterns, designs or textures that are created by printing on paper, cloth or other materials. These patterns can be repeated patterns, decorative images or text, or design elements with specific meaning and symbolism. They are often used to increase visual appeal, enhance the beauty and recognition of a product, or convey a specific message or emotion.

[0003] Since the existing traditional pattern production method mainly relies on manual painting, this method has obvious defects, such as low efficiency, high cost, and the quality of painting is easily affected by human factors. These problems limit the large-scale production and wide application of traditional patterns. Summary of the invention

[0004] In order to solve the above technical problems, a pattern production method and system based on deep learning are provided. This technical solution solves the above-mentioned problem that the existing traditional pattern production method mainly relies on manual drawing, which has obvious defects such as low efficiency, high cost, and the drawing quality is easily affected by human factors. These problems limit the large-scale production and wide application of traditional patterns.

[0005] In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0006] A pattern production method based on deep learning, comprising:

[0007] Acquire historical design pattern data, segment elements in the historical design pattern data, and obtain pattern component data;

[0008] Based on the pattern component data, the style attributes of each pattern component are analyzed, and they are classified according to the same type of style attributes, and combined into a pattern component classification database;

[0009] Generate printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed;

[0010] According to the printing requirements of the to-be-printed article, a number of pattern components that meet the printing requirements are randomly selected from the pattern component classification database as the pattern components to be combined;

[0011] According to the style attributes between the pattern components to be combined, the pattern components to be combined with outliers in style attributes are eliminated to obtain combinable pattern components;

[0012] Generate printed pattern based on combinable graphic pattern components.

[0013] Preferably, based on the pattern component data, the style attribute of each pattern component is analyzed, and the same type of style attributes are classified into a pattern component classification database, which specifically includes:

[0014] Based on the image pattern component data, each image pattern feature data is extracted through edge detection algorithm;

[0015] Determine characteristic parameters of known design style attributes based on historical design pattern data;

[0016] Based on random forest, a pattern style attribute classification model is constructed;

[0017] According to the pattern style attribute classification model, based on the feature parameters of the known design style attributes, the Gini impurity reduction value of each feature parameter is recursively calculated, and the feature parameter with the smallest Gini impurity is selected as the splitting condition of the corresponding split node;

[0018] Substitute the image pattern component data into the pattern style attribute classification model, divide it based on the splitting condition of the split node, and obtain a number of sub-leaf nodes; the sub-leaf nodes are the final style attribute classification labels;

[0019] Take each leaf node as a style attribute array and construct a pattern component classification database A=[L 11 , L 22 , …, L ij , …, L mn ], where L ij is the jth pattern component of the i-th style attribute category array, m is the total number of category groups, and n is the total number of pattern components;

[0020] The calculation expression of the Gini impurity reduction value of each characteristic parameter is:

[0021]

[0022] In the formula, Gini min is the minimum Gini impurity after segmentation, Gini(T) is the Gini impurity of the segmentation node, Gini split (T) is the Gini impurity of the cotyledon node, p j (T) is the proportion of the jth image component samples in the segmentation node, T is the segmentation node, T L is the left cotyledon node, T R is the right cotyledon node, Gini(T L ) is the Gini impurity of the left cotyledon node, Gini(T R) is the Gini impurity of the right cotyledon node.

[0023] Preferably, according to the printing requirements of the article to be printed, randomly selecting a number of pattern components that meet the printing requirements in the pattern component classification database as the pattern components to be combined specifically includes:

[0024] Determine printing requirement characteristic data based on the printing requirements of the item to be printed; the printing requirement characteristic data includes: theme, style, color, and size;

[0025] According to the printing requirements of the to-be-printed article, the pattern components that meet the printing requirements are selected from the pattern component classification database as component label data;

[0026] Based on principal component analysis, the printing requirement feature data and component label data are converted into a two-dimensional requirement feature vector and a two-dimensional component label vector, which are combined into a training data set and divided into a training set and a validation set according to a 7 / 2 ratio.

[0027] Based on the convolutional neural network, the two-dimensional demand feature vector in the training set is used as input, and a deformable convolution layer is introduced to output the two-dimensional component label vector that meets the demand, and the adaptive demand screening component selection model is trained;

[0028] Substituting the printing demand of the to-be-printed article into the adaptive demand screening component selection model, obtaining a number of pattern components that meet the printing demand as the pattern components to be combined;

[0029] Among them, the adaptive demand screening component selection model expression is:

[0030]

[0031] Where y is the output two-dimensional component label vector, x is the input two-dimensional demand feature vector, w is the trainable weight, b is the trainable bias parameter, and ya b is the value of position (a, b) in the feature map of the output two-dimensional component label vector, w k,m,n is the weight of the kth convolution kernel at position (m, n), x a+m The value of position (a+m, b+n) in the feature map of the input two-dimensional demand feature vector, are the offsets in the x and y directions respectively, and b k is the bias term of the kth output channel, H is the height of the convolution kernel, G is the width of the convolution kernel, and K is the number of convolution kernels.

[0032] Preferably, according to the style attributes between the pattern components to be combined, the pattern components to be combined with outliers in style attributes are eliminated to obtain the combinable pattern components, which specifically includes:

[0033] Based on the style attributes of the pattern components to be combined, they are converted into component numerical feature vectors through one-hot encoding;

[0034] Calculate the vector distance between each component numerical feature vector and map it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances;

[0035] Setting the size of the domain based on the distribution of scatter points in the two-dimensional scatter plot of component vector distances;

[0036] Based on the domain size of each point in the scatter plot, the distance to the neighboring points that can be reached within the domain size is calculated, and the local reachable density is calculated according to the reciprocal average of the distance to the neighboring points that can be reached within the domain size of a point;

[0037] Calculate the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each scattered point;

[0038] Determine whether the abnormality score of each scatter point in the scatter plot exceeds the abnormality threshold. If not, mark it as no abnormality. If yes, mark it as abnormality, and remove the pattern component to be combined corresponding to the abnormal scatter point;

[0039] The calculation expression of the abnormal score of each scattered point is:

[0040]

[0041] In the formula, the anomaly score of each scattered point of scatter point D, o is the neighboring point, S z (D) is the set of z nearest neighbors of scattered point D, lrd(D) is the local reachable density of scattered point D, and lrd(o) is the local reachable density of neighboring point o.

[0042] Furthermore, a pattern production system based on deep learning is proposed, which is used to implement the pattern production method based on deep learning as described above, comprising:

[0043] Component database: The component database is used to segment the elements in the historical design pattern data, analyze the style attributes of each pattern component, classify them according to the same type of style attributes, and combine them into a pattern component classification database;

[0044] A demand confirmation module, the demand confirmation module is used to generate printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed;

[0045] A component screening module, the component screening module is electrically connected to the demand confirmation module and the component database, and the component screening module is used to randomly screen a number of pattern components that meet the printing requirements in the pattern component classification database as the pattern components to be combined based on the printing requirements of the object to be printed;

[0046] An outlier component elimination module, the outlier component elimination module is electrically connected to the component screening module, and is used to eliminate the pattern pattern components to be combined whose style attributes are outliers according to the style attributes between the pattern pattern components to be combined, so as to obtain the combinable pattern pattern components;

[0047] The pattern generation module is electrically connected to the outlier component elimination module, and the pattern generation module is used to generate a printed pattern based on the combinable graphic pattern components.

[0048] Optionally, the component database contains:

[0049] The image processing unit extracts each image pattern feature data through an edge detection algorithm based on the image pattern component data;

[0050] A feature unit, based on historical design pattern data, determines feature parameters of known design style attributes;

[0051] The first model building unit builds a pattern style attribute classification model based on random forest;

[0052] The conditional restriction unit, according to the pattern style attribute classification model, recursively calculates the Gini impurity reduction value of each feature parameter based on the feature parameters of the known design style attributes, and selects the feature parameter with the smallest Gini impurity as the splitting condition of the corresponding splitting node;

[0053] The classification unit substitutes the image pattern component data into the pattern style attribute classification model, divides it based on the splitting condition of the splitting node, and obtains a number of sub-leaf nodes;

[0054] The database construction unit takes each leaf node as a style attribute array to construct a pattern component classification database.

[0055] Optionally, the component filtering module includes:

[0056] A feature unit, which determines printing requirement feature data based on the printing requirement of the article to be printed;

[0057] The label unit selects the pattern components that meet the printing requirements from the pattern component classification database according to the printing requirements of the to-be-printed article as the component label data;

[0058] The dimension reduction unit converts the printing requirement feature data and the component label data into a two-dimensional requirement feature vector and a two-dimensional component label vector based on principal component analysis, combines them into a training data set, and divides them into a training set and a validation set according to a 7 / 2 split;

[0059] The second model building unit, based on a convolutional neural network, takes the two-dimensional demand feature vector in the training set as input, introduces a deformable convolution layer, and uses the two-dimensional component label vector that meets the demand as output to train an adaptive demand screening component selection model;

[0060] The component screening unit substitutes the printing demand of the to-be-printed article into the self-adaptive demand screening component selection model, and obtains a number of pattern components that meet the printing demand as the pattern components to be combined.

[0061] Optionally, the outlier component removal module includes:

[0062] The digitization unit converts the style attributes of the pattern components to be combined into component numerical feature vectors through one-hot encoding;

[0063] A scatter plot unit calculates the vector distance between each component numerical feature vector and maps it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances;

[0064] A domain setting unit, which sets the domain size based on the distribution of scattered points in the two-dimensional scatter diagram of component vector distances;

[0065] The local density calculation unit calculates the distance to the neighboring points within the domain size of each point in the scatter plot, and calculates the local reachable density according to the reciprocal average of the distance to the neighboring points within the domain size of a point;

[0066] Anomaly scoring unit, an anomaly score calculation unit for each scattered point, calculates the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each point;

[0067] The elimination unit determines whether the abnormal score of each scatter point in the scatter plot exceeds the abnormal threshold. If not, it is marked as no abnormality. If so, it is marked as abnormal and the pattern component to be combined corresponding to the abnormal scatter point is eliminated.

[0068] Compared with the prior art, the present invention has the following beneficial effects:

[0069] The present invention proposes a pattern production scheme based on deep learning, which extracts pattern components from historical data, analyzes and classifies their style attributes, and screens combined and matched pattern components from a classification database according to the needs of the items to be printed, and removes components whose style attributes are outliers from the overall style, thereby ensuring that the styles of the combinable graphic pattern components are unified, and finally generating printed patterns that meet personalized needs. The advantages are: reducing design costs and improving the efficiency of pattern design. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 It is a flow chart of a pattern production method based on deep learning;

[0071] Figure 2 A flow chart of a method for classifying a database of combined pattern components;

[0072] Figure 3 A flow chart of a method for selecting a plurality of pattern components that meet printing requirements as pattern components to be combined;

[0073] Figure 4 A flow chart of a method for obtaining a combinable graphic pattern component;

[0074] Figure 5 This is a flow chart of a pattern production system based on deep learning. DETAILED DESCRIPTION

[0075] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art may think of other obvious variations.

[0076] Reference Figure 1 As shown, a pattern production method based on deep learning includes:

[0077] Acquire historical design pattern data, segment elements in the historical design pattern data, and obtain pattern component data;

[0078] Based on the pattern component data, the style attributes of each pattern component are analyzed, and they are classified according to the same type of style attributes, and combined into a pattern component classification database;

[0079] Generate printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed;

[0080] According to the printing requirements of the to-be-printed article, a number of pattern components that meet the printing requirements are randomly selected from the pattern component classification database as the pattern components to be combined;

[0081] According to the style attributes between the pattern components to be combined, the pattern components to be combined with outliers in style attributes are eliminated to obtain combinable pattern components;

[0082] Generate printed pattern based on combinable graphic pattern components.

[0083] This solution extracts pattern components from historical data, analyzes and classifies their style attributes, and selects combined and matched pattern components from the classification database according to the needs of the printed items, and removes components whose style attributes are out of line with the overall style, ensuring that the style of the combinable graphic pattern components is unified, and finally generating printed patterns that meet personalized needs. The advantages are: reducing design costs and improving the efficiency of pattern design.

[0084] It should be noted that in this solution, the printing demand determined based on the functional attributes of the printed article is not the only limiting condition. The popular patterns in reality can also be used as the learning direction, and the printing patterns can be generated without considering the impression demand. There is no infringement in generating variants of the popular patterns as the target of machine learning. The text-to-image or image-to-image generation is the existing technology and will not be described in detail here.

[0085] Reference Figure 2 As shown, based on the pattern component data, the style attributes of each pattern component are analyzed, and they are classified according to the same type of style attributes, and combined into a pattern component classification database, which specifically includes:

[0086] Based on the image pattern component data, each image pattern feature data is extracted through edge detection algorithm;

[0087] Determine characteristic parameters of known design style attributes based on historical design pattern data;

[0088] Based on random forest, a pattern style attribute classification model is constructed;

[0089] According to the pattern style attribute classification model, based on the feature parameters of the known design style attributes, the Gini impurity reduction value of each feature parameter is recursively calculated, and the feature parameter with the smallest Gini impurity is selected as the splitting condition of the corresponding split node;

[0090] Substitute the image pattern component data into the pattern style attribute classification model, divide it based on the splitting condition of the split node, and obtain a number of sub-leaf nodes; the sub-leaf nodes are the final style attribute classification labels;

[0091] Take each leaf node as a style attribute array and construct a pattern component classification database Δ=[L 11 , L 22 , …, L ij , …, Lmn ], where L ij is the jth pattern component of the i-th style attribute category array, m is the total number of category groups, and n is the total number of pattern components;

[0092] The calculation expression of the Gini impurity reduction value of each characteristic parameter is:

[0093]

[0094] In the formula, Gini min is the minimum Gini impurity after segmentation, Gini(T) is the Gini impurity of the segmentation node, Gini split (T) is the Gini impurity of the cotyledon node, p j (T) is the proportion of the jth image component samples in the segmentation node, T is the segmentation node, T L is the left cotyledon node, T R is the right cotyledon node, Gini(T L ) is the Gini impurity of the left cotyledon node, Gini(T R ) is the Gini impurity of the right cotyledon node.

[0095] It is understandable that the split node threshold setting of the decision tree can also be based on the information gain of the sample. In this scheme, the decision tree in the random forest is aimed at the classification of style attributes. Therefore, the pattern sample with the highest frequency of mode value in the final leaf node set is used as a classification reference.

[0096] Reference Figure 3 As shown, according to the printing requirements of the article to be printed, a number of pattern components that meet the printing requirements are randomly selected from the pattern component classification database as the pattern components to be combined, specifically including:

[0097] Determine printing requirement characteristic data based on the printing requirements of the item to be printed; the printing requirement characteristic data includes: theme, style, color, and size;

[0098] According to the printing requirements of the to-be-printed article, the pattern components that meet the printing requirements are selected from the pattern component classification database as component label data;

[0099] Based on principal component analysis, the printing requirement feature data and component label data are converted into a two-dimensional requirement feature vector and a two-dimensional component label vector, which are combined into a training data set and divided into a training set and a validation set according to a 7 / 2 ratio.

[0100] Based on the convolutional neural network, the two-dimensional demand feature vector in the training set is used as input, and a deformable convolution layer is introduced to output the two-dimensional component label vector that meets the demand, and the adaptive demand screening component selection model is trained;

[0101] Substituting the printing demand of the to-be-printed article into the adaptive demand screening component selection model, obtaining a number of pattern components that meet the printing demand as the pattern components to be combined;

[0102] Among them, the adaptive demand screening component selection model expression is:

[0103]

[0104] Where y is the output two-dimensional component label vector, x is the input two-dimensional demand feature vector, w is the trainable weight, b is the trainable bias parameter, and ya b is the value of position (a, b) in the feature map of the output two-dimensional component label vector, W k,m,n is the weight of the kth convolution kernel at position (m,n), x a+m The value of position (a+m, b+n) in the feature map of the input two-dimensional demand feature vector, are the offsets in the x and y directions respectively, and b k is the bias term of the kth output channel, H is the height of the convolution kernel, G is the width of the convolution kernel, and K is the number of convolution kernels.

[0105] It should be noted that due to the inconsistency of the printing sizes of the objects to be printed, the convolution kernel of the traditional convolutional neural network is of fixed size, and the fixed convolution kernel cannot capture the changes in printing size, resulting in poor accuracy of model screening. Therefore, by introducing a deformable convolution layer, an offset is predicted for each convolution kernel position, so that the convolution kernel can perform non-uniform sampling on the feature map and adaptively adjust the shape and size to improve the screening performance of the model.

[0106] It should be noted that the two-dimensional demand feature vector of printing demand refers to, for example: the total preview of printing demand is: theme features: nature, technology, retro, abstract, style features: natural style, simple style, retro style, artistic style, modern style, color features: three primary colors, size features: A1, A2, A3, and the printing demand of the printed items is: theme features: nature, style features: natural style, color features: red, green and blue, size features: A1, the final printing demand is: nature, natural style, blue, green, red, A1, and the demand feature vector obtained after dimensionality reduction is expressed as: theme features [1, 0, 0, 0], style features: [1, 0, 0, 0, 0], color features: [0.8, 0.1, 0.1], size features: [1, 0, 0], where 1 represents the corresponding demand feature vector,

[0107] Reference Figure 4As shown, according to the style attributes between the pattern components to be combined, the pattern components to be combined with outliers in style attributes are eliminated to obtain the combinable pattern components, which specifically includes:

[0108] Based on the style attributes of the pattern components to be combined, they are converted into component numerical feature vectors through one-hot encoding;

[0109] Calculate the vector distance between each component numerical feature vector and map it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances;

[0110] Setting the size of the domain based on the distribution of scatter points in the two-dimensional scatter plot of component vector distances;

[0111] Based on the domain size of each point in the scatter plot, the distance to the neighboring points that can be reached within the domain size is calculated, and the local reachable density is calculated according to the reciprocal average of the distance to the neighboring points that can be reached within the domain size of a point;

[0112] Calculate the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each scattered point;

[0113] Determine whether the abnormality score of each scatter point in the scatter plot exceeds the abnormality threshold. If not, mark it as no abnormality. If yes, mark it as abnormality, and remove the pattern component to be combined corresponding to the abnormal scatter point;

[0114] The calculation expression of the abnormal score of each scattered point is:

[0115]

[0116] In the formula, the anomaly score of each scattered point of scatter point D, o is the neighboring point, S z (D) is the set of z nearest neighbors of scattered point D, lrd(D) is the local reachable density of scattered point D, and lrd(o) is the local reachable density of neighboring point o.

[0117] It should be noted that the calculation of the vector distance is obtained by Euclidean distance or pre-similarity, which is a prior art and will not be described in detail here.

[0118] It is understandable that the setting of the anomaly threshold can be determined based on the mean and standard deviation of the anomaly score value of each scattered point. For example, selecting a threshold that is greater than the mean of the anomaly score of each scattered point plus one or two standard deviations can ensure that the anomaly score value of each scattered point of most normal data points is lower than this threshold. Secondly, the threshold is selected based on domain knowledge and experience. For a specific data set and application scenario, a suitable threshold can be determined based on the experience of experts in this field.

[0119] Further, see Figure 5As shown, based on the same inventive concept of a pattern production method based on deep learning, a pattern production system based on deep learning is proposed, comprising:

[0120] Component database: The component database is used to segment the elements in the historical design pattern data, analyze the style attributes of each pattern component, classify them according to the same type of style attributes, and combine them into a pattern component classification database;

[0121] A demand confirmation module, the demand confirmation module is used to generate printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed;

[0122] A component screening module, the component screening module is electrically connected to the demand confirmation module and the component database, and the component screening module is used to randomly screen a number of pattern components that meet the printing requirements in the pattern component classification database as the pattern components to be combined based on the printing requirements of the object to be printed;

[0123] An outlier component elimination module, the outlier component elimination module is electrically connected to the component screening module, and is used to eliminate the pattern pattern components to be combined whose style attributes are outliers according to the style attributes between the pattern pattern components to be combined, so as to obtain the combinable pattern pattern components;

[0124] The pattern generation module is electrically connected to the outlier component elimination module, and the pattern generation module is used to generate a printed pattern based on the combinable graphic pattern components.

[0125] The component database includes:

[0126] The image processing unit extracts each image pattern feature data through an edge detection algorithm based on the image pattern component data;

[0127] A feature unit, based on historical design pattern data, determines feature parameters of known design style attributes;

[0128] The first model building unit builds a pattern style attribute classification model based on random forest;

[0129] The conditional restriction unit, according to the pattern style attribute classification model, recursively calculates the Gini impurity reduction value of each feature parameter based on the feature parameters of the known design style attributes, and selects the feature parameter with the smallest Gini impurity as the splitting condition of the corresponding splitting node;

[0130] The classification unit substitutes the image pattern component data into the pattern style attribute classification model, divides it based on the splitting condition of the splitting node, and obtains a number of sub-leaf nodes;

[0131] The database construction unit takes each leaf node as a style attribute array to construct a pattern component classification database.

[0132] The component screening module includes:

[0133] A feature unit, which determines printing requirement feature data based on the printing requirement of the article to be printed;

[0134] The label unit selects the pattern components that meet the printing requirements from the pattern component classification database according to the printing requirements of the to-be-printed article as the component label data;

[0135] The dimension reduction unit converts the printing requirement feature data and the component label data into a two-dimensional requirement feature vector and a two-dimensional component label vector based on principal component analysis, combines them into a training data set, and divides them into a training set and a validation set according to a 7 / 2 split;

[0136] The second model building unit, based on a convolutional neural network, takes the two-dimensional demand feature vector in the training set as input, introduces a deformable convolution layer, and uses the two-dimensional component label vector that meets the demand as output to train an adaptive demand screening component selection model;

[0137] The component screening unit substitutes the printing demand of the to-be-printed article into the self-adaptive demand screening component selection model, and obtains a number of pattern components that meet the printing demand as the pattern components to be combined.

[0138] Among them, the outlier component removal module includes:

[0139] The digitization unit converts the style attributes of the pattern components to be combined into component numerical feature vectors through one-hot encoding;

[0140] A scatter plot unit calculates the vector distance between each component numerical feature vector and maps it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances;

[0141] A domain setting unit, which sets the domain size based on the distribution of scattered points in the two-dimensional scatter diagram of component vector distances;

[0142] The local density calculation unit calculates the distance to the neighboring points within the domain size of each point in the scatter plot, and calculates the local reachable density according to the reciprocal average of the distance to the neighboring points within the domain size of a point;

[0143] Anomaly scoring unit, an anomaly score calculation unit for each scattered point, calculates the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each point;

[0144] The elimination unit determines whether the abnormal score of each scatter point in the scatter plot exceeds the abnormal threshold. If not, it is marked as no abnormality. If so, it is marked as abnormal and the pattern component to be combined corresponding to the abnormal scatter point is eliminated.

[0145] The usage process of a pattern production system based on deep learning is as follows:

[0146] Step 1: Based on the image pattern component data, extract each image pattern feature data through edge detection algorithm;

[0147] Step 2: Determine the characteristic parameters of the known design style attributes based on the historical design pattern data;

[0148] Step 3: Based on random forest, build a pattern style attribute classification model;

[0149] Step 4: According to the pattern style attribute classification model, based on the feature parameters of the known design style attributes, recursively calculate the Gini impurity reduction value of each feature parameter, and select the feature parameter with the smallest Gini impurity as the splitting condition of the corresponding split node;

[0150] Step 5: Substitute the image pattern component data into the pattern style attribute classification model, divide it based on the splitting condition of the split node, and obtain several leaf nodes;

[0151] Step 6: Take each leaf node as a style attribute array and build a pattern component classification database;

[0152] Step 7: generating printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed;

[0153] Step 8: Determine printing demand characteristic data based on the printing demand of the item to be printed;

[0154] Step 9: Filter out pattern components that meet the printing requirements from the pattern component classification database according to the printing requirements of the object to be printed, and use them as component label data;

[0155] Step 10: Based on principal component analysis, the printing requirement feature data and component label data are converted into a two-dimensional requirement feature vector and a two-dimensional component label vector, which are combined into a training data set and divided into a training set and a validation set according to a 7 / 2 ratio.

[0156] Step 11: Based on the convolutional neural network, the two-dimensional demand feature vector in the training set is used as input, and a deformable convolution layer is introduced to output the two-dimensional component label vector that meets the demand, and the adaptive demand screening component selection model is trained;

[0157] Step 12: Substitute the printing requirements of the items to be printed into the adaptive demand screening component selection model to obtain a number of pattern components that meet the printing requirements as the pattern components to be combined;

[0158] Step 13: Based on the style attributes of the pattern components to be combined, convert them into component numerical feature vectors through one-hot encoding;

[0159] Step 14: Calculate the vector distance between each component numerical feature vector and map it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances;

[0160] Step 15: setting the size of the domain based on the distribution of scatter points in the two-dimensional scatter plot of component vector distances;

[0161] Step 16: For each point in the scatter plot, calculate the distance to the neighboring point within the range size, and calculate the local reachable density according to the reciprocal average of the distance to the neighboring point within the range size of a point;

[0162] Step 17: Calculate the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each point;

[0163] Step 18: Determine whether the abnormality score of each scatter point in the scatter plot exceeds the abnormality threshold. If not, mark it as no abnormality. If yes, mark it as abnormality, and remove the pattern component to be combined corresponding to the abnormal scatter point.

[0164] Step 19: Generate a printed pattern based on the combinable graphic pattern components.

[0165] To sum up, the advantages of the present invention are: by extracting pattern components from historical data, analyzing and classifying their style attributes, and according to the needs of the items to be printed, screening and combining matching pattern components from the classification database, and eliminating components whose style attributes are out of line with the overall style, ensuring the unity of style of the combinable graphic pattern components, and finally generating printed pattern patterns that meet personalized needs, the advantages are: reducing design costs and improving the efficiency of pattern design.

[0166] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions only describe the principles of the present invention. The present invention may be subject to various changes and improvements without departing from the spirit and scope of the present invention. These changes and improvements fall within the scope of the present invention. The scope of protection claimed by the present invention is defined by the attached claims and their equivalents.

Claims

1. A pattern production method based on deep learning, characterized in that: include: Acquire historical design pattern data, segment elements in the historical design pattern data, and obtain pattern component data; Based on the pattern component data, the style attributes of each pattern component are analyzed, and they are classified according to the same type of style attributes, and combined into a pattern component classification database; Generate printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed; According to the printing requirements of the to-be-printed article, a number of pattern components that meet the printing requirements are randomly selected from the pattern component classification database as the pattern components to be combined; According to the style attributes between the pattern components to be combined, the pattern components to be combined with outliers in style attributes are eliminated to obtain combinable pattern components; Generate printed pattern based on combinable graphic pattern components.

2. A pattern production method based on deep learning according to claim 1, characterized in that: The method specifically includes: based on the pattern component data, analyzing the style attribute of each pattern component, classifying them according to the same type of style attributes, and combining them into a pattern component classification database, specifically including: Based on the image pattern component data, each image pattern feature data is extracted through edge detection algorithm; Determine characteristic parameters of known design style attributes based on historical design pattern data; Based on random forest, a pattern style attribute classification model is constructed; According to the pattern style attribute classification model, based on the feature parameters of the known design style attributes, the Gini impurity reduction value of each feature parameter is recursively calculated, and the feature parameter with the smallest Gini impurity is selected as the splitting condition of the corresponding split node; Substitute the image pattern component data into the pattern style attribute classification model, divide it based on the splitting condition of the split node, and obtain a number of sub-leaf nodes; the sub-leaf nodes are the final style attribute classification labels; Take each leaf node as a style attribute array and construct a pattern component classification database A=[L 11 ,L 22 ,…,L ij ,…,L mn ], where L ij is the jth pattern component of the i-th style attribute category array, m is the total number of category groups, and n is the total number of pattern components; The calculation expression of the Gini impurity reduction value of each characteristic parameter is: In the formula, Gini min is the minimum Gini impurity after segmentation, Gini(T) is the Gini impurity of the segmentation node, Gini split (T) is the Gini impurity of the cotyledon node, p j (T) is the proportion of the jth image component samples in the segmentation node, T is the segmentation node, T L is the left cotyledon node, T R is the right cotyledon node, Gini(T L ) is the Gini impurity of the left cotyledon node, Gini(T R ) is the Gini impurity of the right cotyledon node.

3. A pattern production method based on deep learning according to claim 2, characterized in that: According to the printing requirements of the printed article, a number of pattern components that meet the printing requirements are randomly selected from the pattern component classification database as the pattern components to be combined, specifically including: Determine printing requirement characteristic data based on the printing requirements of the item to be printed; the printing requirement characteristic data includes: theme, style, color, and size; According to the printing requirements of the to-be-printed article, the pattern components that meet the printing requirements are selected from the pattern component classification database as component label data; Based on principal component analysis, the printing requirement feature data and component label data are converted into a two-dimensional requirement feature vector and a two-dimensional component label vector, which are combined into a training data set and divided into a training set and a validation set according to a 7 / 2 ratio. Based on the convolutional neural network, the two-dimensional demand feature vector in the training set is used as input, and a deformable convolution layer is introduced to output the two-dimensional component label vector that meets the demand, and the adaptive demand screening component selection model is trained; Substituting the printing demand of the to-be-printed article into the adaptive demand screening component selection model, obtaining a number of pattern components that meet the printing demand as the pattern components to be combined; Among them, the adaptive demand screening component selection model expression is: Where y is the output two-dimensional component label vector, x is the input two-dimensional requirement feature vector, w is the trainable weight, b is the trainable bias parameter, and y ab is the value of position (a, b) in the feature map of the output two-dimensional component label vector, w k,m,n is the weight of the kth convolution kernel at position (m,n), x a+m The value of position (a+m, b+n) in the feature map of the input two-dimensional demand feature vector, are the offsets in the x and y directions respectively, and b k is the bias term of the kth output channel, H is the height of the convolution kernel, G is the width of the convolution kernel, and K is the number of convolution kernels.

4. A pattern production method based on deep learning according to claim 3, characterized in that: According to the style attributes between the pattern components to be combined, the pattern components to be combined with outliers in style attributes are eliminated to obtain the combinable pattern components, which specifically includes: Based on the style attributes of the pattern components to be combined, they are converted into component numerical feature vectors through one-hot encoding; Calculate the vector distance between each component numerical feature vector and map it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances; Setting the size of the domain based on the distribution of scatter points in the two-dimensional scatter plot of component vector distances; Based on the domain size of each point in the scatter plot, the distance to the neighboring points that can be reached within the domain size is calculated, and the local reachable density is calculated according to the reciprocal average of the distance to the neighboring points that can be reached within the domain size of a point; Calculate the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each scattered point; Determine whether the abnormality score of each scatter point in the scatter plot exceeds the abnormality threshold. If not, mark it as no abnormality. If yes, mark it as abnormality, and remove the pattern component to be combined corresponding to the abnormal scatter point; The calculation expression of the abnormal score of each scattered point is: In the formula, the anomaly score of each scattered point of scatter point D, o is the neighboring point, S z (D) is the set of z nearest neighbors of scattered point D, lrd(D) is the local reachable density of scattered point D, and lrd(o) is the local reachable density of neighboring point o.

5. A pattern production system based on deep learning, characterized in that: A method for producing a pattern based on deep learning as claimed in any one of claims 1 to 4, comprising: Component database: The component database is used to segment the elements in the historical design pattern data, analyze the style attributes of each pattern component, classify them according to the same type of style attributes, and combine them into a pattern component classification database; A demand confirmation module, the demand confirmation module is used to generate printing requirements of the object to be printed based on functional attributes of a plurality of areas to be printed of the object to be printed; A component screening module, the component screening module is electrically connected to the demand confirmation module and the component database, and the component screening module is used to randomly screen a number of pattern components that meet the printing requirements in the pattern component classification database as the pattern components to be combined based on the printing requirements of the object to be printed; An outlier component elimination module, the outlier component elimination module is electrically connected to the component screening module, and is used to eliminate the pattern pattern components to be combined whose style attributes are outliers according to the style attributes between the pattern pattern components to be combined, so as to obtain the combinable pattern pattern components; The pattern generation module is electrically connected to the outlier component elimination module, and the pattern generation module is used to generate a printed pattern based on the combinable graphic pattern components.

6. A pattern production system based on deep learning according to claim 5, characterized in that: The component database includes: The image processing unit extracts each image pattern feature data through an edge detection algorithm based on the image pattern component data; A feature unit, based on historical design pattern data, determines feature parameters of known design style attributes; The first model building unit builds a pattern style attribute classification model based on random forest; The conditional restriction unit, according to the pattern style attribute classification model, recursively calculates the Gini impurity reduction value of each feature parameter based on the feature parameters of the known design style attributes, and selects the feature parameter with the smallest Gini impurity as the splitting condition of the corresponding splitting node; The classification unit substitutes the image pattern component data into the pattern style attribute classification model, divides it based on the splitting condition of the splitting node, and obtains a number of sub-leaf nodes; The database construction unit takes each leaf node as a style attribute array to construct a pattern component classification database.

7. A pattern production system based on deep learning according to claim 5, characterized in that: The component screening module includes: A feature unit, which determines printing requirement feature data based on the printing requirement of the article to be printed; The label unit selects the pattern components that meet the printing requirements from the pattern component classification database according to the printing requirements of the to-be-printed article as the component label data; The dimension reduction unit converts the printing requirement feature data and the component label data into a two-dimensional requirement feature vector and a two-dimensional component label vector based on principal component analysis, combines them into a training data set, and divides them into a training set and a validation set according to a 7 / 2 split; The second model building unit, based on a convolutional neural network, takes the two-dimensional demand feature vector in the training set as input, introduces a deformable convolution layer, and uses the two-dimensional component label vector that meets the demand as output to train an adaptive demand screening component selection model; The component screening unit substitutes the printing demand of the to-be-printed article into the self-adaptive demand screening component selection model to obtain a number of pattern components that meet the printing demand as the pattern components to be combined.

8. The pattern production system based on deep learning according to claim 5, characterized in that: The outlier component removal module includes: The digitization unit converts the style attributes of the pattern components to be combined into component numerical feature vectors through one-hot encoding; A scatter plot unit calculates the vector distance between each component numerical feature vector and maps it to a two-dimensional plane to generate a two-dimensional scatter plot of component vector distances; A domain setting unit, which sets the domain size based on the distribution of scattered points in the two-dimensional scatter diagram of component vector distances; The local density calculation unit calculates the distance to the neighboring points within the domain size of each point in the scatter plot, and calculates the local reachable density according to the reciprocal average of the distance to the neighboring points within the domain size of a point; Anomaly scoring unit, an anomaly score calculation unit for each scattered point, calculates the anomaly score of each scattered point based on the local reachable density and the average local reachable density within the domain size of each point; The elimination unit determines whether the abnormal score of each scatter point in the scatter plot exceeds the abnormal threshold. If not, it is marked as no abnormality. If so, it is marked as abnormal and the pattern component to be combined corresponding to the abnormal scatter point is eliminated.