A data processing method and device, a mechanical device and a storage medium
By setting up multiple data acquisition components on mechanical equipment and introducing an anomaly detection mechanism, the data acquisition is automatically controlled, solving the problem of low data accuracy during mechanical equipment operation and improving the accuracy of data acquisition and the reliability of the equipment.
Patent Information
- Application Number
- CN202410627524.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2026-01-13
- Estimated Expiration
- 2044-05-20
AI Technical Summary
During operation, mechanical equipment may experience low accuracy in data collection due to external interference or its own malfunctions, a problem that is difficult to effectively solve with existing technologies.
By setting up multiple data acquisition components on mechanical equipment, configuring corresponding themes, and introducing an anomaly detection mechanism, data acquisition is automatically stopped when an anomaly occurs and resumed when normal operation is restored, thereby improving data accuracy.
It enables automatic cessation of data acquisition when mechanical equipment malfunctions, ensuring the accuracy of the acquired data, reducing the need for fault diagnosis and maintenance, and extending equipment life.
Smart Images

Figure CN118585744B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, specifically to a data processing method, apparatus, mechanical equipment, and storage medium. Background Technology
[0002] Currently, various types of machinery are increasingly widely used in people's lives. For example, excavators are widely used in construction projects, mining, road construction, and farmland improvement. During the operation of these machines, it is necessary to monitor them and manually collect relevant data for later analysis. However, after a certain period of operation, these machines may be affected by external factors or malfunctions, leading to lower accuracy in the collected data. Summary of the Invention
[0003] This application provides a data processing method, apparatus, mechanical equipment, and storage medium, which can improve the accuracy of data collected by the mechanical equipment during operation.
[0004] In a first aspect, embodiments of this application provide a data processing method applied to mechanical equipment. The mechanical equipment is equipped with multiple data acquisition components, each configured with a corresponding topic. The data acquisition components act as message producers, publishing the collected equipment data to the corresponding topic. The method includes:
[0005] Obtain the device data from the topics corresponding to each of the aforementioned data acquisition components;
[0006] Based on the data from each of the aforementioned devices, anomaly detection was performed on the aforementioned mechanical equipment to obtain the anomaly detection results for the aforementioned mechanical equipment.
[0007] When the above-mentioned abnormal detection results are abnormal, stop obtaining equipment data from at least some topics and monitor the equipment status of the above-mentioned mechanical equipment;
[0008] When the aforementioned mechanical equipment returns to normal, based on the time when the aforementioned mechanical equipment returns to normal, the aforementioned equipment data continues to be acquired from the topics corresponding to each of the aforementioned data acquisition components.
[0009] Secondly, embodiments of this application provide a data processing apparatus applied to mechanical equipment. The mechanical equipment is equipped with multiple data acquisition components, each of which is configured with a corresponding topic. Each data acquisition component acts as a message producer, publishing the collected equipment data to the corresponding topic. The apparatus includes:
[0010] The data acquisition module is used to acquire the device data from the topics corresponding to each of the above data acquisition components;
[0011] An anomaly detection module is used to perform anomaly detection on the above-mentioned mechanical equipment based on the data of each of the above-mentioned devices, and to obtain the anomaly detection results of the above-mentioned mechanical equipment.
[0012] The status monitoring module is used to stop acquiring equipment data from at least some topics and monitor the equipment status of the above-mentioned mechanical equipment when the above-mentioned anomaly detection result is abnormal.
[0013] The status recovery module is used to continue to acquire the equipment data from the topics corresponding to each of the aforementioned data acquisition components when the equipment status of the aforementioned mechanical equipment returns to normal, based on the time when the mechanical equipment returns to normal.
[0014] Thirdly, embodiments of this application also provide a mechanical device, including a memory storing multiple instructions; a processor loads instructions from the memory to execute the steps of any of the data processing methods provided in embodiments of this application.
[0015] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute the steps of any of the data processing methods provided in embodiments of this application.
[0016] Fifthly, embodiments of this application also provide a computer program product, including a computer program or instructions, which, when executed by a processor, implement the steps in any of the data processing methods provided in embodiments of this application.
[0017] The solution adopted in this application embodiment can be applied to mechanical equipment. The mechanical equipment is equipped with multiple data acquisition components, each configured with a corresponding topic. Each data acquisition component acts as a message producer, publishing collected equipment data to its corresponding topic. The system retrieves equipment data from the topics corresponding to each data acquisition component. Based on this equipment data, anomaly detection is performed on the mechanical equipment to obtain anomaly detection results. When the anomaly detection result is abnormal, data retrieval from at least some topics is stopped, and the equipment status is monitored. When the equipment status returns to normal, data retrieval from the topics corresponding to each data acquisition component resumes based on the time of recovery. By setting up multiple data acquisition components, data collection from the mechanical equipment is achieved. Furthermore, by detecting the equipment status, data collection is automatically stopped when anomalies are detected, avoiding the collection of potentially abnormal equipment data and improving the accuracy of data collected during the operation of the mechanical equipment. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic flowchart of one embodiment of the data processing method provided in this application.
[0020] Figure 2 This is a schematic diagram of the structure of an excavator provided in the embodiments of this application;
[0021] Figure 3 This is a schematic diagram of a radar scan image provided in an embodiment of this application;
[0022] Figure 4 This is a schematic diagram of an image captured by a binocular camera provided in the embodiments of this application;
[0023] Figure 5 This is a schematic diagram of the analysis information of the sensor provided in the embodiments of this application;
[0024] Figure 6 This is a schematic diagram of another excavator provided in the embodiments of this application;
[0025] Figure 7 This is a schematic diagram of the structure of the data processing device provided in the embodiments of this application;
[0026] Figure 8 This is a schematic diagram of the mechanical equipment provided in the embodiments of this application. Detailed Implementation
[0027] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. At the same time, in the description of the embodiments of this application, the terms "first," "second," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0028] This application provides a data processing method, apparatus, mechanical device, and computer-readable storage medium.
[0029] Specifically, this embodiment will be described from the perspective of a data processing device, which can be integrated into a mechanical device. That is, the data processing method of this embodiment can be executed by a mechanical device. Optionally, the mechanical device may include a terminal device. The terminal device may be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, game console, or personal computer (PC), etc.
[0030] The data processing method provided in this application can be applied to data processing systems. These systems may include a player terminal device and a server. The terminal can be a device that includes both receiving and transmitting hardware, i.e., a device with receiving and transmitting hardware capable of performing bidirectional communication over a bidirectional communication link. The player terminal device and the server can communicate bidirectionally via a network.
[0031] Optionally, the server can be a standalone server, or a server network or server cluster, including but not limited to computers, network hosts, single network servers, multiple network server sets, or cloud servers composed of multiple servers. Cloud servers consist of a large number of computers or network servers based on cloud computing.
[0032] The following detailed description is provided in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the order of description in the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the accompanying drawings.
[0033] The data processing method in this embodiment can improve the accuracy of the data collected when mechanical equipment is working.
[0034] Please refer to Figure 1 Taking a terminal as an example, this embodiment provides a data processing method applied to mechanical equipment. The mechanical equipment is equipped with multiple data acquisition components, each configured with a corresponding topic. These data acquisition components act as message producers, publishing the collected equipment data to the corresponding topic. The specific flow of this data processing method can be summarized in steps 101 to 104, wherein:
[0035] Step 101: Obtain the device data from the topics corresponding to each of the above data acquisition components.
[0036] The aforementioned mechanical equipment can be an assembly of at least one component, such as an excavator. The excavator is a complex electromechanical system, including but not limited to various data acquisition components (such as sensors), actuators, electronic control units, etc., installed on the mechanical equipment. The data acquisition components are used to collect equipment data of the mechanical equipment, and data acquisition components located at different positions on the mechanical equipment are used to collect different equipment data.
[0037] In this embodiment, the collected device data is sequentially stored under corresponding topics by the data acquisition component. The terminal can control whether to retrieve the corresponding device data from a topic, thereby reducing the cost and difficulty of data acquisition by controlling the timing of data retrieval, such as real-time or periodic retrieval. For example, data directly obtained from sensors may be subject to interference from other factors. Obtaining more complete device data provides support for subsequent real-time monitoring and fault diagnosis of the mechanical equipment based on the acquired data. One topic can correspond to one data acquisition component, or one topic can correspond to at least two data acquisition components; the specific configuration can be determined according to requirements and is not limited here.
[0038] Specifically, the aforementioned data acquisition components can be sensors, such as angle sensors, temperature sensors, pressure sensors, acceleration sensors, and tilt sensors (including IMU inertial sensors, optical tilt sensors, etc.), to monitor the parameters corresponding to the sensors on the mechanical equipment. For example, an angle sensor can be used to obtain the angle at a certain joint of the mechanical equipment, a tilt sensor can be used to obtain the attitude information of the mechanical equipment, and a pressure sensor can be used to obtain the load information of the mechanical equipment. The aforementioned data acquisition components can also be components used to acquire visual data, such as cameras and radars. For example, real-time 3D reconstruction data can be obtained through binocular cameras or lidar. The aforementioned data acquisition components can also be components used to acquire the position information of the mechanical equipment, such as a position acquisition component. This position acquisition component can be configured with RTK (Real-time kinematic) carrier phase differential technology to acquire the position data of the mechanical equipment through the satellite positioning measurement method indicated by this technology. This position acquisition component can also be integrated into the electronic control unit of the mechanical equipment. The specific configuration can be determined according to requirements and is not limited here.
[0039] Understandably, the number of cameras can be set according to requirements. For example, if a user needs to view images of machinery from three different perspectives to more accurately understand its operation, three cameras are required. Therefore, a binocular camera and a single-lens camera can be installed on the machinery to meet the user's needs. Furthermore, after initially obtaining the images from the three perspectives acquired by the data acquisition unit, the images can be automatically stitched together to allow relevant personnel to better view the image information of the machinery during operation. The data acquisition unit that uses radar to acquire data can be a lidar system that emits laser beams to detect the position, velocity, and other characteristics of targets.
[0040] The location of the aforementioned data acquisition component on the mechanical equipment can be specifically set according to the type of component. For example, such as... Figure 2 As shown, if the mechanical equipment is set as Figure 2 For the excavator shown, an angle sensor can be installed at the corresponding joint positions of the boom, arm, bucket, and cab. Figure 2 The position of the angle sensor 201 is determined so that information such as the joint angle and joint angular velocity at that position can be measured by the angle sensor 201. Figure 2 The cockpit 203 is equipped with a binocular camera 202, which calculates depth information in real time based on two captured images (color RGB or grayscale images) and performs three-dimensional reconstruction to accurately obtain the corresponding visual data, such as video footage of the excavator working. Figure 2 An angle sensor 204 is installed under the cockpit 203 to measure the excavator's attitude information. Figure 2 A pressure sensor 205 is also installed under the cockpit 203 to measure the load pressure of the excavator.
[0041] In addition, in order to better automate the control of excavators, Figure 2 The cockpit 203 shown also integrates an electronic control unit and a multi-way solenoid valve. The electronic control unit is equipped with an automatic program to execute data processing methods. This electronic control unit is an edge computing center used to realize remote intelligent control of the vehicle. In order to ensure real-time data transmission, the electronic control unit is also equipped with a communication module (such as a 5GCPE module). For example, the automatic program can call the rostopic communication mechanism set by the communication module to perform data communication transmission. The multi-way solenoid valve is one of the aforementioned actuators, which controls the movement of corresponding components in the excavator through multiple solenoid valves.
[0042] It should be noted that different data acquisition components collect different device data. The multi-source heterogeneous data composed of device data collected by different data acquisition components can be device data from different data sources and different data formats. It may include structured data (such as sensor data collected by sensors), semi-structured data (such as log data collected by components on electronic control units), and unstructured data (such as video data acquired by binocular cameras).
[0043] In response, since different data acquisition components collect different equipment data, this equipment data can be stored and managed in different ways to better meet user needs. Therefore, specific methods and tools are needed for the integration and analysis of equipment data. For example, image data captured by different cameras at the same time can be integrated to obtain a single image at that specific moment. This integration and analysis of equipment data includes, but is not limited to, determining the equipment status based on the equipment data of the machinery, enabling real-time monitoring of the equipment status, facilitating the prediction of equipment maintenance needs, timely repair and maintenance, reducing the failure rate, and extending equipment life; and displaying information on the usage, work efficiency, and maintenance needs of the corresponding equipment based on the equipment data, thereby improving work efficiency.
[0044] The device data can be stored and managed in different ways. For example, based on the data type, device data of the same type can be stored in the same file. For example, device data measured by at least two sensors can be stored in the same file and stored according to the corresponding storage rules. Alternatively, visual data captured by at least two lenses can be stored in the same file and stored according to the corresponding storage rules. The specific settings can be configured according to the requirements and are not limited here.
[0045] Step 102: Based on the data of each of the above-mentioned devices, perform anomaly detection on the above-mentioned mechanical equipment to obtain the anomaly detection results of the above-mentioned mechanical equipment.
[0046] It is understandable that after a certain period of operation, mechanical equipment may be affected by external factors or malfunctions, resulting in lower accuracy of the collected equipment data. For example, sensor data may suffer from reduced quality due to interference or malfunctions. Therefore, in order to ensure the accuracy of the collected equipment data, the terminal needs to introduce anomaly detection for data quality assessment and cleaning. This ensures the accuracy of the collected equipment data. In other words, by performing anomaly detection on the aforementioned mechanical equipment, the anomaly detection results are obtained, and the results are used to determine whether it is necessary to continue obtaining equipment data from the corresponding topic.
[0047] Specifically, since different data acquisition components collect different equipment data, different methods are used to detect anomalies in different equipment data. Anomalies can be detected separately for different equipment data, and the anomaly detection results of the mechanical equipment can be determined based on the equipment detection results corresponding to different equipment data.
[0048] Specifically, the abnormal detection result of the aforementioned mechanical equipment can be determined as an abnormal result when the equipment detection results corresponding to different equipment data meet preset abnormal conditions, or it can be determined as a normal result when the equipment detection results corresponding to different equipment data meet preset normal conditions. The aforementioned abnormal conditions can be based on the number of abnormal equipment detection results meeting a preset abnormal number threshold, the duration of abnormal equipment detection results meeting a preset abnormal duration, the data type of the equipment data with abnormal results meeting a preset data type, or the abnormal factors corresponding to the abnormal results meeting a preset abnormal factor type, etc. Specific settings can be made according to requirements and are not limited here.
[0049] For example, if the aforementioned mechanical equipment is set to an excavator, and the aforementioned data acquisition component includes a pressure sensor, if the pressure sensor is used to control the excavator to dig 1 ton of soil, but the background weighing shows only 0.3 tons, then it can be set that the pressure sensor is abnormal, that is, the device detection result corresponding to the pressure sensor is abnormal.
[0050] For example, if the aforementioned mechanical equipment is set to an excavator, and the aforementioned data acquisition component includes a position acquisition component, if the position information of the excavator obtained by the position acquisition component does not match the working route configured for the excavator, or if the position information detects that the excavator has no abnormality within a preset time period, then the abnormality detection result of the excavator is determined to be an abnormal result.
[0051] For example, if the above-mentioned mechanical equipment is set as an excavator, and the above-mentioned data acquisition component includes a binocular camera, if the binocular camera only captures one image, or if at least one of the two captured images has an anomaly (such as a completely black image, the presence of abnormal obstructions, etc.), then the abnormal detection result of the excavator is determined to be an abnormal result.
[0052] In some embodiments, the above-mentioned anomaly detection of the mechanical equipment may also involve processing the data of at least one device to obtain the processed results corresponding to the data of at least one device, and visually displaying the processed results corresponding to the data of at least one device on a touch screen associated with the mechanical equipment. The terminal may respond to the anomaly command received on the touch screen and determine that the anomaly detection result of the mechanical equipment is an anomaly.
[0053] The process involves processing data from at least one device to obtain the processed results corresponding to the data from at least one device. This can be done by the terminal directly processing the data from at least one device, or by the terminal uploading the device data to the cloud and processing the data from at least one device through a cloud computing platform associated with the cloud. The processed results are then displayed on a touch screen associated with the mechanical equipment.
[0054] For example, such as Figure 3 The radar scan image shown can be displayed on a touchscreen. This radar scan image is the processed result of the data from the aforementioned device. Figure 3 The trapezoidal pattern 301 within the dashed box in the lower area of the image represents the excavator's bucket as detected by radar, while the pattern above the dashed box indicates the surrounding environment.
[0055] For example, such as Figure 4 The images captured by the binocular camera shown can be displayed on a touch screen. These images represent the processed results of the data from the aforementioned device. Figure 4 The top and bottom images in the image are taken with different lenses from a binocular camera.
[0056] For example, such as Figure 5 and Figure 6 As shown, it is possible to Figure 5 The touchscreen displays analysis information from the angle sensor and tilt sensor. The angle sensor analysis information is the processed result corresponding to the data from the aforementioned device. Figure 5 The horizontal axis of the four diagrams indicates time, and the vertical axis indicates joint curvature. Figure 5 The diagram corresponding to "boom_joints_position" is used to indicate... Figure 6 The joint curvature of the excavator's boom 601 can be measured using angle sensors located near the joints of the boom 601. The diagram corresponding to "arm_joints_position" is used to indicate this. Figure 6 The joint curvature of the excavator's boom 602 can be measured using an angle sensor located near the joint of the boom 602. The diagram corresponding to "bucket_joints_position" is used to indicate this. Figure 6 The joint curvature of the excavator's bucket 603 can be measured using an angle sensor located near the joint of the bucket 603. The diagram corresponding to "swing_joints_position" is used to indicate this. Figure 6The curvature of the excavator's cab 604 can be measured using a tilt sensor located under the cab.
[0057] Step 103: When the above-mentioned abnormal detection result is abnormal, stop obtaining equipment data from at least some topics, and monitor the equipment status of the above-mentioned mechanical equipment.
[0058] In this embodiment, the terminal determines that the state of the mechanical equipment is abnormal based on the acquired equipment data, and controls the cessation of acquiring the corresponding equipment data from a certain topic. That is, by judging the validity of the equipment data, the acquisition of equipment data is stopped when there may be abnormalities, so as to avoid collecting potentially abnormal equipment data, thereby improving the accuracy of the data collected when the mechanical equipment is working, and providing a reliable data source for subsequent analysis and processing operations based on the equipment data.
[0059] It is understandable that since mechanical equipment has a variety of different equipment data, and anomalies can be detected through different data, there are many factors that could lead to abnormal detection results. These factors may affect the accuracy of certain equipment data, or, after an abnormal result, it may be necessary to continue to detect certain equipment data to determine whether the mechanical equipment has returned to normal. In other words, the equipment status of the mechanical equipment is monitored through certain equipment data.
[0060] Therefore, in this embodiment, when the terminal clearly determines that the abnormal detection result is abnormal, it can stop acquiring device data only for a portion of the topics. That is, the device data in the target data acquisition device to which the topic for which device data acquisition has not been stopped is data that needs to monitor the status of the mechanical equipment, or data that is unrelated to the factors that caused the abnormal detection result to be abnormal.
[0061] In some embodiments, the above-mentioned monitoring of the equipment status of the above-mentioned mechanical equipment may include: the terminal can determine the equipment abnormality factors corresponding to the above-mentioned abnormality detection results, so as to monitor the equipment status of the above-mentioned mechanical equipment based on the above-mentioned equipment abnormality factors.
[0062] It should be noted that the above-mentioned equipment abnormality factors are used to indicate factors that cause abnormal detection results to be abnormal, such as factors that cause mechanical equipment to malfunction due to the failure of certain components, or factors that cause mechanical equipment to malfunction due to certain external factors, etc.
[0063] In response, the terminal can monitor the equipment status based on the aforementioned abnormal factors, so that when the abnormality of the mechanical equipment is restored, the recovery information of the mechanical equipment can be quickly detected, and subsequent processing can continue, thereby improving the speed of data processing.
[0064] In some embodiments, the aforementioned mechanical equipment is also provided with a recovery button. The abnormal factors of the equipment include component abnormalities, that is, a certain component on the mechanical equipment malfunctions. The component may be a data acquisition component or a component that constitutes part of the mechanical equipment and is targeted by the data acquisition component. The specific settings can be configured according to the requirements and are not limited here.
[0065] Specifically, since hardware malfunctions require manual replacement by relevant personnel, a recovery button is pre-installed on the data acquisition component to quickly and clearly confirm that the malfunctioning component has been replaced. This recovery button can be triggered by relevant personnel to notify the equipment to return to normal. In other words, the monitoring of the equipment status based on the aforementioned equipment malfunction factors can include: the terminal can monitor the triggering of the recovery button; when the recovery button is triggered, it indicates that the malfunctioning component has been replaced; and relevant personnel can use the recovery button to inform the equipment that the malfunctioning component has been replaced. Finally, it is confirmed that the equipment status of the equipment has returned to normal.
[0066] In some embodiments, the data acquisition component includes a location acquisition component, and the equipment anomaly factors include location anomalies, meaning that the mechanical equipment may experience a mismatch between its location information and the pre-configured work route due to certain interference factors. For example, it may be stuck in the ground, blocked by stones, or experience a location shift, or remain stationary. The location anomaly indicates that the location information acquired by the location acquisition component does not conform to the preset equipment route information. This preset equipment route information can be the pre-configured work route or pre-calculated coordinate positions at various times, and can be specifically set according to requirements; no limitation is made here.
[0067] Specifically, since positional deviations may be caused by interference factors, continued monitoring of the positional information can determine at what moment the mechanical equipment can overcome the interference factors and return to normal. That is, the aforementioned monitoring of the mechanical equipment's status based on the abnormal factors can include: the terminal can obtain current positional information from the topic corresponding to the positional acquisition component, monitor the current positional information, and judge whether the monitored current positional information conforms to preset equipment route information. If the current positional information conforms to the preset equipment route information, it is determined that the mechanical equipment's status has returned to normal. However, if the current positional information still does not conform to the preset equipment route information, it is determined that the mechanical equipment's status has not returned to normal, and it is necessary to continue obtaining and monitoring the current positional information until the current positional information conforms to the preset equipment route information, or the duration or number of times the current positional information is monitored meets a preset cutoff condition.
[0068] Step 104: When the equipment status of the above-mentioned mechanical equipment returns to normal, based on the time when the above-mentioned mechanical equipment returns to normal, continue to obtain the above-mentioned equipment data from the topics corresponding to each of the above-mentioned data acquisition components.
[0069] In this embodiment, the terminal judges the status of the mechanical equipment based on the acquired equipment data to control whether to acquire the corresponding equipment data from a topic. That is, when the equipment status of the mechanical equipment is abnormal, the acquisition of equipment data from the topic is stopped, and when the mechanical equipment returns to normal, the acquisition of equipment data from the topic is resumed. By controlling the timing of acquiring equipment data, the terminal avoids collecting potentially abnormal equipment data, thereby improving the quality and effectiveness of the data collected when the mechanical equipment is working.
[0070] It should be noted that when the mechanical equipment is in an abnormal state, the data acquisition component continues to collect equipment data and publish the collected equipment data to the corresponding topic. Therefore, the equipment data stored under each topic contains equipment data with low accuracy corresponding to the mechanical equipment abnormality. In order to avoid collecting equipment data with low accuracy, it is necessary to obtain equipment data at the time of recovery and after the time of recovery based on the time when the mechanical equipment returns to normal and the time information corresponding to the equipment data stored under each topic.
[0071] In some embodiments, the aforementioned mechanical device is further provided with a storage component. After acquiring the device data from the subject corresponding to each of the aforementioned data acquisition components, steps 1041 to 1042 may be included:
[0072] Step 1041: The terminal may store at least a portion of the device data from each of the aforementioned devices into the aforementioned storage component.
[0073] In this embodiment, after the terminal obtains the corresponding device data from each topic, it needs to store the obtained device data in the storage component in the mechanical equipment so that the data can be retrieved from the storage component when needed, and the data retrieved from the storage component can be processed accordingly.
[0074] It should be noted that since different business needs require different equipment data to be stored, although it is necessary to obtain the corresponding equipment data from each topic for anomaly detection of mechanical equipment, when the mechanical equipment is in a normal state, the data storage only needs to store at least a portion of the equipment data required by the business needs of each equipment data, thereby avoiding the occupation of storage space by invalid data.
[0075] Understandably, some data, such as visual data captured by radar or cameras, can occupy a significant amount of hard drive space, placing additional pressure on the storage and transmission of visual data. Therefore, to save storage space and accelerate data transmission, the terminal can incorporate a data compression module. This module compresses the data before storage or transmission, thereby reducing the pressure on data storage and transmission. Specifically, storing at least a portion of the device data in the storage component can include: the terminal compressing data conforming to a preset compression type within the at least a portion of the device data to obtain compressed data. Then, after obtaining the compressed data, the terminal can associate the data that does not conform to the preset compression type, along with the compressed data, with the corresponding component identifier of the data acquisition component and store them in the storage component.
[0076] In this embodiment, by associating and storing the component identifier with the data collected by the corresponding component, it is possible to quickly filter out the currently needed data from a large amount of data later. The above-mentioned association storage method can be to store the corresponding data in a file associated with the component identifier of the data acquisition component. The file name associated with the component identifier of the data acquisition component can be the component identifier of the data acquisition component, or the file name associated with the component identifier of the data acquisition component can be other than the component identifier of the data acquisition component.
[0077] Step 1042: When the first device data in the aforementioned storage component meets the preset data communication conditions, the aforementioned first device data is uploaded to the cloud.
[0078] The aforementioned data communication conditions can be set according to requirements. For example, the data of the first device has not been uploaded to the cloud, and the storage time of the data of the first device in the storage component meets the preset duration. Alternatively, the data of the first device can be periodically uploaded to the cloud, i.e., the data of the first device has not been uploaded to the cloud at present, and the current time meets the preset periodic data upload time. The time interval corresponding to the aforementioned periodicity can be set according to requirements and is not limited here. For example, the corresponding time interval can be set to 30 minutes.
[0079] It is understandable that mechanical equipment uploads the first piece of equipment to cloud storage to utilize the cloud computing platform associated with the cloud for large-scale data retrieval and analysis. For example, the equipment data is periodically transmitted to the corresponding business analysis and processing unit on the cloud computing platform to perform corresponding preprocessing operations on the equipment data, such as decompressing compressed equipment data or filtering a large amount of data to obtain data relevant to the business, and then processing is performed based on the preprocessed data.
[0080] In some embodiments, different mechanical devices are each configured with corresponding cloud storage addresses. Uploading the first device data to the cloud may include: the terminal obtaining the cloud storage address configured for the mechanical device. Then, the terminal may upload the first device data and the component identifier associated with the first device data to the cloud based on the cloud storage address.
[0081] Step 1043: When the second device data in the storage component meets the preset data cleanup conditions, the second device data is deleted from the storage component.
[0082] In this embodiment, since collecting and storing equipment data of mechanical equipment for a long time will put pressure on the storage space of the storage component, in order to reduce the pressure on the storage space caused by invalid data, the second equipment data that meets the data cleaning conditions in the storage component can be cleaned. The second equipment data can be the same as the first equipment data, or it can be partially the same as the first equipment data, or it can be different from the first equipment data. The specific settings can be set according to the needs and are not limited here.
[0083] Specifically, the second device data that meets the above data cleaning conditions can be the first device data that has been uploaded to the cloud. That is, after the first device data is uploaded to the cloud, the first device data is determined as the second device data that meets the above data cleaning conditions. The second device data that meets the above data cleaning conditions can also be device data whose storage duration meets the preset cleaning duration. For example, if the device data is set to be uploaded to the cloud and cleaned periodically, then the time interval for cleaning the data is greater than the time interval for uploading the data to the cloud.
[0084] It should be noted that, since the existing methods for collecting data on mechanical equipment are based on manual supervision, the efficiency of data collection is relatively low. Therefore, in order to improve the efficiency of data collection and ensure the correctness of the operation process, in some embodiments, the aforementioned mechanical equipment is also equipped with an automatic program. The automatic program is used to execute the steps mentioned in the above data processing method, thereby realizing automatic data collection, that is, the program automatically completes the data collection at regular intervals without human intervention, reducing the cost of manual maintenance and the time required for real-time monitoring of the working process of the mechanical equipment.
[0085] The aforementioned automatic program can collect multi-source heterogeneous data in parallel while the mechanical equipment is working, preprocess the collected multi-source heterogeneous data (such as data compression), store the data in the local storage device, upload the data in the storage device to the cloud periodically, monitor the equipment status of the mechanical equipment based on the collected multi-source heterogeneous data, and determine whether to collect data based on the monitoring results, etc., at least one of the following operations. The automatic program does not affect the normal operation of the mechanical equipment during its operation.
[0086] As can be seen from the above, by applying this method to mechanical equipment, multiple data acquisition components are installed on the aforementioned mechanical equipment. Each of these data acquisition components is configured with a corresponding topic. These data acquisition components act as message producers, publishing the collected equipment data to their respective topics. The system retrieves equipment data from the topics corresponding to each data acquisition component. Based on this equipment data, anomaly detection is performed on the mechanical equipment, yielding anomaly detection results. When the anomaly detection result indicates an anomaly, data retrieval from at least some topics is stopped, and the equipment status is monitored. When the equipment status returns to normal, data retrieval from the topics corresponding to each data acquisition component resumes based on the time of recovery. Thus, by setting up multiple data acquisition components, data collection from the mechanical equipment is achieved. Furthermore, by detecting the equipment status, data collection is automatically stopped when anomalies are detected, preventing the collection of potentially abnormal equipment data and improving the accuracy of the data collected during the operation of the mechanical equipment.
[0087] This embodiment also provides a data processing device, which can be specifically applied to mechanical equipment. The mechanical equipment is equipped with multiple data acquisition components, each configured with a corresponding topic. These data acquisition components act as message producers, publishing the collected equipment data to the corresponding topic. For example... Figure 7 As shown, the data processing apparatus may include:
[0088] The data acquisition module 701 is used to acquire the device data from the topics corresponding to each of the above-mentioned data acquisition components;
[0089] Anomaly detection module 702 is used to perform anomaly detection on the above-mentioned mechanical equipment based on the data of each of the above-mentioned devices, and to obtain the anomaly detection result of the above-mentioned mechanical equipment.
[0090] The status monitoring module 703 is used to stop acquiring equipment data from at least some topics and monitor the equipment status of the above-mentioned mechanical equipment when the above-mentioned anomaly detection result is abnormal.
[0091] The status recovery module 704 is used to continue to acquire the equipment data from the topics corresponding to each of the above-mentioned data acquisition components when the equipment status of the above-mentioned mechanical equipment returns to normal, based on the time when the mechanical equipment returns to normal.
[0092] In some embodiments, the aforementioned mechanical equipment is further provided with a storage component, and the aforementioned data processing device further includes a data processing module, which is specifically used for:
[0093] At least a portion of the device data from each of the aforementioned devices is stored in the aforementioned storage component;
[0094] When the first device data in the aforementioned storage component meets the preset data communication conditions, the aforementioned first device data is uploaded to the cloud;
[0095] When the second device data in the aforementioned storage component meets the preset data cleanup conditions, the aforementioned second device data is deleted from the aforementioned storage component.
[0096] In some embodiments, the data processing module described above is specifically used for:
[0097] Compress the data that conforms to the preset compression type from at least a portion of the above device data to obtain compressed data;
[0098] Data that does not conform to the preset compression type from at least a portion of the aforementioned device data, as well as the compressed data, are associated with the component identifier of the corresponding data acquisition component and stored in the aforementioned storage component.
[0099] In some embodiments, the data processing module described above is specifically used for:
[0100] Obtain the cloud storage address configured for the aforementioned mechanical equipment;
[0101] Based on the aforementioned cloud storage address, the aforementioned first device data, as well as the component identifier associated with the aforementioned first device data, are uploaded to the cloud.
[0102] In some embodiments, the status monitoring module 703 is specifically used for:
[0103] Identify the equipment anomaly factors corresponding to the above abnormal detection results, and monitor the equipment status of the above mechanical equipment based on the above equipment anomaly factors.
[0104] In some embodiments, the aforementioned mechanical equipment is further provided with a reset button, the aforementioned equipment malfunction factors include component malfunctions, and the aforementioned status monitoring module 703 is specifically used for:
[0105] The triggering status of the above-mentioned recovery button is monitored. When the above-mentioned recovery button is triggered, it is determined that the equipment status of the above-mentioned mechanical equipment has returned to normal.
[0106] In some embodiments, the data acquisition component includes a location acquisition component, the device malfunction factor includes a location malfunction, and the location malfunction is used to indicate that the location information acquired by the location acquisition component does not conform to preset device route information; the status monitoring module 703 is specifically used for:
[0107] Obtain the current location information from the topics corresponding to the aforementioned location acquisition components, and monitor the aforementioned current location information;
[0108] If the current location information matches the preset equipment route information, then the equipment status of the aforementioned mechanical equipment is determined to have returned to normal.
[0109] In some embodiments, the aforementioned mechanical equipment is further provided with an automatic program, which is used to execute the steps in the aforementioned data processing device.
[0110] As can be seen from the above, by applying this method to mechanical equipment, multiple data acquisition components are installed on the aforementioned mechanical equipment. Each of these data acquisition components is configured with a corresponding topic. These data acquisition components act as message producers, publishing the collected equipment data to their respective topics. The system retrieves equipment data from the topics corresponding to each data acquisition component. Based on this equipment data, anomaly detection is performed on the mechanical equipment, yielding anomaly detection results. When the anomaly detection result indicates an anomaly, data retrieval from at least some topics is stopped, and the equipment status is monitored. When the equipment status returns to normal, data retrieval from the topics corresponding to each data acquisition component resumes based on the time of recovery. Thus, by setting up multiple data acquisition components, data collection from the mechanical equipment is achieved. Furthermore, by detecting the equipment status, data collection is automatically stopped when anomalies are detected, preventing the collection of potentially abnormal equipment data and improving the accuracy of the data collected during the operation of the mechanical equipment.
[0111] Accordingly, this application also provides a mechanical device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Alternatively, the mechanical device can be a server.
[0112] like Figure 8 As shown, Figure 8 This is a schematic diagram of the structure of a mechanical device provided in an embodiment of this application. The mechanical device 800 includes a processor 801 with one or more processing cores, a memory 802 with one or more computer-readable storage media, and a computer program stored in the memory 802 and executable on the processor. The processor 801 and the memory 802 are electrically connected. Those skilled in the art will understand that the mechanical device structure shown in the figure does not constitute a limitation on the mechanical device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0113] The processor 801 is the control center of the mechanical equipment 800. It connects various parts of the mechanical equipment 800 via various interfaces and lines. By running or loading software programs and / or units stored in the memory 802, and by calling data stored in the memory 802, it executes various functions of the mechanical equipment 800 and processes data, thereby providing overall monitoring of the mechanical equipment 800. The processor 801 can be a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc., and can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of this application.
[0114] In this embodiment, the processor 801 in the mechanical device 800 loads the instructions corresponding to the processes of one or more application programs into the memory 802 according to the following steps, and the processor 801 runs the application programs stored in the memory 802 to realize various functions, such as:
[0115] Obtain the device data from the topics corresponding to each of the aforementioned data acquisition components;
[0116] Based on the data from each of the aforementioned devices, anomaly detection was performed on the aforementioned mechanical equipment to obtain the anomaly detection results for the aforementioned mechanical equipment.
[0117] When the above-mentioned abnormal detection results are abnormal, stop obtaining equipment data from at least some topics and monitor the equipment status of the above-mentioned mechanical equipment;
[0118] When the aforementioned mechanical equipment returns to normal, based on the time when the aforementioned mechanical equipment returns to normal, the aforementioned equipment data continues to be acquired from the topics corresponding to each of the aforementioned data acquisition components.
[0119] Therefore, the mechanical equipment 800 provided in this embodiment can bring the following technical effects: improve the accuracy of the data collected when the mechanical equipment is working.
[0120] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0121] Optional, such as Figure 8 As shown, the mechanical device 800 also includes: a touch screen display 803, a radio frequency circuit 804, an audio circuit 805, an input unit 806, and a power supply 807. The processor 801 is electrically connected to the touch screen display 803, the radio frequency circuit 804, the audio circuit 805, the input unit 806, and the power supply 807. Those skilled in the art will understand that... Figure 8 The mechanical equipment structure shown does not constitute a limitation on the mechanical equipment and may include more or fewer parts than shown, or combine certain parts, or have different arrangements of parts.
[0122] The touch display screen 803 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 803 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the mechanical device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 801. It can also receive and execute commands from the processor 801. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 801 to determine the type of touch event. Subsequently, the processor 801 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 803 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 803 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 803 can also be used as part of the input unit 806 to achieve input functions.
[0123] The radio frequency circuit 804 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other mechanical devices, and to transmit and receive signals with network devices or other mechanical devices.
[0124] Audio circuit 805 can be used to provide an audio interface between a user and mechanical equipment via a speaker and a microphone. Audio circuit 805 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 805, converted back into audio data, and then processed by processor 801 before being transmitted via radio frequency circuit 804 to, for example, another mechanical device, or output to memory 802 for further processing. Audio circuit 805 may also include an earphone jack to provide communication between peripheral headphones and mechanical equipment.
[0125] The input unit 806 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
[0126] Power supply 807 is used to supply power to various components of mechanical equipment 800. Optionally, power supply 807 can be logically connected to processor 801 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 807 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0127] although Figure 8 As not shown in the diagram, the mechanical equipment 800 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.
[0128] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0129] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0130] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute any of the data processing methods provided in embodiments of this application. The computer program can execute the steps of the following data processing method:
[0131] Obtain the device data from the topics corresponding to each of the aforementioned data acquisition components;
[0132] Based on the data from each of the aforementioned devices, anomaly detection was performed on the aforementioned mechanical equipment to obtain the anomaly detection results for the aforementioned mechanical equipment.
[0133] When the above-mentioned abnormal detection results are abnormal, stop obtaining equipment data from at least some topics and monitor the equipment status of the above-mentioned mechanical equipment;
[0134] When the aforementioned mechanical equipment returns to normal, based on the time when the aforementioned mechanical equipment returns to normal, the aforementioned equipment data continues to be acquired from the topics corresponding to each of the aforementioned data acquisition components.
[0135] As can be seen, a computer program can be loaded by a processor to execute any of the data processing methods provided in the embodiments of this application, thereby bringing about the following technical effects: improving the accuracy of data collected by mechanical equipment during operation.
[0136] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0137] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0138] Since the computer program stored in the computer-readable storage medium can execute any of the data processing methods provided in the embodiments of this application, the beneficial effects that any of the data processing methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0139] According to one aspect of this application, a computer program product or computer program is also provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a mechanical device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the mechanical device to perform the methods provided in the various optional implementations of the above embodiments.
[0140] In the above embodiments of the data processing apparatus, computer-readable storage medium, mechanical equipment, and computer program product, the descriptions of each embodiment have different focuses. Parts not described in detail in a particular embodiment can be referred to in the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes and beneficial effects of the data processing apparatus, computer-readable storage medium, computer program product, mechanical equipment, and their corresponding units described above can be referred to the description of the data processing method in the above embodiments, and will not be repeated here.
[0141] The foregoing has provided a detailed description of a data processing method, apparatus, mechanical device, computer-readable storage medium, and computer program product provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A data processing method, characterized by, The application is applied to a mechanical equipment, a plurality of data acquisition components are arranged on the mechanical equipment, each data acquisition component is configured with a corresponding topic, the data acquisition component is used as a message producer to publish the collected equipment data to the corresponding topic, and the method comprises the following steps: Obtaining the equipment data from the topic corresponding to each data acquisition component; Abnormality detection is performed on the mechanical equipment based on each equipment data, and an abnormality detection result of the mechanical equipment is obtained; When the abnormality detection result is an abnormal result, the equipment data is stopped from being obtained from at least part of the topics, and the equipment state of the mechanical equipment is monitored; When the equipment state of the mechanical equipment returns to normal, the equipment data is continued to be obtained from the topic corresponding to each data acquisition component based on the time point when the mechanical equipment returns to normal; wherein The monitoring of the equipment state of the mechanical equipment comprises the following steps: An equipment abnormal factor corresponding to the abnormality detection result is determined, the equipment state of the mechanical equipment is monitored based on the equipment abnormal factor, the data acquisition component comprises a position acquisition component, the equipment abnormal factor comprises a position abnormality, and the position abnormality is used to indicate that the position information collected by the position acquisition component does not conform to preset equipment route information; The monitoring of the equipment state of the mechanical equipment based on the equipment abnormal factor comprises the following steps: Current position information is obtained from the topic corresponding to the position acquisition component, and the current position information is monitored; If the current position information conforms to the preset equipment route information, it is determined that the equipment state of the mechanical equipment returns to normal.
2. The data processing method of claim 1, wherein, The mechanical equipment is further provided with a storage component, and after the equipment data is obtained from the topic corresponding to each data acquisition component, the following steps are further included: At least part of the equipment data is stored in the storage component; When first equipment data in the storage component meets preset data communication conditions, the first equipment data is uploaded to the cloud; When second equipment data in the storage component meets preset data cleaning conditions, the second equipment data is deleted in the storage component.
3. The data processing method of claim 2, wherein, The storage of at least part of the equipment data in the storage component comprises the following steps: Data conforming to a preset compression type in the at least part of the equipment data is compressed to obtain compressed data; Data not conforming to the preset compression type in the at least part of the equipment data and the compressed data are respectively associated with the component identifier of the corresponding data acquisition component and stored in the storage component.
4. The data processing method of claim 2, wherein, The uploading of the first equipment data to the cloud comprises the following steps: An address of a cloud storage configured for the mechanical equipment is obtained; Based on the address of the cloud storage, the first equipment data and the component identifier associated with the first equipment data are uploaded to the cloud.
5. The data processing method of claim 1, wherein, The mechanical equipment is further provided with a recovery button, the equipment abnormal factor comprises a component abnormality, and the monitoring of the equipment state of the mechanical equipment based on the equipment abnormal factor comprises the following steps: The triggering condition of the recovery button is monitored, and when the recovery button is triggered, it is determined that the device state of the mechanical device returns to normal.
6. The data processing method according to any one of claims 1 to 5, wherein, The mechanical device is also provided with an automatic program, which is used to execute the steps of the data processing method according to any one of claims 1 to 5.
7. A data processing apparatus, characterized by, The application is applied to a mechanical device, wherein the mechanical device is provided with a plurality of data acquisition components, each of which is configured with a corresponding topic, and each data acquisition component is used as a message producer to publish the acquired device data to the corresponding topic. The data acquisition module is configured to acquire the device data from the corresponding topic of each data acquisition component. The anomaly detection module is configured to perform anomaly detection on the mechanical device based on each device data to obtain an anomaly detection result of the mechanical device. The state monitoring module is configured to stop acquiring device data from at least part of the topics when the anomaly detection result is an abnormal result, and monitor the device state of the mechanical device. The state recovery module is configured to continue acquiring the device data from the corresponding topic of each data acquisition component based on the time when the device state of the mechanical device returns to normal. The anomaly detection module is configured to determine a device anomaly factor corresponding to the anomaly detection result, and monitor the device state of the mechanical device based on the device anomaly factor. The anomaly detection module is configured to acquire current position information from the topic corresponding to the position acquisition component, and monitor the current position information.
8. A mechanical device, characterized by If the current position information conforms to the preset device route information, it is determined that the device state of the mechanical device returns to normal.
9. A computer-readable storage medium, characterized in that, The mechanical device includes a mechanical device body and a data acquisition component arranged on the mechanical device body, the mechanical device body includes a processor and a memory, and the memory stores a plurality of instructions. The computer-readable storage medium stores a plurality of instructions, which are suitable for being loaded by the processor to execute the steps of the data processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Control method, device and equipment of data acquisition task
CN108009295A
Industrial internet control system and method
CN113810489A
Secondary overvoltage protector of current transformer
CN213093870U
System and method for gathering, analyzing, managing and sharing ground modification operation data
US20140006074A1