Inhomogeneous sample equalization method and system for product assembly process

11429070 · 2022-08-30

    Inventors

    Cpc classification

    International classification

    Abstract

    The disclosure discloses an inhomogeneous sample equalization method and system for a product assembly process. The method includes the following steps of: A: calculating a similarity among different samples; B: constructing a fuzzy compatibility matrix S for representing the similarity among all the samples, and constructing a fuzzy compatibility space X with different granule layers through the fuzzy compatibility matrix S; C: based on a granular calculating mode, screening out a granule layer with a maximum comprehensive value of an information increment and the similarity among the samples from the fuzzy compatible space X to serve as an optimal granule layer; and D: carrying out equalization processing on the sample of the optimal granule layer.

    Claims

    1. An inhomogeneous sample equalization method for a product assembly process which takes an assembly process topological structure of a product as a sample, and takes assembly process topological structures of same products with different styles as different samples, wherein the method comprises the following steps of: step A: calculating a similarity among different samples; step B: constructing a fuzzy compatibility matrix S for representing the similarity among all the samples, constructing a fuzzy compatibility space X with different granule layers through the fuzzy compatibility matrix S, and clustering all samples through the fuzzy compatibility space X, wherein the fuzzy compatibility space X is divided into a plurality of different granule layers according to the similarity among the samples; step C: based on a granular calculating mode, screening out a granule layer with a maximum comprehensive value of an information increment and the similarity among the samples from the fuzzy compatible space X to serve as an optimal granule layer; and step D: carrying out equalization processing on a sample of the optimal granule layer; the step D specifically comprises: step D1: calculating an average number G.sub.i of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o): G ¯ i = 1 g .Math. k = 0 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ; wherein, a threshold is set as λ, and values of the threshold λ are respectively λ.sub.1, λ.sub.2, λ.sub.3, . . . , λ.sub.n, and 1=λ.sub.1>λ.sub.2>λ.sub.3> . . . >λ.sub.n=0, and wherein G.sub.i, k is a kth sample granule in the granule layer C(λ.sub.i); |G.sub.i, k| is a number of samples contained in the kth sample granule; g represents a number of sample granules in the granule layer C(λ.sub.i); step D2: increasing and decreasing a number of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o) by a random sampling method, so that the number of the samples in each sample granule G.sub.i is the same to complete the equalization processing: if |G.sub.i, k|>G.sub.i, randomly eliminating extra samples of the sample granule G.sub.i, k, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is decreased to G.sub.i; and if |G.sub.i, k|<G.sub.i, copying original samples in the sample granule G.sub.i, k into the sample granule G.sub.i, k again, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is increased to G.sub.i.

    2. The inhomogeneous sample equalization method for the product assembly process according to claim 1, wherein the step A specifically comprises: step A1: calculating a node similarity among different samples: S node ( v i , v j ) = 2 × m i , j e i + e j wherein i represents a same product of an i.sup.th type, j represents a same product of a j.sup.th type, and S.sub.node(v.sub.i, v.sub.j) represents a node similarity between an assembly process topological structure v.sub.i the same product of the i.sup.th type and an assembly process topological structure v.sub.j of the same product of the j.sup.th type; m.sub.i, j represents a number of nodes matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.j; e.sub.i represents a sum of a number of all nodes in the assembly process topological structure v.sub.i; and e.sub.j represents a sum of a number of all nodes in the assembly process topological structure v.sub.j; step A2: calculating a topological relation similarity among different samples: S rel ( v i , v j ) = 2 × M i , j E i + E j wherein S.sub.rel(v.sub.i, v.sub.j) represents a topological relation similarity between the assembly process topological structure v.sub.i the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type; M.sub.i, j represents a number of relation edges matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.i; E.sub.i represents a sum of a number of all relation edges in the assembly process topological structure v.sub.i; and E.sub.j represents a sum of a number of all relation edges in the assembly process topological structure v.sub.j; and step A3: calculating a topological structure similarity among different samples:
    S(i,j)=S.sub.node(v.sub.i,v.sub.j)×W.sub.node+S.sub.rel(v.sub.i,v.sub.j)×W.sub.rel, wherein S(i, j) represents the topological structure similarity between the assembly process topological structure v.sub.i of the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type, W.sub.node is a preset node weight parameter, and W.sub.rel is a preset relation edge weight parameter.

    3. The inhomogeneous sample equalization method for the product assembly process according to claim 2, wherein the step B specifically comprises: step B1: constructing the fuzzy compatibility matrix S representing a similarity among all topological structures of a set V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n} of all the samples; S = [ S ( i , j ) ] n .Math. n = [ 1 .Math. S ( i , 1 ) .Math. 1 .Math. .Math. .Math. S ( j , 1 ) .Math. S ( j , i ) .Math. 1 .Math. .Math. .Math. .Math. .Math. S ( n , 1 ) .Math. S ( n , i ) .Math. S ( n , j ) .Math. 1 ] ; step B2: taking the fuzzy compatibility matrix S as an input and constructing the fuzzy compatibility space X with different granule layers by the following methods, and clustering all the samples through the fuzzy compatibility space X: step B21: setting a threshold λ, wherein 1=λ.sub.1>λ.sub.2>λ.sub.3> . . . >λ.sub.n=0, and when values of the threshold λ are respectively λ.sub.1, λ.sub.2, λ.sub.3, . . . , λ.sub.n, calculating the similarity S(i, j) between the sample v.sub.i and the other sample v.sub.j in V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n}, wherein i∈(1,n); and step B22: according to S λ ( i , j ) = { 1 , S ( i , j ) λ 0 , S ( i , j ) < λ , obtaining all the samples meeting S.sub.λ(i,j)=1 when λ=λ.sub.i to construct sample granules G.sub.i, wherein i=1, 2, 3, . . . , n, then constructing a corresponding granule layer C(λ.sub.i) through all the sample granules G.sub.i, and finally constructing the fuzzy compatible space X according to all the granule layers C(λ.sub.i).

    4. The inhomogeneous sample equalization method for the product assembly process according to claim 3, wherein the step C specifically comprises: step C1: calculating a granularity of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n: E [ C ( λ i ) ] = .Math. j = 1 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" g × log 2 ( .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ) wherein G.sub.i, k is a k.sup.th sample granule in the granule layer C(λ.sub.i); |G.sub.i, k| is a number of samples contained in the k.sup.th sample granule; log.sub.2(|G.sub.i, k|) represents an amount of information needed to completely distinguish all granules in the sample granule G.sub.i, k; and g represents a number of sample granules in the granule layer C(λ.sub.i); step C2: calculating an information increment IG[C(λ.sub.i)] of the granule layer C(λ.sub.i), wherein 1=1, 2, 3, . . . , n:
    IG[C(λ.sub.i)]=E[C(λ.sub.i)]−E[C(λ.sub.i-1)]; step C3: calculating an information increment and a comprehensive value D.sub.i of the similarity among the samples of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:
    D.sub.i=IG[C(λ.sub.i)]*W.sub.ig+λ.sub.iW.sub.λ; wherein W.sub.ig is a weight of the information increment of the granule layer C(λ.sub.i), and W.sub.λ is a weight of a sample similarity threshold of the granule layer C(λ.sub.i); and step C4: screening out a granule layer with a maximum comprehensive value D.sub.i as an optimal granule layer C(λ.sub.o).

    5. An inhomogeneous sample equalization system for a product assembly process, which takes an assembly process topological structure of a product as a sample, and takes assembly process topological structures of same products with different styles as different samples, wherein the system comprises: a similarity generation module configured to calculate a similarity among different samples; a fuzzy compatibility space construction module configured to construct a fuzzy compatibility matrix S for representing the similarity among all the samples, construct a fuzzy compatibility space X with different granule layers through the fuzzy compatibility matrix S, and cluster all samples through the fuzzy compatibility space X, wherein the fuzzy compatibility space X is divided into a plurality of different granule layers according to the similarity among the samples; an optimal granule layer generation module configured to, based on a granular calculating mode, screen out a granule layer with a maximum comprehensive value of an information increment and the similarity among the samples from the fuzzy compatible space X to serve as an optimal granule layer; and an equalization module configured to carry out equalization processing on a sample of the optimal granule layer; wherein the equalization module comprises: an average sample number calculation sub-module configured to calculate an average number G.sub.i of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o); G ¯ i = 1 g .Math. k = 0 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ; wherein, a threshold is set as λ, and values of the threshold λ are respectively λ.sub.1, λ.sub.2, λ.sub.3, . . . , λ.sub.n, and 1=λ.sub.1>λ.sub.2>λ.sub.3> . . . >λ.sub.n=0, and wherein G.sub.i, k is a kth sample granule in the granule layer C(λ.sub.i); |G.sub.i, k| is a number of samples contained in the kth sample granule; g represents a number of sample granules in the granule layer C(λ.sub.i); and a sample increasing and decreasing sub-module configured to increase and decrease a number of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o) by a random sampling method, so that the number of samples in each sample granule G.sub.i is the same to complete the equalization processing: if |G.sub.i, k|>G.sub.i, randomly eliminating extra samples of the sample granule G.sub.i, k, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is decreased to G.sub.i; and if |G.sub.i, k|<G.sub.i, copying original samples in the sample granule G.sub.i, k into the sample granule G.sub.i, k again, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is increased to G.sub.i.

    6. The inhomogeneous sample equalization system for the product assembly process according to claim 5, wherein the similarity generation module comprises: a node similarity generation sub-module configured to calculate a node similarity among different samples: S node ( v i , v j ) = 2 × m i , j e i + e j , wherein i represents a same product of an i.sup.th type, j represents a same product of a j.sup.th type, and S.sub.node(v.sub.i, v.sub.j) represents a node similarity between an assembly process topological structure v.sub.i the same product of the i.sup.th type and an assembly process topological structure v.sub.j of the same product of the j.sup.th type; m.sub.i, j represents a number of nodes matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.j; e.sub.i represents a sum of a number of all nodes in the assembly process topological structure v.sub.i; and e.sub.j represents a sum of a number of all nodes in the assembly process topological structure v.sub.j; a topological relation similarity generation sub-module configured to calculate a topological relation similarity among different samples: S rel ( v i , v j ) = 2 × M i , j E i + E j , wherein S.sub.rel(v.sub.i, v.sub.j) represents a topological relation similarity between the assembly process topological structure v.sub.i the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type; M.sub.i, j represents a number of relation edges matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.i; E.sub.i represents a sum of a number of all relation edges in the assembly process topological structure v.sub.i; and E.sub.j represents a sum of a number of all relation edges in the assembly process topological structure v.sub.j; and a topological structure similarity generation sub-module configured to calculate a topological relation similarity among different samples:
    S(i,j)=S.sub.node(v.sub.i,v.sub.j)×W.sub.node+S.sub.rel(v.sub.i,v.sub.j)×W.sub.rel, wherein S(i, j) represents the topological structure similarity between the assembly process topological structure v.sub.i of the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type, W.sub.node is a preset node weight parameter, and W.sub.rel is a preset relation edge weight parameter.

    7. The inhomogeneous sample equalization system for the product assembly process according to claim 6, wherein the fuzzy compatibility space construction module comprises: a fuzzy compatibility matrix generation sub-module configured to construct the fuzzy compatibility matrix S representing a similarity among all topological structures of a set V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n} of all the samples; S = [ S ( i , j ) ] n .Math. n = [ 1 .Math. S ( i , 1 ) .Math. 1 .Math. .Math. .Math. S ( j , 1 ) .Math. S ( j , i ) .Math. 1 .Math. .Math. .Math. .Math. .Math. S ( n , 1 ) .Math. S ( n , i ) .Math. S ( n , j ) .Math. 1 ] ; a granule layer generation sub-module configured to take the fuzzy compatibility matrix S as an input and constructing the fuzzy compatibility space X with different granule layers by the following methods, and clustering all the samples through the fuzzy compatibility space X: a first unit configured to set a threshold λ, wherein 1=λ.sub.1>λ.sub.2>λ.sub.3> . . . >λ.sub.n=0, and when values of the threshold λ are respectively λ.sub.1, λ.sub.2, λ.sub.3, . . . , λ.sub.n, calculating the similarity S(i, j) between the sample v.sub.i and the other sample v.sub.j in V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n}, wherein i∈(1,n); and a second unit configured to, according to S λ ( i , j ) = { 1 , S ( i , j ) λ 0 , S ( i , j ) < λ , obtaining all the samples meeting S.sub.λ(i,j)=1 when λ=λ.sub.i to construct sample granules G.sub.i, wherein i=1, 2, 3, . . . , n, then constructing a corresponding granule layer C(λ.sub.i) through all the sample granules G.sub.i, and finally constructing the fuzzy compatible space X according to all the granule layers C(λ.sub.i).

    8. The inhomogeneous sample equalization system for the product assembly process according to claim 7, wherein the optimal granule layer generation module comprises: a granularity calculation sub-module configured to calculate a granularity of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n: E [ C ( λ i ) ] = .Math. j = 1 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" g × log 2 ( .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ) , wherein G.sub.i, k is a k.sup.th sample granule in the granule layer C(λ.sub.i); |G.sub.i, k| is a number of samples contained in the k.sup.th sample granule; log.sub.2(|G.sub.i, k|) represents an amount of information needed to completely distinguish all granules in the sample granule G.sub.i, k; and g represents a number of sample granules in the granule layer C(λ.sub.i); an information increment calculation sub-module configured to calculate an information increment IG[C(λ.sub.i)] of the granule layer C(λ.sub.i), wherein 1=1, 2, 3, . . . , n:
    IG[C(λ.sub.i)]=E[C(λ.sub.i)]−E[C(λ.sub.i-1)]; a comprehensive value calculation sub-module configured to calculate an information increment and a comprehensive value D.sub.i of the similarity among the samples of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:
    D.sub.i=IG[C(λ.sub.i)]*W.sub.ig+λ.sub.iW.sub.λ, wherein W.sub.ig is a weight of the information increment of the granule layer C(λ.sub.i), and W.sub.λ is a weight of a sample similarity threshold of the granule layer C(λ.sub.i); and a screening sub-module configured to screen out a granule layer with a maximum comprehensive value D.sub.i as an optimal granule layer C(λ.sub.o).

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    (1) The drawings further illustrate the disclosure, but the contents in the drawings do not constitute any limitation on the disclosure.

    (2) FIG. 1 is a flow chart of an inhomogeneous sample equalization method for a product assembly process according to one of embodiments of the disclosure.

    DETAILED DESCRIPTION

    (3) The technical solutions of the disclosure will be further described hereinafter with reference to the accompanying drawings and the specific implementations.

    Embodiment 1

    (4) An inhomogeneous sample equalization method for a product assembly process according to the embodiment takes an assembly process topological structure of a product as a sample, and takes assembly process topological structures of same products with different styles as different samples. As shown in FIG. 1, the method includes the following steps of:

    (5) step A: calculating a similarity among different samples;

    (6) step B: constructing a fuzzy compatibility matrix S for representing the similarity among all the samples, constructing a fuzzy compatibility space X with different granule layers through the fuzzy compatibility matrix S, and clustering all samples through the fuzzy compatibility space X, wherein the fuzzy compatibility space X is divided into a plurality of different granule layers according to the similarity among the samples;

    (7) step C: based on a granular calculating mode, screening out a granule layer with a maximum comprehensive value of an information increment and the similarity among the samples from the fuzzy compatible space X to serve as an optimal granule layer; and

    (8) step D: carrying out equalization processing on a sample of the optimal granule layer.

    (9) According to the inhomogeneous sample equalization method for the product assembly process, equalization of inhomogeneous samples of the product assembly process is solved, and an accuracy of a final prediction result and a generalization ability of a model are improved; the similarity of the assembly process topological structures of the same products with different styles is also considered, and the samples are clustered from this point of view, so that a problem that the samples are not easy to be homogenized due to a strong relevance of internal data of the samples is solved, thus being more in line with a characteristic of such sample of the product assembly process, and making a final equalized result more scientific. The same products with different styles may be mobile phones with different styles, such as a senior citizen mobile phone, a bezel-less display mobile phone, a curved display mobile phone, a three-camera mobile phone, a single-camera mobile phone, and the like.

    (10) According to the inhomogeneous sample equalization method for the product assembly process, by constructing the fuzzy compatibility space X, the samples may be clustered into different granule layers, and the samples may be observed and analyzed from multiple granule layers, so as to obtain the optimal granule layer C(λ.sub.o), so that more representative and accurate sample granule may be obtained, and the number of the samples in each sample granule is homogenized from the optimal granule layer C(λ.sub.o), so that an equalized effect is more representative.

    (11) Preferably, the step A specifically includes:

    (12) step A1: calculating a node similarity among different samples:

    (13) S node ( v i , v j ) = 2 × m i , j e i + e j

    (14) wherein i represents a same product of an i.sup.th type, j represents a same product of a j.sup.th type, and S.sub.node(v.sub.i, v.sub.j) represents a node similarity between an assembly process topological structure v.sub.i the same product of the i.sup.th type and an assembly process topological structure v.sub.j of the same product of the j.sup.th type; m.sub.i, j represents a number of nodes matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.j; e.sub.i represents a sum of a number of all nodes in the assembly process topological structure v.sub.i; and e.sub.j represents a sum of a number of all nodes in the assembly process topological structure v.sub.j;

    (15) step A2: calculating a topological relation similarity among different samples:

    (16) S rel ( v i , v j ) = 2 × M i , j E i + E j

    (17) wherein S.sub.rel(v.sub.i, v.sub.j) represents a topological relation similarity between the assembly process topological structure v.sub.i the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type; M.sub.i, j represents a number of relation edges matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.i; E.sub.i represents a sum of a number of all relation edges in the assembly process topological structure v.sub.i; and E.sub.j represents a sum of a number of all relation edges in the assembly process topological structure v.sub.j; and

    (18) step A3: calculating a topological structure similarity among different samples:
    S(i,j)=S.sub.node(v.sub.i,v.sub.j)×W.sub.node+S.sub.rel(v.sub.i,v.sub.j)×W.sub.rel,

    (19) wherein S(i, j) represents the topological structure similarity between the assembly process topological structure v.sub.i of the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type, W.sub.node is a preset node weight parameter, and W.sub.rel is a preset relation edge weight parameter. W.sub.node represents a degree of influence of the nodes on a whole topological structure, and W.sub.rel represents a degree of influence of the relation edges on the whole topological structure. W.sub.node and W.sub.rel may be given artificially by a designer according to an importance of the process and an importance of the assembly process.

    (20) When the assembly process topological structure of each type of product is expressed, the assembly processes of the products with different styles are basically similar, the assembly of the products with different styles may have more processes, and more differences lie in different parameters of the products with different styles in the same assembly process. Therefore, a difference in the assembly process topological structures of the products with different styles mainly lies in the nodes. In the step A, a difference of the whole topological structure is calculated by comprehensively considering differences of the nodes and the topological relations in the assembly process topological structure of the product.

    (21) Preferably, the step B specifically includes:

    (22) step B1: constructing the fuzzy compatibility matrix S representing a similarity among all topological structures of a set V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n} of all the samples;

    (23) S = [ s i , j ] n × n = [ 1 .Math. s i , 1 .Math. 1 .Math. .Math. .Math. s j , 1 .Math. s j , i .Math. 1 .Math. .Math. .Math. .Math. .Math. s n , 1 .Math. s n , i .Math. s n , j .Math. 1 ] ;

    (24) step B2: taking the fuzzy compatibility matrix S as an input and constructing the fuzzy compatibility space X with different granule layers by the following methods, and clustering all the samples through the fuzzy compatibility space X:

    (25) step B21: setting a threshold λ, wherein 1=λ.sub.1>λ.sub.2>λ.sub.3> . . . >λ.sub.n=0, and when values of the threshold λ are respectively λ.sub.1, λ.sub.2, λ.sub.3, . . . , λ.sub.n, calculating the similarity S(i, j) between the sample v.sub.i and the other sample v.sub.j in V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n}, wherein i∈(1,n); and

    (26) step B22: according to

    (27) S λ ( i , j ) = { 1 , S ( i , j ) λ 0 , S ( i , j ) < λ ,
    obtaining all the samples meeting S.sub.λ(i,j)=1 when λ=λ.sub.i to construct sample granules G.sub.i, wherein i=1, 2, 3, . . . , n, then constructing a corresponding granule layer C(λ.sub.i) through all the sample granules G.sub.i, and finally constructing the fuzzy compatible space X according to all the granule layers C(λ.sub.i).

    (28) The larger the value of λ.sub.i is, the smaller the number of samples in the sample granule G.sub.i is, and the finer the granularity of the granule layer C(λ.sub.i) is. The smaller the value of λ.sub.i is, the larger the number of sample granules G.sub.i in the granule layer C(λ.sub.i) is, and the coarser the granularity of the granule layer C(λ.sub.i) is.

    (29) Preferably, the step C specifically includes:

    (30) step C1: calculating a granularity of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:

    (31) E [ C ( λ i ) ] = .Math. j = 1 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" g × log 2 ( .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" )

    (32) wherein G.sub.i, k is a kth sample granule in the granule layer C(λ.sub.i); |G.sub.i, k| is a number of samples contained in the kth sample granule; log.sub.2(|G.sub.i, k|) represents an amount of information needed to completely distinguish all granules in the sample granule G.sub.i, k; and g represents a number of sample granules in the granule layer C(λ.sub.i);

    (33) step C2: calculating an information increment IG[C(λ.sub.i)] of the granule layer C(λ.sub.i), wherein 1=1, 2, 3, . . . , n:
    IG[C(λ.sub.i)]=E[C(λ.sub.i)]−E[C(λ.sub.i-1)];

    (34) step C3: calculating an information increment and a comprehensive value D.sub.i of the similarity among the samples of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:
    D.sub.i=IG[C(λ.sub.i)]*W.sub.ig+λ.sub.iW.sub.λ;

    (35) wherein W.sub.ig is a weight of the information increment of the granule layer C(λ.sub.i), and W.sub.λ is a weight of a sample similarity threshold of the granule layer C(λ.sub.i); and

    (36) step C4: screening out a granule layer with a maximum comprehensive value D.sub.i as an optimal granule layer C(λ.sub.o).

    (37) The granularity of the granule layer C(λ.sub.i) is regarded as an average amount of information needed to completely distinguish all sample granules in the granule layer. When the coarse granule layer C(λ.sub.i) is converted to the fine granule layer C(λ.sub.i-1), information gain may occur. The larger the information increment is, the more meaningful the conversion is during granule layer conversion. Meanwhile, a degree of similarity of the samples in the sample granule may also affect an effectiveness of final equalization. The larger the threshold λ is, the higher the similarity of the samples is, and the worse the equalization effect is. Therefore, it is necessary to comprehensively consider the information increment of the granule layer C(λ.sub.i) and the similarity of the samples to comprehensively determine the optimal granule layer C(λ.sub.o), which means that the optimal granule layer C(λ.sub.o) should have a large information increment and a minimum similarity at the same time.

    (38) The weights W.sub.ig and W.sub.λ are randomly selected from previous sample data, then determined samples of the optimal granule layer C(λ.sub.o) are calculated, and the samples determined for the first time are trained with the following machine learning algorithm model, so as to obtain a result. Then, the weighs W.sub.ig and W.sub.λ are adjusted according to the result, and iterated for many times to make a final result optimal, so as to obtain a final weight value.

    (39) Preferably, the step D specifically includes:

    (40) step D1: calculating an average number G.sub.i of samples of each sample granule G.sub.i the optimal granule layer C(λ.sub.o):

    (41) G i ¯ = 1 g .Math. k = 0 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ;

    (42) step D2: increasing and decreasing a number of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o) by a random sampling method, so that the number of the samples in each sample granule G.sub.i is the same to complete the equalization processing:

    (43) if |G.sub.i, k|>G.sub.i, randomly eliminating extra samples of the sample granule G.sub.i, k, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is decreased to G.sub.i; and

    (44) if |G.sub.i, k|<G.sub.i, copying original samples in the sample granule G.sub.i, k into the sample granule G.sub.i, k again, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is increased to G.sub.i.

    Embodiment 2

    (45) An inhomogeneous sample equalization system for a product assembly process according to the embodiment takes an assembly process topological structure of a product as a sample, and takes assembly process topological structures of same products with different styles as different samples, wherein the system includes:

    (46) a similarity generation module configured to calculate a similarity among different samples;

    (47) a fuzzy compatibility space construction module configured to construct a fuzzy compatibility matrix S for representing the similarity among all the samples, construct a fuzzy compatibility space X with different granule layers through the fuzzy compatibility matrix S, and cluster all samples through the fuzzy compatibility space X, wherein the fuzzy compatibility space X is divided into a plurality of different granule layers according to the similarity among the samples;

    (48) an optimal granule layer generation module configured to, based on a granular calculating mode, screen out a granule layer with a maximum comprehensive value of an information increment and the similarity among the samples from the fuzzy compatible space X to serve as an optimal granule layer; and

    (49) an equalization module configured to carry out equalization processing on a sample of the optimal granule layer.

    (50) According to the inhomogeneous sample equalization system for the product assembly process, equalization of inhomogeneous samples of the product assembly process is solved, and an accuracy of a final prediction result and a generalization ability of a model are improved; the similarity of the assembly process topological structures of the same products with different styles is also considered, and the samples are clustered from this point of view, so that a problem that the samples are not easy to be homogenized due to a strong relevance of internal data of the samples is solved, thus being more in line with a characteristic of such sample of the product assembly process, and making a final equalized result more scientific. The same products with different styles may be mobile phones with different styles, such as a senior citizen mobile phone, a bezel-less display mobile phone, a curved display mobile phone, a three-camera mobile phone, a single-camera mobile phone, and the like.

    (51) According to the inhomogeneous sample equalization system for the product assembly process, by constructing the fuzzy compatibility space X, the samples may be clustered into different granule layers, and the samples may be observed and analyzed from multiple granule layers, so as to obtain the optimal granule layer C(λ.sub.o), so that more representative and accurate sample granule may be obtained, and the number of the samples in each sample granule is homogenized from the optimal granule layer C(λ.sub.o), so that an equalized effect is more representative.

    (52) Preferably, the similarity generation module includes:

    (53) a node similarity generation sub-module configured to calculate a node similarity among different samples:

    (54) S node ( v i , v j ) = 2 × m i , j e i + e j ,

    (55) wherein i represents a same product of an i.sup.th type, j represents a same product of a j.sup.th type, and S.sub.node(v.sub.i, v.sub.j) represents a node similarity between an assembly process topological structure v.sub.i of the same product of the i.sup.th type and an assembly process topological structure v.sub.j of the same product of the j.sup.th type; m.sub.i, j represents a number of nodes matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.j; e.sub.i represents a sum of a number of all nodes in the assembly process topological structure v.sub.i; and e.sub.j represents a sum of a number of all nodes in the assembly process topological structure v.sub.j;

    (56) a topological relation similarity generation sub-module configured to calculate a topological relation similarity among different samples:

    (57) S rel ( v i , v j ) = 2 × M i , j E i + E j ,

    (58) wherein S.sub.rel(v.sub.i, v.sub.j) represents a topological relation similarity between the assembly process topological structure v.sub.i of the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type; M.sub.i, j represents a number of relation edges matched in the assembly process topological structure v.sub.i and the assembly process topological structure v.sub.i; E.sub.i represents a sum of a number of all relation edges in the assembly process topological structure v.sub.i; and E.sub.j represents a sum of a number of all relation edges in the assembly process topological structure v.sub.j; and

    (59) a topological structure similarity generation sub-module configured to calculate a topological structure similarity among different samples:
    S(i,j)=S.sub.node(v.sub.i,v.sub.j)×W.sub.node+S.sub.rel(v.sub.i,v.sub.j)×W.sub.rel,

    (60) wherein S(i, j) represents the topological structure similarity between the assembly process topological structure v.sub.i of the same product of the i.sup.th type and the assembly process topological structure v.sub.j of the same product of the j.sup.th type, W.sub.node is a preset node weight parameter, and W.sub.rel is a preset relation edge weight parameter.

    (61) W.sub.node represents a degree of influence of the nodes on a whole topological structure, and W.sub.rel represents a degree of influence of the relation edges on the whole topological structure. W.sub.node and W.sub.rel may be given artificially by a designer according to an importance of a technology and an assembly process.

    (62) When the assembly process topological structure of each type of product is expressed, the assembly processes of the products with different styles are basically similar, the assembly of the products with different styles may have more processes, and more differences lie in different parameters of the products with different styles in the same assembly process. Therefore, a difference in the assembly process topological structures of the products with different styles mainly lies in the nodes. According to the similarity generation module, a difference of the whole topological structure is calculated by comprehensively considering differences of the nodes and the topological relations in the assembly process topological structure of the product.

    (63) Preferably, the fuzzy compatibility space construction module includes:

    (64) a fuzzy compatibility matrix generation sub-module configured to construct the fuzzy compatibility matrix S representing a similarity among all topological structures of a set V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n} of all the samples;

    (65) S = [ s i , j ] n × n = [ 1 .Math. s i , 1 .Math. 1 .Math. .Math. .Math. s j , 1 .Math. s j , i .Math. 1 .Math. .Math. .Math. .Math. .Math. s n , 1 .Math. s n , i .Math. s n , j .Math. 1 ] ;

    (66) a granule layer generation sub-module configured to take the fuzzy compatibility matrix S as an input and constructing the fuzzy compatibility space X with different granule layers by the following methods, and cluster all the samples through the fuzzy compatibility space X:

    (67) a first unit configured to set a threshold λ, wherein 1=λ.sub.1>λ.sub.2>λ.sub.3> . . . >λ.sub.n=0, and when values of the threshold λ are respectively λ.sub.1, λ.sub.2, λ.sub.3, . . . , λ.sub.n, calculating the similarity S(i, j) between the sample v.sub.i and the other sample v.sub.j in V={v.sub.1, v.sub.2, v.sub.3, . . . , v.sub.n}, wherein i∈(1,n); and

    (68) a second unit configured to, according to

    (69) 0 S λ ( i , j ) = { 1 , S ( i , j ) λ 0 , S ( i , j ) < λ ,
    obtain all the samples meeting S.sub.λ(i,j)=1 when λ=λ.sub.i to construct sample granules G.sub.i, wherein i=1, 2, 3, . . . , n, then construct a corresponding granule layer C(λ.sub.i) through all the sample granules G.sub.i, and finally construct the fuzzy compatible space X according to all the granule layers C(λ.sub.i).

    (70) The larger the value of λ.sub.i is, the smaller the number of samples in the sample granule G.sub.i is, and the finer the granularity of the granule layer C(λ.sub.i) is. The smaller the value of λ.sub.i is, the larger the number of sample granules G.sub.i in the granule layer C(λ.sub.i) is, and the coarser the granularity of the granule layer C(λ.sub.i) is.

    (71) Preferably, the optimal granule layer generation module includes:

    (72) a granularity calculation sub-module configured to calculate a granularity of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:

    (73) E [ C ( λ i ) ] = .Math. j = 1 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" g × log 2 ( .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ) ,

    (74) wherein G.sub.i, k is a kth sample granule in the granule layer C(λ.sub.i); |G.sub.i, k| is a number of samples contained in the kth sample granule; log.sub.2(|G.sub.i, k|) represents an amount of information needed to completely distinguish all granules in the sample granule G.sub.i, k; and g represents a number of sample granules in the granule layer C(λ.sub.i);

    (75) an information increment calculation sub-module configured to calculate an information increment IG[C(λ.sub.i)] of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:
    IG[C(λ.sub.i)]=E[C(λ.sub.i)]−E[C(λ.sub.i-1)];

    (76) a comprehensive value calculation sub-module configured to calculate an information increment and a comprehensive value D.sub.i of the similarity among the samples of the granule layer C(λ.sub.i), wherein i=1, 2, 3, . . . , n:
    D.sub.i=IG[C(λ.sub.i)]*W.sub.ig+λ.sub.iW.sub.λ,

    (77) wherein W.sub.ig is a weight of the information increment of the granule layer C(λ.sub.i), and W.sub.λ is a weight of a sample similarity threshold of the granule layer C(λ.sub.i); and

    (78) a screening sub-module configured to screen out a granule layer with a maximum comprehensive values D.sub.i as an optimal granule layer C(λ.sub.o).

    (79) The granularity of the granule layer C(λ.sub.i) is regarded as an average amount of information needed to completely distinguish all sample granules in the granule layer. When the coarse granule layer C(λ.sub.i) is converted to the fine granule layer C(λ.sub.i-1), information gain may occur. The larger the information increment is, the more meaningful the conversion is during the granule layer conversion. Meanwhile, a degree of similarity of the samples in sample granule may also affect an effectiveness of final equalization. The larger the threshold λ is, the higher the similarity of the samples is, and the worse the equalization effect is. Therefore, it is necessary to comprehensively consider the information increment of the granule layer C(λ.sub.i) and the similarity of the samples to comprehensively determine the optimal granule layer C(λ.sub.o), which means that the optimal granule layer C(λ.sub.o) should have a large information increment and a minimum similarity at the same time.

    (80) The weights W.sub.ig and W.sub.λ are randomly selected from previous sample data, then determined samples of the optimal granule layer C(λ.sub.o) are calculated, and the samples determined for the first time are trained with the following machine learning algorithm model, so as to obtain a result. Then, the weights W.sub.ig and W.sub.ig are adjusted according to the result, and iterated for many times to make a final result optimal, so as to obtain a final weight value.

    (81) Preferably, the equalization module includes:

    (82) an average sample number calculation sub-module configured to calculate an average number G.sub.i of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o):

    (83) G ¯ i = 1 g .Math. k = 0 g .Math. "\[LeftBracketingBar]" G i , k .Math. "\[RightBracketingBar]" ;
    and

    (84) a sample increasing and decreasing sub-module configured to increase and decrease a number of samples of each sample granule G.sub.i in the optimal granule layer C(λ.sub.o) by a random sampling method, so that the number of the samples in each sample granule G.sub.i is the same to complete the equalization processing

    (85) if |G.sub.i, k|>G.sub.i, randomly eliminating extra samples of the sample granule G.sub.i, k, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is decreased to G.sub.i; and

    (86) if |G.sub.i, k<G.sub.i, copying original samples in the sample granule G.sub.i, k into the sample granule G.sub.i, k again, so that the number |G.sub.i, k| of the samples in the sample granule G.sub.i, k is increased to G.sub.i.

    (87) The technical principles of the disclosure are described above with reference to the specific embodiments. These descriptions are only for the purpose of explaining the principles of the disclosure, but cannot be interpreted as a limitation on the scope of protection of the disclosure in any form. Based on the explanation herein, those skilled in the art may think of other specific implementations of the disclosure without going through any creative work, and these implementations shall all fall within the scope of protection of the disclosure.