Fabric simulation device and method

By using neural network models in textile technology to predict the physical deformation parameters of fabrics, the problem of tedious measurements is solved and the efficiency and accuracy of virtual fabric simulations are improved.

CN118607339APending Publication Date: 2024-09-06NUNOX TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410164006.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-06
Filing Date
2024-02-05
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In textile technology, measuring the physical deformation parameters of fabrics (such as warp bending work, weft bending work, warp tensile elongation, weft tensile elongation, etc.) requires a complicated and time-consuming detection process, resulting in Virtual fabric simulation is not efficient.

Method used

A fabric simulation device including a data acquisition circuit, memory and processor is used to generate feature vectors through target coding, natural language processing and regularization processing, and train the neural network model to predict the physical deformation parameters of the fabric, thereby simulating it in a three-dimensional virtual space Drape and movement of fabric.

Benefits of technology

It saves time and manpower in measuring physical deformation parameters, improves the effect of simulating virtual fabrics in three-dimensional virtual space, and enables rapid identification of physical deformation parameters of new fabrics for simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607339A
    Figure CN118607339A
Patent Text Reader

Abstract

The invention provides a fabric simulation device and method. The fabric simulation device comprises a data acquisition circuit, a memory and a processor. The processor is connected with the data acquisition circuit and the memory and is used for operating a neural network model. Wherein the processor is used for executing the following operations: performing a target coding algorithm, a natural language processing algorithm, first normalization processing and second normalization processing on fabric category data, fabric combination data and fabric weight data in the cloth specification information to generate feature vectors; performing first normalization processing on the physical deformation parameter to generate a normalized physical deformation parameter; and updating the neural network model according to the feature vectors and the normalized physical deformation parameters. According to the fabric simulation device disclosed by the invention, the effect of simulating the virtual fabric in the three-dimensional virtual space can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a virtual simulation technology, and more particularly to a fabric simulation device and method. Background Art

[0002] In current textile technology, it is often necessary to simulate a virtual fabric (or cloth) in a virtual three-dimensional space in order to observe the drape and movement of the virtual fabric in the three-dimensional space. This often requires measuring the physical deformation parameters of the fabric (for example, bending works warp work, bending works weft work, stretch warp elongation, stretch weft elongation or oblique elongation, etc.) before further simulation. However, to measure the physical deformation parameters of the fabric, a specific testing machine is usually required to test the fabric, which takes a lot of time and manpower. Therefore, how to quickly know the physical deformation parameters of the fabric without measuring the physical deformation parameters of the fabric is a problem that technicians in this field are eager to solve. Summary of the invention

[0003] One aspect of the present disclosure discloses a fabric simulation device, which includes a data acquisition circuit, a memory, and a processor. The data acquisition circuit is used to acquire physical deformation parameters corresponding to the fabric. The memory is used to store fabric specification information corresponding to the fabric, wherein the fabric specification information includes fabric category information, fabric combination information, and fabric weight information. The processor is connected to the data acquisition circuit and the memory to run a neural network model, wherein the processor is used to perform the following operations: perform a target encoding algorithm on the fabric category data to generate target encoding data; perform a natural language processing algorithm on the fabric combination data to generate a language processing vector; perform a first normalization process on the target encoding data and the physical deformation parameters to generate a category vector and normalized physical deformation parameters, and perform a second normalization process on the fabric weight data to generate a weight vector; concatenate the category vector, the language processing vector, and the weight vector to generate a feature vector; and update the neural network model according to the feature vector and the normalized physical deformation parameters.

[0004] In some embodiments, fabric category data includes weave category, elasticity category and fabric category, and the processor is further used to: perform target coding algorithm on the weave category, elasticity category and fabric category respectively to generate weave value data, elasticity value data and fabric value data; and combine the weave value data, elasticity value data and fabric value data to generate target coding data.

[0005] In some embodiments, the fabric combination data includes a component combination and a post-processing combination, wherein the processor is further used to: perform a converter-based bidirectional encoder representation algorithm on the component combination and the post-processing combination to generate an encoding vector; and perform a principal component analysis algorithm on the encoding vector to generate a language processing vector, wherein the dimension of the language processing vector is smaller than the dimension of the encoding vector.

[0006] In some embodiments, the first normalization processing is a maximum-minimum normalization processing, wherein the processor is further used to: perform maximum-minimum normalization processing on the weaving value data, elasticity value data, and fabric value data in the target coding data to generate normalized weaving value data, normalized elasticity value data, and normalized fabric value data; concatenate the normalized weaving value data, the normalized elasticity value data, and the normalized fabric value data to generate a category vector; and perform maximum-minimum normalization processing on the physical deformation parameters to generate normalized physical deformation parameters, wherein the physical deformation parameters are warp bending work, weft bending work, warp tensile elongation, weft tensile elongation, or diagonal tensile elongation.

[0007] In some embodiments, the fabric weight data includes fabric weight and specific gravity, wherein the second normalization process is a Z-score normalization process, wherein the processor is further used to: perform a Z-score normalization process on the fabric weight and specific gravity to generate a normalized fabric weight and a normalized specific gravity; and concatenate the normalized fabric weight and the normalized specific gravity to generate the weight vector.

[0008] Another aspect of the present disclosure discloses a fabric simulation method, comprising: performing a target encoding algorithm on fabric category data in fabric specification information to generate target encoding data, wherein the fabric specification information corresponds to the fabric, wherein the fabric specification information includes fabric category data, fabric combination data and fabric weight data; performing a natural language processing algorithm on the fabric combination data to generate a language processing vector; performing a first normalization process on the target encoding data and physical deformation parameters to generate a category vector and normalized physical deformation parameters, and performing a second normalization process on the fabric weight data to generate a weight vector, wherein the physical deformation parameters correspond to the fabric; concatenating the category vector, the language processing vector and the weight vector to generate a feature vector; and updating the neural network model according to the feature vector and the normalized physical deformation parameters.

[0009] In some embodiments, fabric category data includes weave category, elasticity category and fabric category, wherein the step of performing a target coding algorithm on the fabric category data in the fabric specification information to generate target coding data includes: performing a target coding algorithm on the weave category, elasticity category and fabric category respectively to generate weave value data, elasticity value data and fabric value data; and combining the weave value data, elasticity value data and fabric value data to generate target coding data.

