A factory control method and system based on artificial intelligence
By adopting artificial intelligence technology in the factory and using algorithms such as inspection equipment and twin networks to carry out automated inspections and hidden danger identification, the problem of low efficiency and accuracy of traditional factory monitoring methods is solved, and real-time monitoring and hidden danger early warning in the factory are realized. , improving the level of production management.
Patent Information
- Application Number
- CN202410324868.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-21
AI Technical Summary
Traditional factory monitoring methods rely on manual inspection and identification, which are inefficient and inaccurate. They cannot meet the real-time monitoring needs of large factories and require a lot of manpower and time for data processing, making it impossible to detect and handle production abnormalities in a timely manner.
Using artificial intelligence-based factory control methods, workstation images and point cloud data are collected through inspection equipment, and twin networks and RANSAC algorithms are used to identify and fit hidden dangers, generate quality control plans, and realize automated inspections and real-time monitoring.
It improves monitoring efficiency and accuracy, reduces missed detections and misjudgments, enables real-time monitoring and early warning of factory support structures, and improves production management levels and emergency response capabilities.
Smart Images

Figure CN118246797B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automation control technology, and in particular to an artificial intelligence-based factory control method and system. Background Art
[0002] Industrial automation is an important trend in industrial production in recent years. It aims to use advanced technical means to realize the automation and intelligence of factory production processes. Traditional manual inspection and monitoring methods can no longer meet the needs of industrial automation. On the one hand, traditional factory monitoring methods often rely on manual inspection and identification, which are inefficient and inaccurate. Especially in large factories, manual monitoring often cannot cover all production links. On the other hand, traditional factory monitoring methods require a lot of manpower and time for data processing and analysis, which cannot meet real-time requirements and make it difficult to detect and handle abnormal situations in the production process in a timely manner. Summary of the invention
[0003] This application provides an artificial intelligence-based factory control method, aiming to solve the technical problems that traditional factory monitoring methods often rely on manual inspection and identification, and require a lot of manpower and time for data processing, resulting in poor accuracy and timeliness.
[0004] In view of the above problems, the present application provides a factory control method and system based on artificial intelligence.
[0005] The first aspect disclosed in the present application provides a factory control method based on artificial intelligence, the method comprising: using patrol equipment to patrol and collect images of support structures of multiple workstations in a target factory as multiple workstation images; identifying hidden dangers on the multiple workstation images, obtaining multiple hidden danger suspicion levels, and marking multiple hidden danger workstations; scanning the support structures of the multiple hidden danger workstations to obtain multiple support structure point cloud data; according to the multiple hidden danger suspicion levels of the multiple hidden danger workstations, setting an initial fitting error range for fitting the multiple support structure point cloud data, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; fitting the multiple support structure point cloud data according to the multiple initial fitting error ranges to obtain multiple fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; according to the multiple fitted support structure point clouds, identifying and obtaining multiple hidden danger levels of the multiple hidden danger workstations, generating multiple quality control schemes, and managing the multiple hidden danger workstations.
[0006] In a second aspect disclosed in the present application, there is provided an artificial intelligence-based factory control system, the system being used for the artificial intelligence-based factory control method described above, the system comprising: a workstation image acquisition module, the workstation image acquisition module being used to collect images of a plurality of workstation support structures in a target factory through patrol equipment as a plurality of workstation images; a hidden danger workstation acquisition module, the hidden danger workstation acquisition module being used to identify hidden dangers on the plurality of workstation images, obtain a plurality of hidden danger suspicions, and mark a plurality of hidden danger workstations; a point cloud data acquisition module, the point cloud data acquisition module being used to scan the support structures of the plurality of hidden danger workstations, and obtain a plurality of support structure point cloud data; an error range acquisition module, the error range acquisition module The range acquisition module is used to set an initial fitting error range for fitting the multiple support structure point cloud data according to multiple hidden danger suspicion levels of the multiple hidden danger workstations, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; the point cloud data fitting module is used to fit the multiple support structure point cloud data according to the multiple initial fitting error ranges to obtain multiple fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; the control scheme acquisition module is used to identify and obtain multiple hidden danger levels of the multiple hidden danger workstations according to the multiple fitted support structure point clouds, generate multiple quality control schemes, and manage the multiple hidden danger workstations.
[0007] The third aspect disclosed in the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: using inspection equipment, inspecting and collecting images of support structures of multiple workstations in a target factory as multiple workstation images; performing hidden danger identification on the multiple workstation images, obtaining multiple hidden danger suspicion levels, and marking multiple hidden danger workstations; scanning the support structures of the multiple hidden danger workstations to obtain multiple support structure point cloud data; setting an initial fitting error range for fitting the multiple support structure point cloud data according to the multiple hidden danger suspicion levels of the multiple hidden danger workstations, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; fitting the multiple support structure point cloud data according to the multiple initial fitting error ranges to obtain multiple fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; identifying and obtaining multiple hidden danger levels of the multiple hidden danger workstations according to the multiple fitted support structure point clouds, generating multiple quality control schemes, and managing the multiple hidden danger workstations.
[0008] The fourth aspect disclosed in the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the following steps when executed by a processor: by patrolling and collecting images of support structures of multiple workstations in a target factory as multiple workstation images through patrolling equipment; performing hidden danger identification on the multiple workstation images, obtaining multiple hidden danger suspicion levels, and marking multiple hidden danger workstations; scanning the support structures of the multiple hidden danger workstations to obtain multiple support structure point cloud data; setting an initial fitting error range for fitting the multiple support structure point cloud data according to the multiple hidden danger suspicion levels of the multiple hidden danger workstations, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; fitting the multiple support structure point cloud data according to the multiple initial fitting error ranges to obtain multiple fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; identifying and obtaining multiple hidden danger levels of the multiple hidden danger workstations according to the multiple fitted support structure point clouds, generating multiple quality control schemes, and managing the multiple hidden danger workstations.
[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0010] By collecting images and point cloud data through inspection equipment and combining artificial intelligence technology, automatic inspection and hidden danger identification of multiple workstations in the factory are realized, which reduces manual intervention and improves monitoring efficiency and accuracy; by processing and analyzing images and point cloud data through artificial intelligence algorithms, accurate identification and positioning of hidden dangers are realized, effectively reducing the probability of missed detection and misjudgment, and improving the safety and production efficiency of the factory; with the help of the real-time processing capability of artificial intelligence algorithms, real-time monitoring and early warning of factory support structures are realized, potential safety hazards are discovered and handled in a timely manner, and the production management level and emergency response capabilities of the factory are improved. In summary, this artificial intelligence-based factory control method realizes automatic inspection, accurate hidden danger detection and real-time monitoring by introducing artificial intelligence technology, providing more reliable and efficient support for factory management and production operations.
[0011] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 A schematic diagram of a process flow of a factory control method based on artificial intelligence provided in an embodiment of the present application;
[0013] Figure 2A schematic diagram of the structure of a factory control system based on artificial intelligence provided in an embodiment of the present application;
[0014] Figure 3 This is a diagram of the internal structure of a computer device provided in an embodiment of the present application.
[0015] Explanation of the reference numerals: workstation image acquisition module 10 , hidden danger workstation acquisition module 20 , point cloud data acquisition module 30 , error range acquisition module 40 , point cloud data fitting module 50 , control scheme acquisition module 60 . DETAILED DESCRIPTION
[0016] The embodiments of the present application provide an artificial intelligence-based factory control method to solve the technical problems that traditional factory monitoring methods often rely on manual inspection and identification, and require a large amount of manpower and time for data processing, resulting in poor accuracy and timeliness.
[0017] After introducing the basic principles of the present application, various non-limiting implementation methods of the present application will be specifically introduced below in conjunction with the accompanying drawings of the specification. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0018] like Figure 1 As shown, an embodiment of the present application provides a factory control method based on artificial intelligence, the method comprising:
[0019] By using the inspection equipment, the images of the support structures of multiple workstations in the target factory are collected as the multiple workstation images;
[0020] Inspection equipment is deployed in the target factory. Inspection equipment is used to collect image data of factory equipment and structures, including cameras or other image acquisition equipment suitable for factory environments. Multiple workstation support structures are support structures in multiple identical workstations, such as steel frames.
[0021] Design the inspection route, including setting the movement trajectory of the inspection equipment or setting the positions of multiple fixed cameras to ensure coverage of each target workstation, start the inspection equipment, and inspect each workstation one by one along the predetermined route. When the inspection equipment stops at each workstation, it automatically triggers image acquisition to capture the image of the workstation support structure.
[0022] Performing hidden danger identification on the multiple workstation images to obtain multiple hidden danger suspicion levels, and marking multiple hidden danger workstations;
[0023] Select the images that need to be identified for hidden dangers from the multiple workstation images obtained, and prepare a set of images of standard support structures as references. These images represent normal situations without hidden dangers. Construct a twin network. The twin network is a special neural network structure consisting of two sub-networks with the same structure. It is used to compare the similarity of two inputs. The input of the twin network is a pair of workstation images and standard support structure images, and outputs their similarity. Use the labeled workstation images and standard support structure image pairs to train the twin network. The training goal is to enable the network to accurately distinguish between workstation images with and without hidden dangers.
[0024] The trained twin network is used to compare the similarity between the target workstation image and the standard support structure image. The hidden danger suspicion degree of each workstation image is obtained by calculating the similarity between the workstation image and the standard support structure image. A higher hidden danger suspicion degree indicates that the workstation may have greater hidden dangers, so the workstations that may have hidden dangers are marked.
[0025] Scanning the support structures of the plurality of potential danger workstations to obtain a plurality of support structure point cloud data;
[0026] Prepare point cloud scanning equipment suitable for factory environments, such as laser scanners, and use the scanning equipment to scan the supporting structure of each potential danger workstation based on the marked multiple potential danger workstations. The scanning equipment emits lasers and then receives the reflected signals to obtain the three-dimensional shape information of multiple supporting structures, and converts this information into point cloud data. Point cloud data is a three-dimensional spatial data set composed of a large number of points, and each point contains location information.
[0027] According to the multiple suspected hidden danger degrees of the multiple hidden danger workstations, an initial fitting error range for fitting the multiple support structure point cloud data is set, wherein the magnitude of the suspected hidden danger degree is positively correlated with the magnitude of the initial fitting error range;
[0028] According to the magnitude of multiple hidden danger suspicions, multiple hidden danger workstations are classified to obtain the initial fitting error range for point cloud fitting in the corresponding multiple supporting structure point cloud data. This can be achieved by setting different error range thresholds, for example, the suspicion is divided into three levels: high, medium, and low, and each corresponds to a different initial fitting error range. For each hidden danger workstation under each classification, the RANSAC algorithm is used to fit the point cloud data of its supporting structure. During the fitting process, the initial fitting error range set under the corresponding classification is used to ensure that a certain degree of noise and hidden dangers can be tolerated, thereby obtaining a more accurate fitting result.
[0029] Among them, the size of the hidden danger suspicion is positively correlated with the size of the initial fitting error range, which means that the greater the hidden danger suspicion, the greater the difference between the corresponding point cloud data of the supporting structure and the standard point cloud data. Therefore, a larger error range is used for fitting to ensure that the accurate point cloud of the supporting structure is obtained by fitting.
[0030] Fitting the plurality of support structure point cloud data according to the plurality of initial fitting error ranges to obtain a plurality of fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process;
[0031] For the point cloud data of each supporting structure, fitting is performed according to the set initial fitting error range. In the initial stage, the fitting error range is larger, allowing more noise and hidden dangers to exist. Then, the fitting error range is gradually reduced through step-by-step iteration.
[0032] During the fitting process, the RANSAC (Random Sample Consensus) algorithm is used. This algorithm estimates the parameters of the support structure by randomly sampling data, calculates the fitting error based on the estimation result, and then selects the qualified data points according to the error range. It iterates continuously until convergence, and finally obtains multiple fitting support structure point clouds.
[0033] Among them, as the iteration proceeds, the fitting error range gradually decreases. This is because as the fitting process proceeds, the fitting results become closer and closer to the actual support structure shape, and hidden dangers are gradually eliminated, so the accuracy of the fitting is also improved.
[0034] According to the multiple fitted support structure point clouds, multiple hidden danger degrees of the multiple hidden danger workstations are identified and obtained, multiple quality control schemes are generated, and the multiple hidden danger workstations are managed and controlled.
[0035] Obtain standard point cloud data of the support structure under normal conditions, which represents an ideal state without hidden dangers. Use the multiple fitted support structure point clouds that have been fitted to compare with the standard point cloud data of the support structure, and identify the hidden danger degree of the hidden danger workstation by comparing the shape, structure and other features of the two. The hidden danger degree can be determined based on the difference between the fitted point cloud and the standard point cloud. For example, if there is obvious deformation, deformation or defects inside the support structure, the hidden danger degree will increase accordingly.
[0036] According to the degree of hidden danger of each hidden danger workstation, formulate corresponding quality control plans, which include specific measures such as repair, replacement, and repositioning to ensure the safety and normal operation of the workstation. According to the generated quality control plan, multiple hidden danger workstations are controlled and corresponding repair, replacement and other measures are implemented to eliminate or reduce the existence of hidden dangers and ensure the normal operation and safety of the workstation.
[0037] Furthermore, hidden danger identification is performed on the plurality of workstation images to obtain a plurality of hidden danger suspicion levels, including:
[0038] Based on the twin network, a hidden danger identification image processor is constructed;
[0039] Acquiring a standard structure image according to the standard installation conditions of the plurality of workstation support structures;
[0040] Based on the hidden danger identification image processor, the standard structure image and multiple workstation images are input for similarity identification to obtain multiple similarities as multiple hidden danger suspicion levels;
[0041] The workstations whose hidden danger suspicion degree is greater than a preset suspicion degree threshold are marked as hidden danger workstations, and the plurality of hidden danger workstations are obtained.
[0042] The twin network is a neural network structure consisting of two sub-networks with the same structure, which is used to compare the similarity of two inputs. Here, the twin network is used to compare the similarity between the workstation image and the standard structure image to identify hidden dangers.
[0043] Construct a twin network model, which consists of two sub-networks of the same structure. Each sub-network receives an image as input and outputs a corresponding feature vector. The two feature vectors are used to calculate the similarity between the images. Use the labeled sample workstation images and standard structure images, as well as the corresponding hidden danger labels, such as hidden dangers or no hidden dangers, to train the twin network. The goal of the training is to enable the network to accurately distinguish between image pairs with hidden dangers and those without hidden dangers. Use the validation set to verify the trained twin network model, optimize the model parameters according to the validation results until the model converges, and obtain the hidden danger identification image processor.
[0044] According to the standard installation conditions of the factory, a set of standard structural images are taken. These images represent the normal installation status of the work station support structure without any hidden dangers. These images will be used as one of the inputs of the twin network to compare with the work station images and identify hidden dangers.
[0045] The standard structure image and multiple workstation images are taken as input and passed to the constructed hidden danger identification image processor. The standard structure image is compared with each workstation image using the similarity comparison function of the twin network. Specifically, the input image is encoded by the twin network processor to obtain their feature vectors. By comparing the cosine similarity between the feature vectors, their similarity is calculated and the similarity is used as the hidden danger suspicion degree of the workstation. The higher the similarity, the higher the similarity between the support structure of the workstation and the standard structure, and the lower the hidden danger suspicion degree; the lower the similarity, the greater the abnormality of the support structure of the workstation, and the higher the hidden danger suspicion degree. According to the similarity calculation results of each workstation image, multiple hidden danger suspicion degrees are generated, corresponding to multiple workstations.
[0046] A preset suspicion threshold is set to determine whether there are hidden dangers at the workstation. This threshold can be set according to actual conditions and needs. A higher suspicion threshold indicates a lower tolerance for hidden dangers, and a lower threshold indicates a higher tolerance for hidden dangers. For each workstation, check whether its corresponding hidden danger suspicion is greater than the preset suspicion threshold. If it is greater, the workstation is marked as a hidden danger workstation, indicating that there are possible hidden dangers at the workstation; if it is not greater, the workstation is not marked as a hidden danger workstation, indicating that no obvious hidden dangers have been found at the workstation for the time being. Collect the workstations marked as hidden danger workstations to obtain the multiple hidden danger workstations.
[0047] Furthermore, based on the twin network, a hidden danger identification image processor is constructed, including:
[0048] According to the monitoring data of the support structures of the multiple workstations, a set of sample workstation images is obtained, and combined with the standard structure image, a set of sample similarities is obtained;
[0049] Based on the twin network, a hidden danger recognition image processor including a first convolution channel and a second convolution channel is constructed;
[0050] The hidden danger identification image processor is trained until convergence using the sample workstation image set, the standard structure image and the sample similarity set.
[0051] The monitoring data of multiple workstation support structures are obtained from the factory's monitoring system. These monitoring data include information such as the shape, size, and position of the workstation support structures. Based on the monitoring data, a sample workstation image set is obtained by taking photos from the corresponding workstations. The sample workstation image set is compared with the standard structure image to calculate the similarity between them. The similarity can be calculated using a distance metric (such as Euclidean distance) or a correlation metric (such as cosine similarity). The similarity of each pair of workstation images and standard structure images is traversed to form a sample similarity set.
[0052] The twin network includes two identical convolutional neural networks and a fully connected layer. The two networks are symmetrical and share parameters. They are used to process two input images, namely the standard structure image and the workstation image. The fully connected layer is used to calculate the similarity between them. Based on these two identical convolutional neural networks, the first convolution channel and the second convolution channel are constructed. The two have the same structure and share parameters. They are used to extract feature vectors from the standard structure image and the workstation image respectively. The two channels are connected to the fully connected layer to form a hidden danger recognition image processor. This processor can extract image features and determine whether there are hidden dangers in the workstation by calculating similarity.
[0053] The sample workstation image set and standard structure image are used as training data, and the sample similarity set is used as the corresponding label. These data are used to train the twin network so that it can accurately judge the similarity between the workstation image and the standard structure image.
[0054] Use the training data as input and pass them into the hidden danger identification image processor for training. The goal of training is to enable the network to output similarity results that are as close as possible to the sample similarity set. Through optimization algorithms, such as stochastic gradient descent, the network parameters are continuously adjusted to make the network's prediction results as close as possible to the actual similarity until the training loss converges or reaches the set stopping condition, such as the accuracy reaches the preset condition or the number of training times reaches the requirement.
[0055] Furthermore, according to the multiple suspected degrees of hidden dangers of the multiple hidden danger workstations, setting and obtaining an initial fitting error range for fitting the multiple support structure point cloud data includes:
[0056] Based on the inspection data of multiple workstations, obtain a set of sample hidden danger suspicion levels;
[0057] Obtaining a preset fitting error range for fitting the support structure point cloud data;
[0058] According to the plurality of sample hidden danger suspicion degrees in the sample hidden danger suspicion degree set, the preset fitting error range is adjusted and calculated to obtain a sample fitting error range set;
[0059] Using the sample hidden danger suspicion degree set and the sample fitting error range set, a fitting error range classifier is constructed;
[0060] Based on the fitting error range classifier, the multiple hidden danger suspicion levels are classified to obtain multiple initial fitting error ranges.
[0061] Based on the inspection data, the hidden danger suspicion degree of each workstation is calculated according to indicators such as the abnormality degree of the workstation and the deviation from the standard structure, forming a sample hidden danger suspicion degree set. This set contains the hidden danger suspicion degree value of each workstation, reflecting the possibility of hidden dangers existing in the workstation.
[0062] According to the actual application requirements, the preset fitting error range for fitting the support structure point cloud data is determined, for example, it is set by the system engineer or domain expert based on experience, and can also be adjusted according to the specific situation. The preset fitting error range is a threshold in the fitting process, which is used to control the matching degree between the fitting result and the actual point cloud data.
[0063] According to the multiple sample hidden danger suspicions in the sample hidden danger suspicion set, the preset fitting error range is adjusted and calculated, wherein the greater the hidden danger suspicion, the greater the difference between the corresponding support structure point cloud data and the standard point cloud data, so a larger error range is used for fitting to ensure that the fitting obtains the accurate point cloud of the support structure. After adjustment and calculation, the sample fitting error range for each workstation is obtained. These ranges form a sample fitting error range set, which includes the fitting error range dynamically adjusted according to the hidden danger suspicion. Such an adjustment can flexibly adjust the error range in the fitting process according to the degree of hidden dangers that may exist in the workstation, thereby improving the accuracy and adaptability of the fitting results.
[0064] A classifier is constructed based on the set of sample hidden danger suspicion and the set of sample fitting error range. This classifier is a model used to handle classification problems, such as support vector machines, neural networks, etc. When constructing the classifier, the sample hidden danger suspicion is used as the input feature, and the sample fitting error range is used as the target label. The classifier is trained to learn the relationship between the hidden danger suspicion and the fitting error range. During the training process, the classifier learns how to classify the workstations into different categories based on the hidden danger suspicion, and assigns an appropriate fitting error range to each category. After the model training is completed and passed the evaluation, a fitting error range classifier is obtained. This classifier can dynamically select an appropriate fitting error range based on the hidden danger suspicion of the workstation, thereby improving the accuracy and adaptability of the fitting.
[0065] The suspected degree of hidden danger of each workstation is taken as input and predicted by the fitting error range classifier. The classifier divides the workstations into different categories according to the suspected degree of hidden danger of the workstations, and assigns a corresponding initial fitting error range to each category. According to the prediction results of the classifier, the corresponding initial fitting error range is determined for each workstation.
[0066] Furthermore, fitting the plurality of support structure point cloud data according to the plurality of initial fitting error ranges to obtain a plurality of fitting support structure point clouds comprises:
[0067] According to the standard structures of the plurality of workstation support structures, obtaining a fitting anchor frame;
[0068] The fitting anchor frame is compensated with the multiple initial fitting error ranges, and the multiple supporting structure point cloud data are iteratively fitted until the multiple initial fitting error ranges are reduced to 0, so as to obtain multiple fitting supporting structure point clouds.
[0069] Based on the standard structure data, the position and shape of the fitting anchor frame are determined. The fitting anchor frame is an auxiliary geometric shape used to guide the fitting algorithm to better fit the actual support structure. According to the determined position and shape, the geometric model of the fitting anchor frame is generated. These data can be directly extracted from the existing standard structure data, or simulated and generated according to the standard structure.
[0070] For each workstation, the fitting anchor frame is compensated and adjusted according to the corresponding initial fitting error range. The compensation method can be to adjust the size, shape or position of the anchor frame according to the size of the error range to adapt to the shape of the actual support structure. The adjusted fitting anchor frame is used to iteratively fit the support structure point cloud data of the corresponding workstation. The RANSAC algorithm is used to continuously adjust the fitting parameters according to the fitting anchor frame to optimize the fitting results. After each iterative fitting, the matching degree between the fitting result and the actual support structure is evaluated, and the fitting error is calculated. If the fitting error is still greater than 0, the fitting parameters are iteratively adjusted until the fitting error is reduced to 0, and multiple fitting support structure point clouds are obtained. These point cloud data represent the fitting results of the support structure of the corresponding workstation. This process can ensure that the fitting results are more in line with the actual support structure and improve the accuracy of the fitting.
[0071] Furthermore, compensating the fitting anchor frame with the multiple initial fitting error ranges and iteratively fitting the multiple support structure point cloud data includes:
[0072] The fitting anchor frame and the point cloud ratio threshold are compensated for enlarging and reducing by the multiple initial fitting error ranges to obtain multiple first fitting ranges and multiple first point cloud ratio thresholds, where the point cloud ratio threshold is a ratio threshold of scan points within the box selection area during the fitting process;
[0073] According to the multiple first fitting ranges, randomly select within the multiple support structure point cloud data to obtain multiple first fitting point clouds;
[0074] Calculating the ratio of the scan points in the plurality of first fitting point clouds, and determining whether the ratio is greater than the plurality of first point cloud ratio thresholds;
[0075] If yes, then reduce the initial fitting error range according to a preset decreasing ratio, and perform compensatory enlargement and compensatory reduction on the fitting anchor frame and the point cloud ratio threshold, and continue fitting within the plurality of first fitting point clouds; if no, re-fit according to the plurality of first fitting ranges and the plurality of first point cloud ratio thresholds;
[0076] The iterative fitting is continued until the initial fitting error range is reduced to 0, and a final plurality of fitting point clouds are obtained as the plurality of fitting support structure point clouds.
[0077] For each workstation, the fitting anchor frame is compensated for enlargement or reduction according to the corresponding initial fitting error range. Specifically, if the initial fitting error range is a positive value, the fitting anchor frame is expanded by a corresponding percentage; if it is a negative value, the fitting anchor frame is reduced by a corresponding percentage, thus obtaining multiple first fitting ranges.
[0078] According to the enlarged or reduced area of the fitting anchor box, the point cloud ratio threshold is adjusted to ensure that the ratio of the scanned points in the selected area during the fitting process remains within an appropriate range, that is, if the area of the fitting anchor box increases, the point cloud ratio threshold needs to be reduced accordingly; if the area of the fitting anchor box decreases, the point cloud ratio threshold needs to be increased accordingly. For example, the point cloud ratio threshold is 95%, and the area of the first fitting range is expanded by 8%, that is, 95%*(1-8%)=87.4%, thereby obtaining multiple first point cloud ratio thresholds.
[0079] Such adjustments can better adapt to the shape of the actual support structure and the point cloud density distribution, and improve the accuracy and stability of the fitting.
[0080] According to the multiple first fitting ranges, a box selection is randomly performed in the corresponding support structure point cloud data. The box selection method is to randomly generate a box selection area within the boundary of the point cloud data, and obtain multiple first fitting point clouds according to the box selection results.
[0081] For each selected area, the proportion of scan points is calculated. Scan points refer to point cloud data points located in the selected area. These points represent the actual shape of the support structure. The calculated scan point proportion is compared with the corresponding first point cloud proportion threshold. If the scan point proportion is greater than the corresponding threshold, the point cloud data in the selected area is considered to be dense, otherwise it is considered to be sparse.
[0082] If the calculated scan point ratio is greater than the corresponding first point cloud ratio threshold, the initial fitting error range is reduced according to the preset decreasing ratio. For example, if the preset decreasing ratio is set to 10%, if the initial fitting error range is 5%, it is reduced by 0.5% each time. The fitting anchor box and the point cloud ratio threshold are compensated for enlargement and reduction to adapt to the adjusted fitting error range. Using the adjusted fitting parameters, continue fitting in multiple first fitting point clouds to obtain more accurate fitting results.
[0083] If the calculated scanning point ratio is not greater than the corresponding first point cloud ratio threshold, re-fitting is performed according to the multiple first fitting ranges and the multiple first point cloud ratio thresholds without adjusting the error range to re-obtain the fitting result.
[0084] Use the adjusted initial fitting error range and fitting parameters to perform iterative fitting within the support structure point cloud data. In each iteration, optimize and adjust the fitting results according to the new parameters to minimize the fitting error range. After each iteration, check whether the fitting error range has been reduced to 0. If there is still an error, continue to the next round of iterations; if the error has been reduced to 0, stop the iteration and the fitting process ends. When the fitting error range is reduced to 0, the obtained fitting point cloud is the final multiple fitting support structure point clouds, and such fitting results will more accurately reflect the actual form of the support structure.
[0085] Furthermore, according to the plurality of fitted support structure point clouds, identifying and obtaining a plurality of hidden danger degrees of the plurality of hidden danger workstations includes:
[0086] Obtain a sample fitting support structure point cloud set, and obtain a sample hidden danger degree set based on the deviation between each sample fitting support structure point cloud and the standard workstation support structure;
[0087] Using the sample fitting support structure point cloud set and the sample hidden danger degree set to construct a hidden danger degree identifier;
[0088] Based on the hidden danger degree identifier, the multiple fitting support structure point clouds are identified to obtain multiple hidden danger degrees.
[0089] Get a set of sample fitting support structure point clouds. These point cloud sets are obtained through fitting and represent the morphology of multiple workstation support structures. For each sample fitting support structure point cloud, compare it with the point cloud of the standard workstation support structure and calculate the deviation between them. This can be achieved through various methods, such as point cloud registration, morphological analysis, etc. The deviation includes shape difference, size difference, position offset, etc. According to the calculated deviation between the sample support structure and the standard structure, map the deviation value to a hidden danger index to obtain the hidden danger degree of each sample support structure. The larger the deviation, the more serious the hidden danger of the support structure.
[0090] The acquired sample fitting support structure point cloud set is used as input data, and the corresponding sample hidden danger degree is used as a label. A hidden danger degree identifier is constructed based on a machine learning model, such as a neural network model. The model is trained using the sample fitting support structure point cloud set and the sample hidden danger degree set. The training process adjusts the parameters of the model so that it can better learn the relationship between the sample support structure point cloud and the corresponding hidden danger degree. After the training is completed, the model is evaluated through cross-validation, and the model is optimized according to the evaluation results until the model converges to obtain a trained hidden danger degree identifier, which can accurately identify the hidden danger degree of the fitting support structure point cloud.
[0091] The plurality of fitted support structure point clouds are identified using a constructed hidden danger degree identifier, that is, each point cloud is input into the hidden danger degree identifier, and the identifier identifies each point cloud according to the learned relationship between the sample fitted support structure point cloud set and the sample hidden danger degree set, and obtains the corresponding hidden danger degree. These hidden danger degrees represent the degree of hidden danger of each support structure, and are used to evaluate the quality status and possible problems of the support structure.
[0092] In summary, the artificial intelligence-based factory control method provided in the embodiments of the present application has the following technical effects:
[0093] 1. Through the collection of images and point cloud data by inspection equipment, combined with artificial intelligence technology, automatic inspection and hidden danger identification of multiple workstations in the factory are realized, which reduces manual intervention and improves monitoring efficiency and accuracy;
[0094] 2. Through artificial intelligence algorithms, images and point cloud data are processed and analyzed to achieve accurate identification and location of hidden dangers, effectively reducing the probability of missed detection and misjudgment, and improving factory safety and production efficiency;
[0095] 3. With the help of the real-time processing capabilities of artificial intelligence algorithms, real-time monitoring and early warning of the factory support structure are realized, potential safety hazards are discovered and dealt with in a timely manner, and the factory's production management level and emergency response capabilities are improved.
[0096] In summary, this AI-based factory control method realizes automated inspections, precise hidden danger detection, and real-time monitoring by introducing AI technology, providing more reliable and efficient support for factory management and production operations.
[0097] Based on the same inventive concept as the artificial intelligence-based factory control method in the aforementioned embodiment, Figure 2 As shown, the present application provides a factory control system based on artificial intelligence, the system comprising:
[0098] A workstation image acquisition module 10, wherein the workstation image acquisition module 10 is used to collect images of a plurality of workstation support structures in a target factory through inspection equipment as a plurality of workstation images;
[0099] A hidden danger workstation acquisition module 20, the hidden danger workstation acquisition module 20 is used to identify hidden dangers on the multiple workstation images, obtain multiple hidden danger suspicion levels, and mark multiple hidden danger workstations;
[0100] A point cloud data acquisition module 30, wherein the point cloud data acquisition module 30 is used to scan the support structures of the plurality of hidden danger workstations to acquire point cloud data of the plurality of support structures;
[0101] An error range acquisition module 40, the error range acquisition module 40 is used to set and obtain an initial fitting error range for fitting the plurality of support structure point cloud data according to a plurality of hidden danger suspicion levels of the plurality of hidden danger workstations, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range;
[0102] A point cloud data fitting module 50, wherein the point cloud data fitting module 50 is used to fit the plurality of support structure point cloud data according to a plurality of initial fitting error ranges to obtain a plurality of fitted support structure point clouds, wherein the fitting error range is gradually reduced during the fitting process;
[0103] The control scheme acquisition module 60 is used to identify and obtain multiple hidden danger degrees of the multiple hidden danger workstations according to the multiple fitted support structure point clouds, generate multiple quality control schemes, and control the multiple hidden danger workstations.
[0104] Furthermore, the system also includes multiple hidden danger workstation acquisition modules to perform the following operation steps:
[0105] Based on the twin network, a hidden danger identification image processor is constructed;
[0106] Acquiring a standard structure image according to the standard installation conditions of the plurality of workstation support structures;
[0107] Based on the hidden danger identification image processor, the standard structure image and multiple workstation images are input for similarity identification to obtain multiple similarities as multiple hidden danger suspicion levels;
[0108] The workstations whose hidden danger suspicion degree is greater than a preset suspicion degree threshold are marked as hidden danger workstations, and the plurality of hidden danger workstations are obtained.
[0109] Furthermore, the system also includes a hidden danger identification image processor training module to perform the following operation steps:
[0110] According to the monitoring data of the support structures of the multiple workstations, a set of sample workstation images is obtained, and combined with the standard structure image, a set of sample similarities is obtained;
[0111] Based on the twin network, a hidden danger recognition image processor including a first convolution channel and a second convolution channel is constructed;
[0112] The hidden danger identification image processor is trained until convergence using the sample workstation image set, the standard structure image and the sample similarity set.
[0113] Furthermore, the system further includes an initial fitting error range acquisition module to perform the following operation steps:
[0114] Based on the inspection data of multiple workstations, obtain a set of sample hidden danger suspicion levels;
[0115] Obtaining a preset fitting error range for fitting the support structure point cloud data;
[0116] According to the plurality of sample hidden danger suspicion degrees in the sample hidden danger suspicion degree set, the preset fitting error range is adjusted and calculated to obtain a sample fitting error range set;
[0117] Using the sample hidden danger suspicion degree set and the sample fitting error range set, a fitting error range classifier is constructed;
[0118] Based on the fitting error range classifier, the multiple hidden danger suspicion levels are classified to obtain multiple initial fitting error ranges.
[0119] Furthermore, the system further includes a fitting support structure point cloud acquisition module to perform the following operation steps:
[0120] According to the standard structures of the plurality of workstation support structures, obtaining a fitting anchor frame;
[0121] The fitting anchor frame is compensated with the multiple initial fitting error ranges, and the multiple supporting structure point cloud data are iteratively fitted until the multiple initial fitting error ranges are reduced to 0, so as to obtain multiple fitting supporting structure point clouds.
[0122] Furthermore, the system further includes a fitting support structure point cloud acquisition module to perform the following operation steps:
[0123] The fitting anchor frame and the point cloud ratio threshold are compensated for enlarging and reducing by the multiple initial fitting error ranges to obtain multiple first fitting ranges and multiple first point cloud ratio thresholds, where the point cloud ratio threshold is a ratio threshold of scan points within the box selection area during the fitting process;
[0124] According to the multiple first fitting ranges, randomly select within the multiple support structure point cloud data to obtain multiple first fitting point clouds;
[0125] Calculating the ratio of the scan points in the plurality of first fitting point clouds, and determining whether the ratio is greater than the plurality of first point cloud ratio thresholds;
[0126] If yes, then reduce the initial fitting error range according to a preset decreasing ratio, and perform compensatory enlargement and compensatory reduction on the fitting anchor frame and the point cloud ratio threshold, and continue fitting within the plurality of first fitting point clouds; if no, re-fit according to the plurality of first fitting ranges and the plurality of first point cloud ratio thresholds;
[0127] The iterative fitting is continued until the initial fitting error range is reduced to 0, and a final plurality of fitting point clouds are obtained as the plurality of fitting support structure point clouds.
[0128] Furthermore, the system further includes a hidden danger degree acquisition module to perform the following operation steps:
[0129] Obtain a sample fitting support structure point cloud set, and obtain a sample hidden danger degree set based on the deviation between each sample fitting support structure point cloud and the standard workstation support structure;
[0130] Using the sample fitting support structure point cloud set and the sample hidden danger degree set to construct a hidden danger degree identifier;
[0131] Based on the hidden danger degree identifier, the multiple fitting support structure point clouds are identified to obtain multiple hidden danger degrees.
[0132] Through the above detailed description of an artificial intelligence-based factory control method in this specification, those skilled in the art can clearly understand an artificial intelligence-based factory control system in this embodiment. Since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0133] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 3As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store news data and data such as time decay factors. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program is executed by the processor to implement a factory control method based on artificial intelligence.
[0134] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0135] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: using a patrol device, patrolling and collecting images of support structures of multiple workstations in a target factory as multiple workstation images; performing hidden danger identification on the multiple workstation images, obtaining multiple hidden danger suspicion levels, and marking multiple hidden danger workstations; scanning the support structures of the multiple hidden danger workstations to obtain multiple support structure point cloud data; setting an initial fitting error range for fitting the multiple support structure point cloud data according to the multiple hidden danger suspicion levels of the multiple hidden danger workstations, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; fitting the multiple support structure point cloud data according to the multiple initial fitting error ranges to obtain multiple fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; identifying and obtaining multiple hidden danger levels of the multiple hidden danger workstations according to the multiple fitted support structure point clouds, generating multiple quality control schemes, and managing the multiple hidden danger workstations.
[0136] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: by using patrol equipment, patrol and collect images of support structures of multiple workstations in a target factory as multiple workstation images; perform hidden danger identification on the multiple workstation images, obtain multiple hidden danger suspicion levels, and mark multiple hidden danger workstations; scan the support structures of the multiple hidden danger workstations to obtain multiple support structure point cloud data; according to the multiple hidden danger suspicion levels of the multiple hidden danger workstations, set an initial fitting error range for fitting the multiple support structure point cloud data, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; according to the multiple initial fitting error ranges, fit the multiple support structure point cloud data to obtain multiple fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; according to the multiple fitted support structure point clouds, identify and obtain multiple hidden danger levels of the multiple hidden danger workstations, generate multiple quality control schemes, and manage the multiple hidden danger workstations.
[0137] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0138] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A factory control method based on artificial intelligence, characterized in that: The method comprises: By using the inspection equipment, the images of the support structures of multiple workstations in the target factory are collected as the multiple workstation images; Performing hidden danger identification on the multiple workstation images to obtain multiple hidden danger suspicion levels, and marking multiple hidden danger workstations; Scanning the support structures of the plurality of potential danger workstations to obtain a plurality of support structure point cloud data; According to the multiple suspected hidden danger degrees of the multiple hidden danger workstations, an initial fitting error range for fitting the multiple support structure point cloud data is set, wherein the magnitude of the suspected hidden danger degree is positively correlated with the magnitude of the initial fitting error range; Fitting the plurality of support structure point cloud data according to the plurality of initial fitting error ranges to obtain a plurality of fitted support structure point clouds, wherein the fitting error range gradually decreases during the fitting process; According to the multiple fitted support structure point clouds, multiple hidden danger degrees of the multiple hidden danger workstations are identified and obtained, multiple quality control schemes are generated, and the multiple hidden danger workstations are managed and controlled.
2. The method according to claim 1, characterized in that Hidden danger identification is performed on the multiple workstation images to obtain multiple hidden danger suspicion levels, including: Based on the twin network, a hidden danger identification image processor is constructed; Acquiring a standard structure image according to the standard installation conditions of the plurality of workstation support structures; Based on the hidden danger identification image processor, the standard structure image and multiple workstation images are input for similarity identification to obtain multiple similarities as multiple hidden danger suspicion levels; The workstations whose hidden danger suspicion degree is greater than a preset suspicion degree threshold are marked as hidden danger workstations, and the plurality of hidden danger workstations are obtained.
3. The method according to claim 2, characterized in that Based on the twin network, a hidden danger identification image processor is built, including: According to the monitoring data of the support structures of the multiple workstations, a set of sample workstation images is obtained, and combined with the standard structure image, a set of sample similarities is obtained; Based on the twin network, a hidden danger recognition image processor including a first convolution channel and a second convolution channel is constructed; The hidden danger identification image processor is trained until convergence using the sample workstation image set, the standard structure image and the sample similarity set.
4. The method according to claim 1, characterized in that: According to the multiple suspected degrees of hidden dangers of the multiple hidden danger workstations, setting and obtaining an initial fitting error range for fitting the multiple support structure point cloud data includes: Based on the inspection data of multiple workstations, obtain a set of sample hidden danger suspicion levels; Obtaining a preset fitting error range for fitting the support structure point cloud data; According to the plurality of sample hidden danger suspicion degrees in the sample hidden danger suspicion degree set, the preset fitting error range is adjusted and calculated to obtain a sample fitting error range set; Using the sample hidden danger suspicion degree set and the sample fitting error range set, a fitting error range classifier is constructed; Based on the fitting error range classifier, the multiple hidden danger suspicion levels are classified to obtain multiple initial fitting error ranges.
5. The method according to claim 1, characterized in that Fitting the plurality of support structure point cloud data according to the plurality of initial fitting error ranges to obtain a plurality of fitting support structure point clouds includes: According to the standard structures of the plurality of workstation support structures, obtaining a fitting anchor frame; The fitting anchor frame is compensated with the multiple initial fitting error ranges, and the multiple supporting structure point cloud data are iteratively fitted until the multiple initial fitting error ranges are reduced to 0, so as to obtain multiple fitting supporting structure point clouds.
6. The method according to claim 5, characterized in that The fitting anchor frame is compensated with the multiple initial fitting error ranges, and the multiple supporting structure point cloud data are iteratively fitted, including: The fitting anchor frame and the point cloud ratio threshold are compensated for enlarging and reducing by the multiple initial fitting error ranges to obtain multiple first fitting ranges and multiple first point cloud ratio thresholds, where the point cloud ratio threshold is a ratio threshold of scan points within the box selection area during the fitting process; According to the multiple first fitting ranges, randomly select within the multiple support structure point cloud data to obtain multiple first fitting point clouds; Calculating the ratio of the scan points in the plurality of first fitting point clouds, and determining whether the ratio is greater than the plurality of first point cloud ratio thresholds; If yes, then reduce the initial fitting error range according to a preset decreasing ratio, and perform compensatory enlargement and compensatory reduction on the fitting anchor frame and the point cloud ratio threshold, and continue fitting within the plurality of first fitting point clouds; if no, re-fit according to the plurality of first fitting ranges and the plurality of first point cloud ratio thresholds; The iterative fitting is continued until the initial fitting error range is reduced to 0, and a final plurality of fitting point clouds are obtained as the plurality of fitting support structure point clouds.
7. The method according to claim 1, characterized in that Identifying and obtaining multiple hidden danger levels of the multiple hidden danger workstations according to the multiple fitted support structure point clouds includes: Obtain a sample fitting support structure point cloud set, and obtain a sample hidden danger degree set based on the deviation between each sample fitting support structure point cloud and the standard workstation support structure; Using the sample fitting support structure point cloud set and the sample hidden danger degree set to construct a hidden danger degree identifier; Based on the hidden danger degree identifier, the multiple fitting support structure point clouds are identified to obtain multiple hidden danger degrees.
8. A factory control system based on artificial intelligence, characterized in that: A system for implementing an artificial intelligence-based factory control method according to any one of claims 1 to 7, the system comprising: A workstation image acquisition module, the workstation image acquisition module is used to collect images of multiple workstation support structures in a target factory through inspection equipment as multiple workstation images; A hidden danger workstation acquisition module, the hidden danger workstation acquisition module is used to identify hidden dangers on the multiple workstation images, obtain multiple hidden danger suspicion levels, and mark multiple hidden danger workstations; A point cloud data acquisition module, wherein the point cloud data acquisition module is used to scan the support structures of the plurality of hidden danger workstations to acquire point cloud data of the plurality of support structures; An error range acquisition module, the error range acquisition module is used to set and obtain an initial fitting error range for fitting the plurality of support structure point cloud data according to a plurality of hidden danger suspicion levels of the plurality of hidden danger workstations, wherein the size of the hidden danger suspicion level is positively correlated with the size of the initial fitting error range; A point cloud data fitting module, wherein the point cloud data fitting module is used to fit the plurality of support structure point cloud data according to a plurality of initial fitting error ranges to obtain a plurality of fitted support structure point clouds, wherein the fitting error range is gradually reduced during the fitting process; A control scheme acquisition module is used to identify and obtain multiple hidden danger degrees of the multiple hidden danger workstations based on the multiple fitted support structure point clouds, generate multiple quality control schemes, and control the multiple hidden danger workstations.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the artificial intelligence-based factory control method described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of an artificial intelligence-based factory control method according to any one of claims 1 to 7 are implemented.
