A phenotypic data analysis method, storage medium and terminal for a target object
Through three-dimensional point cloud image analysis technology, the problem of inaccurate evaluation of the number and depth of potato depression points has been solved, and rapid and accurate evaluation of potato appearance parameters has been achieved, improving the efficiency of the breeding and production process.
Patent Information
- Application Number
- CN202110314527.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-24
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-03-24
AI Technical Summary
Existing technology cannot accurately obtain the number and depth of potato sunken points, resulting in potato appearance evaluation that is not objective and accurate enough, and manual detection and two-dimensional image analysis technology cannot complete classification quickly and accurately.
By calculating the curvature of each point in the three-dimensional point cloud image of the target object, and clustering the points with negative curvature values, the number of concave points is obtained; the linearity between the average curvature of the corresponding points of each concave point and the actual measured depth is analyzed Relationship, estimate the depth of depression points; extract the symmetry parameters and size parameters of the three-dimensional point cloud image, including roundness, area ratio, etc., and build a three-dimensional grid surface model to obtain volume information.
It achieves rapid and accurate acquisition of the number and depth of potato depression points, improves the evaluation of symmetry and size parameters, ensures the objectivity and accuracy of potato phenotypic data, and improves the efficiency of the breeding and production process.
Smart Images

Figure CN112927287B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of appearance phenotype analysis, and in particular to a phenotypic data analysis method, storage medium and terminal for a target object. Background Art
[0002] Appearance phenotypic analysis of the target object can accurately obtain the phenotypic parameters of the target object, such as size, shape, symmetry parameters, etc. Applying the appearance phenotypic analysis technology to specific application scenarios can promote the development of the field to which the target object belongs to a certain extent. For example, applying this technology to the analysis of the appearance phenotype of the fruit can obtain the size, shape, symmetry and eye parameters of the fruit, etc., and can provide guidance for fruit breeding. Take potatoes as an example. As one of the most important food crops in the world, the global output of potatoes reached nearly 400 million tons in 2017, and the planting area in developing countries is still on the rise. According to my country's food strategic layout, potatoes have also been promoted to the fourth largest food product. There are many varieties of potatoes, and there are significant differences between different varieties in terms of skin hardness, size, and shape. Therefore, whether it is for potato production or breeding work, it is necessary to accurately classify potatoes of different appearances. For consumers, the right size and beautiful appearance have always been the most important purchasing factors. For production, quantifying potatoes according to their appearance characteristics and classifying them can improve consumer satisfaction and increase sales; for breeding, it can provide accurate phenotypic characteristic parameters for genetic breeding, accelerate the breeding process of new varieties, provide the market with more competitive potato varieties, and increase the income of farmers and dealers.
[0003] At present, potato grading is still at the stage of relying on manual judgment. The disadvantages are that it requires a lot of labor and has high labor costs; subjective factors account for a large proportion, and the grading is not objective and accurate, resulting in waste; the speed is slow, and it can only rely on sampling and is limited by working hours. With the development of computer image technology, it is possible to efficiently quantify potato appearance parameters using image analysis. The difficulty of using image technology to perform phenotypic analysis on potato tubers lies in the poor symmetry of potato shape. Ordinary two-dimensional images can only be acquired and analyzed at a certain angle, which leads to the following problems: 1) Due to the stacking angle, the shape judgment is not accurate enough; 2) Due to the single shooting angle, the number and density of buds (depressions) cannot be accurately obtained; 3) Two-dimensional images have no depth information, so it is impossible to obtain bud depth information. Therefore, for solving the problem of fast and accurate potato appearance evaluation, manual inspection and image analysis technology based on two-dimensional images cannot achieve satisfactory results. Summary of the invention
[0004] The purpose of the present invention is to overcome the problem that the prior art cannot objectively and accurately obtain the number and depth of depressions (bud eyes) of a target object, and to provide a phenotypic data analysis method, storage medium and terminal for the target object.
[0005] The object of the present invention is achieved through the following technical solution: A method for analyzing phenotypic data of a target object, the method comprising the steps of calculating the number and depth of depressions:
[0006] Calculate the curvature of each point in the three-dimensional point cloud image of the target object, and cluster the points with negative curvature to obtain the number of concave points of the target object;
[0007] The average curvature of the corresponding points of each concave point in the 3D point cloud image is calculated, and the linear relationship between the average curvature of the corresponding points of each concave point and the actual measured depth is analyzed to estimate the depth of the concave point.
[0008] As an option, the curvature is calculated as:
[0009]
[0010] Where N(i) is the vertex x in the three-dimensional mesh surface model. i The total number of surrounding triangles, (x i , x j ) is the side where two triangles overlap, α ij , β ij The vertices x i The angle between the two opposite vertex angles, A m Represents vertex x i The surface area of all connected triangles.
[0011] As an option, the linear relationship between the average curvature of the corresponding points of the depression point and the actual measured depth is:
[0012] D eye =a×C+b
[0013] Among them, D eye represents the measured depth of the depression, a and b are the correlation coefficients obtained by univariate linear regression, and C represents the average curvature of a single depression.
[0014] As an option, the method further comprises a symmetry parameter extraction step:
[0015] Transversely intercept multiple cross-sections of the 3D point cloud image of the target object and extract the circularity and circularity variation coefficient CV of the maximum cross-section of the cross-section CIR ;
[0016] Multiple cross-sectional views of the three-dimensional point cloud image of the target object are intercepted longitudinally, and the ratio of the maximum area to the minimum area and the area variation coefficient of the cross-sectional views are extracted.
[0017] As an option, the circularity of the maximum cross section of the cross-sectional image, the circularity coefficient of variation CV CIR The calculation formula is:
[0018] Circularity=4S / C 2
[0019]
[0020] Among them, S represents the cross-sectional area, C represents the cross-sectional perimeter, σ represents the standard deviation of the roundness of all cross-sectional surfaces, and μ represents the average roundness of all cross-sectional surfaces.
[0021] As an option, the method further comprises the steps of extracting size parameters and volume information:
[0022] Calculate the minimum volume circumscribed cuboid of the three-dimensional point cloud image according to the three principal component vectors of the three-dimensional point cloud image of the target object, and then obtain the length, width and height information of the target object; the three-dimensional point cloud image of the target object specifically includes a three-dimensional point cloud image of the target object and a base, and the target object is placed on the base;
[0023] A 3D mesh surface model is constructed based on the 3D point cloud image of the target object. All triangles are connected through the center point and the total volume of all triangles is calculated to calculate the volume information of the target object.
[0024] As an option, the size parameter and volume information extraction step further includes normalization of the point cloud position and direction:
[0025] The coordinates of the center of gravity of the point cloud data are calculated according to the coordinate information of the three-dimensional point cloud image, and the point cloud of the three-dimensional point cloud image is translated so that the center of gravity coincides with the origin;
[0026] The coordinates of all points in the three-dimensional point cloud image are used as a data set for principal component transformation, three main directions are determined according to the eigenvectors, and the first principal component direction is determined based on the base;
[0027] The first principal component direction is made to coincide with the coordinate z-axis by rotation, thus achieving normalization of the point cloud position and direction.
[0028] As an option, the method further comprises a pre-processing step:
[0029] Analyze the neighborhood of each point in the 3D point cloud image to remove outliers and / or gross error points caused by measurement errors;
[0030] The point cloud data is resampled based on smoothing and normal estimation of the moving least squares method, thereby repairing the surface unevenness or holes generated during the acquisition of the three-dimensional point cloud image.
[0031] It should be further explained that the technical features corresponding to the above options can be combined or replaced with each other to form a new technical solution.
[0032] The present invention also includes a storage medium having computer instructions stored thereon, which, when executed, execute the steps of the method for analyzing phenotypic data of a target object as described above.
[0033] The present invention also includes a terminal, including a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, and when the processor executes the computer instructions, the steps of the phenotypic data analysis method of the target object as described above are executed.
[0034] Compared with the prior art, the present invention has the following beneficial effects:
[0035] (1) The present invention calculates the curvature of the three-dimensional point cloud image of the target object and clusters the points with negative curvature, so as to accurately obtain the number of the sink points of the target object. The present invention further analyzes the linear relationship between the average curvature of the corresponding points of each sink point and the actual measured depth, that is, the average curvature of the corresponding points of each sink point is fitted with the actual measured depth, and the relationship between the depth of the sink point of the target object and the average curvature is regressed, so as to accurately estimate the depth of the sink point. The entire sink point parameter (number, depth) calculation process is fast, accurate and objective.
[0036] (2) The present invention can accurately evaluate the symmetry of the target object by calculating the roundness of the target object's cross-section, the roundness variation coefficient, the ratio of the maximum area to the minimum area, and the area variation coefficient.
[0037] (3) The present invention can quickly and accurately obtain the length, width and height information of the target object by calculating the minimum volume circumscribed cuboid of the three-dimensional point cloud image; by constructing a three-dimensional mesh surface model, the volume information of the target object is calculated, and the size parameters and volume information of the target object are accurately proposed. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The specific implementation methods of the present invention are further described in detail below in conjunction with the accompanying drawings. The accompanying drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The same reference numerals are used in these drawings to represent the same or similar parts. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0039] Figure 1 is a flow chart of the method of embodiment 1 of the present invention;
[0040] Figure 2 A schematic diagram of a three-dimensional mesh surface according to Embodiment 1 of the present invention;
[0041] Figure 3 This is a schematic diagram of a potato eye according to Example 1 of the present invention;
[0042] Figure 4 The average value C of the potato eyes in Example 1 of the present invention is mean Schematic diagram of the linear relationship with the manually measured eye depth value;
[0043] Figure 5 This is a schematic diagram of a potato cross section according to Example 1 of the present invention;
[0044] Figure 6 This is a schematic diagram of calculating the three-dimensional volume of a potato according to Example 1 of the present invention;
[0045] Figure 7 This is a flow chart of a preferred embodiment of embodiment 1 of the present invention. DETAILED DESCRIPTION
[0046] The technical solution of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] In the description of the present invention, it should be noted that the directions or positional relationships indicated by "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. are based on the directions or positional relationships described in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0048] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0049] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0050] The present invention provides a phenotypic data analysis method, storage medium and terminal for a target object, mainly to overcome the problems of existing manual phenotypic evaluation technology, such as large workload, high cost, subjective factors greatly affecting grading and classification accuracy, slow speed and low efficiency. The following embodiments take the phenotypic analysis of potato as an example.
[0051] Example 1
[0052] like Figure 1 As shown, in Example 1, a phenotypic data analysis method for a target object specifically includes the steps of calculating the number and depth of S1 buds:
[0053] S11: Calculate the curvature K of each point in the three-dimensional point cloud image of the potato, and perform clustering processing on the points with negative curvature K to obtain the number of potato eyes; specifically, the three-dimensional point cloud image of the potato can be collected by a variety of three-dimensional imaging sensors on the market, including laser scanners, structured light cameras, and three-dimensional imaging systems based on Structure-from-motion technology.
[0054] S12: Calculate the average curvature of each eyelet corresponding point in the three-dimensional point cloud image, and analyze the linear relationship between the average curvature of each eyelet corresponding point and the actual measured depth, and then estimate the depth of the eyelet.
[0055] Specifically, the points with negative curvature K in the three-dimensional point cloud image are concave points. By calculating the curvature K of the three-dimensional point cloud image of the target object and clustering the points with negative curvature K, multiple clusters can be obtained, each of which is an eye, and the number of potato eyes can be accurately obtained. More specifically, if the curvature K is negative, the three-dimensional grid surface is regarded as a concave surface, otherwise it is a convex surface. Since all eyes are concave surfaces, only vertices with negative curvature K are involved in subsequent processing, that is, by further analyzing the linear relationship between the average curvature of each eye corresponding point and the actual measured depth, the average curvature of each concave point corresponding point is fitted with the actual measured depth, and the relationship between the depth of the target object's concave point and the average curvature is regressed, thereby accurately estimating the depth of the eye, and the entire eye parameter (quantity, depth) calculation process is fast, accurate and objective.
[0056] Specifically, the eye recognition and depth estimation of the potato tuber surface are obtained by calculating the mean curvature of the point cloud. The mean curvature is used to measure the external curvature of the surface, and locally describes the curvature of a surface embedded in the surrounding space (for example, a two-dimensional surface embedded in a three-dimensional Euclidean space). The curvature K is the average of any two mutually perpendicular orthogonal curvatures at a point on the surface in space. If a set of mutually perpendicular orthogonal curvatures can be expressed as K1 and K2, then the curvature K is: K = (K1 + K2) / 2.
[0057] Furthermore, the calculation formula of the curvature K of each triangle vertex in the three-dimensional mesh surface of the present invention is:
[0058]
[0059] Where N(i) is the vertex x in the three-dimensional mesh surface model. i The total number of surrounding triangles, (x i , x j ) is the side where two triangles overlap, α ij , β ij The vertices x i The angle between the two opposite vertex angles, A m Represents vertex x i The surface area of all connected triangles, A m The calculation is performed in the following iterative manner:
[0060] a)A m Initialized to 0;
[0061] b) For vertex x i Each adjacent triangle T i , if it is a non-obtuse triangle, then A m + = A v ,(x i , x j ) is the side where two triangles overlap, α ij andβ ij are the angles of the two opposite vertex angles, A v The calculation formula is:
[0062]
[0063] like Figure 2 As shown, for an obtuse triangle, if the vertex angle x i is an obtuse angle, then A m + = area(T) / 2, otherwise A m +=area(T) / 4.
[0064] Furthermore, in order to reduce the amount of calculation in the clustering process, it is necessary to further eliminate noise points with negative curvature K. That is, the experiment found that when the curvature K is lower than -1.8, the concave surface is too shallow and none of them is a bud eye, so the threshold is set to -1.8. Vertices with curvature K lower than the threshold are extracted and do not participate in subsequent clustering processing.
[0065] Furthermore, if Figure 3 As shown, points with negative curvature K are clustered, that is, classification is performed based on the compactness of sample distribution. It arbitrarily selects a core object without a category as a seed, and then finds a set of samples that are density-reachable to this core object, which is a cluster. Points that cannot satisfy the density reachability of all core objects are marked as noise points, and then continue to select another core object without a category to find a set of density-reachable samples, that is, to obtain another cluster. This process continues until all core objects have categories, and multiple clusters, i.e., multiple buds, can be obtained. The clustering method of the present invention can cluster dense data sets of arbitrary shapes, while existing clustering algorithms such as K-Means are generally only applicable to convex data sets; in addition, the clustering method of the present invention can detect outliers (noise points) while clustering, and is insensitive to outliers in the data set; finally, the clustering results of the present invention are unbiased, while the initial values of clustering algorithms such as K-Means have a great influence on the clustering results. The specific implementation steps of the clustering method in the present invention are as follows. Figure 4 shown.
[0066] The present invention obtains the number of potato tuber buds and the corresponding depth through curvature calculation and clustering processing, which can greatly improve the efficiency of bud phenotype evaluation in breeding work and has higher accuracy than the traditional division of labor and grading method.
[0067] To further illustrate the prediction accuracy of the number of potato buds of the present invention, 50 potatoes were randomly selected as test samples in this embodiment, and the similarity between the manual measurement value and the curvature-based software measurement value was evaluated by precision and recall. The precision and recall are defined as:
[0068]
[0069] Among them, TP represents the number of buds correctly predicted as buds, FP represents the number of non-bud areas misjudged as buds, and FN represents the number of buds that have not been identified. The precision rate reflects the ratio of the number of correctly predicted images to the total number of positive class predictions, while the recall rate reflects the ratio of the number of positive classes accurately predicted as positive classes to the total number of samples. The higher the two evaluation indicators are and the closer they are to 1, the more accurate the prediction results are. In this embodiment, the precision rate and recall rate are 0.96 and 0.95 respectively, and the bud recognition effect is good and the counting is accurate.
[0070] Furthermore, in step S12, the linear relationship between the average curvature of each eye corresponding point and the actual measured depth is analyzed, that is, 20 potatoes are selected and the depths of 100 eyes are randomly measured manually, and the average curvature C is compared with the actual measured depth. mean Compare and calculate linear relationships, such as Figure 4 As shown, through univariate linear regression, C mean It has a high correlation with the manually measured depth value, with a correlation coefficient of 0.81 and a mean square error of 0.51 mm. According to the univariate linear regression coefficient, the calculation formula for the eye depth of potatoes in this embodiment is:
[0071] Depth (mm) = -0.139 × C mean +0.024
[0072] Furthermore, the method of the present invention also includes a symmetry parameter extraction step:
[0073] S21: horizontally intercepting multiple cross-sectional images of the three-dimensional point cloud image of the potato, and extracting the roundness and the roundness variation coefficient of the maximum cross section of the cross-sectional image;
[0074] S22: longitudinally intercept multiple cross-sectional views of the three-dimensional point cloud image of the potato, and extract the ratio of the maximum area to the minimum area and the area variation coefficient of the cross-sectional view. The present invention can accurately evaluate the symmetry of the target object by calculating the roundness, the roundness variation coefficient, the ratio of the maximum area to the minimum area, and the area variation coefficient of the potato cross-section.
[0075] Specifically, in this embodiment, the potato point cloud is divided into 100 equal parts by height, and a two-dimensional cross-section image perpendicular to the z-axis of the potato point cloud coordinates at each height is extracted to obtain a cross-section edge image, such as Figure 5 As shown in the figure, curve a represents the edge of the cross section, and cuboid b represents the minimum area cuboid obtained by principal component analysis. The total number of pixels within this edge represents the cross section area S, and the perimeter C of the cross section is the total number of pixels on the edge of the image. The circularity of the maximum section of the shape symmetry parameter is obtained from this. The specific calculation formula for the circularity of the maximum section of the cross section is:
[0076] Circularity=4*S / C 2
[0077] Furthermore, the coefficient of variation of roundness (CV_CIR) is obtained through the roundness of 100 cross sections, and the specific calculation formula is:
[0078]
[0079] Among them, σ and μ are the standard deviation and mean of the roundness of all sections, respectively. 99 longitudinal sections were extracted every 3.6° around the z-axis of the potato point cloud coordinates. The edge of each section was extracted and the total number of pixels within the edge was calculated to represent the cross-sectional area. The ratio of the maximum area to the minimum area (RATIO_A) was calculated, and the coefficient of variation (CV_AREA) of the 99 cross-sectional areas, that is, the ratio of the standard deviation to the mean, was calculated to obtain the potato symmetry parameter information.
[0080] Furthermore, the method also includes the step of extracting size parameters and volume information:
[0081] S31: calculating the minimum volume circumscribed cuboid of the three-dimensional point cloud image according to the three principal component vectors of the three-dimensional point cloud image of the potato, thereby obtaining the length, width, and height information of the potato; the three-dimensional point cloud image of the potato specifically includes a three-dimensional point cloud image of the potato and a base, and the potato is placed on the base;
[0082] S32: construct a three-dimensional mesh surface model based on the three-dimensional point cloud image of the potato, connect all triangles through the center point and calculate the sum of the volumes of all triangles, and then calculate the volume information of the potato.
[0083] Furthermore, in step S31, the potato tuber is placed on a blue rectangular base, and the base color has a large contrast with the color of the potato tuber itself. If a blue base is used, it is convenient for subsequent image segmentation processing. In order to retain color information, the point cloud data is saved in ply format. As a preferred option, the length and width of the base are smaller than the length and width of the potato tuber. In this embodiment, the height of the base is 60 mm, and the length and width are 30 cm respectively. More specifically, the principal component of the point cloud coordinates is the direction in which the point cloud data set is most dispersed and has the largest change in the direction of the eigenvector. The principal component of the point cloud coordinates is obtained by calculating the variance of the sample set of the eigenvalue of the point cloud data on its eigenvector. The eigenvector direction with the largest variance is the principal component of the point cloud coordinates; further, the coordinates of the minimum volume circumscribed rectangular parallelepiped are obtained through three principal component vectors. The height of the rectangular parallelepiped is the sum of the height of the potato and the height of the base. Since the length and width of the base are smaller than the length and width of the potato, the length and width of the rectangular parallelepiped correspond to the length and width of the potato respectively. The point cloud color information is further converted from the RGB color space to the HSV color space. Based on the difference between the color of the potato itself and the blue color of the base, the point cloud information related to the base can be removed by setting a threshold on the H color component. The height of the base in the coordinate system is obtained by the difference between the maximum and minimum z values of its corresponding point cloud, so the height of the potato is obtained by the difference between the height of the smallest volume external cuboid and the height of the base. Since the actual size of the base is known, the actual height, length and width information of the potato tuber can be calculated.
[0084] Furthermore, in step S32 of this embodiment, the point cloud and its normal vector are converted into a three-dimensional mesh by reconstruction based on the Possion algorithm, which can better handle the sharpness at the edge without introducing additional smoothing and is more robust to noise. Figure 6 As shown, the entire three-dimensional mesh model can be regarded as composed of many tetrahedrons with the center of gravity as the vertex, and its total volume is the sum of the volumes of all tetrahedrons. The specific calculation formula is as follows:
[0085]
[0086] Among them, V i ′ is the volume of the i-th tetrahedron, (x i1 ,y i1 , z i1 )、(x i2 ,y i2 , z i2 )、(x i3 ,y i3 , z i3 ) are the coordinates of the three vertices of the i-th triangle on the three-dimensional mesh surface, and the total volume of the closed three-dimensional mesh V total is the sum of the areas of all tetrahedrons.
[0087] Furthermore, the present invention also includes normalization processing of point cloud position and direction before the step of extracting size parameters and volume information:
[0088] S41: Calculate the centroid coordinates of the point cloud data according to the coordinate information of the three-dimensional point cloud image, and translate the point cloud of the three-dimensional point cloud image so that the centroid coincides with the origin; wherein the centroid coordinates are obtained by respectively calculating the average values of the coordinates of the three dimensions.
[0089] S42: taking the coordinates of all points in the three-dimensional point cloud image as a data set for principal component transformation, determining three principal directions according to the eigenvectors, and determining the first principal component direction based on the base; wherein the first principal component direction is consistent with the direction representing the height of the potato and the base.
[0090] S43: The direction of the first principal component is made to coincide with the coordinate z-axis by rotation, thereby achieving normalization of the point cloud position and direction.
[0091] Furthermore, the method of the present invention also includes a pretreatment step:
[0092] S51: Analyze the neighborhood of each point in the three-dimensional point cloud image to remove outliers and / or gross error points caused by measurement errors;
[0093] S52: Resample the point cloud data based on smoothing and normal estimation using the moving least squares method, and then repair the surface unevenness or holes generated during the acquisition of the three-dimensional point cloud image to eliminate the errors generated during the three-dimensional reconstruction process and ensure the accuracy of subsequent calculations.
[0094] Furthermore, in step S51, the neighborhood of each point in the three-dimensional point cloud image is analyzed, that is, a statistical outlier removal filter is used to remove outliers or gross error points caused by measurement errors. Specifically, a statistical analysis is performed on the neighborhood of each point to calculate the average distance from it to all nearby points. Assuming that the result is a Gaussian distribution, whose shape is determined by the mean and standard deviation, then points whose average distance is outside the standard range (defined by the global distance mean and variance) can be defined as outliers and removed from the data. The average distance d of the nearby points is mean , the calculation formula of standard deviation σ is:
[0095] d mean =(d1+d2+d3+…+d n ) / n
[0096]
[0097] Among them, d i is the distance of the ith adjacent point, and n is the total number of adjacent points. i The distance satisfies d i >d mean +1×σ condition, p i They are regarded as outliers and removed to prevent uneven point cloud datasets from affecting the accuracy of subsequent calculations.
[0098] As a preferred embodiment, Figure 7 As shown, the present invention, based on the acquisition of a three-dimensional point cloud image of a potato, sequentially performs an image preprocessing step, a point cloud position and direction normalization processing step, a size parameter and volume information extraction step, a symmetry parameter extraction step, and an eye number and depth calculation step, so as to quickly and accurately extract each potato phenotypic parameter information.
[0099] This embodiment mainly solves the problems of subjectivity, limitations and ambiguity of naked eye judgment in potato tuber appearance phenotype analysis, and quantifies the shape symmetry that cannot be evaluated in traditional breeding. The present invention is simple to operate and easy to use, and can provide more accurate and objective phenotypic data for bioinformaticians and potato breeders, thereby accelerating breeding work.
[0100] Of course, the present invention can be extended to other fields, such as fruit breeding, and can provide accurate and objective phenotypic data for fruit breeding through phenotypic analysis of fruit appearance.
[0101] Example 2
[0102] This embodiment provides a storage medium having the same inventive concept as that of Embodiment 1, on which computer instructions are stored, and when the computer instructions are executed, the steps of the phenotypic data analysis method of the target object described in Embodiment 1 are executed.
[0103] Based on this understanding, the technical solution of this embodiment, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0104] Example 3
[0105] This embodiment also provides a terminal, which has the same inventive concept as that of embodiment 1, and includes a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, and when the processor executes the computer instructions, the steps of the phenotypic data analysis method of the target object described in embodiment 1 are executed. The processor can be a single-core or multi-core central processing unit or a specific integrated circuit, or one or more integrated circuits configured to implement the present invention.
[0106] Each functional unit in the embodiment provided by the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0107] The above specific implementation methods are detailed descriptions of the present invention. It cannot be determined that the specific implementation methods of the present invention are limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions and substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the protection scope of the present invention.
Claims
1. A method for analyzing phenotypic data of a target object, characterized in that: The method comprises the steps of calculating the number and depth of depression points: Calculate the curvature of each point in the three-dimensional point cloud image of the target object, and cluster the points with negative curvature to obtain the number of concave points of the target object; The calculation formula for calculating the curvature of each point in the three-dimensional point cloud image of the target object is: Where N(i) is the vertex x in the three-dimensional mesh surface model. i The total number of surrounding triangles, (x i , x j ) is the side where two triangles overlap, α ij , β ij The vertices x i The angle between the two opposite vertex angles, A m Represents vertex x i The surface area of all connected triangles; The average curvature of the corresponding points of each concave point in the 3D point cloud image is calculated, and the linear relationship between the average curvature of the corresponding points of each concave point and the actual measured depth is analyzed to estimate the depth of the concave point.
2. The method for analyzing phenotypic data of a target object according to claim 1, characterized in that: The linear relationship between the average curvature of the corresponding points of the depression and the actual measured depth is: D eve =a×C+b; Among them, D eye represents the measured depth of the depression, a and b are the correlation coefficients obtained by univariate linear regression, and C represents the average curvature of a single depression.
3. The method for analyzing phenotypic data of a target object according to claim 1, characterized in that: The method further comprises a symmetry parameter extraction step: Transversely intercept multiple cross-sections of the 3D point cloud image of the target object and extract the circularity and circularity variation coefficient CV of the maximum cross-section of the cross-section CIR ; Multiple cross-sectional views of the three-dimensional point cloud image of the target object are intercepted longitudinally, and the ratio of the maximum area to the minimum area and the area variation coefficient of the cross-sectional views are extracted.
4. The method for analyzing phenotypic data of a target object according to claim 3, characterized in that: The circularity and coefficient of variation of the circularity of the maximum section of the cross-sectional diagram CIR The calculation formula is: Circularity=4*S / C′ 2 ; Where S represents the cross-sectional area, C′ represents the cross-sectional perimeter, σ represents the standard deviation of the roundness of all cross-sectional surfaces, and μ represents the average roundness of all cross-sectional surfaces.
5. The method for analyzing phenotypic data of a target object according to claim 1, characterized in that: The method also includes the steps of extracting size parameters and volume information: The minimum volume circumscribed cuboid of the three-dimensional point cloud image is calculated according to the three principal component vectors of the three-dimensional point cloud image of the target object, thereby obtaining the length, width and height information of the target object; The three-dimensional point cloud image of the target object specifically includes a three-dimensional point cloud image of the target object and a base, and the target object is placed on the base; A 3D mesh surface model is constructed based on the 3D point cloud image of the target object. All triangles are connected through the center point and the total volume of all triangles is calculated to calculate the volume information of the target object.
6. The method for analyzing phenotypic data of a target object according to claim 5, characterized in that: The size parameter and volume information extraction step also includes normalization of point cloud position and direction: The coordinates of the center of gravity of the point cloud data are calculated according to the coordinate information of the three-dimensional point cloud image, and the point cloud of the three-dimensional point cloud image is translated so that the center of gravity coincides with the origin; The coordinates of all points in the three-dimensional point cloud image are used as a data set for principal component transformation, three main directions are determined according to the eigenvectors, and the first principal component direction is determined based on the base; The first principal component direction is made to coincide with the coordinate z-axis by rotation, thus achieving normalization of the point cloud position and direction.
7. The method for analyzing phenotypic data of a target object according to claim 5, characterized in that: The method also includes a pre-processing step: Analyze the neighborhood of each point in the 3D point cloud image to remove outliers and / or gross error points caused by measurement errors; The point cloud data is resampled based on smoothing and normal estimation of the moving least squares method, thereby repairing the surface unevenness or holes generated during the acquisition of the three-dimensional point cloud image.
8. A storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed, the steps of the method for analyzing phenotypic data of a target object according to any one of claims 1 to 7 are executed.
9. A terminal comprising a memory and a processor, wherein the memory stores computer instructions that can be executed on the processor, characterized in that: When the processor runs the computer instructions, the processor performs the steps of the method for analyzing phenotypic data of a target object according to any one of claims 1 to 7.