[0010] In some embodiments, the fabric combination data includes a component combination and a post-processing combination, wherein the step of performing a natural language processing algorithm on the fabric combination data to generate a language processing vector includes: performing a transformer-based bidirectional encoder representation algorithm on the component combination and the post-processing combination to generate an encoding vector; and performing a principal component analysis algorithm on the encoding vector to generate a language processing vector, wherein the dimension of the language processing vector is smaller than the dimension of the encoding vector.

[0011] In some embodiments, the first normalization processing is a maximum-minimum normalization processing, wherein the step of performing a first normalization processing on the target coding data and the physical deformation parameters to generate a category vector and normalized physical deformation parameters includes: performing a maximum-minimum normalization processing on the weaving value data, elasticity value data and fabric value data in the target coding data to generate normalized weaving value data, normalized elasticity value data and normalized fabric value data; concatenating the normalized weaving value data, the normalized elasticity value data and the normalized fabric value data to generate a category vector; and performing a maximum-minimum normalization processing on the physical deformation parameters to generate normalized physical deformation parameters, wherein the physical deformation parameters are warp bending work, weft bending work, warp tensile elongation, weft tensile elongation or diagonal tensile elongation.

[0012] In some embodiments, the fabric weight data includes fabric weight and specific gravity, wherein the second normalization process is a Z-score normalization process, and the step of performing a second normalization process on the fabric weight data to generate a weight vector includes: performing a Z-score normalization process on the fabric weight and specific gravity to generate a normalized fabric weight and a normalized specific gravity; and concatenating the normalized fabric weight and the normalized specific gravity to generate a weight vector. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1A It is a schematic diagram of simulating real fabrics in current textile technology.

[0014] Figure 1B is a block diagram of the fabric simulation device disclosed herein.

[0015] Figure 1CA schematic diagram illustrating a training phase of a fabric simulation device in some embodiments.

[0016] Figure 2 is a flow chart of the fabric simulation method disclosed herein.

[0017] Figure 3 In some embodiments, Figure 2 A flowchart showing the detailed steps in one step.

[0018] Figure 4 In some embodiments, Figure 2 A flowchart of the detailed steps of another step in a process.

[0019] Figure 5 In some embodiments, Figure 2 A flowchart of the detailed steps of another step in a process.

[0020] Figure 6 A schematic diagram illustrating data filtering via a box plot in some embodiments.

[0021] Figure 7 Schematic diagrams showing the use stages of a fabric simulation device in some embodiments.

[0022]

Main component symbol description

[0023] PDP: Physical deformation parameter BWR: Warp bending work

[0024] BWF: bending work in weft direction SWR: tensile elongation in warp direction

[0025] SWF: Weft tensile elongation SO: Oblique tensile elongation

[0026] BWR': New warp bending work BWF': New weft bending work

[0027] SWR': New tensile elongation in the warp direction SWF': New tensile elongation in the weft direction

[0028] SO': New oblique tensile elongation PCAM: principal component analysis model

[0029] SS: Simulation Software SD: Simulation Display

[0030] 3DS: Three-dimensional virtual space 3DF: Virtual fabric

[0031] 100: Fabric simulation device 110: Data acquisition circuit

[0032] 120: Memory 130: Processor

[0033] FB: Fabric DM: Testing Machine

[0034] TEM: Target Encoding Model BERTM: Transformer-based Bidirectional Encoder Representation Model

[0035] NNM: Neural Network Model WC: Weave Category

[0036] EC: Elasticity Category FC: Fabric Category

[0037] CP: Combination of ingredients TF: Post-processing combination

[0038] FW: cloth weight SG: specific gravity

[0039] CV: Classification Vector LPV: Language Processing Vector

[0040] WV: Weight Vector NPDP: Normalized Physical Deformation Parameters

[0041] FDP: Fabric Specification Information NM1: First Normalization Process

[0042] NM2: Second normalization process FV: Feature vector

[0043] S210~S250, S211~S212, S221~S222, S231A~S232A, S231B, S231C~S232C: Steps

[0044] R1, R2: Value range WC': New weave category

[0045] EC': New elastic category FC': New fabric category

[0046] CP': New component combination TF': New post-processing combination

[0047] FW': New cloth weight SG': New specific gravity

[0048] CV': new category vector LPV': new language processing vector

[0049] WV': New weight vector FDP': New fabric specification information

[0050] FV': new feature vector PDP': new physical deformation parameter DETAILED DESCRIPTION

[0051] Reference Figure 1A , Figure 1A It is a schematic diagram of simulating real fabrics in textile technology. In order to provide a fabric simulation effect close to the real one, physical deformation parameters PDP corresponding to the fabric are usually required. TMA 3D simulation software such as DC Suite software can simulate a virtual 3D virtual space 3DS, and simulate various drapes and movements of a virtual fabric 3DF in the 3D virtual space 3DS according to the physical deformation parameter PDP. Thus, a simulation display SD (for example, a screen display, a touch display or a head mounted display) can display various drapes and movements of the virtual fabric 3DF in the 3D virtual space 3DS.

[0052] Generally speaking, a complicated measurement process is required to measure the physical deformation parameter PDP of the fabric, which can be the bending works warp work BWR, bending works weft work BWF, stretch warp elongation SWR, stretch weft elongation SWF or oblique stretch (stretchoblique) elongation SO, etc.

[0053] In detail, the warp bending work BWR is the work required to bend the fiber in the warp direction, and the unit of the warp bending work BWR is the product of gram-force, bending length and bending angle (gf×mm×rad). The weft bending work BWF is the work required to bend the fiber in the weft direction, and the unit of the weft bending work BWF is also the product of gram-force, bending length and bending angle.

