Distortion area estimation device, distortion area estimation method, machine learning device, and machine learning method
The distortion region estimating device uses machine learning to automate the detection of optical illusion-induced distortions in 3D CAD models, enhancing accuracy and reducing manual effort.
Patent Information
- Application Number
- JP2023030394
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2043-02-28
AI Technical Summary
Existing 3D CAD systems struggle with visually detecting and correcting distortions in three-dimensional surface models caused by optical illusions, which are time-consuming and subjective, affecting the aesthetics and quality of manufactured parts.
A distortion region estimating device and method using machine learning to identify visually distorted areas in three-dimensional surface models through supervised learning and feature extraction, employing algorithms like PCA, Bayesian Gaussian mixture models, and gradient boosting to accurately detect distortion regions.
Automates the detection of optical illusion-induced distortions, reducing manual effort and subjective variation, thereby improving the accuracy and aesthetics of three-dimensional surface models.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a distorted area estimation device and a distorted area estimation method for estimating a distorted area in a three-dimensional surface model, and also to a machine learning device and a machine learning method for constructing a trained model for estimating such a distorted area. [Background technology]
[0002] Three-dimensional CAD (Computer Aided Design) is widely used in the design of vehicle parts (including interior and exterior parts) such as passenger cars and work vehicles (see, for example, Patent Document 1). For each part, the exterior design and internal structure that cannot be seen from the outside are designed using 3D CAD. The 3D CAD generates data that represents a 3D model of each designed part, and visualizes the 3D model. In addition, in the manufacturing process of each part, each part can be manufactured based on the 3D model data.
[0003] In the following, among the three-dimensional models, a model that represents the surfaces that make up the exterior appearance is called a surface model. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] Japanese Patent Application Publication No. 9-326046 Summary of the Invention [Problem to be solved by the invention]
[0005] As mentioned above, when a part is designed based on a 3D model of the part designed using 3D CAD, some of the surfaces that make up the exterior may appear unnaturally distorted, contrary to the intention at the time of design. This distortion is thought to be caused by an optical illusion that causes some of the surfaces to appear visually distorted.
[0006] To eliminate such distortions in parts, it is essential to visually check the surface model on the 3D CAD, because the distortions observed after the parts are manufactured also occur, to varying degrees, in the surface model.
[0007] Visual inspection of surface models is time-consuming because it has to be done manually. In addition, the degree of distortion that can be detected by visual inspection is likely to vary depending on the skill level of the worker performing the visual inspection. Thus, visual inspection of surface models is likely to lead to increased costs and poor aesthetics for parts and products.
[0008] One aspect of the present invention has been made in consideration of the above-mentioned problems, and its purpose is to provide a technology for detecting visual distortions that may occur in three-dimensional surface models and that are due to optical illusions. [Means for solving the problem]
[0009] In order to solve the above problem, a distortion area estimation device according to a first aspect of the present invention includes a control unit that executes an estimation step of estimating a distortion area that may be included in a three-dimensional surface model and that appears visually distorted due to an optical illusion.
[0010] In order to solve the above problem, a distortion area estimation method according to a ninth aspect of the present invention includes an estimation step of estimating a distortion area that may be included in a three-dimensional surface model and that appears visually distorted due to an optical illusion.
[0011] In order to solve the above problem, a machine learning device according to a 13th aspect of the present invention includes a control unit that executes a preprocessing step and a construction step of constructing a trained model by supervised learning using a training dataset, the trained model estimating a distortion area that may be included in a line included in a three-dimensional surface model and that appears visually distorted due to an optical illusion, the preprocessing step including a feature derivation step of setting a plurality of unit intervals in the line included in the surface model and deriving features indicating characteristics of the shape of each unit interval, the input of the trained model being the features derived for each unit interval, and the output of the trained model being an estimation result of whether or not each unit interval contains the distortion area.
[0012] In order to solve the above problem, a machine learning method according to a fourteenth aspect of the present invention includes a preprocessing step and a construction step of constructing a trained model by supervised learning using a training dataset, which estimates a distortion area that may be included in a line included in a three-dimensional surface model and appears visually distorted due to an optical illusion, wherein the preprocessing step includes a feature derivation step of setting a plurality of unit intervals in the line included in the surface model and deriving features indicating characteristics of the shape of each unit interval, wherein the input of the trained model is the features derived for each unit interval, and the output of the trained model is an estimation result of whether or not each unit interval contains the distortion area.
[0013] The distorted area estimation device according to each aspect of the present invention may be realized by a computer. In this case, a distorted area estimation program for the distorted area estimation device that causes a computer to operate as each unit (software element) of the distorted area estimation device to realize the distorted area estimation device, and a computer-readable recording medium having the program recorded thereon, are also included in the scope of the present invention.
[0014] The machine learning device according to each aspect of the present invention may be realized by a computer. In this case, the distortion machine learning program of the machine learning device that causes a computer to operate as each unit (software element) of the machine learning device to realize the machine learning device, and a computer-readable recording medium on which the distortion machine learning program is recorded, are also included in the scope of the present invention. Effect of the Invention
[0015] According to one aspect of the present invention, it is possible to provide a technique for detecting visual distortion that may occur in a three-dimensional surface model and that is caused by an optical illusion. [Brief description of the drawings]
[0016] [Figure 1] 1 is a block diagram showing a configuration of a distorted area estimation system according to an embodiment of the present invention. [Diagram 2] 2 is a flowchart showing the flow of a distorted area estimation method executed by a distorted area estimation device included in the distorted area estimation system shown in FIG. [Diagram 3] 3 is a flowchart showing a flow of pre-processing steps included in the distorted region estimation method shown in FIG. 2. [Figure 4] 2 is a perspective view of a surface model of a part for which the presence or absence of distortion is estimated by the distortion region estimation device shown in FIG. 1. [Diagram 5] FIG. 5 is an enlarged perspective view of a portion of the surface model shown in FIG. [Figure 6] 5 is an example of a cross-sectional profile of the surface model shown in FIG. 4. [Figure 7] 5 is an enlarged perspective view of a portion of the surface model shown in FIG. 4, illustrating points determined in the process of a feature amount derivation step included in the distortion region estimation method shown in FIG. 2. [Figure 8] 3 is a schematic diagram for explaining an example of a feature amount derived in a feature amount derivation step included in the distorted region estimation method shown in FIG. 2. [Figure 9]2 is a flowchart showing the flow of a machine learning method executed by a machine learning device included in the distorted region estimation system shown in FIG. 1. [Figure 10] The upper part is a scatter plot in which the PCA features obtained in a modified example of the estimation step are plotted on a two-dimensional plane, and the lower part is a scatter plot obtained by enlarging a part of the upper scatter plot. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] [Distortion area estimation system] A distorted region estimation system S including a distorted region estimation device 1 according to an embodiment of the present invention will be described with reference to Fig. 1. Fig. 1 is a diagram showing the configuration of the distorted region estimation system S.
[0018] The distortion area estimation system S is a system for estimating the presence or absence of visual distortion caused by an optical illusion, which is a distortion that may occur in a three-dimensional surface model. As shown in Fig. 1, the distortion area estimation system S includes a distortion area estimation device 1, a three-dimensional CAD (Computer Aided Design) 2, and a machine learning device 3 (see Fig. 9).
[0019] The distortion area estimation system S including the distortion area estimation device 1 is intended to detect visual distortion caused by optical illusions, which may occur in a three-dimensional surface model of a vehicle part (including an interior part and an exterior part) typified by a passenger car and a work vehicle, during the design stage of the vehicle part. Examples of vehicles include construction machinery and agricultural machinery in addition to passenger cars and work vehicles. The vehicle may be a vehicle operated by a user or may be a vehicle operated by automatic driving. In this embodiment, the distortion area estimation system S and the distortion area estimation device 1 will be described using an exterior part of a passenger car as an example of a part.
[0020] The part is designed using a three-dimensional CAD 2. That is, the three-dimensional CAD 2 generates a three-dimensional surface model of the part, and stores data representing this surface model in a storage provided in the three-dimensional CAD 2 or in a storage provided outside the three-dimensional CAD 2. In this embodiment, it is assumed that data representing the surface model is stored in the storage of the three-dimensional CAD 2. Note that a surface model is one aspect of a three-dimensional model, and is a model that expresses the appearance (design) of a part using a surface whose thickness is not defined.
[0021] The distortion area estimation device 1 includes a control unit (a processor 12 described later) that executes an estimation step of estimating a distortion area that may be included in a three-dimensional surface model and that appears visually distorted due to an optical illusion. This estimation step may be configured to estimate a distortion area that may be included in a line included in the surface model and that appears visually distorted due to an optical illusion using a trained model constructed by supervised learning, or may be configured to estimate a distortion area using a trained model constructed by unsupervised learning, or may be configured to estimate a distortion area using a predetermined algorithm (e.g., a principal component analysis (PCA) algorithm) executed according to a program.
[0022] <Outline of the distortion area estimation device> The distorted area estimation device 1 of this embodiment is a device for executing the distorted area estimation method M1. The distorted area estimation method M1 is a method for estimating a distorted area that may be included in a line included in a surface model, using a trained model LM constructed by machine learning based on data representing a surface model provided by a three-dimensional CAD 2. Here, the distorted area means an area that appears visually distorted due to an optical illusion. In addition, in this embodiment, a cross-sectional profile of the surface model is used as the line included in the surface model. However, the line included in the surface model is not limited to the cross-sectional profile, and may be, for example, a constituent line in a surface that constitutes the surface model. The constituent line can also be referred to as a boundary line or a ridge line in a surface that constitutes the surface model.
[0023] The algorithm of the learned model LM, the configuration of the distorted region estimation device 1, and the flow of the distorted region estimation method M1 will be described in detail later.
[0024] The input of the trained model LM is a feature value derived for each of a plurality of unit sections set in the cross-sectional profile of the surface model. The feature value can be appropriately selected so as to indicate the shape characteristics of each unit section.
[0025] The output of the trained model LM is an estimation result of whether or not each unit section of the above-mentioned cross-sectional profile contains a distorted region. For example, when it is determined that a certain unit section contains a distorted region, the trained model LM outputs "1", and when it is determined that the certain unit section does not contain a distorted region, the trained model LM outputs "0".
[0026] The inventors of the present application have found that, although it is difficult to explicitly specify as a relational expression between the feature amount that is the input of the trained model LM and the estimation result of whether or not a distorted region is included that is the output of the trained model LM, there is a certain relationship. Therefore, by using the trained model LM that uses the feature amount as an input, it is possible to accurately estimate whether or not each unit section of the cross-sectional profile includes a distorted region.
[0027] <Overview of machine learning device> The machine learning device 3 is a device for executing the machine learning method M3. The machine learning method M3 is a method for creating a learning dataset DS using data representing a surface model provided from a 3D CAD 2, and for constructing a trained model LM by machine learning using the learning data dataset DS. The configuration of the machine learning device 3 and the flow of the machine learning method M3 will be described in detail later.
[0028] The distortion region estimation system S goes through a preparation phase and a trial phase to reach a practical phase. The preparation phase, trial phase, and practical phase will be briefly described below.
[0029] (1) Preparation Phase In the preparation phase, an operator determines whether or not the surface model includes a distorted region. Each time the operator determines whether or not the surface model includes a distorted region, the machine learning device 3 creates learning data (teacher data) from data representing the surface model provided by the three-dimensional CAD 2, and adds the created learning data to the learning dataset DS. The preparation phase may end when a predetermined period (e.g., one week, one month, or one year) has elapsed since the start of the preparation phase, or when the number of times the distortion region is estimated in the preparation phase reaches a predetermined number (e.g., 100 times, 1000 times, or 10000 times). When the preparation phase ends, the machine learning device 3 constructs a trained model LM by machine learning using the training data DS. The constructed trained model LM is transferred from the machine learning device 3 to the distortion region estimation device 1.
[0030] (2) Trial Phase In the trial phase, the operator judges whether or not the surface model includes a distorted area, and the distorted area estimation device 1 estimates whether or not the line included in the surface model includes a distorted area. Every time the operator performs a measurement to judge whether or not the surface model includes a distorted area, the distorted area estimation device 1 estimates whether or not the surface model includes a distorted area using the learned model LM based on data representing the surface model provided from the three-dimensional CAD 2. The trial phase may end when a predetermined period (e.g., one week, one month, or one year) has elapsed since the start of the trial phase, or when the number of estimations of whether or not the surface model includes a distorted area in the trial phase reaches a predetermined number (e.g., 100 times, 1000 times, or 10000 times). When the trial phase ends, the operator compares the judgment result he or she made with the estimation result of whether or not the distorted area is included estimated by the distorted area estimation device 1, and evaluates the estimation accuracy of the distorted area estimation device 1. If the estimation accuracy is insufficient, the process returns to the preparation phase. If the estimation accuracy is sufficient, the process proceeds to the practical phase. The estimation accuracy may be confirmed by using a part of the learning dataset DS after the preparation phase is completed. In this case, the trial phase can be omitted.
[0031] (3) Practical Phase In the practical phase, the distorted region estimation device 1 estimates whether or not the surface model includes a distorted region. The learned model LM used by the distorted region estimation device 1 in the practical phase has been confirmed to have sufficient estimation accuracy in the trial phase. In the practical phase, the determination by the operator as to whether or not the surface model includes a distorted region can be omitted. This relieves the operator from the trouble of determining whether or not the surface model includes a distorted region, and makes it possible to estimate with high accuracy whether or not the surface model includes a distorted region.
[0032] <Configuration of the distortion area estimation device> The configuration of the distorted region estimation device 1 will be described with reference to Fig. 1. The upper part of Fig. 1 is a block diagram showing the configuration of the distorted region estimation device 1.
[0033] As shown in FIG. 1, the distorted region estimation device 1 includes a memory 11, a processor 12, and a storage 13. The memory 11, the processor 12, and the storage 13 are connected to each other via a bus (not shown). This bus may further include an input / output interface (not shown) and a communication interface (not shown). For example, the input / output interface is used to input data representing a surface model from a three-dimensional CAD 2 to the distorted region estimation device 1, or to output a determination result from the distorted region estimation device 1 to an external device (for example, the three-dimensional CAD 2). In addition, the communication interface is used to acquire a trained model LM from an external device (for example, a machine learning device 3).
[0034] The memory 11 is configured to store the trained model LM constructed by machine learning. The trained model LM is an algorithm that inputs the feature amount of each unit section of a line (in this embodiment, the cross-sectional profile of the surface model) included in the surface model, which is a feature amount derived by a pre-processing step described later, and outputs an estimation result of whether or not each unit section includes a distortion region. In addition, for example, a semiconductor RAM (Random Access Memory) or the like can be used as the memory 11. In addition, gradient boosting can be suitably used as the machine learning algorithm of the trained model LM. In addition, algorithms such as a Bayesian Gaussian mixture model and a support vector machine can be used as the machine learning algorithm of the trained model LM. In the following, the machine learning algorithm is also simply referred to as an algorithm.
[0035] The processor 12 is configured to execute a distortion region estimation method M1, which will be described later, using the learned model LM stored in the memory 11. As the processor 12, for example, a central processing unit (CPU), a graphic processing unit (GPU), a microprocessor, a digital signal processor, a microcontroller, an application specific integrated circuit (ASIC) such as a tensor processing unit (TPU), or a combination thereof can be used. The processor 12 functions as a control unit in one aspect of the present invention, and may be called a "computing device."
[0036] The storage 13 is configured to store (non-volatilely store) the trained model LM. When estimating whether each unit section includes a distortion region, the processor 12 deploys the trained model LM stored in the storage 13 on the memory 11 and uses it. Note that, as the storage 13, for example, a flash memory, a hard disk drive (HDD), a solid state drive (SSD), or a combination of these can be used.
[0037] In this embodiment, a configuration in which the distorted region estimation method M1 is executed using a single processor (processor 12) is adopted, but the present invention is not limited to this. That is, a configuration in which the distorted region estimation method M1 is executed using a plurality of processors may be adopted. For example, the pre-processing step S11 (described later) may be executed in a first processor, and the estimation step S12 (described later) may be executed in a second processor. In this case, the plurality of processors that execute the distorted region estimation method M1 in cooperation may be provided in a single computer and configured to be able to communicate with each other via a bus, or may be provided in a distributed manner in a plurality of computers and configured to be able to communicate with each other via a network. As an example, a mode in which a processor built in a computer that constitutes a cloud server and a processor built in a computer owned by a user of the cloud server execute the distorted region estimation method M1 in cooperation may be considered.
[0038] In addition, in this embodiment, a configuration is adopted in which the trained model LM is stored in the memory 11 built in the same computer as the processor (processor 12) that executes the distortion region estimation method M1, but the present invention is not limited to this. That is, a configuration may be adopted in which the trained model LM is stored in a memory built in a computer different from the processor that executes the distortion region estimation method M1. In this case, the computer with the built-in memory for storing the trained model LM is configured to be able to communicate with the computer with the built-in processor that executes the distortion region estimation method M1 via a network. As an example, a mode in which the trained model LM is stored in a memory built in a computer constituting a cloud server, and a processor built in a computer owned by a user of the cloud server executes the distortion region estimation method M1, etc., can be considered.
[0039] In addition, in this embodiment, a configuration in which the trained model LM is stored in a single memory 11 is adopted, but the present invention is not limited to this. That is, a configuration in which the trained model LM is distributed and stored in multiple memories may be adopted. In this case, the multiple memories that store the trained model LM may be provided in a single computer (which may or may not be a computer with a processor that executes the distortion region estimation method M1 built in), or may be distributed and provided in multiple computers (which may or may not include a computer with a processor that executes the distortion region estimation method M1). As an example, a configuration in which the trained model LM is distributed and stored in memories built in each of multiple computers that constitute a cloud server is considered.
[0040] <Flow of the distortion area estimation method> The flow of the distorted area estimation method M1 will be described with reference to FIG. 2 to FIG. 8. FIG. 2 is a flowchart showing the flow of the distorted area estimation method M1. FIG. 3 is a flowchart showing the flow of a pre-processing step S11 included in the distorted area estimation method M1. FIG. 4 is a perspective view of a surface model SM of a part for which the presence or absence of distortion is estimated by the distorted area estimation device 1. FIG. 5 is a perspective view of an enlarged portion of the surface model SM. FIG. 6 is an example of a cross-sectional profile of the surface model SM. FIG. 7 is a perspective view of an enlarged portion of the surface model SM, illustrating a point determined in the process of the feature amount derivation step S112 included in the distorted area estimation method M1. FIG. 8 is a schematic diagram for explaining an example of a feature amount derived in the feature amount derivation step S112. As shown in FIG. 4, FIG. 5, and FIG. 7, in this embodiment, an orthogonal coordinate system defined by the x-axis, y-axis, and z-axis in the space in which the surface model SM is handled is used. However, the coordinate system used in the distorted area estimation method M1 and the machine learning method M3 described later is not limited to the orthogonal coordinate system. The coordinate system used in the machine learning method M3 may be, for example, an oblique coordinate system, a polar coordinate system, or a general coordinate system. An example of the general coordinate system is a cylindrical coordinate system.
[0041] The distorted region estimation method M1 includes a preprocessing step S11 and an estimation step S12.
[0042] (Pre-processing step) The pre-processing step S11 is a step in which the processor 12 derives features in each unit section of the cross-sectional profile of the surface model to be input to the learned model LM. As shown in FIG. 3, the pre-processing step S11 includes a cross-sectional profile generating step S111 and a feature deriving step S112.
[0043] The cross-sectional profile generating step S111 is a step of generating a plurality of cross-sectional profiles from the surface profile of the surface model SM. The multiple cross-sectional profiles generated in the cross-sectional profile generating step S111 are preferably cross sections expressed in an oblique coordinate system formed by three mutually intersecting axes, and are cross-sectional profiles in multiple cross sections parallel to a plane defined by two of the three axes. More preferably, the intervals between adjacent cross-sectional profiles are equal.
[0044] As described above, in this embodiment, an orthogonal coordinate system is used with three axes, the x-axis, the y-axis, and the z-axis, which are orthogonal to each other. In addition, as the multiple cross-sectional profiles, (1) multiple cross-sections C xy (2) A plurality of equally spaced cross sections C parallel to the yz plane yz , and (3) a plurality of equally spaced cross sections C parallel to the zx plane zx The cross-sectional profile at the adjacent cross section C is used (see Figs. 4 and 5). yz Distance between d yz is set to 20 mm (see Figure 5). xy The distance between the adjacent sections and the zx The distance between the sections is also C yzSimilarly, the distance is set to 20 mm. However, these distances can be appropriately determined depending on the size of the expected distortion area, etc.
[0045] In addition, due to the shape of the part, cross section C xy ,C yz ,C zx In cases where it is known which cross section is the easiest to estimate the strain area, cross section C xy ,C yz ,C zx It is also possible to select one of the cross sections and use only the cross section profile at that cross section. However, cross section C xy ,C yz ,C zx By using all the cross-sectional profiles of the above, it becomes unnecessary to be concerned about the orientation of the coordinate axes in each part, and it is possible to reduce overlooking of distortion areas.
[0046] The feature amount deriving step S112 is a step of setting a plurality of unit sections in the line included in the surface model SM and deriving a feature amount indicating the shape characteristics of each unit section. In this embodiment, the line included in the surface model SM is a cross section C shown in FIG. xy ,C yz ,C zx The cross-sectional profile at each of the cross sections is shown in Fig. 6. yz 6 is an example of a cross-sectional profile at cross section C. In the cross-sectional profile shown in FIG. yz In the cross-sectional profile at multiple unit intervals Se i (i is an integer between 3 and N, where N is a positive integer), and each unit interval Se i The features of are derived. More specifically, the cross-sectional profile of the surface model SM is formed by serially connecting N curves, each of which is formed by a single spline curve. In the feature deriving step S112, a section formed by a first section formed by the i-th (i is an integer between 2 and N-1) spline curve, a second section formed by the i-1-th spline curve, and a third section formed by the i+1-th spline curve is defined as the unit section, and the feature of each unit section is derived. For example, in the unit section Se shown in FIG. 6 and FIG. 7, i+1 If the first interval is the unit interval Se, the second interval is i and the third interval is the unit interval Se i+2 It is. In this embodiment, the first section is set as the center, and the second and third sections located before and after the first section are set as the two ends to derive 20 feature amounts described below. Hereinafter, the 20 feature amounts derived using the three sections, with the first section set as the center, and the second and third sections located before and after the first section as the two ends, are referred to as feature amounts of the first section.
[0047] Next, in the feature deriving step S112, the first section (for example, the unit section Se i+1 ), the second interval (for example, the unit interval Se i ), and the third interval (for example, the unit interval Se i+2 ) are divided into M equal parts (M is an integer of 2 or more), and the M pseudo line segments obtained by dividing each of the unit sections Se are called line segments L1j, L2j, and L3j (j is an integer of 1 to M). In the cross-sectional profile shown in FIG. 6, each unit section Se i+1 The start and end points of each are points P i and point P i+1 Then, the line segment P i P i+1 The five points obtained by dividing into six equal parts are called points P ij (See FIG. 7.) Therefore, the first section, the unit section Se i+1 Line segment P i P ij corresponds to the line segment L1j. Similarly, the second section, the unit section Se i Line segment P i Pij corresponds to the line segment L2j, and the third interval, the unit interval Se i+2 Line segment P i P ij corresponds to the line segment L3j. In the cross-sectional profile shown in FIG. 7, M=6 is adopted as described above. However, M is not limited to M=6, and can be appropriately selected depending on the size and design of the surface model SM. A typical example of M is M=50, but M may be about 10 or about 100.
[0048] In this embodiment, a cross section C parallel to the yz plane yz In the cross-sectional profile at, the generalized unit interval Se using i i+1 A method of deriving 20 feature quantities will be described below by taking as an example a case where the first section is set to Se. However, in the actual feature quantity deriving step S112, i (i is an integer between 2 and N-1) as the first section, 20 feature quantities are repeatedly derived. yz As in the case of the cross-sectional profile in xy ,C zx The 20 feature quantities are repeatedly derived for each unit section of the cross-sectional profile in each of the above.
[0049] The feature derivation step S112 derives, as features for each unit section, at least the maximum amount of change in the angle between adjacent line segments L1j and L1j+1 in the first section, the maximum amount of change in the angle between adjacent line segments L2j and L2j+1 in the second section, and the maximum amount of change in the angle between adjacent line segments L3j and L3j+1 in the third section. Then, in feature derivation step S112, the maximum amount of change in the angle between adjacent line segments L1j and L1j+1 in the first section is taken as the first feature. Also, in feature derivation step S112, the maximum amount of change in the angle between adjacent line segments L2j and L2j+1 in the second section is compared with the maximum amount of change in the angle between adjacent line segments L3j and L3j+1 in the third section, and the smaller of these is taken as the second feature and the larger of these is taken as the third feature.
[0050] Here, the second interval, unit interval Se i Line segment Lij (line segment P i P ij ) and line segment Lij+1(line segment P i P ij+1 ) and the angle θ ij The angle can be an acute angle or an obtuse angle. In this embodiment, the acute angle is defined as the angle θ ij In Figure 8, the angle θ i1 ~angle θ i4 The angle θ ij The change in the unit interval Se i The length L obtained by dividing the length of i And the angle θ ij It is obtained by dividing
[0051] The fourth feature is a value that expresses the magnitude relationship between the maximum angle change amount in the first interval, the maximum angle change amount in the second interval, and the maximum angle change amount in the third interval, using any one of the values 0, -1, and 1. If the absolute value of the maximum angle change amount in the first interval is small and the absolute values of the maximum angle change amount in the second and third intervals are large, 0 is adopted. Furthermore, in cases that do not fall under the above-mentioned cases where 0 is adopted, if the maximum angle change amount is positive, -1 is adopted. Examples of this case include (1) the maximum values of the angle change in the first to third sections are all positive, and the maximum values of the angle change are smaller in the order of the second section, the first section, and the third section; (2) the maximum values of the angle change in the second section and the third section are similar, and the maximum value of the angle change in the first section is greater than the maximum value of the angle change in the second section and the third section; and (3) the maximum value of the angle change in the second section is greater than the maximum value of the angle change in the first section and the third section, and the maximum values of the angle change in the first section and the third section are similar. The range in which the maximum values of the angle change are compared and determined to be similar can be appropriately determined. In addition, when the maximum values of the angle change are compared to determine whether they are similar, the magnitude relationship between the maximum values of the angle change to be compared does not matter. In addition, in cases that do not fall under the above-mentioned cases in which 0 is adopted, if the minimum value of the angle change is negative, 1 is adopted. Examples of this case include (4) the minimum values of the angle change amount in the first to third intervals are all negative, and the minimum values of the angle change amount decrease in the order of the second interval, the first interval, and the third interval, (5) the minimum values of the angle change amount in the second interval and the third interval are approximately the same, and the minimum value of the angle change amount in the first interval is smaller than the minimum value of the angle change amount in the second interval and the third interval, and (6) the minimum value of the angle change amount in the second interval is smaller than the minimum value of the angle change amount in the first interval and the third interval, and the minimum value of the angle change amount in the first interval and the third interval are approximately the same, etc. In addition, further judgment criteria may be set for each of the cases of adopting 0, adopting -1, and adopting 1.
[0052] In addition, the feature derivation step S112 determines the angle in the first section (D1) as the fifth feature, and determines the smaller (Ds) and larger (Db) of the angle in the second section and the angle in the third section as the sixth feature and the seventh feature, respectively.
[0053] The difference between Ds and D1 is defined as an eighth feature amount, and the difference between Db and D1 is defined as a ninth feature amount.
[0054] Moreover, the absolute value of the difference between Db and Ds is set as the tenth feature amount.
[0055] Moreover, the sum of the angles in the second section and the sum of the angles in the third section is defined as an eleventh feature amount.
[0056] Moreover, the sum of the angles in the first interval, the sum of the angles in the second interval, and the sum of the angles in the third interval is defined as a twelfth feature amount.
[0057] The thirteenth feature is a value that expresses the magnitude relationship between the maximum angle in the first section, the maximum angle in the second section, and the maximum angle in the third section, using any one of 0, -1, and 1. If the absolute value of the maximum angle in the first section is small and the absolute values of the maximum angle in the second section and the third section are large, 0 is adopted. If the maximum angle is positive in cases that do not fall under the above-mentioned cases of adopting 0, -1 is adopted. An example of this case is when the maximum angle values in the first section to the third section are all positive and the maximum angle values decrease in the order of the second section, the first section, and the third section. If the minimum angle value is negative in cases that do not fall under the above-mentioned cases of adopting 0, 1 is adopted. An example of this case is when the minimum angle values in the first section to the third section are all negative and the minimum angle values decrease in the order of the second section, the first section, and the third section. As in the case of the fourth feature amount, further criteria may be provided for each of the cases of adopting 0, adopting −1, and adopting 1.
[0058] Also, the length L in the first section i (hereinafter referred to as length L1) is set as the 14th feature.
[0059] In addition, the length L in the second section i (hereinafter referred to as length L2) and the length L i (hereinafter referred to as length L3), and the smaller one (Ls) and the larger one (Lb) are taken as the fifteenth feature amount and the sixteenth feature amount, respectively.
[0060] Moreover, the ratio of Ls to L1 (ln(Ls / L1)) is defined as the 17th feature amount.
[0061] Moreover, the ratio of Lb to L1 (ln(Lb / L1)) is defined as the 18th feature amount.
[0062] Moreover, the ratio of Lb to Ls (ln(Lb / Ls)) is defined as the 19th feature amount.
[0063] The magnitude relationship between L1, L2, and L3 is expressed as one of the values 0, -1, and 1, which is defined as the 20th feature. When L1 is small and L2 and L3 are large, and when L1 is large and L2 and L3 are small, 0 is adopted. When L2, L1, and L3 monotonically decrease in this order, -1 is adopted. When L2, L1, and L3 monotonically increase in this order, 1 is adopted. Note that further criteria may be set for each of the cases of adopting 0, adopting -1, and adopting 1.
[0064] As described above, in this embodiment, feature amount derivation step S112 derives 20 feature amounts. However, the feature amounts derived in feature amount derivation step S112 are not limited to the above 20. Some of the above feature amounts may be omitted, or other feature amounts may be added to the above feature amounts. The feature amounts derived in feature amount derivation step S112 may be determined as appropriate depending on the shape of the part, the response to possible distortion, and the like.
[0065] (Estimation step) In the estimation step S12, the processor 12 uses the trained model LM to estimate the presence or absence of a distorted area that may be included in a line (in this embodiment, a cross-sectional profile) included in the surface model SM and that appears visually distorted due to an optical illusion. In the estimation step S12, the processor 12 reads data representing the feature amount derived in the pre-processing step S11 from the memory 11, and inputs the data representing the read feature amount to the trained model LM. Then, the processor 12 writes the estimation result output from the trained model LM, that is, data representing the estimation result of whether or not each unit section includes the distorted area, to the storage 13. The form of the data representing the estimation result can be appropriately determined, but in this embodiment, if the unit section includes a distorted area, the data is set to "1", and if the unit section does not include a distorted area, the data is set to "0".
[0066] In the actual estimation step S12, cross section C xy ,C yz ,C zx In all cross-sectional profiles, each unit section Se i (i is an integer between 2 and N-1) is set as the first interval, 20 feature amounts are input, and an estimation result as to whether or not each unit interval includes the distorted area is output.
[0067] The distorted region estimation method M1 may further include an output step of outputting data representing the estimation result estimated in the estimation step S12. In this output step, the processor 12 may be configured to read data representing the estimation result from the storage 13 and provide the read data representing the estimation result to the three-dimensional CAD 2. This allows the three-dimensional CAD 2 to differentiate the distorted region included in each unit section constituting each cross-sectional profile of the surface model SM from other regions. In addition, in this output step, the processor 12 may be configured to present the estimation result read from the storage 13 to a display to a user. This allows the user to know whether or not a distorted region is included in each unit section constituting each cross-sectional profile of the surface model SM.
[0068] <Machine learning device and machine learning method> The configuration of the machine learning device 3 will be described with reference to Fig. 1 and Fig. 9. The lower part of Fig. 1 is a block diagram showing the configuration of the machine learning device 3. Fig. 9 is a flowchart showing the flow of the machine learning method M3 executed by the machine learning device 3.
[0069] The machine learning device 3 is a device that executes a machine learning method M3 for constructing a trained model LM. As shown in FIG. 5, the machine learning device 3 includes a storage 31, a processor 32, and a memory 33. The storage 31, the processor 32, and the memory 33 are connected to each other via a bus (not shown). This bus may further be connected to an input / output interface (not shown) and a communication interface (not shown). This input / output interface is used, for example, to input teacher data from an external device (for example, a sensor and a keyboard) to the machine learning device 3. In addition, this communication interface is used, for example, to provide the trained model LM to an external device (for example, the above-mentioned distortion region estimation device 1).
[0070] The storage 31 is configured to store a learning dataset DS. The learning dataset DS is a collection of teacher data in which data representing a plurality of feature amounts in each unit section constituting each cross-sectional profile of the surface model SM is labeled with a label indicating an estimation result as to whether or not the unit section includes a distortion region.
[0071] Here, attaching a label representing an estimation result to data representing a plurality of feature quantities refers to associating the data representing a plurality of feature quantities with the estimation result in an arbitrary manner. Examples of a method for associating the data representing a plurality of feature quantities with the estimation result include a method of creating a table that associates the data representing a plurality of feature quantities with the estimation result on a one-to-one basis, and a method of storing the data representing a plurality of feature quantities in a directory corresponding to the estimation result. Note that, for example, a flash memory, an HDD, an SSD, or a combination of these can be used as the storage 31.
[0072] As shown in FIG. 9, the machine learning method M3 includes a preprocessing step S31 and a construction step S32. The pre-processing step S31 is the same as the pre-processing step S11 shown in Fig. 2. That is, the pre-processing step S31 is a step in which the processor 32 derives a plurality of feature amounts in each unit section of the cross-sectional profile of the surface model SM to be input to the trained model LM. In the pre-processing step S31, the processor 32 sets a set of data representing a plurality of feature amounts in each unit section as a training dataset DS.
[0073] Each learning dataset DS includes data representing multiple feature amounts in each unit interval. The data representing multiple feature amounts in each unit interval included in each learning dataset DS is data representing multiple feature amounts derived for each of multiple unit intervals set in the cross-sectional profile of the surface model, similar to the data representing multiple feature amounts in each unit interval input to the trained model LM.
[0074] Furthermore, in the pre-processing step S31, a label representing the estimation result described above is attached to the multiple feature amounts derived for each unit interval.
[0075] In the construction step S32, the processor 32 is configured to execute a construction process in which the learning dataset DS stored in the storage 31 is expanded on the memory 33, and a learned model LM is constructed by supervised machine learning using the learning dataset DS. As described above, the learned model LM is an algorithm that inputs a plurality of feature quantities derived for each of a plurality of unit sections set in the cross-sectional profile of the surface model, and outputs an estimation result of whether or not each unit section of the cross-sectional profile contains a distortion region. As the processor 32, for example, a CPU, a GPU, a microprocessor, a digital signal processor, a microcontroller, an ASIC such as a TPU, or a combination thereof can be used. The processor 32 functions as a control unit in one aspect of the present invention, and is sometimes called a "computing device". The memory 33 is configured to store the trained model LM obtained by executing the construction process by the processor 32. For example, a semiconductor RAM can be used as the memory 33. The trained model LM stored in the memory 33 may be stored (non-volatilely stored) in the storage 31 described above.
[0076] Although the machine learning method M3 including the construction process for constructing the trained model LM is executed by a single processor 32 installed in a single computer, the present invention is not limited to this. That is, it is also possible to adopt a configuration in which the machine learning method M3 is executed jointly by multiple processors installed in a single computer or distributed among multiple computers.
[0077] In addition, although the configuration in which the learning dataset DS is stored in a single storage 31 provided in a single computer has been described here, the present invention is not limited to this. That is, it is also possible to adopt a configuration in which the learning dataset DS is distributed and stored in a plurality of storages provided in a single computer or distributed among a plurality of computers. In addition, the learning dataset DS does not need to be stored in the storage 31 built into the computer together with the processor 32 and the memory 33, and may be stored in a cloud server configured to be able to communicate with the computer via a network.
[0078] In addition, although the configuration in which the trained model LM is stored in a single memory 33 provided in a single computer has been described here, the present invention is not limited to this. In other words, it is also possible to adopt a configuration in which the trained model LM is stored in a single computer or in a distributed manner in multiple memories provided in multiple computers.
[0079] The program for causing the processor 32 to execute the machine learning method M3 is recorded, for example, in a computer-readable, non-transitory, tangible recording medium. The processor 32 executes the determination method S1 by executing instructions included in the program. This recording medium may be the storage 31, the memory 33, or another recording medium. For example, a tape, a disk, a card, a semiconductor memory, or a programmable logic circuit may be used as the other recording medium.
[0080] According to the machine learning device 3, it is possible to construct a trained model LM used by the above-mentioned distortion region estimation device 1. Moreover, the teacher data used for machine learning is data representing a plurality of feature amounts in each unit section constituting each cross-sectional profile of the surface model SM, to which a label indicating an estimation result of whether or not the unit section contains a distortion region has been attached. Conventionally, the determination of whether or not the surface model SM contains a distortion region has been performed by an operator visually checking the surface model SM after displaying the surface model SM on a display. Therefore, when creating teacher data, the operator can easily determine whether or not there is a distortion region. Alternatively, the result of the visual confirmation that has already been accumulated can be used as teacher data. Therefore, according to the machine learning device 3, it is possible to easily create highly accurate teacher data. The same can be said about the machine learning method M3 performed using the machine learning device 3 and the program that operates a computer as the machine learning device 3.
[0081] In this embodiment, the machine learning method M3 for constructing the trained model LM and the estimation method for estimating the presence or absence of a distorted region using the trained model LM are respectively executed in two devices, but the present invention is not limited to this. That is, the present invention also includes an embodiment in which the machine learning method M3 for constructing the trained model LM and the estimation method for estimating the presence or absence of a distorted region using the trained model LM are executed in one device.
[0082] [Modification of the Estimation Step] The estimation step S12 of the distortion area estimation method M1 shown in FIG. 2 is configured such that the processor 12 uses the learned model LM to estimate the presence or absence of a distortion area that may be included in a line (in this embodiment, a cross-sectional profile) included in the surface model SM and that appears visually distorted due to an optical illusion.
[0083] However, a modified example of the estimation step S12 may be configured to estimate a distortion region that may be included in the surface model SM without using the trained model LM. In this case, the processor 12 performs a principal component analysis (PCA) on the multiple features (20 features in this embodiment) derived in the preprocessing step S11, and converts them into two-dimensional features (hereinafter referred to as PCA features).
[0084] The upper part of Fig. 10 is a scatter plot in which the PCA features are plotted on a two-dimensional plane, and the lower part of Fig. 10 is an enlarged scatter plot of a part of the upper part of Fig. 10.
[0085] In a modified example of the estimation step S12, a region R (see the lower part of FIG. 10) that the processor 12 estimates to include a distortion region for each unit section of the cross-sectional profile of the surface model SM on the two-dimensional plane on which the PCA features are plotted is determined in advance. The modified example of the estimation step S12 utilizes the tendency that when features of unit sections including a distortion region are converted into PCA features, they tend to gather in a specific region on the two-dimensional plane. In this way, by configuring the estimation step S12 using the PCA features, it is possible to estimate a distortion region that may be included in the surface model SM without using the trained model LM.
[0086] In this modification, PCA is performed on the multiple feature quantities derived in the pre-processing step S11. However, the multiple feature quantities used in this modification can be changed as appropriate. In addition, the region R that defines the feature quantities of the unit section including the distortion region can also be changed as appropriate. EXAMPLES
[0087] A machine learning device 3 and a distortion region estimation device 1 included in the distortion region estimation system S shown in Fig. 1 were used to estimate a distortion region that may be included in the cross-sectional profile of a surface model SM. In this embodiment, a Bayesian Gaussian Mixture model, a Support Vector Machine, and Gradient Boosting (LightGBM) were used as algorithms for the trained model LM. Hereinafter, the Bayesian Gaussian Mixture model, the Support Vector Machine, and Gradient Boosting will be referred to as a first embodiment, a second embodiment, and a third embodiment, respectively.
[0088] In the first to third examples, the same data set was used in each of the learning phase, the trial phase (verification phase), and the practical phase (estimation phase). These data sets correspond to 12214 unit sections obtained from multiple cross-sectional profiles of the surface models SM of 13 parts. In this example, in each of the first to third examples, of the 12214 unit sections, 7816 (64% of the total) were used in the learning phase, 1955 (16% of the total) were used in the trial phase, and 2443 (20% of the total) were used in the practical phase. Note that the machine learning device 3 was used in the learning phase, and the trained model LM obtained by the machine learning device 3 executing the machine learning method M3 was provided to the distortion region estimation device 1. The distortion region estimation device 1 was used in the trial phase and the practical phase.
[0089] In the estimation step S12 using the trained model LM, as described above, 20 feature quantities corresponding to each unit interval were input, and an estimation result of whether or not the unit interval contained a distorted area was output. The output estimation result was "1" if the unit interval contained a distorted area, and "0" if the unit interval did not contain a distorted area.
[0090] In addition, the estimation results using the trained model LM were evaluated in the following three ways. Correct: The part that the operator judged to be distorted was also judged to be distorted by the trained model LM. Undetected: The trained model LM did not detect a part that the operator judged to be a distortion. Overdetection: The trained model LM estimated a part as being distorted that the operator did not judge to be distorted.
[0091] The higher the percentage of correct answers (correct answer rate), the higher the evaluation. The lower the percentage of undetected answers (undetected rate), the higher the evaluation. It is acceptable for the percentage of overdetected answers (overdetected rate) to not reach 0%.
[0092] In addition, the judgment of the presence or absence of a distorted area in a part may be ambiguous even for an operator, and depends on the operator's skill. Therefore, if the overdetection rate is extremely low, it is considered that suspicious cases that may be considered to be distortion are overlooked, and is not desirable as a trained model LM.
[0093] The trained model LM employing the Bayesian Gaussian mixture model in the first embodiment had 32 correct answers, 11 undetected cases, and 161 overdetected cases in the 2,443 cases in the practical phase. The trained model LM employing the support vector machine in the second embodiment had 34 correct answers, 9 undetected cases, and 10 overdetected cases. The trained model LM employing the gradient boosting in the third embodiment had 38 correct answers, 5 undetected cases, and 98 overdetected cases.
[0094] In the first example, there were the most non-detections and over-detections. There were also parts with zero correct answers. In addition, when the workers checked the unit sections that were estimated to be over-detected, there were many parts that did not look like distortion.
[0095] In the second example, the number of correct answers and non-detections was not bad, but the number of overdetections was low. Therefore, there is a high possibility that parts that look like distortions and may be overlooked by some workers may not be extracted.
[0096] The third example was deemed appropriate, with a small number of undetected cases and an intermediate number of overdetected cases between those of the first and second examples. When the workers checked the unit sections estimated to be overdetected, they found that some unit sections were extracted that looked distorted depending on how they were viewed.
[0097] From the above results, it was found that gradient boosting is a preferable algorithm for the learned model LM used in the distortion region estimation system S.
[0098] 〔summary〕 A distorted area estimation device according to a first aspect of the present invention includes a control unit that executes an estimation step of estimating a distorted area that may be included in a three-dimensional surface model and that appears visually distorted due to an optical illusion.
[0099] According to the above configuration, it is possible to detect visual distortion that may occur in a three-dimensional surface model and that is caused by an optical illusion.
[0100] Furthermore, in a distorted area estimation device according to a second aspect of the present invention, in addition to the configuration of the distorted area estimation device according to the first aspect described above, a configuration is adopted in which the control unit further executes a preprocessing step before the estimation step, the estimation step uses a trained model constructed by supervised learning to estimate a distorted area that may be included in a line included in the surface model and that appears visually distorted due to an optical illusion, the preprocessing step includes a feature derivation step of setting a plurality of unit intervals in the line included in the surface model and deriving features indicating characteristics of a shape of each unit interval, an input of the trained model is the feature derived for each unit interval, and an output of the trained model is an estimation result of whether or not each unit interval includes the distorted area.
[0101] According to the above configuration, it is possible to output an estimation result of whether or not the trained model to which the feature amount derived for each unit section is input includes the distorted region for each unit section. Therefore, by using this distorted region estimation device, it is possible to detect visual distortion caused by an optical illusion, which is a distortion that may occur in a three-dimensional surface model.
[0102] Furthermore, in a distorted region estimation device according to a third aspect of the present invention, in addition to the configuration of the distorted region estimation device according to the second aspect described above, a configuration is adopted in which the lines included in the surface model are a cross-sectional profile of the surface model, and the pre-processing step sets the plurality of unit intervals in the cross-sectional profile and derives the feature amount of each unit interval.
[0103] As the line used to derive the feature amount, a cross-sectional profile of the surface model is suitable.
[0104] Furthermore, in a distorted area estimation device according to a fourth aspect of the present invention, in addition to the configuration of the distorted area estimation device according to the third aspect described above, a configuration is adopted in which the pre-processing step further includes a cross-sectional profile generating step of generating a plurality of the cross-sectional profiles from a surface profile of the surface model.
[0105] According to the above configuration, it is possible to detect a distortion area that may occur in a surface model by using a plurality of cross-sectional profiles, and therefore, a user can two-dimensionally grasp an area where distortion occurs in the surface model.
[0106] Furthermore, in a distorted region estimation device according to a fifth aspect of the present invention, in addition to the configuration of the distorted region estimation device according to the fourth aspect described above, a configuration is adopted in which the multiple cross-sectional profiles generated in the cross-sectional profile generation step are multiple cross sections represented in an oblique coordinate system formed by three mutually intersecting axes, and are cross-sectional profiles in multiple cross sections parallel to a plane defined by two of the three axes.
[0107] It is preferable that adjacent cross-sectional profiles of the multiple cross-sectional profiles are parallel to each other. It is more preferable that adjacent cross-sectional profiles are parallel to each other and are equally spaced. By having adjacent cross-sectional profiles be equally spaced, the probability of overlooking a distortion region whose size is larger than the interval can be reduced.
[0108] Furthermore, in a distorted region estimation device according to a sixth aspect of the present invention, in addition to the configuration of the distorted region estimation device according to the fifth aspect described above, a configuration is adopted in which the three axes are the x-axis, the y-axis, and the z-axis, respectively, and the cross-sectional profiles are cross-sectional profiles at (1) a plurality of cross sections parallel to the xy plane and equally spaced, (2) a plurality of cross sections parallel to the yz plane and equally spaced, and (3) a plurality of cross sections parallel to the zx plane and equally spaced.
[0109] According to the above configuration, when the cross-sectional profile generating step generates the cross-sectional profile, the pre-processing step can be automatically performed without taking into account the orientation of the surface model, thereby improving the efficiency of estimating the distortion region.
[0110] Furthermore, in a distorted region estimation device according to a seventh aspect of the present invention, in addition to the configuration of the distorted region estimation device according to any one of the third to sixth aspects described above, each of the cross-sectional profiles is configured by connecting N curves (N is an integer equal to or greater than 3) in series, and each of the curves is configured by a single spline curve, and the feature derivation step employs a configuration in which a first section consisting of the i-th spline curve (i is an integer equal to or greater than 2 and equal to or less than N-1), a second section consisting of the i-1th spline curve, and a third section consisting of the i+1th spline curve are defined as the unit section, and the feature of each unit section is derived.
[0111] When the surface model is CAD data handled by a three-dimensional CAD, the surface profile is made up of a plurality of constituent surfaces. In such a case, the cross-sectional profile is made up of a plurality of spline curves connected together, so that the above configuration can be suitably used.
[0112] Furthermore, in a distorted region estimation device according to an eighth aspect of the present invention, in addition to the configuration of the distorted region estimation device according to the seventh aspect described above, a configuration is adopted in which M pseudo line segments obtained by equally dividing each of the first section, the second section, and the third section into M sections (M is an integer equal to or greater than 2), are defined as line segment L1j, line segment L2j, and line segment L3j (j is an integer equal to or greater than 1 and equal to or less than M), and the feature derivation step derives, as the feature of each unit section, at least a maximum value of a change in an angle between adjacent line segment L1j and line segment L1j+1 in the first section, a maximum value of a change in an angle between adjacent line segment L2j and line segment L2j+1 in the second section, and a maximum value of a change in an angle between adjacent line segment L3j and line segment L3j+1 in the third section.
[0113] Examples of the feature amount include the feature amounts described above. By using at least these feature amounts, it is possible to accurately estimate the distortion occurring in a unit section in which a first section with a relatively small curvature is sandwiched between a second section and a third section with a relatively large curvature.
[0114] A distorted area estimation method according to a ninth aspect of the present invention includes an estimation step of estimating a distorted area that may be included in a three-dimensional surface model and that appears visually distorted due to an optical illusion. Furthermore, a distorted area estimation method according to a tenth aspect of the present invention, in addition to the configuration of the distorted area estimation method according to the ninth aspect described above, further includes a preprocessing step executed before the estimation step, in which the estimation step uses a trained model constructed by supervised learning to estimate a distorted area that may be included in a line included in the surface model and that appears visually distorted due to an optical illusion, the preprocessing step includes a feature derivation step of setting a plurality of unit intervals in the line included in the surface model and deriving features indicating characteristics of a shape of each unit interval, an input of the trained model being the feature derived for each unit interval, and an output of the trained model being an estimation result as to whether or not each unit interval includes the distorted area.
[0115] Furthermore, in a distorted area estimation method according to an eleventh aspect of the present invention, in addition to the configuration of the distorted area estimation method according to the tenth aspect described above, a configuration is adopted in which the lines included in the surface model are a cross-sectional profile of the surface model, and the pre-processing step sets the plurality of unit intervals in the cross-sectional profile and derives the feature amount of each unit interval.
[0116] Furthermore, in a distorted area estimation method according to a twelfth aspect of the present invention, in addition to the configuration of the distorted area estimation method according to the eleventh aspect described above, a configuration is adopted in which the pre-processing step further includes a cross-sectional profile generating step of generating a plurality of the cross-sectional profiles from a surface profile of the surface model.
[0117] The distorted region estimating methods according to the ninth to twelfth aspects of the present invention respectively achieve the same effects as the distorted region estimating devices according to the first to fourth aspects of the present invention.
[0118] A machine learning device according to a thirteenth aspect of the present invention includes a control unit that executes a preprocessing step and a construction step of constructing a trained model by supervised learning using a training dataset, the trained model estimating a distortion area that may be included in a line included in a three-dimensional surface model and that appears visually distorted due to an optical illusion, the preprocessing step including a feature derivation step of setting a plurality of unit intervals in the line included in the surface model and deriving features indicating characteristics of the shape of each unit interval, the input of the trained model being the features derived for each unit interval, and the output of the trained model being an estimation result of whether or not each unit interval contains the distortion area.
[0119] A machine learning method according to a fourteenth aspect of the present invention includes a preprocessing step and a construction step in which a control unit constructs a trained model by supervised learning using a training dataset, the trained model estimating a distortion area that may be included in a line included in a three-dimensional surface model and that appears visually distorted due to an optical illusion, the preprocessing step including a feature derivation step of setting a plurality of unit intervals in the line included in the surface model and deriving features indicating characteristics of the shape of each unit interval, the input of the trained model being the features derived for each unit interval, and the output of the trained model being an estimation result of whether or not each unit interval contains the distortion area.
[0120] The machine learning device according to the thirteenth aspect of the present invention and the machine learning method according to the fourteenth aspect of the present invention each achieve the same effects as the distortion area estimation device according to the second aspect of the present invention.
[0121] [Additional Notes] The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope of the claims. Other embodiments obtained by appropriately combining the technical means disclosed in the above-described embodiments are also included in the technical scope of the present invention. [Explanation of symbols]
[0122] 1. Distortion area estimation device 11. Memory 12 processors M1 Distortion Area Estimation Method S11 Pretreatment step S12 Estimation step 2. 3D CAD 3. Machine learning equipment 31 Storage 32 processors 33 Memory LM pre-trained model DS Training Dataset
Claims
1. a control unit that executes an estimation step of estimating a distortion area that may be included in a three-dimensional surface model and that appears visually distorted due to an optical illusion; A distortion area estimation device comprising:
2. The control unit further performs a pre-processing step before the estimation step, The estimation step estimates a distortion area that may be included in a line included in the surface model and that appears visually distorted due to an optical illusion, using a learned model constructed by supervised learning; the pre-processing step includes a feature amount deriving step of setting a plurality of unit sections on the line included in the surface model and deriving feature amounts indicating characteristics of a shape of each unit section; An input of the trained model is the feature amount derived for each unit interval, The output of the trained model is an estimation result of whether or not each unit section includes the distortion region. The distortion region estimating device according to claim 1 .
3. the lines included in the surface model are cross-sectional profiles of the surface model; the pre-processing step includes setting the plurality of unit sections in the cross-sectional profile and deriving the feature amount of each unit section; 3. The distortion area estimation device according to claim 2.
4. The pre-processing step further includes a cross-sectional profile generating step of generating a plurality of the cross-sectional profiles from a surface profile of the surface model.
4. The distortion area estimation device according to claim 3.
5. The plurality of cross-sectional profiles generated in the cross-sectional profile generating step are cross sections represented by an oblique coordinate system formed by three mutually intersecting axes, and are cross-sectional profiles in a plurality of cross sections parallel to a plane defined by two of the three axes.
5. The distortion area estimation device according to claim 4.
6. The three axes are defined as the x-axis, the y-axis, and the z-axis, The cross-sectional profiles are: (1) a plurality of cross sections parallel to an xy plane and equally spaced apart; (2) a plurality of cross sections parallel to a yz plane and equally spaced apart; and (3) a plurality of cross sections parallel to a zx plane and equally spaced apart. The distortion area estimation device according to claim 5 .
7. Each of the cross-sectional profiles is configured by connecting N curves in series (N is an integer equal to or greater than 3), each of the curves is constructed from a single spline curve; the feature deriving step defines a section as the unit section, the section being composed of a first section composed of an i-th spline curve (i is an integer not less than 2 and not more than N-1), a second section composed of an i-1-th spline curve, and a third section composed of an i+1-th spline curve, and derives the feature of each unit section; 7. The distortion region estimating device according to claim 3, wherein the distortion region estimating device comprises: a first section for estimating a distortion area;
8. M pseudo line segments obtained by equally dividing each of the first section, the second section, and the third section into M sections (M is an integer equal to or greater than 2) are defined as a line segment L1j, a line segment L2j, and a line segment L3j (j is an integer equal to or greater than 1 and equal to or less than M), the feature deriving step derives, as features for each unit section, at least a maximum value of an angle change between adjacent line segments L1j and L1j+1 in the first section, a maximum value of an angle change between adjacent line segments L2j and L2j+1 in the second section, and a maximum value of an angle change between adjacent line segments L3j and L3j+1 in the third section; The distortion region estimating device according to claim 7 .
9. a step of estimating a distortion area that may be included in the three-dimensional surface model and that appears visually distorted due to an optical illusion; A method for estimating a distorted area comprising:
10. further comprising a pre-processing step performed before said estimation step; The estimation step estimates a distortion area that may be included in a line included in the surface model and that appears visually distorted due to an optical illusion, using a learned model constructed by supervised learning; the pre-processing step includes a feature amount deriving step of setting a plurality of unit sections on the line included in the surface model and deriving feature amounts indicating characteristics of a shape of each unit section; An input of the trained model is the feature amount derived for each unit interval, The output of the trained model is an estimation result of whether or not each unit section includes the distortion region. The method for estimating a distorted region according to claim 9 .
11. the lines included in the surface model are cross-sectional profiles of the surface model; the pre-processing step includes setting the plurality of unit sections in the cross-sectional profile and deriving the feature amount of each unit section; The method for estimating a distorted region according to claim 10 .
12. The pre-processing step further includes a cross-sectional profile generating step of generating a plurality of the cross-sectional profiles from a surface profile of the surface model. The method for estimating a distorted region according to claim 11 .
13. The present invention includes a control unit that executes a preprocessing step and a construction step of constructing a trained model that estimates a distortion area that may be included in a line included in a three-dimensional surface model and that appears visually distorted due to an optical illusion, by supervised learning using a training dataset, the pre-processing step includes a feature amount deriving step of setting a plurality of unit sections on the line included in the surface model and deriving feature amounts indicating characteristics of a shape of each unit section; An input of the trained model is the feature amount derived for each unit interval, The output of the trained model is an estimation result of whether or not each unit section includes the distortion region. A machine learning device characterized by:
14. The method includes a preprocessing step, and a construction step of constructing a trained model by supervised learning using a training dataset, the trained model estimating a distortion area that may be included in a line included in a three-dimensional surface model and that appears visually distorted due to an optical illusion, the pre-processing step includes a feature amount deriving step of setting a plurality of unit sections on the line included in the surface model and deriving feature amounts indicating characteristics of a shape of each unit section; An input of the trained model is the feature amount derived for each unit interval, The output of the trained model is an estimation result of whether or not each unit section includes the distortion region. A machine learning method comprising:
Citation Information
Patent Citations
Evaluation method for shape defect of surface to be measured
JP2003021511A
Strain evaluation device and method therefor
JP2007064728A
Object surface correction method and working method of workpiece
JP2017156170A
Information processing device
JP2022053944A
Three-dimensional cad system, three-dimensional model generating method, and storage medium for three-dimensional model generation
JP1997326046A
Cited By
A single packaging type sub-module for semiconductor transformer with excellent insulation performance
KR1020240108929A
