Intelligent bag selection method for wool washing
By constructing a dissimilarity matrix of wool bale parameters and using a hierarchical clustering algorithm, wool is automatically grouped, solving the problem of low intelligence in wool grouping and realizing an efficient and automatic wool grouping method.
Patent Information
- Application Number
- CN202211057846.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-08-31
AI Technical Summary
Existing technologies have low levels of intelligence in wool grouping, requiring a lot of manual intervention, which leads to a heavy workload for staff.
By acquiring the parameters of the wool bales and constructing a dissimilarity matrix, hierarchical clustering and chameleon algorithms are used to construct a trunk graph and a seed graph, and wool is automatically grouped to meet the parameter requirements.
It enables intelligent wool grouping, reduces manual intervention, and improves grouping efficiency and consistency.
Smart Images

Figure CN115375932B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of wool processing, and in particular to an intelligent bag selection method for wool washing. Background Art
[0002] After purchasing wool at an auction, the wool processing factory needs to group and clean the wool according to parameters (parameters include weeds, fineness, length, net weight and marked weight).
[0003] In order to ensure that the parameters of each group of wool after washing are as close as possible, so as to improve the quality of subsequent wool yarn and wool tops, after the wool of the same batch is grouped, the weeds, fineness, length, net weight and standard weight of each group must meet certain requirements. For example: the weighted average difference between weeds and net weight of each group is within 0.28, the weighted average difference between fineness and standard weight is within 0.028, and the weighted average difference between length and standard weight is within 0.9).
[0004] The existing technical solution mainly relies on manual work in Excel until the pre-set standards are met. This method has a low level of intelligence and requires a lot of manpower. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an intelligent bag selection method for wool washing.
[0006] To solve the above problems, the technical solution adopted by the present invention is:
[0007] A method for intelligently selecting wool bags during wool washing, comprising:
[0008] Obtaining wool bale parameters of each bale of wool in the same batch, wherein the wool bale parameters include: wool bale identification, weeds, fineness, length, standard weight, and net weight;
[0009] Based on a plurality of wool bag parameters, obtaining a dissimilarity matrix corresponding to the plurality of wool bag parameters;
[0010] Obtaining a preferred estimated number of groups under the batch based on the dissimilarity matrix;
[0011] Constructing a backbone graph based on the dissimilarity matrix and the preferred estimated number of groups, and decomposing the backbone graph into a plurality of low-level seed graphs;
[0012] An optimal grouping method is obtained based on the seed graphs, and the grouping method includes: an optimal theoretical number of groups and wool bag identifiers contained in each group.
[0013] As an implementation mode of the invention, the dissimilarity matrix corresponding to the multiple wool bag parameters is obtained based on the multiple wool bag parameters, including:
[0014] Obtaining the weeds, fineness, length, standard weight and net weight of a plurality of wool bale parameters, and constructing a data matrix, wherein each row of the data matrix describes a wool bale, and each column represents the values of the weeds, fineness, length, standard weight and net weight of a wool bale;
[0015] The data matrix is converted into a dissimilarity matrix.
[0016] As an implementation mode of the invention, the obtaining of the optimal estimated number of groups under the batch based on the dissimilarity matrix includes:
[0017] Obtaining a hierarchical nested clustering tree corresponding to the dissimilarity matrix based on a minimum distance hierarchical clustering algorithm;
[0018] Obtain the maximum value of the ordinate of the nested clustering tree, and take 1 / 2 of the maximum value of the ordinate as the median a;
[0019] A horizontal line y=a is generated in the nested clustering tree, and the number of intersections between the horizontal line and the nested clustering tree is used as the preferred estimated number of groups under the batch.
[0020] As an implementation mode of the invention, the backbone graph is constructed based on the dissimilarity matrix and the preferred estimated number of groups, and the backbone graph is decomposed into several low-level seed graphs, including:
[0021] Obtaining a sparse graph of image feature data corresponding to the dissimilarity matrix;
[0022] Chameleon operates on a sparse graph, where nodes represent data items and weighted edges represent similarities between data items. Chameleon constructs a backbone graph using a K-nearest neighbor algorithm, where the k value is equal to the number of preferred estimated groups.
[0023] Chameleon clusters data items into several relatively small subclusters and obtains several seed graphs.
[0024] As an implementation mode of the invention, the optimal grouping method based on the plurality of seed graphs includes:
[0025] The number of seed graphs is taken as the number of groups, and the wool bales represented by the wool bale identifiers corresponding to the data items in each seed graph are taken as a group.
[0026] The beneficial effects of adopting the above technical solution are:
[0027] The wool washing intelligent bag selection method provided by the present invention obtains the wool bag parameters of each bag of wool in the same batch, and the wool bag parameters include: wool bag identification, weeds, fineness, length, standard weight, and net weight; based on multiple wool bag parameters, a dissimilarity matrix corresponding to the multiple wool bag parameters is obtained; based on the dissimilarity matrix, the preferred estimated number of groups in the batch is obtained; based on the dissimilarity matrix, a trunk graph is constructed based on the dissimilarity matrix and the preferred estimated number of groups, and the trunk graph is decomposed into several low-level seed graphs; based on several seed graphs, the optimal grouping method is obtained, and the grouping method includes: the optimal theoretical number of groups, and the wool bag identification contained in each group. The method can obtain the final grouping method by running the corresponding program, without the need for manual number addition, which greatly reduces the burden on the staff and has a high degree of intelligence. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a structural schematic diagram of an intelligent wool washing bag selection method provided by the present invention.
[0029] Figure 2 It is a structural schematic diagram of a nested clustering tree provided by the present invention.
[0030] Figure 3 It is a main diagram schematic diagram provided by the present invention.
[0031] Figure 4 This is a schematic diagram of a seed graph provided by the present invention. DETAILED DESCRIPTION
[0032] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention is clearly and completely described below in conjunction with specific embodiments.
[0033] The embodiment of the present invention provides a method for intelligently selecting wool bags during wool washing, which comprises:
[0034] Step S1, obtaining wool bale parameters of each bale of wool in the same batch, wherein the wool bale parameters include: wool bale identification, weeds, fineness, length, standard weight, and net weight.
[0035] The wool bag parameters may be obtained by being sent by the wool farm or input by workers, and the present invention does not make any specific limitation on this.
[0036] Step S2: based on a plurality of wool bag parameters, obtaining a dissimilarity matrix corresponding to the plurality of wool bag parameters.
[0037] It includes:
[0038] Step S201, obtaining the weeds, fineness, length, standard weight and net weight of a plurality of wool bale parameters, and constructing a data matrix, wherein each row of the data matrix describes a wool bale, and each column represents the values of the weeds, fineness, length, standard weight and net weight of a wool bale;
[0039] For example, when the number of wool bales is 200, the data matrix is a 200x5 matrix.
[0040] Step S202: convert the data matrix into a dissimilarity matrix.
[0041] Step S3: obtaining the optimal estimated number of groups in the batch based on the dissimilarity matrix.
[0042] It includes:
[0043] Step S301, obtaining a hierarchical nested clustering tree corresponding to the dissimilarity matrix based on a minimum distance hierarchical clustering algorithm;
[0044] The method is as follows: Assuming that there are N objects to be clustered, and the distance matrix size is NxN, the basic process of the minimum distance method of the agglomerative hierarchical clustering method is as follows:
[0045] (1) Treat each data object as a cluster, with only one object in each cluster, and calculate the distance d(i, j) between them to obtain the initial distance matrix;
[0046] (2) Merge the two clusters with the smallest distance (d(i,j)) into a new cluster;
[0047] (3) Recalculate the distance d(i, j) between the new cluster and all other clusters, that is, select the smallest distance between the newly merged cluster and the original cluster as the similarity between the two clusters;
[0048] Step S302: Figure 2 As shown, the maximum value of the ordinate of the nested clustering tree is obtained, and 1 / 2 of the maximum value of the ordinate is taken as the median a;
[0049] Step S303: Generate a horizontal line of y=a in the nested clustering tree, and use the number of intersections between the horizontal line and the nested clustering tree as the preferred estimated number of groups under the batch.
[0050] like Figure 2 As shown, the maximum value of the ordinate is 30, the median a is 15, and the number of intersections between the horizontal line of y=15 and the nested clustering tree is 5, so the optimal estimated number of groups under the batch corresponding to the nested clustering tree is 5.
[0051] Step S4: construct a backbone graph based on the dissimilarity matrix and the preferred estimated number of groups, and decompose the backbone graph into a plurality of low-level seed graphs.
[0052] It includes:
[0053] Step S401, obtaining a sparse graph of image feature data corresponding to the dissimilarity matrix;
[0054] For example, the Pendigits dataset contains multiple types of image feature data, and a sparse graph of the image feature data can be determined based on the dissimilarity matrix;
[0055] Step S402: Chameleon runs on a sparse graph, where nodes represent data items and weighted edges represent similarities between data items. Chameleon uses the K-nearest neighbor algorithm to construct a backbone graph, such as Figure 3 As shown, wherein the k value is equal to the number of the preferred estimated groups;
[0056] Step S403: Chameleon clusters the data items into several relatively small sub-clusters to obtain several seed graphs, such as Figure 4 shown.
[0057] Each seed graph represents a group, the weighted average difference of weeds and net weight between each group is less than a first threshold, the weighted average difference of fineness and standard weight is less than a second threshold, and the weighted average difference of length and standard weight is less than a third threshold; the present invention does not specifically limit the specific values of the first threshold, the second threshold and the third threshold. By way of example, the first threshold is 0.28, the second threshold is 0.028, and the third threshold is 0.9.
[0058] Step S5: obtaining an optimal grouping method based on the plurality of seed graphs, wherein the grouping method includes: an optimal theoretical number of groups, and wool bag identifiers contained in each group.
[0059] The method comprises: taking the number of seed graphs as the number of groups, and taking the wool bags represented by the wool bag identifiers corresponding to the data items in each seed graph as a group.
[0060] The wool washing intelligent bag selection method provided by the present invention obtains the wool bag parameters of each bag of wool in the same batch, and the wool bag parameters include: wool bag identification, weeds, fineness, length, standard weight, and net weight; based on multiple wool bag parameters, a dissimilarity matrix corresponding to the multiple wool bag parameters is obtained; based on the dissimilarity matrix, the preferred estimated number of groups in the batch is obtained; based on the dissimilarity matrix, a trunk graph is constructed based on the dissimilarity matrix and the preferred estimated number of groups, and the trunk graph is decomposed into several low-level seed graphs; based on several seed graphs, the optimal grouping method is obtained, and the grouping method includes: the optimal theoretical number of groups, and the wool bag identification contained in each group. The method can obtain the final grouping method by running the corresponding program, without the need for manual number addition, which greatly reduces the burden on the staff and has a high degree of intelligence.
Claims
1. A method for intelligently selecting wool bags during wool washing, characterized in that: It includes: Obtaining wool bale parameters of each bale of wool in the same batch, wherein the wool bale parameters include: wool bale identification, weeds, fineness, length, standard weight, and net weight; Based on a plurality of wool bag parameters, obtaining a dissimilarity matrix corresponding to the plurality of wool bag parameters; Obtaining the optimal estimated number of groups under the batch based on the dissimilarity matrix; Constructing a backbone graph based on the dissimilarity matrix and the preferred estimated number of groups, and decomposing the backbone graph into a plurality of low-level seed graphs; Based on the seed graphs, an optimal grouping method is obtained, wherein the grouping method includes: an optimal theoretical number of groups and wool bag identifiers contained in each group; The step of obtaining a dissimilarity matrix corresponding to the plurality of wool bag parameters based on the plurality of wool bag parameters comprises: Obtaining the weeds, fineness, length, standard weight and net weight of a plurality of wool bale parameters, and constructing a data matrix, wherein each row of the data matrix describes a wool bale, and each column represents the values of the weeds, fineness, length, standard weight and net weight of a wool bale; Converting the data matrix into a dissimilarity matrix; The obtaining the preferred estimated number of groups under the batch based on the dissimilarity matrix includes: Obtaining a hierarchical nested clustering tree corresponding to the dissimilarity matrix based on a minimum distance hierarchical clustering algorithm; Obtain the maximum value of the ordinate of the nested clustering tree, and take 1 / 2 of the maximum value of the ordinate as the median a; Generating a horizontal line y=a in the nested clustering tree, and using the number of intersections between the horizontal line and the nested clustering tree as the preferred estimated number of groups under the batch; The step of constructing a backbone graph based on the dissimilarity matrix and the preferred estimated number of groups, and decomposing the backbone graph into a plurality of low-level seed graphs, includes: Obtaining a sparse graph of image feature data corresponding to the dissimilarity matrix; Chameleon operates on a sparse graph, where nodes represent data items and weighted edges represent similarities between data items. Chameleon constructs a backbone graph using a K-nearest neighbor algorithm, where the k value is equal to the number of preferred estimated groups. Chameleon clusters data items into several relatively small subclusters and obtains several seed graphs; The optimal grouping method based on the plurality of seed graphs includes: The number of seed graphs is taken as the number of groups, and the wool bales represented by the wool bale identifiers corresponding to the data items in each seed graph are taken as a group.
Citation Information
Patent Citations
Similarity measurement and truncation method in chameleon algorithm
CN108932528A
Cashmere and wool fiber identification method based on local features and a word bag model
CN109583307A
Difference minimization random grouping method and system
CN110929218A
Wool pack forming apparatus using high speed rotating drums and low frequency sound distribution
US5620497A