[0054] In addition, the warp tensile elongation SWR is the elongation measured by stretching the fiber in the warp direction at a constant load of 500 grams at a steady rate (CRE) according to the breaking strength bar method in the relevant standard 12915 L3233-2010, and the unit of the warp tensile elongation SWR is percentage (%). The weft tensile elongation SWF is the elongation measured by stretching the fiber in the weft direction at a constant load of 500 grams at a steady rate according to the breaking strength bar method in the relevant standard 12915 L3233-2010, and the unit of the weft tensile elongation SWF is also percentage. The oblique tensile elongation SO is the elongation measured by stretching the fiber in the oblique direction (the direction with an angle of 45 degrees to the weft direction) at a constant load of 500 grams at a steady rate according to the breaking strength bar method in the relevant standard 12915 L3233-2010, and the unit of the oblique tensile elongation SO is also percentage. In other words, the warp bending work BWR, the weft bending work BWF, the warp tensile elongation SWR, the weft tensile elongation SWF and the oblique tensile elongation SO are numerical data respectively.

[0055] The above-mentioned warp tensile elongation SWR, weft tensile elongation SWF and oblique tensile elongation SO are all calculated by the following formula (1).

[0056]

[0057] The clamping distance is the distance from the starting clamping position to the ending clamping position on the fabric, and the stretching displacement is the stretching length of the fabric under a fixed load of 500 g.

[0058] However, as can be seen from the above, because the physical deformation parameter PDP often requires applying a quantitative force to the fabric and measuring the various deformation quantities produced by the fabric, in order to measure the warp bending work BWR, weft bending work BWF, warp tensile elongation SWR, weft tensile elongation SWF and oblique tensile elongation SO, the entire measurement process is complicated and time-consuming.

[0059] In view of the fact that the current general fabric simulation device may have poor simulation efficiency due to the complicated and time-consuming process of measuring the physical deformation parameter PDP, the present disclosure proposes a fabric simulation technology to train a neural network (NN) model by performing various data pre-processing on the pre-measured physical deformation parameter PDP corresponding to the fabric and the fabric specification information corresponding to the fabric.

[0060] In this way, when a new fabric is to be simulated, new fabric specification information corresponding to the new fabric can be obtained in advance (which can be easily obtained at the process stage, or can be directly provided by the manufacturer performing the process), and the trained neural network model can be used to convert the new fabric specification information into new physical deformation parameters. Therefore, various drapes and movements of a new virtual fabric in the three-dimensional virtual space 3DS can be simulated according to the new physical deformation parameters through the above simulation method. For the new fabric, only the easily obtained new fabric specification information is needed to quickly identify the new physical deformation parameters to simulate the new fabric, which will save the complicated and time-consuming measurement process of the new physical deformation parameters. The above-mentioned technology of the present disclosure is specifically described by taking the following embodiments as examples.

[0061] Refer to Figure 1B , Figure 1B FIG. 1 is a block diagram of the fabric simulation device 100 disclosed herein. Figure 1B As shown, in this embodiment, the fabric simulation device 100 includes a data acquisition circuit 110 , a memory 120 , and a processor 130 . The processor 130 is coupled to the data acquisition circuit 110 and the memory 120 .

[0062] In some embodiments, the fabric simulation device 100 can be established by a computer, a server or a processing center. In this embodiment, the data acquisition circuit 110 can be a processing circuit for acquiring physical deformation parameters corresponding to the fabric FB (for example, a whole piece of cloth). In some embodiments, when the fabric FB is stretched and bent using the detection machine DM to generate the physical deformation parameters PDP, the data acquisition circuit 110 can directly acquire the physical deformation parameters PDP corresponding to the fabric FB from the detection machine DM, wherein the detection machine DM can be a machine for detecting the deformation (bending and stretching) of the fabric. In other embodiments, when the fabric FB is stretched and bent using the detection machine DM to generate the physical deformation parameters PDP, the detection machine DM can store the physical deformation parameters PDP in an external database (not shown), whereby the data acquisition circuit 110 can acquire the physical deformation parameters PDP corresponding to the fabric FB from the external database.

[0063] In this embodiment, the memory 120 stores fabric specification information corresponding to the fabric FB. The fabric specification information includes fabric category information, fabric combination information, and fabric weight information. It is worth noting that this fabric FB is the same as the fabric FB used to detect the physical deformation parameters. In other words, for the same fabric FB, the corresponding physical deformation parameters PDP and fabric specification information can be obtained.

[0064] In some embodiments, the memory 120 can be implemented using a memory unit, a flash memory, a read-only memory, a hard disk, or any equivalent storage component.

[0065] In some embodiments, fabric category data includes weaving category, elastic category, and fabric type. For example, weaving category can be various weaving specifications such as warp knit, weft knit, plain weave, or twill weave. Elastic category can be various fabric elastic specifications such as no elastic, 4-way elastic, warpelastic, or weft elastic. Fabric category can be fabric specifications such as dobby, single jersey fleece / plush, tricot fleece / tricot brush, or lamination. In other words, weaving category, elastic category, and fabric type are each a string of data.

[0066] In some embodiments, fabric combination data may include a composition combination and a textile finishing combination. For example, the composition combination may be a fiber combination specification such as 60% nylon fiber plus 40% polyester fiber, 92% polyester fiber plus 8% spandex fiber, 50% cationic polyester (cd polyester) fiber plus 50% polyester fiber, or 77% nylon fiber plus 23% polyurethane (pu) fiber. The finishing combination may be a finishing specification such as no finishing, brushing treatment plus embossing treatment or brushing treatment. In other words, the composition combination and the finishing combination are data of a string composed of multiple strings.

[0067] In some embodiments, fabric weight data may include fabric weight and specific gravity, wherein the unit of fabric weight is gram per square meter (GSM), and specific gravity is a ratio value between densities. In other words, fabric weight and specific gravity are numerical data respectively.

[0068] As described above, the fabric specification information of the fabric FB mainly includes specification information such as type, material, weight, etc. In one embodiment, the fabric specification information of the fabric FB can be provided by the manufacturer of the fabric FB, or can be determined based on a simple analysis of the fabric FB (identifying the weave, identifying the material, measuring the weight, etc.). The fabric specification information of the fabric FB does not require the fabric FB to be stretched or bent.

[0069] It should be noted that although the fabric specification information corresponding to one fabric FB is taken as an example here, in actual operation, the memory 120 can store a plurality of fabric specification information corresponding to a plurality of fabrics respectively.

