A remote control method and system for port machinery based on binocular camera
Through binocular cameras and artificial intelligence technology, the risk identification and prevention of the port machine remote control system is realized, which solves the problem of being unable to identify potential risks and provide in-depth information in the existing technology, improves the safety and operation efficiency of the port, and realizes Automated risk prevention and safe operation of port machines.
Patent Information
- Application Number
- CN202311820172.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-12-27
AI Technical Summary
Existing technology cannot effectively identify and prevent potential risks in port machine remote control, leading to accidents, and most operations rely on manual labor and are inefficient. They cannot immediately issue an alarm when an object enters a dangerous area, and cannot provide depth information of an object, resulting in Difficulty handling heavy cargo in confined spaces.
The port machine remote control method based on binocular cameras is used to identify the target object through binocular video data analysis, provide depth information, and combine artificial intelligence and machine learning algorithms to automatically identify and judge the target object, and generate control instructions to achieve automatic preventive measures and Emergency braking uses wireless communication and environmental sensors to predict risks and send alarms and control instructions in real time.
It improves port safety and operational efficiency, realizes real-time alarms and target identification in dangerous areas, reduces manual operating errors, improves risk prediction accuracy, automates risk prevention measures, optimizes resource allocation, and ensures port safety. safe and efficient operation of the machine.
Smart Images

