A method and apparatus for assisting in the design of a yacht
By acquiring yacht input parameters and part images, and utilizing linear regression and neural network models, the problem of low yacht design efficiency was solved, enabling a more efficient and accurate design process and promoting design innovation.
Patent Information
- Application Number
- CN202311339116.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-16
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-10-16
AI Technical Summary
Existing yacht design practices are inefficient, lack accuracy, require highly skilled and experienced designers, and are unable to meet diverse needs.
By acquiring the input parameters and part images of the yacht to be designed, a linear regression model is used to predict the complete parameters. Combined with clustering algorithms and convolutional neural network models, the target yacht dataset is determined and a complete image is output, thereby improving design efficiency and accuracy.
It has improved the efficiency of yacht design, promoted design innovation, enhanced the accuracy and rationality of designs, and reduced reliance on the experience of designers.
Smart Images

Figure CN117216882B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of yacht design, and in particular to an auxiliary design method and device for yachts. Background Technology
[0002] Current yacht design-aided technologies can be divided into shipbuilding software-based design and virtual reality-based design. In shipbuilding software-based yacht design, designers use specialized shipbuilding software such as Rhino and AutoCAD to create, edit, and analyze 3D models. This allows for precise modeling and analysis of yacht designs, making it suitable for complex designs. However, it demands a high level of expertise from designers, requiring them to possess specialized shipbuilding knowledge and skills.
[0003] In virtual reality-based yacht design technology, designers create virtual environments using virtual reality devices such as head-mounted displays, gloves, and trackers, and complete yacht designs within these virtual environments. This approach provides designers with an immersive experience, enabling them to better understand yacht design schemes. However, it requires expensive hardware and professional technical support. Summary of the Invention
[0004] One objective of this application is to provide an auxiliary design method and device for yachts, in order to solve the problems of low efficiency and low accuracy in yacht design under the existing technology.
[0005] To achieve the above objectives, some embodiments of this application provide an auxiliary design method for yachts, the method comprising:
[0006] The input parameters of the yacht to be designed and at least one image of the yacht part are obtained. The yacht part images include images of the flybridge, bow, stern and side.
[0007] Based on the input parameters, the missing parameters in the complete parameters of the yacht to be designed are predicted by a preset linear regression model.
[0008] Among multiple pre-defined yacht datasets, the target yacht dataset that is closest to the complete parameters is determined. The multiple yacht datasets are the clustering results obtained by using a clustering algorithm to cluster the basic yacht dataset.
[0009] Determine the feature vector corresponding to at least one part of the yacht image;
[0010] Identify at least one target yacht data point in the target yacht dataset that is most similar to the feature vector;
[0011] Output a complete image of the yacht corresponding to at least one target yacht data.
[0012] Furthermore, the input parameters include at least the yacht length and the yacht draft.
[0013] Furthermore, based on the input parameters, the missing parameters in the complete parameters of the yacht to be designed are predicted using a preset linear regression model, including:
[0014] Based on the yacht length in the input parameters, the yacht width corresponding to the yacht length is predicted by a preset linear regression model;
[0015] Based on the input parameters and the predicted yacht width, determine the complete parameters of the yacht to be designed.
[0016] Furthermore, the yacht base dataset was constructed using yacht data obtained from internet websites through web crawling technology, and the yacht data includes complete images of the yachts.
[0017] Furthermore, the method also includes:
[0018] The complete yacht images in the yacht basic dataset are divided into images of the flybridge, bow, stern, and side.
[0019] Furthermore, the method also includes:
[0020] The images of the flybridge, bow, stern, and side are respectively input into a pre-defined convolutional neural network model to obtain the corresponding feature vectors for the flybridge, bow, stern, and side.
[0021] The feature vectors of the flybridge, bow, stern, and side are combined to form the yacht feature matrix;
[0022] The dimensionality of the yacht feature matrix is reduced using principal component analysis.
[0023] Furthermore, in the target yacht dataset, at least one target yacht data point that is most similar to the feature vector is identified, including:
[0024] The cosine similarity algorithm is used to identify at least one target yacht data in the target yacht dataset that is most similar to the feature vector.
[0025] Furthermore, the clustering algorithm is the K-Means algorithm, and the K value used in the K-Means algorithm is determined by the inflection point method.
[0026] Some embodiments of this application also provide a computer-readable medium having computer-readable instructions stored thereon, which can be executed by a processor to implement the aforementioned yacht-aided design method.
[0027] Some embodiments of this application also provide an electronic device including a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device performs the aforementioned yacht auxiliary design method.
[0028] Compared with existing technologies, the solution provided in this application can acquire the input parameters of the yacht to be designed and at least one image of a yacht part. Based on the input parameters, it predicts the complete parameters of the yacht to be designed through a preset linear regression model. Then, it determines the target yacht dataset that is closest to the complete parameters from multiple preset yacht datasets, determines the feature vector corresponding to at least one image of a yacht part, determines at least one target yacht data that is most similar to the feature vector in the target yacht dataset, and outputs the complete image of the yacht corresponding to at least one target yacht data. This enables the discovery of patterns and trends in yacht design, improves yacht design efficiency, promotes yacht design innovation, and improves the accuracy of yacht design. Attached Figure Description
[0029] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0030] Figure 1 A flowchart illustrating an auxiliary design method for a yacht, provided for some embodiments of this application.
[0031] Figure 2 This is a schematic diagram illustrating the linear regression relationship between yacht length and yacht width, provided for some embodiments of this application.
[0032] Figure 3 Multiple images of the flybridge section of a yacht are provided for some embodiments of this application.
[0033] Figure 4 This is a schematic diagram of multiple yacht data in a yacht basic dataset provided for some embodiments of this application.
[0034] Figure 5 This document provides a flowchart for clustering a yacht basic dataset using the K-Means algorithm, which is provided for some embodiments of this application.
[0035] Figure 6 This is a schematic diagram showing the correspondence between the K value and the sum of squared deviations for some embodiments of this application.
[0036] Figure 7 This is a schematic diagram illustrating the clustering result obtained by using a clustering algorithm to cluster a yacht basic dataset, as provided in some embodiments of this application.
[0037] Figure 8 A network structure diagram of a convolutional neural network model provided for some embodiments of this application. Detailed Implementation
[0038] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.
[0039] Here, the yacht auxiliary design method of this application embodiment is suitable for scenarios involving the overall design of yachts.
[0040] In the current yacht design process, designers often need to start from scratch, resulting in low design efficiency. Even if there are some existing yacht design materials available for reference, the different components of yachts make it difficult to provide valuable guidance for the yacht being designed. The rationality and accuracy of yacht design often depend on the experience and ability of the designers. In addition, due to the diverse needs of yachts, if designers' design ideas and inspiration are limited to past experience, they will find it difficult to keep up with the times and meet the user experience requirements.
[0041] The yacht-aided design method provided in this application can acquire input parameters of the yacht to be designed and at least one image of a yacht part. Based on the input parameters, it predicts the complete parameters of the yacht to be designed through a preset linear regression model. Then, it determines the target yacht dataset that is closest to the complete parameters from a preset set of multiple yacht datasets, determines the feature vector corresponding to at least one yacht part image, determines at least one target yacht data that is most similar to the feature vector in the target yacht dataset, and outputs the complete yacht image corresponding to at least one target yacht data. This method can discover the patterns and trends in yacht design, improve yacht design efficiency, promote yacht design innovation, and improve the accuracy of yacht design.
[0042] Some embodiments of this application provide an auxiliary design method for yachts, such as... Figure 1 As shown, the method specifically includes the following steps:
[0043] Step S101: Obtain the input parameters of the yacht to be designed and an image of at least one part of the yacht.
[0044] Here, the main body executing the yacht's auxiliary design method is electronic equipment, which obtains the input parameters of the yacht to be designed and relevant images of the yacht parts based on the input operations of the designer.
[0045] In some embodiments of this application, the input parameters for the yacht to be designed include at least the yacht length and the yacht draft. The yacht length is the desired length of the yacht to be designed, input by the designer, and the yacht draft is the depth of the yacht to be designed, input by the designer. It is understood that the input parameters for the yacht to be designed may also include, but are not limited to, the yacht width, yacht weight, and yacht speed.
[0046] Here, a yacht part image is used to describe an image of a specific part of the yacht. Multiple yacht part images can be obtained by dividing the complete image of the yacht into specific parts. A complete yacht can be divided into multiple parts, and each part can correspond to a specific part image.
[0047] In some embodiments of this application, a complete yacht can be divided into a flybridge section, a bow section, a stern section, and a side section, which are indispensable components of yacht design. Therefore, a yacht section image obtained by dividing a complete image of the yacht according to its sections can include images of the flybridge section, the bow section, the stern section, and the side section.
[0048] It is understood that when designers input images of yacht parts, they can input one image or multiple images of yacht parts, with a maximum of four images. Each image of a yacht part describes a different part of the yacht. This application embodiment does not impose a specific limit on the number of yacht part images that designers can input.
[0049] Step S102: Based on the input parameters, predict the missing parameters in the complete parameters of the yacht to be designed using a preset linear regression model.
[0050] Here, the linear regression model is a pre-established predictive model used to predict yacht data parameters not provided by the designer based on the input parameters input by the designer. The unprovided yacht data parameters are needed in subsequent processing, so the corresponding unknown parameters are determined based on the known input parameters.
[0051] The complete parameters of the yacht to be designed include a variety of yacht-related parameters that can be used to describe various attributes of the yacht. The complete parameters may include, but are not limited to: yacht length, yacht width, yacht weight, yacht draft, etc.
[0052] In some embodiments of this application, predicting missing parameters from the complete parameters of the yacht to be designed using a preset linear regression model based on input parameters may include the following steps:
[0053] 1) Based on the yacht length in the input parameters, predict the yacht width corresponding to the yacht length using a preset linear regression model;
[0054] 2) Determine the complete parameters of the yacht to be designed based on the input parameters and the predicted yacht width.
[0055] The linear regression model here is a multiple linear regression model, used to describe the linear regression relationship between the yacht's length and its width. Figure 2 A schematic diagram illustrating a linear regression relationship between yacht length and yacht width is shown in some embodiments of this application.
[0056] Similarly, a multiple linear regression model between yacht draft and yacht weight can be pre-established, which can predict yacht weight based on yacht draft.
[0057] For example, if the input parameters provided by the designer for the yacht to be designed include the yacht's length and draft, the yacht's width and weight can be predicted through various preset linear regression models, thus obtaining the complete parameters of the yacht to be designed: yacht length, yacht width, yacht draft, and yacht weight.
[0058] Step S103: Determine the target yacht dataset that is closest to the complete parameters from among the preset multiple yacht datasets.
[0059] Here, after obtaining the complete parameters of the yacht to be designed, the distance between it and multiple preset yacht datasets is calculated based on the complete parameters, and the yacht dataset with the closest distance is determined as the target yacht dataset.
[0060] In some embodiments of this application, the preset multiple yacht datasets are clustering results obtained by clustering a basic yacht dataset using a clustering algorithm. The basic yacht dataset can be constructed using yacht data obtained from internet websites using web crawling technology. This yacht data includes complete yacht images. For example, web crawling technology can be used to crawl website content related to yacht design data on the internet, and the crawled yacht data can be used as the basic yacht dataset. The crawled yacht data may include, but is not limited to: yacht name, brand, brand's foreign language name, place of manufacture, yacht type, yacht hull, yacht length, yacht width, freshwater tank capacity, fuel tank capacity, yacht weight, yacht draft, maximum speed, reference price, yacht description, and complete yacht images.
[0061] In some embodiments of this application, the crawled yacht data can be preprocessed accordingly, and the processed yacht data can be stored as a basic yacht dataset.
[0062] Here, data preprocessing operations may include, but are not limited to, data cleaning, data imputation, and component image creation. Data cleaning removes yacht data with excessive information loss, such as deleting data lacking information on yacht length, width, and weight. Data imputation completes missing information in yacht data; for example, if yacht length, width, and weight are partially missing, the missing information can be predicted using the aforementioned pre-defined multiple linear regression model, and then used to fill in the missing information. Component image creation creates multiple yacht component images based on a complete yacht image. For example, the complete yacht image can be divided into flybridge, bow, stern, and hull images using image segmentation. Figure 3 Several images of the flybridge section of a yacht are shown in some embodiments of this application.
[0063] Figure 4 This application illustrates several embodiments of a yacht basic dataset containing multiple yacht data points, such as... Figure 4 As shown, yacht data includes various information such as yacht name, brand, country, yacht type, yacht length, yacht width, yacht weight, yacht draft, and yacht description.
[0064] In some embodiments of this application, feature extraction and dimensionality reduction can be performed on the yacht part images in the yacht basic dataset, and the resulting yacht feature matrix can be stored in the yacht basic dataset. The specific methods are described in detail later in the specification.
[0065] In some embodiments of this application, after the yacht basic dataset is created, it is clustered using a clustering algorithm, resulting in multiple yacht datasets. Here, the clustering algorithm can be the K-Means algorithm. The K-Means algorithm is an iterative clustering analysis algorithm. The algorithm's idea is to randomly select K data points from a dataset containing N data points. Each of these K data points initially represents the mean or centroid of a cluster group. The remaining data points are then assigned to the nearest cluster group, and the mean or centroid of the cluster group is updated based on the assigned data. This process of data allocation and mean or centroid updates continues until the cluster groups no longer change.
[0066] The objective function E of the K-Means algorithm can be defined as follows:
[0067]
[0068] Where x represents a point in the dataset, and C represents each data point. i Indicates clustering and grouping. The d represents the mean of the cluster groups, and d represents the mean of x and x. Euclidean distance.
[0069] Figure 5 This paper illustrates a process for clustering a yacht basic dataset using the K-Means algorithm in some embodiments of this application. The clusters are grouped into clusters, K is 3, the number of yacht data in the yacht basic dataset is 1905, the yacht data are assigned to 3 clusters after clustering, and the 3 clusters are output.
[0070] Determining a suitable value for K in the K-Means algorithm is challenging. In some embodiments of this application, the inflection point method is used to determine the K value. This method calculates the sum of squared deviations for each cluster at different K values. As the K value increases, the number of data points in each cluster decreases, and the sums of squared deviations become closer. The inflection point method focuses on the slope of the change in the sum of squared deviations; when the slope suddenly decreases from a certain K value, that K value is considered suitable. Figure 6 The following diagram illustrates a curve showing the correspondence between a K value and the sum of squared deviations in some embodiments of this application, such as... Figure 6 As shown, the K value used in the K-Means algorithm is 3.
[0071] Figure 7 This application illustrates a clustering result obtained by using a clustering algorithm to cluster a yacht basic dataset in some embodiments, such as... Figure 7 As shown, the yacht data in the basic yacht dataset is clustered into three clusters represented by different colors, and each cluster contains a different number of yacht data.
[0072] In addition, when calculating the distance between the complete parameters and multiple yacht datasets, one can calculate the Euclidean distance between the complete parameters and the average value or centroid of the multiple yacht datasets, and determine the corresponding yacht dataset with the smallest Euclidean distance as the target yacht dataset.
[0073] Step S104: Determine the feature vector corresponding to at least one part of the yacht image.
[0074] Here, a feature extraction neural network model corresponding to each yacht part image is used to extract features from the yacht part images, obtaining corresponding feature vectors. The feature vectors are used to describe the relevant features of the yacht part images. Each yacht part image corresponds to a feature extraction neural network model, which can be implemented using a convolutional neural network (CNN). For example, the flybridge image corresponds to a flybridge feature extraction neural network model, the bow image corresponds to a bow feature extraction neural network model, the stern image corresponds to a stern feature extraction neural network model, and the side image corresponds to a side feature extraction neural network model.
[0075] Step S105: Identify at least one target yacht data in the target yacht dataset that is most similar to the feature vector.
[0076] In some embodiments of this application, at least one target yacht data that is most similar to the feature vector can be determined in the target yacht dataset using a cosine similarity algorithm.
[0077] Here, the target yacht dataset includes multiple yacht data, each of which includes a corresponding yacht feature matrix. The cosine similarity between the feature vector and the yacht feature matrix is calculated, and the yacht data with the highest cosine similarity is identified as the target yacht data.
[0078] It can be understood that the meaning of "most similar to the yacht feature matrix" can be that the cosine similarity between the feature vector and a certain yacht feature matrix is the largest, or the cosine similarity value exceeds a certain preset similarity threshold. This application embodiment does not impose specific restrictions on this.
[0079] Step S106: Output a complete image of the yacht corresponding to at least one target yacht data.
[0080] After identifying one or more target yacht data, the complete image of the yacht corresponding to the target yacht data is output. Designers can gain design experience or inspiration by observing one or more complete yacht images and carry out corresponding design work on the yacht to be designed.
[0081] In some embodiments of this application, feature extraction and dimensionality reduction of yacht part images in the yacht basic dataset may include the following steps;
[0082] 1) Extract features from the images of different parts of the yacht to obtain the corresponding feature vectors;
[0083] 2) Merge the feature vectors into a yacht feature matrix;
[0084] 3) The dimensionality of the yacht feature matrix is reduced by principal component analysis algorithm.
[0085] Here, by comprehensively considering the different types of yachts, the relationship between their attributes and local areas, and based on the yacht's shape characteristics, the yacht is divided into four parts: flybridge, bow, stern, and sidewall, thereby reducing the impact of noise and other interference factors on feature extraction.
[0086] Images of yacht parts from the basic yacht dataset, such as the flybridge, bow, stern, and side, are input into a pre-defined convolutional neural network model to obtain corresponding feature vectors for the flybridge, bow, stern, and side. This convolutional neural network model is a pre-built model using convolutional neural network algorithms for feature extraction from the yacht part images.
[0087] Here, four feature subnetworks were pre-constructed for feature extraction of different parts of the yacht: flybridge feature subnetwork, bow feature subnetwork, stern feature subnetwork, and side feature subnetwork. These four feature subnetworks use different numbers of convolutional layers to extract different features of the yacht parts.
[0088] In these convolutional neural network models, the image of the yacht part is used as the model input. Different features of the yacht part image are extracted through convolutional layers, the feature dimension of the yacht part is reduced through pooling layers, and the extracted yacht part features are integrated through fully connected layers, finally outputting the feature vector of the yacht part image.
[0089] Figure 8 The following diagram illustrates the network structure of a convolutional neural network model in some embodiments of this application, such as... Figure 8 As shown, the Convolutional Neural Network (CNN) is the backbone of the model. The convolutional layers in each feature subnetwork use an input image size of 112×112×3, a kernel size of 3×3, and a stride of 1. The pooling layers use 2×2 max pooling. Fully connected layers are inserted into each feature subnetwork to achieve the final recognition result. This CNN model exhibits a certain regularity: after multiple convolutional layers, a pooling layer appears that reduces the image width and height.
[0090] In the convolutional layers, the number of channels changes systematically. The number of channels increases from 3 to 64 in the first stage, doubling with each subsequent convolutional layer, until it reaches 512 before ceasing to grow. Because the number of channels is sufficiently large, max pooling is used in the pooling layers to avoid blurring caused by averaging and to preserve all features of the convolutional layer output. After the convolutional layers, the ReLU function is used as the activation function to effectively address related nonlinear issues. Finally, by using two fully connected layers, a binary classification result is output.
[0091] Here, the yacht part images include images of the flybridge, bow, stern, and side. Each part image yields a corresponding feature vector, and the four feature vectors are combined into a yacht feature matrix.
[0092] Furthermore, the high dimensionality of the obtained yacht feature matrix hinders its subsequent use. To improve the retrieval efficiency of the yacht basic dataset, dimensionality reduction of the yacht feature matrix is necessary. In some embodiments of this application, principal component analysis (PCA) is used to reduce the dimensionality of the yacht feature matrix. Using PCA for dimensionality reduction not only removes useless noise but also significantly reduces computational cost.
[0093] In some embodiments of this application, the specific steps for dimensionality reduction of the yacht feature matrix using the PCA algorithm are as follows:
[0094] 1) Obtain the yacht feature matrix extracted using a convolutional neural network model;
[0095] 2) Zero-mean normalize each row of the yacht feature matrix (representing an attribute field), that is, subtract the mean of that row;
[0096] 3) Calculate the corresponding covariance matrix;
[0097] 4) Calculate the eigenvalues and corresponding eigenvectors of the covariance matrix;
[0098] 5) Arrange the eigenvectors into a matrix from top to bottom according to the magnitude of their corresponding eigenvalues;
[0099] 6) Take the first M rows of the matrix and use the resulting M-row matrix as the yacht feature matrix after dimensionality reduction.
[0100] The value of M here can be set according to actual needs, for example, it can be 100.
[0101] Some embodiments of this application also provide a computer-readable medium having computer-readable instructions stored thereon, which can be executed by a processor to implement the aforementioned yacht-aided design method.
[0102] Some embodiments of this application also provide an electronic device including a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the electronic device performs the aforementioned yacht auxiliary design method.
[0103] In summary, the solution provided in this application can acquire the input parameters of the yacht to be designed and at least one image of a yacht part. Based on the input parameters, it predicts the complete parameters of the yacht to be designed using a preset linear regression model. Then, it determines the target yacht dataset that is closest to the complete parameters from multiple preset yacht datasets, determines the feature vector corresponding to at least one yacht part image, determines at least one target yacht data that is most similar to the feature vector in the target yacht dataset, and outputs the complete yacht image corresponding to at least one target yacht data. This enables the discovery of patterns and trends in yacht design, improves yacht design efficiency, promotes yacht design innovation, and enhances the accuracy of yacht design.
[0104] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, and similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.
[0105] In a typical configuration of this application, both the terminal and the network device include one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0106] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0107] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media, such as modulated data signals and carrier waves.
[0108] Furthermore, a portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions invoking the methods of this application may be stored in a fixed or removable recording medium, and / or transmitted via a data stream in a broadcast or other signal carrying medium, and / or stored in the working memory of a computer device operating according to the program instructions. Here, one embodiment of this application includes a device comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the device is triggered to run methods and / or technical solutions based on the foregoing embodiments of this application.
[0109] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device in software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order.
Claims
1. A method for auxiliary design of a yacht, characterized in that, The method includes: The system acquires input parameters for the yacht to be designed and images of at least one yacht part, including images of the flybridge, bow, stern, and side. Based on the input parameters, a preset linear regression model is used to predict the missing parameters in the complete parameters of the yacht to be designed. The input parameters include at least the yacht length and the yacht draft. The complete parameters include the yacht length, the yacht width, the yacht weight, and the yacht draft. The missing parameters are the yacht width and the yacht weight, which were not input by the designer. The linear regression model is a pre-established prediction model used to predict the yacht data parameters not provided by the designer based on the input parameters input by the designer. Among a set of multiple yacht datasets, a target yacht dataset is determined that is closest to the complete parameters. The multiple yacht datasets are clustering results obtained by clustering a basic yacht dataset using a clustering algorithm. The basic yacht datasets are constructed by using web crawling technology to obtain yacht data from Internet websites. The yacht data includes yacht name, brand, foreign language name of the brand, place of manufacture, yacht type, yacht hull, yacht length, yacht width, freshwater tank capacity, fuel tank capacity, yacht weight, yacht draft, maximum speed, reference price, yacht description, and complete yacht image. Calculating the distance between the complete parameters and the multiple yacht datasets includes calculating the average value or Euclidean distance of the centroid of the complete parameters and the multiple yacht datasets respectively. Determine the feature vector corresponding to the image of at least one yacht part; Determining at least one target yacht data that is most similar to the feature vector in the target yacht dataset includes: determining at least one target yacht data that is most similar to the feature vector in the target yacht dataset using a cosine similarity algorithm, wherein the target yacht dataset includes multiple yacht data, each yacht data includes a corresponding yacht feature matrix, calculating the cosine similarity between the feature vector and the dimension-reduced yacht feature matrix, and determining one or more yacht data with the highest cosine similarity as the target yacht data; Output a complete image of the yacht corresponding to the at least one target yacht data; Based on the input parameters, the missing parameters in the complete parameters of the yacht to be designed are predicted by a preset linear regression model, including: predicting the yacht width corresponding to the yacht length based on the yacht length in the input parameters; and pre-establishing a multiple linear regression model between the yacht draft and the yacht weight to predict the yacht weight based on the yacht draft. It also includes: dividing the complete yacht image in the yacht basic dataset into images of the flybridge, bow, stern, and side; The method also includes: inputting the images of the flybridge, bow, stern, and side of the ship into a preset convolutional neural network model to obtain corresponding feature vectors for the flybridge, bow, stern, and side of the ship; synthesizing the feature vectors for the flybridge, bow, stern, and side of the ship into a yacht feature matrix; and reducing the dimensionality of the yacht feature matrix using a principal component analysis algorithm.
2. The method according to claim 1, characterized in that, The clustering algorithm is the K-Means algorithm, and the K value used in the K-Means algorithm is determined by the inflection point method.
3. A computer-readable medium having stored thereon computer-readable instructions that can be executed by a processor to implement the method as described in any one of claims 1 to 2.
4. An electronic device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein, When the computer program instructions are executed by the processor, the electronic device performs the method as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Ship retrieval method and device, electronic equipment and storage medium
CN112232289A
Ship retrieval method and device, computer equipment and storage medium
CN112232291A