[0070] like Figure 1B As shown, the processor 130 executes the neural network model NNM based on the corresponding software or firmware instruction program. In some embodiments, the neural network model NNM is used to perform a neural network algorithm. In some embodiments, the processor 130 can be implemented by a processing unit, a central processing unit or a computing unit. In some embodiments, the memory 120 can store parameters of the neural network model NNM, wherein the parameters can be average values ​​obtained from past training experience, manually given preset values, or random values.

[0071] In one embodiment, the processor 130 is used to perform data pre-processing on the measured physical deformation parameter PDP corresponding to the fabric FB and the fabric specification information corresponding to the fabric, and then train the neural network model NNM according to the processed data.

[0072] Refer to Figure 1C , Figure 1C A schematic diagram is shown of performing data pre-processing on the physical deformation parameter PDP and the fabric specification information FDP and training the neural network model NNM in some embodiments. Figure 1C As shown, in one embodiment, the fabric specification information FDP includes information such as weaving type WC, elasticity type EC, fabric type FC, component combination CP, post-processing combination TF, fabric weight FW and specific gravity SG, and the physical deformation parameter PDP can be information such as warp bending work BWR, weft bending work BWF, warp tensile elongation SWR, weft tensile elongation SWF or oblique tensile elongation SO. Further, for a physical deformation parameter PDP, a corresponding neural network model NNM will be trained.

[0073] In other words, a neural network model NNM for the warp bending work BWR can be trained for the warp bending work BWR, a neural network model NNM for the weft bending work BWF can be trained for the weft bending work BWF, a neural network model NNM for the warp stretch elongation SWR can be trained for the warp stretch elongation SWR, a neural network model NNM for the weft stretch elongation SWF can be trained for the weft stretch elongation SWF, and a neural network model NNM for the diagonal stretch elongation SO can be trained for the diagonal stretch elongation SO.

[0074] It is worth noting that although a neural network model NNM (ie, for a physical deformation parameter PDP) is used as an example here, in actual application, different neural network models NNM can be trained for different physical deformation parameters PDP.

[0075] In some embodiments, the processor 130 may further execute a target-encoding model TEM and a bidirectional encoder representations from transformers (BERT) model BERTM based on corresponding software or firmware instructions. In addition, the processor 130 may further perform principal component analysis (PCA) and normalization processing on the data based on corresponding software or firmware instructions.

[0076] It is worth noting that the target encoding model TEM, the transformer-based bidirectional encoder representation model BERTM, the principal component analysis operation and the normalization can all be regarded as the processing flow of data pre-processing.

[0077] like Figure 1C As shown, the weave category WC, the elasticity category EC and the fabric category FC are processed by the target encoding model TEM and the first normalization process NM1 to generate a category vector CV.

[0078] In some embodiments, the target encoding model TEM is used to execute the target encoding algorithm. In some embodiments, the transformer-based bidirectional encoder representation model BERTM is used to pre-train with a plurality of English sentences (e.g., 10,000 sentences selected from English books) to generate a pre-trained encoder, and the encoder is used to encode a text string (e.g., an English string). In other embodiments, the transformer-based bidirectional encoder representation model BERTM is used to pre-train with a plurality of Chinese sentences (e.g., 10,000 sentences selected from Chinese books) to generate a pre-trained encoder, and the encoder is used to encode a text string (e.g., a Chinese string).

[0079] In some embodiments, the first normalization process NM1 is used to perform a min-max normalization process. The min-max normalization process is shown in the following formula (2).

[0080] y1=(x1-min) / (max-min)…Formula (2)

[0081] Where x1 is the variable to be normalized, min is the minimum value of the variable to be normalized, max is the maximum value of the variable to be normalized, and y1 is the variable normalized by the minimum and maximum values.

[0082] For example, for the warp bending work BWR corresponding to the fabric FB, the difference between this warp bending work BWR and the possible maximum value of the warp bending work BWR can be calculated, and the difference between the possible maximum value of the warp bending work BWR and the possible minimum value of the warp bending work BWR can be calculated, and then the two differences are divided to generate the warp bending work normalized to the maximum and minimum values ​​corresponding to this fabric FB, so that the warp bending work normalized to the maximum and minimum values ​​can be used as the normalized physical deformation parameter NPDP.

[0083] In some embodiments, the warp bending work BWR, the weft bending work BWF, the warp tensile elongation SWR, the weft tensile elongation SWF or the oblique tensile elongation SO may be subjected to a first normalization process NM1 to generate a normalized physical deformation parameter NPDP.

[0084] like Figure 1C As shown, the component combination CP and the post-processing combination TF are processed by the transformer-based bidirectional encoder representation model BERTM and the principal component analysis to generate a language processing vector LPV. The weight FW and the weight SG are processed by the second normalization process NM2 to generate a weight vector WV.

[0085] In some embodiments, the principal component analysis process is used to perform a principal component analysis algorithm on the data to remove outlier data.

[0086] In some embodiments, the second normalization process NM2 is used to perform a Z score normalization process, as shown in the following formula (3).

[0087] y2=(x2-mean) / stdv…Formula (3)

[0088] Where x2 is the variable to be normalized, mean is the mean of the variable to be normalized, stdv is the standard deviation of the variable to be normalized, and y2 is the variable to be normalized by Z-score.

[0089] For example, for the weight corresponding to fabric FB, the difference between this weight and the average of multiple weights corresponding to multiple fabrics, and the standard deviation of the multiple weights corresponding to multiple fabrics can be calculated, and then the difference and the standard deviation can be divided to generate the Z-score normalized weight corresponding to this fabric FB.

[0090] like Figure 1C As shown, the category vector CV, the language processing vector LPV and the weight vector WV are concatenated to generate a feature vector FV. Thus, the parameters of the neural network model NNM can be updated using the normalized physical deformation parameters NPDP and the feature vector FV. The detailed operation of the above models will be described in detail in the subsequent paragraphs.