Figure CN117935453B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of port machinery control, and in particular to a port machinery remote control method and system based on a binocular camera. Background Art
[0002] The use of port machinery remote control systems is the core means of modern port automation, digitalization, and intelligent development. Since most of the operations of this system rely on the automation mode, it has extremely high requirements for its overall safety. In the case of automated operation of port machinery trolleys, operators and vehicles often appear in the operation area, which requires us to ensure their life safety and property safety. Due to the large size, heavy weight and slow braking of the port machinery itself, anti-collision technology has become a necessary means to ensure the safety of operators and vehicles.
[0003] Traditional monocular cameras cannot provide depth information of objects, which makes it difficult to accurately move and operate heavy goods in a limited space, and may lead to collision accidents. In processing the detection and identification of static and dynamic target objects, the efficiency and accuracy of existing technologies are limited and cannot meet real-time requirements.
[0004] In addition, existing technologies are insufficient in identifying and preventing potential risks, and are unable to immediately sound an alarm when an object enters a dangerous area, which may lead to accidents. Most instructions and operations require manual work, which is not only inefficient, but also prone to operational errors due to human factors, and ineffective classification of risk levels, leading to irrational resource allocation and the inability to focus on monitoring and handling high-risk working environments.
[0005] Currently, no effective solution has been proposed for the problems in the related technologies. Summary of the invention
[0006] In order to overcome the above problems, the present invention aims to propose a port machinery remote control method and system based on binocular cameras, with the aim of solving the problem that the prior art is insufficient in identifying potential risks and taking preventive measures, and is unable to immediately issue an alarm when an object enters a dangerous area, which may lead to accidents, and most instructions and operations require manual operation, which is not only inefficient.
[0007] To this end, the specific technical solution adopted by the present invention is as follows:
[0008] According to one aspect of the present invention, a port machinery remote control method based on a binocular camera is provided, and the port machinery remote control method comprises the following steps:
[0009] S1. Preset the driving range of the port machinery;
[0010] S2. Install a binocular camera at a selected position on the port crane door leg to obtain binocular video data of the port crane in the direction of travel in real time;
[0011] S3, analyzing the binocular video data, and if a target object is detected within the driving range, sending an alarm message to the remote monitoring station;
[0012] S4. When an operator enters the dangerous area of the port machinery, the wireless communication device automatically sends an alarm message to the operator and collects the operator's operation data in the current situation;
[0013] S5. Predict potential risks by collecting operation data and combining it with the operation environment data collected by environmental sensors, and take preventive measures in advance based on the risk prediction results;
[0014] S6. The remote monitoring station receives and processes the alarm information, automatically identifies and determines the target object to be tested through artificial intelligence and machine learning algorithms, and generates target control instructions for the port machinery;
[0015] S7. Change the operating status of the port machinery according to the target control instructions issued by the remote monitoring station;
[0016] S8. When an emergency situation is detected, the port machinery implements rapid braking to avoid collision with the target object to be detected.
[0017] Optionally, a binocular camera is installed at a selected position on the port crane door leg to obtain binocular video data of the port crane in the travel direction in real time, including the following steps:
[0018] S21. Clarify the monitoring requirements for the direction of port machinery movement and select binocular cameras that meet the monitoring requirements;
[0019] S22. Install a binocular camera at a selected position on the port crane door leg to ensure that its field of view can cover the direction of travel of the port crane;
[0020] S23, performing stereo calibration on the binocular camera to ensure that the images of the two cameras are correctly aligned and obtain video data;
[0021] S24. Connect the data output of the camera to the remote monitoring station of the port machinery.
[0022] Optionally, analyzing the binocular video data, and if a target object to be detected is detected within the driving range, sending an alarm message to a remote monitoring station includes the following steps:
[0023] S31, the binocular camera continuously monitors the driving range and captures video data in real time, and pre-processes the video data;
[0024] S32, using an object detection algorithm to perform object recognition on the preprocessed video data;
[0025] S33, using the binocular camera data to calculate the depth information of the object, determine the distance between the object and the binocular camera, and locate the position of the object within the driving range by combining the internal and external parameters of the binocular camera;
[0026] S34, setting alarm rules, and determining whether to trigger an alarm based on the location, moving speed, and predicted path of the object;
[0027] S35, generating an alarm signal if the object within the driving range poses a threat according to the judgment result of the alarm rule;
[0028] S36. Send the generated alarm information to the remote monitoring station in real time through a predetermined communication protocol and interface.
[0029] Optionally, calculating the depth information of the object using the binocular camera data, determining the distance between the object and the binocular camera, and locating the position of the object within the driving range by combining the internal and external parameters of the binocular camera includes the following steps:
[0030] S331, performing stereo matching on the left and right views of the binocular camera to generate a disparity map;
[0031] S332, calculating the depth of the object using the disparity map and the baseline of the camera (the distance between the two cameras) and the focal length;
[0032] S333, using the camera's internal parameters (including focal length, principal point coordinates, etc.) to convert the image coordinates into camera coordinates;
[0033] S334, using the external parameters of the camera (such as a rotation matrix and a translation vector) to convert the camera coordinates into the coordinates of the port machinery;
[0034] S335, using the converted camera coordinates, the coordinates of the port machinery and the depth of the object, determining the position information of the object within the driving range, and combining the driving path and the position information to determine whether the object is within the predetermined safety range;
[0035] S336: Use a set calibration object (such as a calibration plate or an object of a specific size) to perform error assessment and correction.
[0036] Optionally, by collecting operation data, combining the operation environment data collected by the environmental sensor to predict potential risks, and taking preventive measures in advance according to the risk prediction results, the following steps are included:
[0037] S51, collecting multidimensional time series data in the process of operating data, and preprocessing the multidimensional time series data;
[0038] S52, based on a fixed time window, extracting statistical features and frequency domain features and text features of the job log from the preprocessed time series data, and constructing a sample data matrix, wherein each row represents a time window instance, and each column represents statistical features, frequency domain features, and text features of different sensors;
[0039] S53, using the bootstrap sampling method to perform random sampling with replacement to generate multiple training sets;
[0040] S54, for each training set, training a risk prediction model based on K-NN, and selecting the best K value and feature subset by cross-validation method;
[0041] S55, performing risk prediction on the new time window instance, integrating the risk prediction results of each K-NN model by weighted average method to obtain the final risk assessment;
[0042] S56, assigning a risk level to each time window instance according to a predefined risk level threshold and a risk prediction result of the K-NN model;
[0043] S56. Identify and analyze high-risk factors based on the comprehensive evaluation of the K-NN model;
[0044] S57. During the operation, the trained K-NN model is used to monitor and evaluate the operation risk in real time;
[0045] S58. When high risks are identified, take appropriate preventive measures based on preset risk levels and thresholds to reduce the probability of accidents.
[0046] Optionally, using a bootstrap sampling method to perform random sampling with replacement, generating multiple training sets includes the following steps:
[0047] S531, collecting an original data set in a sample data matrix, wherein the original data set includes a plurality of samples;
[0048] S532, initializing the weight of each sample, performing multiple iterations, and generating a training set in each iteration;
[0049] S533. In the iteration process, the original data set is randomly sampled with replacement according to the sample weight to generate a training set, and the number of samples is the same as the number of samples in the original data set;
[0050] S534, putting each sample drawn into a training set, training a base learner, using the training set obtained in the current iteration as training data, using the base learner to predict each sample in the original data set, and recording the prediction error;
[0051] S535, updating the weight of each sample according to the prediction error, and normalizing the new weight of each sample so that the sum is 1;
[0052] S536, completing this iteration, and obtaining the training set generated by this iteration;
[0053] S537. Repeat steps S533-S535 until all iterations are completed and a training set with a specified number of iterations is obtained.
[0054] Optionally, risk prediction is performed on the new time window instance, and the risk prediction results of each K-NN model are integrated by weighted average method to obtain the final risk assessment, which includes the following steps:
[0055] S551, performing the same preprocessing steps as the training data on the new time window instance;
[0056] S552, extracting the same statistical features, frequency domain features, and text features of the job log from the preprocessed new instance;
[0057] S553, for each K-NN model, input the new time window instance after feature extraction, and save the risk prediction result of each K-NN model;
[0058] S554, for each K-NN model, assign a weight according to its performance in cross validation or other criteria;
[0059] S555, performing weighted averaging on the risk prediction results of each K-NN model;
[0060] S556, using the weighted average risk prediction result as the risk assessment of the new time window instance, and determining the risk level of the time window instance according to a predetermined threshold;
[0061] The calculation formula for risk prediction results is:
[0062] R=w1×r1+w2×r2+…+w n × n ;
[0063] Where, R is the risk prediction result after weighted average;
[0064] w1, w2, w n is the weight;
[0065] r1, r2, r n For individual risk prediction results.
[0066] Optionally, assigning a risk level to each time window instance according to a predefined risk level threshold and a risk prediction result of the K-NN model includes the following steps:
[0067] S561. Divide the risk level into low risk, medium risk and high risk, and each risk level corresponds to a prediction value range;
[0068] S562, obtaining the risk prediction result after weighted averaging of the K-NN model;
[0069] S563, comparing the risk prediction result R with a predefined risk level threshold;
[0070] S564. If the risk level threshold falls within the low risk range, assign a low risk level to the time window instance;
[0071] If the risk level threshold falls within the medium risk range, a medium risk level is assigned to the time window instance;
[0072] If the risk level threshold falls within the high risk range, a high risk level is assigned to the time window instance;
[0073] S565. Continue to monitor new time window instances and repeat steps S561-S564 to ensure that the risk level of each new time window instance is correct.
[0074] Optionally, the remote monitoring station receives and processes the alarm information, automatically identifies and determines the target object to be detected through artificial intelligence and machine learning algorithms, and generates target control instructions for the port machinery, including the following steps:
[0075] S61, the remote monitoring station receives alarm information from each sensor or device, and pre-processes the received alarm information;
[0076] S62, selecting a set artificial intelligence and machine learning algorithm according to the preprocessed data type to analyze the alarm information and identify the target object to be detected;
[0077] S63. Perform preliminary risk assessment based on the attributes of the identified target (such as location, speed, direction, etc.), and review the preliminary risk assessment results;
[0078] S64. Generate corresponding control instructions according to the result of risk judgment. For example, if there is a collision risk, generate an instruction to pause or change the movement direction of the port machinery;
[0079] S65. Send the generated control instruction to the port machinery, so that the port machinery executes the corresponding operation, and continuously monitors the status of the port machinery.
[0080] According to another aspect of the present invention, there is also provided a port machinery remote control system based on a binocular camera, the system comprising: a preset range module, a video data acquisition module, a video data analysis module, a safety alarm module, a risk prediction module, a remote monitoring module, an execution control instruction module and an emergency braking module;
[0081] The preset range module is connected to the video data analysis module through the video data acquisition module, the video data analysis module is connected to the risk prediction module through the safety alarm module, the risk prediction module is connected to the execution control instruction module through the remote monitoring module, and the execution control instruction module is connected to the emergency braking module;
[0082] The preset range module is used to preset the travel range of the port machinery;
[0083] The video data acquisition module is used to install a binocular camera at a selected position on the port crane door leg to obtain the binocular video data of the port crane in the direction of travel in real time;
[0084] The video data analysis module is used to analyze the binocular video data. If the target object is detected within the driving range, an alarm message is sent to the remote monitoring station.
[0085] Safety alarm module, which is used for automatically sending alarm information to operators when operators enter the dangerous area of the port machinery through wireless communication equipment, and collecting the operation data of operators in the current situation;
[0086] The risk prediction module is used to predict potential risks by collecting operation data and combining it with the operation environment data collected by environmental sensors, and take preventive measures in advance according to the risk prediction results;
[0087] Remote monitoring module, which is used for the remote monitoring station to receive and process alarm information, automatically identify and judge the target object to be tested through artificial intelligence and machine learning algorithms, and generate target control instructions for the port machinery;
[0088] The execution control instruction module is used to change the operation status of the port machinery according to the target control instructions issued by the remote monitoring station;
[0089] The emergency brake module is used to implement rapid braking of the port machinery when an emergency situation is detected to avoid collision with the target object to be detected.
[0090] Compared with the prior art, this application has the following beneficial effects:
[0091] 1. The present invention uses a binocular camera to replace the traditional monocular camera, which can not only provide visual information for outdoor monitoring, but also provide depth information of objects, which is crucial for the precise movement and operation of heavy goods in a limited space. Through the depth information, we can more accurately identify and track the target object, avoid collision with it, and implement rapid braking when necessary.
[0092] 2. Through deep learning and image recognition technology, the present invention can detect and identify target objects more quickly and accurately, whether they are static or dynamic, and, through preset alarm rules, we can immediately issue an alarm when an object enters a dangerous area, thereby avoiding accidents in advance. Through advanced data communication technology, we can send monitoring information and alarm information to a remote monitoring station in real time, so that operators can respond in the first time, which is of great significance to improving the safety and operation efficiency of the port.
[0093] 3. The present invention can pre-identify potential risks and take preventive measures in advance to avoid or reduce the possibility of accidents by collecting and analyzing operation data and combining it with the operation environment data collected by environmental sensors. It can also use the K-NN model to predict risks and find the nearest neighbors in high-dimensional data to improve the accuracy of risk prediction. During the execution of operations, the trained K-NN model can be used to monitor and evaluate operation risks in real time, and risks can be discovered and handled in a timely manner. The entire process of risk prediction and preventive measures can be automated, reducing the workload and error rate of manual monitoring and processing. Appropriate models and parameters can be selected according to actual needs and data characteristics, and can be flexibly adapted to various different operating environments and conditions. By dividing risk levels, resource allocation can be better optimized, and high-risk operating environments can be monitored and handled with emphasis.
[0094] 4. According to the target control instructions issued by the remote monitoring station, the port machinery can immediately execute the corresponding operation, thereby improving the working efficiency. The remote monitoring station can issue the most appropriate operation instructions according to the real-time monitoring situation, thus avoiding accidents caused by human operation errors. Each operation instruction of the remote monitoring station can be recorded and tracked, which is convenient for subsequent analysis and improvement. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] The above characteristics, features and advantages of the present invention and their implementation methods and methods will become more clearly understood in conjunction with the following description of the embodiments, which are described in detail in conjunction with the accompanying drawings. Herein, a schematic diagram is shown:
[0096] Figure 1 is a flow chart of a port machinery remote control method based on a binocular camera according to an embodiment of the present invention;
[0097] Figure 2The diagram is a principle block diagram of a port machinery remote control system based on a binocular camera according to an embodiment of the present invention.
[0098] In the figure:
[0099] 1. Preset range module; 2. Video data acquisition module; 3. Video data analysis module; 4. Security alarm module; 5. Risk prediction module; 6. Remote monitoring module; 7. Execution control instruction module; 8. Emergency braking module. DETAILED DESCRIPTION
[0100] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0101] According to an embodiment of the present invention, a port machinery remote control method and system based on a binocular camera are provided.
[0102] The present invention is further described with reference to the accompanying drawings and specific embodiments. Figure 1 As shown, according to one embodiment of the present invention, a port machinery remote control method based on a binocular camera is provided, and the port machinery remote control method comprises the following steps:
[0103] S1. Preset the operating range of the port machinery.
[0104] It needs to be explained that the preset driving range of the port machinery is an important safety measure, which prevents the port machinery from entering places that may contain obstacles or unsafe areas. This preset range is usually set according to the actual facilities of the port and the operational requirements of the port machinery. The preset driving range can be achieved through a navigation system, geo-fencing technology or other corresponding geographic information systems. Within this range, the port machinery can travel freely, and when the port machinery attempts to exceed this range, the system will sound an alarm and may automatically stop or correct the driving route of the port machinery to ensure the safety of the port machinery and the surrounding environment.
[0105] S2. Install a binocular camera at a selected position on the port crane door leg to obtain binocular video data of the port crane in the direction of travel in real time.
[0106] Preferably, a binocular camera is installed at a selected position on the port crane door leg, and real-time acquisition of binocular video data of the port crane in the travel direction includes the following steps:
[0107] S21. Clarify the monitoring requirements for the direction of port machinery movement and select binocular cameras that meet the monitoring requirements;
[0108] S22. Install a binocular camera at a selected position on the port crane door leg to ensure that its field of view can cover the direction of travel of the port crane;
[0109] S23, performing stereo calibration on the binocular camera to ensure that the images of the two cameras are correctly aligned and obtain video data;
[0110] S24. Connect the data output of the camera to the remote monitoring station of the port machinery.
[0111] It needs to be explained that the application of binocular camera systems in port machinery monitoring is crucial to improving the safety and efficiency of port machinery. Compared with monocular cameras, binocular cameras can provide stereoscopic depth information and can more accurately determine the position and distance of the target object. This is especially important in port operations because port machinery needs to accurately move and manipulate cargo in busy and limited spaces. In addition, binocular camera systems are also widely used in navigation, obstacle avoidance and automatic control. Through proper stereo calibration, the imaging of the binocular camera system can be accurately aligned, thereby providing accurate depth and position information, which is one of the key technologies for realizing automated and intelligent port operations.
[0112] S3. Analyze the binocular video data, and if a target object to be detected is detected within the driving range, send an alarm message to the remote monitoring station.
[0113] Preferably, analyzing the binocular video data, and if a target object to be detected is detected within the driving range, sending an alarm message to a remote monitoring station comprises the following steps:
[0114] S31, the binocular camera continuously monitors the driving range and captures video data in real time, and pre-processes the video data;
[0115] S32, using an object detection algorithm to perform object recognition on the preprocessed video data;
[0116] S33, using the binocular camera data to calculate the depth information of the object, determine the distance between the object and the binocular camera, and locate the position of the object within the driving range by combining the internal and external parameters of the binocular camera;
[0117] S34, setting alarm rules, and determining whether to trigger an alarm based on the location, moving speed, and predicted path of the object;
[0118] S35, generating an alarm signal if the object within the driving range poses a threat according to the judgment result of the alarm rule;
[0119] S36. Send the generated alarm information to the remote monitoring station in real time through a predetermined communication protocol and interface.
[0120] Preferably, calculating the depth information of the object using binocular camera data, determining the distance between the object and the binocular camera, and locating the position of the object within the driving range by combining the internal and external parameters of the binocular camera includes the following steps:
[0121] S331, performing stereo matching on the left and right views of the binocular camera to generate a disparity map;
[0122] S332, calculating the depth of the object using the disparity map and the baseline of the camera (the distance between the two cameras) and the focal length;
[0123] S333, using the camera's internal parameters (including focal length, principal point coordinates, etc.) to convert the image coordinates into camera coordinates;
[0124] S334, using the external parameters of the camera (such as a rotation matrix and a translation vector) to convert the camera coordinates into the coordinates of the port machinery;
[0125] S335, using the converted camera coordinates, the coordinates of the port machinery and the depth of the object, determining the position information of the object within the driving range, and combining the driving path and the position information to determine whether the object is within the predetermined safety range;
[0126] S336: Use a set calibration object (such as a calibration plate or an object of a specific size) to perform error assessment and correction.
[0127] It should be explained that analyzing binocular video data and detecting the target objects within the driving range is one of the key technologies in the field of machine vision and artificial intelligence. This process involves complex image processing and machine learning algorithms, such as stereo matching, target detection and depth estimation. In practical applications, in addition to accurately locating the position of the object, it is also necessary to consider factors such as the object's moving path and speed, as well as the relative position and distance from the port machinery, in order to accurately determine whether an alarm needs to be triggered. This requires a combination of various sensor data and an in-depth understanding of the environment and task requirements. Moreover, due to the complex port environment, there may be various interferences and noises. Therefore, the robustness and real-time performance of the algorithm are also very important. This is also one of the important directions of current machine vision and artificial intelligence research.
[0128] S4. When an operator enters the dangerous area of the port machinery, the wireless communication equipment automatically sends an alarm message to the operator and collects the operator's operating data in the current situation.
[0129] It should be explained that during port operations, preventing operators from entering the danger zone of port machinery is an extremely important safety measure. By using wireless communication equipment such as RFID (radio frequency identification) tags, GPS (global positioning system) trackers or Bluetooth devices, the location of operators can be monitored in real time and their operation data can be collected. Once the system detects that an operator has entered the danger zone of the port machinery, it will automatically send an alarm message to prevent possible injury accidents. At the same time, the collected operation data can be used to further optimize the port operation process and improve operation efficiency and safety. For example, by analyzing the operation data, potential risk points and efficiency bottlenecks can be identified, and then the operation level of the entire port can be improved by adjusting the operation process or strengthening the training of relevant personnel.
[0130] S5. Predict potential risks by collecting operation data and combining it with the operation environment data collected by environmental sensors, and take preventive measures in advance based on the risk prediction results.
[0131] Preferably, the following steps are included:
[0132] S51, collecting multidimensional time series data in the process of operating data, and preprocessing the multidimensional time series data;
[0133] S52, based on a fixed time window, extracting statistical features and frequency domain features and text features of the job log from the preprocessed time series data, and constructing a sample data matrix, wherein each row represents a time window instance, and each column represents statistical features, frequency domain features, and text features of different sensors;
[0134] S53, using the bootstrap sampling method to perform random sampling with replacement to generate multiple training sets;
[0135] S54, for each training set, training a risk prediction model based on K-NN, and selecting the best K value and feature subset by cross-validation method;
[0136] S55, performing risk prediction on the new time window instance, integrating the risk prediction results of each K-NN model by weighted average method to obtain the final risk assessment;
[0137] S56, assigning a risk level to each time window instance according to a predefined risk level threshold and a risk prediction result of the K-NN model;
[0138] S56. Identify and analyze high-risk factors based on the comprehensive evaluation of the K-NN model;
[0139] S57. During the operation, the trained K-NN model is used to monitor and evaluate the operation risk in real time;
[0140] S58. When high risks are identified, take appropriate preventive measures based on preset risk levels and thresholds to reduce the probability of accidents.
[0141] In addition, it should be further explained that by collecting and analyzing operational data and combining it with environmental data collected by environmental sensors to predict potential risks and take preventive measures in advance, the advantages of big data and machine learning technology are fully utilized. The K-NN model is an instance-based learning or non-generalized learning: it believes that similar samples have similar output values. Its main advantages are high accuracy, insensitivity to outliers, and no data input assumptions. However, it also has defects such as high computational complexity and space complexity, and sample imbalance problems. In practical applications, appropriate models and parameters can be selected according to actual needs and data characteristics. Risk prediction in large and complex systems is usually a complex task that requires comprehensive consideration of multiple factors, such as operating conditions, equipment status, environmental factors, etc. This method can help operators more effectively identify and manage potential risks, take preventive measures in advance, avoid or reduce the possibility of accidents, and thus improve the safety and efficiency of operations.
[0142] Preferably, the bootstrap sampling method is used to perform random sampling with replacement, and generating multiple training sets includes the following steps:
[0143] S531, collecting an original data set in a sample data matrix, wherein the original data set includes a plurality of samples;
[0144] S532, initializing the weight of each sample, performing multiple iterations, and generating a training set in each iteration;
[0145] S533. In the iteration process, the original data set is randomly sampled with replacement according to the sample weight to generate a training set, and the number of samples is the same as the number of samples in the original data set;
[0146] S534, putting each sample drawn into a training set, training a base learner, using the training set obtained in the current iteration as training data, using the base learner to predict each sample in the original data set, and recording the prediction error;
[0147] S535, updating the weight of each sample according to the prediction error, and normalizing the new weight of each sample so that the sum is 1;
[0148] S536, completing this iteration, and obtaining the training set generated by this iteration;
[0149] S537. Repeat steps S533-S535 until all iterations are completed and a training set with a specified number of iterations is obtained.
[0150] Preferably, risk prediction is performed on the new time window instance, and the risk prediction results of each K-NN model are integrated by weighted average method to obtain the final risk assessment, which includes the following steps:
[0151] S551, performing the same preprocessing steps as the training data on the new time window instance;
[0152] S552, extracting the same statistical features, frequency domain features, and text features of the job log from the preprocessed new instance;
[0153] S553, for each K-NN model, input the new time window instance after feature extraction, and save the risk prediction result of each K-NN model;
[0154] S554, for each K-NN model, assign a weight according to its performance in cross validation or other criteria;
[0155] S555, performing weighted averaging on the risk prediction results of each K-NN model;
[0156] S556, using the weighted average risk prediction result as the risk assessment of the new time window instance, and determining the risk level of the time window instance according to a predetermined threshold;
[0157] The calculation formula for risk prediction results is:
[0158] R=w1×r1+w2×r2+…+w n × n ;
[0159] Where, R is the risk prediction result after weighted average;
[0160] w1, w2, w n is the weight;
[0161] r1, r2, r n For individual risk prediction results.
[0162] Preferably, assigning a risk level to each time window instance according to a predefined risk level threshold and a risk prediction result of the K-NN model comprises the following steps:
[0163] S561. Divide the risk level into low risk, medium risk and high risk, and each risk level corresponds to a prediction value range;
[0164] S562, obtaining the risk prediction result after weighted averaging of the K-NN model;
[0165] S563, comparing the risk prediction result R with a predefined risk level threshold;
[0166] S564. If the risk level threshold falls within the low risk range, assign a low risk level to the time window instance;
[0167] If the risk level threshold falls within the medium risk range, a medium risk level is assigned to the time window instance;
[0168] If the risk level threshold falls within the high risk range, a high risk level is assigned to the time window instance;
[0169] S565. Continue to monitor new time window instances and repeat steps S561-S564 to ensure that the risk level of each new time window instance is correct.
[0170] It needs to be explained that ensemble learning is to complete learning tasks by building and combining multiple learners. Its main goal is to improve the generalization performance of learning, that is, the performance on new and unseen data. The training set generation here adopts the bootstrap sampling method, which is a very common method for generating training sets, also known as Bootstrap sampling. Its purpose is to generate different training sets by resampling the data, increase the diversity of the model, and thus improve the generalization ability of the model. The weighted average of the model is a common integration method. The basic idea is to weighted average the prediction results of multiple models to obtain the final prediction result. The advantage of doing so is that it can make full use of the advantages of each model, reduce the error of the model, and improve the accuracy of the prediction. The risk level allocation is to convert the predicted risk value into a risk level that is easy to understand and handle in practical applications, so that operators can take corresponding measures according to the risk level. The design concept of the whole process is to combine data-driven and domain knowledge, and use machine learning technology to predict risks, so as to achieve more intelligent and accurate risk management.
[0171] S6. The remote monitoring station receives and processes the alarm information, automatically identifies and judges the target object to be measured through artificial intelligence and machine learning algorithms, and generates target control instructions for the port machinery.
[0172] Preferably, the remote monitoring station receives and processes the alarm information, automatically identifies and determines the target object to be detected through artificial intelligence and machine learning algorithms, and generates target control instructions for the port machinery, including the following steps:
[0173] S61, the remote monitoring station receives alarm information from each sensor or device, and pre-processes the received alarm information;
[0174] S62, selecting a set artificial intelligence and machine learning algorithm according to the preprocessed data type to analyze the alarm information and identify the target object to be detected;
[0175] S63. Perform preliminary risk assessment based on the attributes of the identified target (such as location, speed, direction, etc.), and review the preliminary risk assessment results;
[0176] S64. Generate corresponding control instructions based on the result of risk judgment. For example, if there is a risk of collision, generate an instruction to pause or change the movement direction of the port machinery;
[0177] S65. Send the generated control instruction to the port machinery, so that the port machinery executes the corresponding operation, and continuously monitors the status of the port machinery.
[0178] It needs to be explained that the alarm information obtained by integrating sensors or devices is processed, identified and risk judged using artificial intelligence and machine learning algorithms, and then corresponding control instructions are generated. The main advantage of this system is its high degree of intelligence and automation, which can effectively reduce the pressure of manual monitoring and improve the accuracy and efficiency of control. At the same time, it also has strong adaptability and flexibility, and can accurately identify and handle various situations. In addition, this system also has the ability to learn and self-improve. Through continuous learning and optimization, its performance and effect can be continuously improved. For example, for special situations in the port environment, such as bad weather, complex waterways, etc., the system can gradually improve its ability to identify and handle these situations through learning and training. Therefore, this intelligent monitoring and control system based on artificial intelligence and machine learning has broad application prospects in ports, factories, warehouses and other scenarios.
[0179] S7. Change the operating status of the port machinery according to the target control instructions issued by the remote monitoring station.
[0180] It should be explained that here, the remote monitoring station issues corresponding target control instructions to change the operating status of the port machinery based on the identification and risk judgment results. The advantage of this control method is that it can respond to various situations in real time and quickly to ensure the safe and efficient operation of the equipment. On the other hand, this step also faces some challenges, such as how to ensure the correctness and real-time nature of the control instructions, how to deal with equipment response delays, etc. In order to solve these problems, advanced control strategies and algorithms, as well as high-performance communication and control equipment are usually required. In addition, the operating status of the equipment needs to be monitored in real time so that timely adjustments can be made when abnormal situations occur. In the future, with the further development of artificial intelligence and machine learning technologies, we expect this intelligent control system to provide more precise, flexible and intelligent control, bringing more convenience to our production and life.
[0181] S8. When an emergency situation is detected, the port machinery implements rapid braking to avoid collision with the target object to be detected.
[0182] It needs to be explained that in automated control systems, emergency braking is a common and important safety function, designed to quickly stop the operation of equipment in the event of an emergency, such as a collision risk, to ensure the safety of equipment and personnel. The design of this braking system needs to consider a variety of factors, including braking response speed, braking torque, equipment stability during braking, etc. In order to achieve fast and stable braking, it is usually necessary to adopt some advanced braking technologies and equipment, such as electromagnetic braking, hydraulic braking, etc., and combine with corresponding control algorithms to achieve precise control of the braking process. In addition, the design of the braking system also needs to take into account the actual working conditions and use environment of the equipment, such as temperature, humidity, load, etc., to ensure effective braking in various environments. In the future, with the advancement of technology, we look forward to seeing more efficient, safe and intelligent emergency braking systems to provide stronger safety protection for automated equipment.
[0183] According to another embodiment of the present invention, Figure 2 As shown, a port machinery remote control system based on a binocular camera is also provided, the system comprising: a preset range module 1, a video data acquisition module 2, a video data analysis module 3, a safety alarm module 4, a risk prediction module 5, a remote monitoring module 6, an execution control instruction module 7 and an emergency braking module 8;
[0184] The preset range module 1 is connected to the video data analysis module 3 through the video data acquisition module 2, the video data analysis module 3 is connected to the risk prediction module 5 through the safety alarm module 4, the risk prediction module 5 is connected to the execution control instruction module 7 through the remote monitoring module 6, and the execution control instruction module 7 is connected to the emergency braking module 8;
[0185] A preset range module 1 is used to preset the travel range of the port machinery;
[0186] The video data acquisition module 2 is used to install a binocular camera at a selected position on the port crane door leg to obtain the binocular video data of the port crane in the travel direction in real time;
[0187] The video data analysis module 3 is used to analyze the binocular video data, and if a target object is detected within the driving range, an alarm message is sent to the remote monitoring station;
[0188] Safety alarm module 4, used for automatically sending alarm information to operators when operators enter the dangerous area of the port machinery, and collecting the operation data of operators in the current situation;
[0189] The risk prediction module 5 is used to predict potential risks by collecting operation data and combining the operation environment data collected by the environmental sensor, and take preventive measures in advance according to the risk prediction results;
[0190] Remote monitoring module 6, used for the remote monitoring station to receive and process alarm information, automatically identify and judge the target object to be measured through artificial intelligence and machine learning algorithms, and generate target control instructions for the port machinery;
[0191] The execution control instruction module 7 is used to change the operation state of the port machinery according to the target control instruction issued by the remote monitoring station;
[0192] The emergency braking module 8 is used to implement rapid braking of the port machinery when an emergency situation is detected to avoid collision with a target object to be detected.
[0193] In summary, with the help of the above technical solution of the present invention, the present invention uses a binocular camera to replace the traditional monocular camera, which can not only provide visual information for outdoor monitoring, but also provide depth information of objects, which is crucial for accurately moving and operating heavy goods in a limited space. Through depth information, we can more accurately identify and track target objects, avoid collisions with them, and implement rapid braking when necessary. Through deep learning and image recognition technology, we can more quickly and accurately detect and identify target objects, whether they are static or dynamic, and, through preset alarm rules, we can immediately issue an alarm when an object enters a dangerous area, thereby avoiding accidents in advance. Through advanced data communication technology, we can send monitoring information and alarm information to a remote monitoring station in real time, so that operators can respond in the first time, which is of great significance to improving the safety and operation efficiency of the port; the present invention can pre-identify potential hazards by collecting and analyzing operation data and combining it with the operation environment data collected by environmental sensors. Risk, take preventive measures in advance to avoid or reduce the possibility of accidents. Use the K-NN model for risk prediction, find the nearest neighbor in high-dimensional data, and improve the accuracy of risk prediction. During the execution of the operation, the trained K-NN model can be used to monitor and evaluate the operation risk in real time, and timely discover and deal with risks. The entire process of risk prediction and preventive measures can be automated, reducing the workload and error rate of manual monitoring and processing. Appropriate models and parameters can be selected according to actual needs and data characteristics, and can be flexibly adapted to various different operating environments and conditions. By dividing the risk levels, the allocation of resources can be better optimized, and high-risk operating environments can be monitored and processed in a focused manner. According to the target control instructions issued by the remote monitoring station, the port machinery can immediately execute the corresponding operation, thereby improving the operating efficiency. The remote monitoring station can issue the most appropriate operation instructions based on the real-time monitored situation, avoiding accidents caused by human operation errors. Every operation instruction of the remote monitoring station can be recorded and tracked, which is convenient for subsequent analysis and improvement.
[0194] Although the present invention has been disclosed as above with preferred embodiments, the embodiments are merely examples for the convenience of description and are not intended to limit the present invention. Those skilled in the art may make several changes and modifications without departing from the spirit and scope of the present invention. The scope of protection claimed by the present invention shall be based on the claims.
Claims
1. A remote control method for port machinery based on binocular cameras, characterized in that: The port machinery remote control method comprises the following steps: S1. Preset the driving range of the port machinery; S2. Install a binocular camera at a selected position on the port crane door leg to obtain binocular video data of the port crane in the direction of travel in real time; S3, analyzing the binocular video data, and if a target object is detected within the driving range, sending an alarm message to the remote monitoring station; S4. When an operator enters the dangerous area of the port machinery, the wireless communication device automatically sends an alarm message to the operator and collects the operator's operation data in the current situation; S5. Predict potential risks by collecting operation data and combining it with the operation environment data collected by environmental sensors, and take preventive measures in advance based on the risk prediction results; S6. The remote monitoring station receives and processes the alarm information, automatically identifies and determines the target object to be tested through artificial intelligence and machine learning algorithms, and generates target control instructions for the port machinery; S7. Change the operating status of the port machinery according to the target control instructions issued by the remote monitoring station; S8. When an emergency is detected, the port machinery implements rapid braking to avoid collision with the target object to be detected; The method of collecting operation data, combining the operation environment data collected by the environmental sensor to predict potential risks, and taking preventive measures in advance according to the risk prediction results includes the following steps: S51, collecting multidimensional time series data in the process of operating data, and preprocessing the multidimensional time series data; S52, based on a fixed time window, extracting statistical features and frequency domain features and text features of the job log from the preprocessed time series data, and constructing a sample data matrix, wherein each row represents a time window instance, and each column represents statistical features, frequency domain features, and text features of different sensors; S53, using the bootstrap sampling method to perform random sampling with replacement to generate multiple training sets; S54, for each training set, training a risk prediction model based on K-NN, and selecting the best K value and feature subset by cross-validation method; S55, performing risk prediction on the new time window instance, integrating the risk prediction results of each K-NN model by weighted average method to obtain the final risk assessment; S56, assigning a risk level to each time window instance according to a predefined risk level threshold and a risk prediction result of the K-NN model; S56. Identify and analyze high-risk factors based on the comprehensive evaluation of the K-NN model; S57. During the operation, the trained K-NN model is used to monitor and evaluate the operation risk in real time; S58. When a high risk is identified, take corresponding preventive measures according to the preset risk level and threshold to reduce the probability of accidents; The method of using the bootstrap sampling method to perform random sampling with replacement to generate multiple training sets includes the following steps: S531, collecting an original data set in a sample data matrix, wherein the original data set includes a plurality of samples; S532, initializing the weight of each sample, performing multiple iterations, and generating a training set in each iteration; S533. In the iteration process, the original data set is randomly sampled with replacement according to the sample weight to generate a training set, and the number of samples is the same as the number of samples in the original data set; S534, putting each sample drawn into a training set, training a base learner, using the training set obtained in the current iteration as training data, using the base learner to predict each sample in the original data set, and recording the prediction error; S535, updating the weight of each sample according to the prediction error, and normalizing the new weight of each sample; S536, completing this iteration, and obtaining the training set generated by this iteration; S537, repeating steps S533-S535 until all iterations are completed, and obtaining a training set of a specified number of iterations; The risk prediction of the new time window instance is performed, and the risk prediction results of each K-NN model are integrated by weighted average method to obtain the final risk assessment, which includes the following steps: S551, performing the same preprocessing steps as the training data on the new time window instance; S552, extracting the same statistical features, frequency domain features, and text features of the job log from the preprocessed new instance; S553, for each K-NN model, input the new time window instance after feature extraction, and save the risk prediction result of each K-NN model; S554, for each K-NN model, assign a weight according to its performance in cross validation or other criteria; S555, performing weighted averaging on the risk prediction results of each K-NN model; S556, using the weighted average risk prediction result as the risk assessment of the new time window instance, and determining the risk level of the time window instance according to a predetermined threshold; The calculation formula of the risk prediction result is: ; In the formula, Risk prediction results after weighted average; , , is the weight; , , For individual risk prediction results; The method of assigning a risk level to each time window instance according to a predefined risk level threshold and a risk prediction result of the K-NN model comprises the following steps: S561. Divide the risk level into low risk, medium risk and high risk, and each risk level corresponds to a prediction value range; S562, obtaining the risk prediction result after weighted averaging of the K-NN model; S563, comparing the risk prediction result R with a predefined risk level threshold; S564. If the risk level threshold falls within the low risk range, assign a low risk level to the time window instance; If the risk level threshold falls within the medium risk range, a medium risk level is assigned to the time window instance; If the risk level threshold falls within the high risk range, a high risk level is assigned to the time window instance; S565. Continue to monitor new time window instances and repeat steps S561-S564 to ensure that the risk level of each new time window instance is correct.
2. A port machinery remote control method based on binocular camera according to claim 1, characterized in that: The method of installing a binocular camera at a selected position on the port crane door leg to obtain binocular video data of the port crane in the travel direction in real time includes the following steps: S21. Clarify the monitoring requirements for the direction of port machinery movement and select binocular cameras that meet the monitoring requirements; S22. Install a binocular camera at a selected position on the port crane door leg to ensure that its field of view can cover the direction of travel of the port crane; S23, performing stereo calibration on the binocular camera to ensure that the images of the two cameras are correctly aligned and obtain video data; S24. Connect the data output of the camera to the remote monitoring station of the port machinery.
3. A port machinery remote control method based on binocular camera according to claim 2, characterized in that: The analysis of binocular video data and sending an alarm message to a remote monitoring station if a target object to be detected is detected within the driving range comprises the following steps: S31, the binocular camera continuously monitors the driving range and captures video data in real time, and pre-processes the video data; S32, using an object detection algorithm to perform object recognition on the preprocessed video data; S33, using the binocular camera data to calculate the depth information of the object, determine the distance between the object and the binocular camera, and locate the position of the object within the driving range by combining the internal and external parameters of the binocular camera; S34, setting alarm rules, and determining whether to trigger an alarm based on the location, moving speed, and predicted path of the object; S35, generating an alarm signal if the object within the driving range poses a threat according to the judgment result of the alarm rule; S36. Send the generated alarm information to the remote monitoring station in real time through a predetermined communication protocol and interface.
4. A port machinery remote control method based on binocular camera according to claim 3, characterized in that: The method of calculating the depth information of the object using the binocular camera data, determining the distance between the object and the binocular camera, and locating the position of the object within the driving range by combining the internal and external parameters of the binocular camera includes the following steps: S331, performing stereo matching on the left and right views of the binocular camera to generate a disparity map; S332, calculating the depth of the object using the disparity map and the baseline and focal length of the camera; S333, converting the image coordinates into camera coordinates using the camera's internal parameters; S334, using the external parameters of the camera to convert the camera coordinates into the coordinates of the port machinery; S335, using the converted camera coordinates, the coordinates of the port machinery and the depth of the object, determining the position information of the object within the driving range, and combining the driving path and the position information to determine whether the object is within the predetermined safety range; S336: Use the set calibration object to perform error assessment and correction.
5. The method for remote control of port machinery based on binocular cameras according to claim 1, characterized in that: The remote monitoring station receives and processes the alarm information, automatically identifies and determines the target object to be detected through artificial intelligence and machine learning algorithms, and generates target control instructions for the port machinery, including the following steps: S61, the remote monitoring station receives alarm information from each sensor or device, and pre-processes the received alarm information; S62, selecting a set artificial intelligence and machine learning algorithm according to the preprocessed data type to analyze the alarm information and identify the target object to be detected; S63. Perform preliminary risk assessment based on the attributes of the identified target object and review the preliminary risk assessment results; S64. Generate corresponding control instructions according to the result of risk judgment; S65. Send the generated control instruction to the port machinery, so that the port machinery executes the corresponding operation, and continuously monitors the status of the port machinery.
6. A port machinery remote control system based on a binocular camera, used to implement the port machinery remote control method based on a binocular camera as described in any one of claims 1 to 5, characterized in that: The system includes: a preset range module, a video data acquisition module, a video data analysis module, a safety alarm module, a risk prediction module, a remote monitoring module, an execution control instruction module and an emergency braking module; The preset range module is connected to the video data analysis module through the video data acquisition module, the video data analysis module is connected to the risk prediction module through the safety alarm module, the risk prediction module is connected to the execution control instruction module through the remote monitoring module, and the execution control instruction module is connected to the emergency braking module; The preset range module is used to preset the travel range of the port machinery; The video data acquisition module is used to install a binocular camera at a selected position on the port crane door leg to obtain binocular video data of the port crane in the travel direction in real time; The video data analysis module is used to analyze the binocular video data, and if a target object to be detected is detected within the driving range, an alarm message is sent to the remote monitoring station; The safety alarm module is used for automatically sending alarm information to operators when operators enter the dangerous area of the port machinery, and collecting the operation data of operators in the current situation; The risk prediction module is used to predict potential risks by collecting operation data and combining the operation environment data collected by the environmental sensor, and take preventive measures in advance according to the risk prediction results; The remote monitoring module is used for the remote monitoring station to receive and process alarm information, automatically identify and judge the target object to be measured through artificial intelligence and machine learning algorithms, and generate target control instructions for the port machinery; The execution control instruction module is used to change the operation state of the port machinery according to the target control instruction issued by the remote monitoring station; The emergency braking module is used to implement rapid braking of the port machinery when an emergency situation is detected to avoid collision with a target object to be detected.
Citation Information
Patent Citations
Harbor district traffic safety monitoring method based on Internet of Vehicles V2X and video fusion
CN113947946A
Port machine control system and method based on binocular camera and storage medium
CN115469596A