[0091] In some embodiments, the fabric simulation device 100 is not limited to including the data acquisition circuit 110, the memory 120 and the processor 130. The fabric simulation device 100 may further include other elements required for operation and application. For example, the fabric simulation device 100 may further include an output interface (for example, a display panel for displaying information, a virtual reality device or an augmented reality device), an input interface (for example, a touch panel, a keyboard, a microphone, a scanner, a flash memory reader, a virtual reality device or an augmented reality device) and a communication circuit (for example, a WiFi communication model, a Bluetooth communication model, a wireless telecommunication network communication model, etc.).

[0092] Refer to Figure 2 , Figure 2 is a flow chart of the fabric simulation method disclosed herein. Figure 2 The method of the illustrated embodiment is applicable to Figure 1A For the sake of convenience and clarity of description, the actuation relationship between the components in the fabric simulation device 100 and Figure 1B The processing of various data is explained in Figure 2 Detailed steps of the fabric simulation method shown.

[0093] In this embodiment, the fabric simulation method includes steps S210 to S250 and is executed by the processor 130. First, in step S210, the fabric category data is subjected to a target coding algorithm to generate target coding data. In some embodiments, the fabric category data (i.e., weave category WC, elasticity category EC, and fabric category FC) in the fabric specification information FDP corresponding to a fabric FB can be converted into target coding data by a target coding model TEM to input the target coding data into the first normalization process NM1. The detailed steps of step S210 in some embodiments will be further described in conjunction with specific examples.

[0094] In some embodiments, before performing the target encoding algorithm, when multiple fabrics need to be simulated, the physical deformation parameters corresponding to each fabric (i.e., warp bending work BWR, weft bending work BWF, warp tensile elongation SWR, weft tensile elongation SWF or diagonal tensile elongation SO) and the data with numerical values ​​in the fabric specification information (i.e., fabric weight FW, specific gravity SG) can be numerically filtered.

[0095] In detail, fabric weight FW, specific gravity SG, warp bending work BWR, weft bending work BWF, warp tensile elongation SWR, weft tensile elongation SWF, and diagonal tensile elongation SO are all data with numerical values. Therefore, box plots corresponding to fabric weight FW, specific gravity SG, warp bending work BWR, weft bending work BWF, warp tensile elongation SWR, weft tensile elongation SWF, and diagonal tensile elongation SO can be drawn, and based on these 7 box plots, points outside their range are deleted based on 1.5 times the interquartile range (IQR) (that is, the fabric corresponding to this point is selected, and the physical deformation parameters and fabric specification information corresponding to this fabric are deleted). In other words, if the physical deformation parameters and fabric specification information corresponding to the fabric contain values ​​that are too deviated, this fabric will not be used for simulation.

[0096] Based on the above, based on these box plots, the values ​​of physical deformation parameters that are too deviated and the values ​​of fabric specification information that are too deviated (ie, the physical deformation parameters and fabric specification information corresponding to relatively abnormal fabrics) can be deleted.

[0097] In step S220, a natural language processing (NLP) algorithm is performed on the fabric combination data to generate a language processing vector LPV. In some embodiments, the natural language processing algorithm can be performed on the fabric combination data (i.e., the component combination CP and the post-processing combination TF) in the fabric specification information through a transformer-based bidirectional encoder representation model BERTM and a principal component analysis operation. The detailed steps of step S220 in some embodiments will be further described in conjunction with specific examples.

[0098] In step S230, a first normalization process NM1 is performed on the target coding data and the physical deformation parameter PDP to generate a class vector and a normalized physical deformation parameter, and a second normalization process NM2 is performed on the fabric weight data to generate a weight vector.

[0099] In some embodiments, the first normalization process NM1 may be a maximum-minimum normalization process. In some embodiments, the second normalization process NM2 may be a Z-score normalization process. In some embodiments, the target coding data and the physical deformation parameter PDP are subjected to a maximum-minimum normalization process to generate a class vector and a normalized physical deformation parameter. In some embodiments, the fabric weight data (i.e., the fabric weight FW and the specific gravity SG) may be subjected to a Z-score normalization process to generate a weight vector.

[0100] The detailed steps of step S230 in some embodiments will be further described later with reference to specific examples.

[0101] In step S240, the category vector, the language processing vector and the weight vector are concatenated to generate a feature vector. In some embodiments, the category vector, the language processing vector and the weight vector may be concatenated in sequence to generate a feature vector.

[0102] In step S250, the neural network model NNM is updated according to the feature vector and the normalized physical deformation parameters.

[0103] In some embodiments, the feature vector can be used as training data, and the corresponding normalized physical deformation parameter can be used as a physical deformation vector, and the physical deformation vector can be used as a training label corresponding to the training data. Then, the training data can be input into the neural network model NNM to generate a predicted label, and the loss value (e.g., cross entropy) between the predicted label and the training label can be calculated, and the loss value can be used to perform a back propagation algorithm to update the parameters in the neural network model NNM.

[0104] In other words, the training of the neural network model NNM for the physical deformation parameters of a specific type corresponding to a large number of fabrics and a large amount of fabric specification information can be completed. Thus, in the use phase, the neural network model NNM only needs to receive new fabric specification information corresponding to the new specific type of fabric to generate new physical deformation parameters corresponding to the new fabric.

[0105] For example, in the training phase, a large number of warp bending work BWRs corresponding to a large number of fabrics and a large number of fabric specification information can be used to complete the training of the neural network model NNM of the warp bending work BWR. Thus, in the use phase, for the warp bending work BWR, the neural network model NNM of the warp bending work BWR can receive new fabric specification information corresponding to a new fabric, and a new warp bending work BWR corresponding to the new fabric can be generated. Similarly, the neural network model NNM of other types of physical deformation parameters can also be trained by similar methods, and the neural network model NNM of other types of physical deformation parameters can be used in the use phase.

[0106] Through the above steps, the fabric simulation device 100 can combine the target encoding algorithm, the natural language processing algorithm, the first normalization process NM1, the second normalization process NM2 and the vector concatenation algorithm to predict the physical deformation parameters from the fabric specification information FDP corresponding to the fabric FB. This will save time and manpower for measuring the physical deformation parameters separately, and greatly improve the effect of simulating virtual fabrics in a three-dimensional virtual space.

[0107] Please refer to Figure 3 , Figure 3 A flowchart of detailed steps S211 to S212 of step S210 in some embodiments is shown. Figure 3 As shown, in step S211 , the target encoding algorithm is performed on the weave category WC, the elasticity category EC and the fabric category FC respectively to generate weave value data, elasticity value data and fabric value data.

[0108] In detail, since the weave category WC, elasticity category EC, and fabric category FC in the fabric category data are all string data of a limited number of types (for example, 5 types) (for example, it can be a Chinese string of "warp knitting" or an English string of "warp knit", the neural network model NNM for a specific type of physical deformation parameter can directly use the target encoding algorithm to digitize these categories to convert them into multiple values.

[0109] For example, if there are five weave types for multiple fabrics and a neural network model NNM for warp bending work BWR is to be trained, all fabrics of the first weave type can be taken from the multiple fabrics, and the values ​​of the warp bending work BWR of these fabrics can be averaged, and then the string data of the first weave type can be converted into this average value. Similarly, the same method can be used to convert other weave types into values. In addition, the elasticity type EC and the fabric type FC are also converted in the same way.

[0110] It is worth noting that when it is desired to train a neural network model NNM for other types of physical deformation parameters, the only difference is that the average value of the values ​​of other types of physical deformation parameters is taken out. For example, assuming that there are 5 weaving categories for multiple fabrics and it is desired to train a neural network model NNM for the weft bending work BWF, all fabrics of the first weaving category can be taken out from multiple fabrics, and the values ​​of the weft bending work BWF of these fabrics can be averaged, and then the string data of the first weaving category can be converted into this average value. Similarly, other weaving categories can be converted into values ​​by the same method. In addition, the elasticity category EC and the fabric category FC are also converted in the same way.

[0111] In step S212, the weaving numerical data, the elastic numerical data and the fabric numerical data are combined to generate target coded data. In other words, the target coded data includes three numerical data, which are the weaving numerical data, the elastic numerical data and the fabric numerical data.

[0112] Please refer to Figure 4 , Figure 4 A flowchart of detailed steps S221 to S222 of step S220 in some embodiments is shown. Figure 4 As shown, in step S221, a transformer-based bidirectional encoder representation algorithm is performed on the component combination CP and the post-processing combination TF to generate a coding vector.

[0113] In step S222 , a principal component analysis algorithm is performed on the encoding vector to generate a language processing vector LPV, wherein the dimension of the language processing vector LPV is smaller than the dimension of the encoding vector.

[0114] In detail, the component combination CP and the post-processing combination TF in the fabric combination data are string data composed of multiple strings combined with each other, which may generate a large number of string data with various possible combinations (for example, 100 combinations). Therefore, the encoder pre-trained in the transformer-based bidirectional encoder representation model BERTM is used to digitize the fabric combination data to generate a high-dimensional encoding vector (for example, a vector with a size of 1x384). Then, in order to filter abnormal values ​​in the encoding vector, the principal component analysis operation can be used to perform principal component analysis on the high-dimensional encoding vector to reduce the dimension of the high-dimensional encoding vector to generate a reduced-dimensional vector (for example, a vector with a size of 1x31), and this reduced-dimensional vector is used as the language processing vector LPV.

[0115] Further, the transformer-based bidirectional encoder representation model BERTM may include an embedding module, an encoder, and a fully connected feedforward neural network. The encoder in the transformer-based bidirectional encoder representation model BERTM may be trained in advance using a large number of sentences in a dictionary. Thus, the encoder may be used to convert a plurality of fabric combination data corresponding to a plurality of fabrics into a high-dimensional encoding vector.

[0116] For example, assuming that the component combination is the string "60% nylon and 40% polyester" and the post-processing combination is the string "na (no elasticity)", the encoder can be used to convert the two strings into two vectors respectively, and the two vectors can be concatenated to generate a high-dimensional encoding vector.

[0117] Then, the principal component analysis algorithm can be used to reduce the dimension of the high-dimensional coding vector to generate a lower-dimensional language processing vector. Taking the principal component analysis method of generating two-dimensional coordinates using multiple high-dimensional coding vectors as an example, a covariance matrix can be generated based on the numerical values ​​of multiple elements in each high-dimensional coding vector, and the covariance matrix can be decomposed into multiple eigenvalues ​​and multiple eigenvectors. Then, the two largest eigenvalues ​​can be selected from the multiple eigenvalues, and the eigenvectors corresponding to these two eigenvalues ​​can be used to generate a projection matrix to extract the first two rows of the projection matrix as a weight matrix. In this way, the high-dimensional coding vector and the weight matrix can be used to generate multiple candidate coordinates corresponding to each element, wherein the multiple candidate coordinates are all coordinates corresponding to each element in the two-dimensional coordinate plane.

[0118] Next, the center point coordinates can be calculated using multiple candidate coordinates (for example, the coordinates corresponding to the geometric center of these candidate coordinates are calculated), and the minimum distance value between the candidate coordinates corresponding to each element and the center point coordinates is calculated. In this way, it can be determined whether these distance values ​​are greater than a preset distance threshold (for example, set by the user, or based on empirical rules or past experimental settings). When it is determined that the distance value corresponding to an element (for example, the 10th element) is greater than the preset distance threshold, this element in the high-dimensional encoding vector can be deleted to reduce the dimension, thereby generating a language processing vector.

[0119] Please refer to Figure 5 , Figure 5 A flowchart of detailed steps S231A to S232C of step S230 is shown in some embodiments. Figure 5 As shown, the process proceeds from step S220 to step S321A and step S321B. In step S231A, the weaving numerical data, elastic numerical data and fabric numerical data in the target coding data are normalized by maximum and minimum values ​​to generate normalized weaving numerical data, normalized elastic numerical data and normalized fabric numerical data. Then, the process proceeds to step S232A.

[0120] In step S232A, the normalized weave value data, the normalized elastic value data and the normalized fabric value data are concatenated to generate a class vector CV. In other words, the multiple elements in the class vector CV are respectively the normalized weave value data, the normalized elastic value data and the normalized fabric value data.

[0121] Furthermore, in step S231B, the physical deformation parameters are normalized by maximum and minimum values ​​to generate normalized physical deformation parameters.

[0122] In some embodiments, the warp bending work, weft bending work, warp stretch elongation, weft stretch elongation or diagonal stretch elongation can be normalized by maximum-minimum normalization processing to generate the corresponding normalized warp bending work, normalized weft bending work, normalized warp stretch elongation, normalized weft stretch elongation or normalized diagonal stretch elongation.

[0123] It is worth noting that because the target coding data, warp bending work, weft bending work, warp tensile elongation, weft tensile elongation and oblique tensile elongation have all been determined to be in a specific range (all have a specific numerical range, so the possible maximum and minimum values ​​can be known), the maximum and minimum value normalization processing is used here.

[0124] In other words, the normalized physical deformation parameter may be the normalized warp bending work, the normalized weft bending work, the normalized warp tensile elongation, the normalized weft tensile elongation, or the normalized diagonal tensile elongation.

[0125] Furthermore, in step S231C, the cloth weight and the specific gravity are subjected to Z-score normalization processing to generate normalized cloth weight and normalized specific gravity. Then, the process proceeds to step S232C.

[0126] In some embodiments, the cloth weight and the specific gravity may be subjected to a Z-score normalization process through a second normalization process NM2.

[0127] It is worth noting that because the cloth weight and specific gravity cannot be determined in a specific range (there is no specific numerical range, so the possible maximum and minimum values ​​cannot be known), Z-score normalization is used here.

[0128] In step S232C, the normalized weight and the normalized proportion are concatenated to generate a weight vector. In other words, the normalized weight is made the first element in a 2-dimensional vector, and the normalized proportion is made the second element in the 2-dimensional vector.

[0129] Furthermore, the process proceeds from steps S232A, 231B and step S232C to step S240.

[0130] Please refer to Figure 6 , Figure 6 A schematic diagram illustrating data filtering via a box plot in some embodiments. Figure 6 As shown, here, the warp bending work and weft bending work corresponding to multiple fabrics are taken as examples. For the warp bending work, a value range R1 can be generated based on 1.5 times the interquartile range. Thereby, fabrics corresponding to points outside the value range R1 can be selected, and the physical deformation parameters and fabric specification information corresponding to these fabrics can be deleted. In addition, for the weft bending work, a value range R2 can be generated based on 1.5 times the interquartile range. Thereby, fabrics corresponding to points outside the value range R2 can be selected, and the physical deformation parameters and fabric specification information corresponding to these fabrics can be deleted. By analogy, the same processing can be performed on other types of data in the physical deformation parameters and various types of data in the fabric specification information.

[0131] Please refer to Figure 7 , Figure 7 Schematic diagrams showing the use phases of the fabric simulation device 100 in some embodiments. Figure 7As shown, during the use phase, when a new fabric (or fabric FB used in the training phase) is to be simulated and the deformation of the new fabric has not yet been measured, the new fabric specification information FDP' obtained in the process phase (or provided by the manufacturer) can be captured by the data acquisition circuit 110, wherein the new fabric specification information FDP' corresponds to the new fabric.

[0132] Next, the new weave category WC', the new elasticity category EC', and the new fabric category FC' in the new fabric specification information FDP' can be processed through the target encoding model TEM and the first normalization process NM1 to generate a new category vector CV'. Next, the new component combination CP' and the new post-processing combination TF' in the new fabric specification information FDP' are processed through the converter-based bidirectional encoder representation model BERTM and the principal component analysis operation to generate a new language processing vector LPV'. Next, the new fabric weight FW' and the new specific gravity SG' in the new fabric specification information FDP' are processed through the second normalization process NM2 to generate a new weight vector WV'.

[0133] Next, the new category vector CV', the new language processing vector LPV' and the new weight vector WV' can be connected in series to generate a new feature vector FV'. Finally, the new feature vector FV' is input into the neural network model NNM, and the neural network model NNM converts the new feature vector FV' into a new physical deformation parameter PDP' corresponding to the new fabric, wherein the new physical deformation parameter PDP' can be a new warp bending work BWR', a new weft bending work BWF', a new warp tensile elongation SWR', a new weft tensile elongation SWF' or a new oblique tensile elongation SO'.

[0134] It is worth noting that although a neural network model NNM is taken as an example here, in actual application, the new feature vector FV' will be input into the neural network model NNM of the warp bending work BWR, the neural network model NNM of the weft bending work BWF, the neural network model NNM of the warp stretch elongation SWR, the neural network model NNM of the weft stretch elongation SWF and the neural network model NNM of the diagonal stretch elongation SO, so as to generate a new warp bending work BWR', a new weft bending work BWF', a new warp stretch elongation SWR', a new weft stretch elongation SWF' and a new diagonal stretch elongation SO' from the neural network model NNM of the warp bending work BWR, the neural network model NNM of the weft bending work BWF, the neural network model NNM of the warp stretch elongation SWR, the neural network model NNM of the weft stretch elongation SWF and the neural network model NNM of the diagonal stretch elongation SO respectively.

[0135] Thus, the new warp bending work BWR', the new weft bending work BWF', the new warp tensile elongation SWR', the new weft tensile elongation SWF' and the new diagonal tensile elongation SO' can be input into the simulation software SS, and the simulation software SS can simulate the drape, rotation or shaking of the new fabric in the simulated three-dimensional virtual space 3DS. Thus, the simulation display SD can display various drapes and movements of the virtual fabric 3DF in the three-dimensional virtual space 3DS.

[0136] In summary, the fabric simulation device disclosed herein utilizes a plurality of pre-processing models to convert the physical deformation parameters and fabric specification information corresponding to the fabric into feature vectors and normalized physical deformation parameters, respectively, and uses the feature vectors as training samples and the normalized physical deformation parameters as training labels to train the neural network model. Thus, as long as the new fabric specification information (easier to obtain) corresponding to the new fabric is input into a plurality of pre-processing models and an updated neural network model, new physical deformation parameters for simulation can be generated. In this way, there is no need to measure various deformation quantities (harder to obtain) for the new fabric in advance, and the drape and movement of the virtual fabric can be directly simulated in the three-dimensional virtual space. This will save time and manpower for measuring the physical deformation parameters separately, and greatly improve the effect of simulating the virtual fabric in the three-dimensional virtual space.

[0137] Although specific embodiments of the present disclosure have been disclosed with respect to the above embodiments, these embodiments are not intended to limit the present disclosure. Various substitutions and modifications may be performed in the present disclosure by a person of ordinary skill in the relevant art without departing from the principles and spirit of the present disclosure. Therefore, the scope of protection of the present disclosure is determined by the appended claims.

Claims

1. A fabric simulation device, It is characterized in that include: A data acquisition circuit for acquiring physical deformation parameters corresponding to the fabric; A memory for storing fabric specification information corresponding to the fabric, wherein the fabric specification information includes fabric category information, fabric combination information, and fabric weight information; as well as A processor is connected to the data acquisition circuit and the memory to run a neural network model, wherein the processor is used to perform the following operations: Performing a target coding algorithm on the fabric category data to generate target coding data; Applying a natural language processing algorithm to the fabric combination data to generate a language processing vector; Performing a first normalization process on the target coding data and the physical deformation parameter to generate a class vector and a normalized physical deformation parameter, and performing a second normalization process on the fabric weight data to generate a weight vector; Concatenating the category vector, the language processing vector, and the weight vector to generate a feature vector; as well as The neural network model is updated according to the feature vector and the normalized physical deformation parameter.

2. The fabric simulation device according to claim 1, It is characterized in that The fabric category data includes weave category, elasticity category and fabric category. The processor is further used to: respectively performing the target coding algorithm on the weave type, the elasticity type and the fabric type to generate weave value data, elasticity value data and fabric value data; and The weave value data, the elasticity value data and the fabric value data are combined to generate the target coding data.

3. The fabric simulation device according to claim 1, It is characterized in that The fabric combination data includes a component combination and a post-processing combination, wherein the processor is further used for: Applying a transformer-based bidirectional encoder representation algorithm to the component combination and the post-processing combination to generate an encoding vector; and A principal component analysis algorithm is performed on the encoding vector to generate the language processing vector, wherein the dimension of the language processing vector is smaller than the dimension of the encoding vector.

4. The fabric simulation device according to claim 1, It is characterized in that The first normalization process is a maximum-minimum normalization process, wherein the processor is further configured to: Performing the maximum and minimum value normalization processing on the weaving numerical data, the elastic numerical data and the fabric numerical data in the target coded data to generate normalized weaving numerical data, normalized elastic numerical data and normalized fabric numerical data; concatenating the normalized weave value data, the normalized elasticity value data, and the normalized fabric value data to generate the class vector; and The maximum and minimum value normalization process is performed on the physical deformation parameter to generate the normalized physical deformation parameter, wherein the physical deformation parameter is the warp bending work, the weft bending work, the warp tensile elongation, the weft tensile elongation or the oblique tensile elongation.

5. The fabric simulation device according to claim 1, It is characterized in that The fabric weight data includes fabric weight and specific gravity, wherein the second normalization process is a Z-score normalization process, wherein the processor is further used to: Performing the Z-score normalization process on the cloth weight and the specific gravity to generate a normalized cloth weight and a normalized specific gravity; and The normalized cloth weight and the normalized weight are concatenated to generate the weight vector.

6. A fabric simulation method, It is characterized in that include: Performing a target coding algorithm on fabric category data in fabric specification information to generate target coding data, wherein the fabric specification information corresponds to the fabric, wherein the fabric specification information includes the fabric category data, fabric combination data, and fabric weight data; Applying a natural language processing algorithm to the fabric combination data to generate a language processing vector; Performing a first normalization process on the target coding data and the physical deformation parameter to generate a class vector and a normalized physical deformation parameter, and performing a second normalization process on the fabric weight data to generate a weight vector, wherein the physical deformation parameter corresponds to the fabric; Concatenating the category vector, the language processing vector, and the weight vector to generate a feature vector; and The neural network model is updated according to the feature vector and the normalized physical deformation parameter.

7. The fabric simulation method according to claim 6, It is characterized in that The fabric category data includes a weave category, an elasticity category, and a fabric category, wherein the step of performing the target coding algorithm on the fabric category data in the fabric specification information to generate the target coding data includes: respectively performing the target coding algorithm on the weave type, the elasticity type and the fabric type to generate weave value data, elasticity value data and fabric value data; and The weave value data, the elasticity value data and the fabric value data are combined to generate the target coding data.

8. The fabric simulation method according to claim 6, It is characterized in that The fabric combination data includes a component combination and a post-processing combination, wherein the step of performing the natural language processing algorithm on the fabric combination data to generate the language processing vector includes: Applying a transformer-based bidirectional encoder representation algorithm to the component combination and the post-processing combination to generate an encoding vector; and A principal component analysis algorithm is performed on the encoding vector to generate the language processing vector, wherein the dimension of the language processing vector is smaller than the dimension of the encoding vector.

9. The fabric simulation method according to claim 6, It is characterized in that The first normalization process is a maximum-minimum normalization process, wherein the step of performing the first normalization process on the target coding data and the physical deformation parameter to generate the class vector and the normalized physical deformation parameter comprises: Performing the maximum and minimum value normalization processing on the weaving numerical data, the elastic numerical data and the fabric numerical data in the target coded data to generate normalized weaving numerical data, normalized elastic numerical data and normalized fabric numerical data; concatenating the normalized weave value data, the normalized elasticity value data, and the normalized fabric value data to generate the class vector; and The maximum and minimum value normalization process is performed on the physical deformation parameter to generate the normalized physical deformation parameter, wherein the physical deformation parameter is the warp bending work, the weft bending work, the warp tensile elongation, the weft tensile elongation or the oblique tensile elongation.

10. The fabric simulation method according to claim 6, It is characterized in that The fabric weight data includes fabric weight and specific gravity, wherein the second normalization process is a Z-score normalization process, and the step of performing the second normalization process on the fabric weight data to generate the weight vector includes: Performing the Z-score normalization process on the cloth weight and the specific gravity to generate a normalized cloth weight and a normalized specific gravity; and The normalized cloth weight and the normalized weight are concatenated to generate the weight vector.