Methods, systems, and readable media for precision control of photoelectric sensors in the Industrial Internet
By constructing a photoelectric sensor network in the Industrial Internet, and based on data model fitting and calibration curve comparison, the problem of inaccurate data caused by sensor failure was solved, thereby improving the accuracy and efficiency of the sensors.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN CHEVEN TECH
- Filing Date
- 2022-08-16
- Publication Date
- 2026-05-26
AI Technical Summary
In industrial production, sensor devices are prone to failure due to complex environments and high workloads, resulting in inaccurate data and insufficient precision. Existing technologies cannot detect faults in a timely and effective manner, affecting the working efficiency and accuracy of sensors.
In the Industrial Internet, photoelectric sensors are deployed, and a sensor network is built through gateway devices and processors. Measurement data is fitted based on a preset data model to generate a fitted curve, which is then compared with a calibration curve to determine the degree of difference and perform accuracy calibration.
This improves the working accuracy and efficiency of photoelectric sensors, ensures data accuracy and consistency, and reduces the impact of sensor failures.
Smart Images

Figure CN115687878B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention application filed on August 16, 2022, with Chinese application number 202210977813.0 and titled "Precision Control Method and System for Photoelectric Sensors in Industrial Internet". Technical Field
[0002] This application relates to the field of computer technology, and more specifically, to a method and system for precision control of photoelectric sensors in the industrial internet, as well as a computer-readable medium and electronic device. Background Technology
[0003] In industrial production, many sensor devices are used to collect industrial data during the production process. However, due to the complex industrial production environment and large workload, sensor malfunctions are easily caused, resulting in inaccurate data and insufficient accuracy. Existing technologies often cannot detect sensor malfunctions in a timely and effective manner, thus affecting the efficiency and accuracy of the sensors. Summary of the Invention
[0004] The embodiments of this application provide a method and system for precision control of photoelectric sensors in the industrial internet, a computer-readable medium and an electronic device, which can at least improve the working accuracy and efficiency of photoelectric sensors to a certain extent.
[0005] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.
[0006] According to one aspect of the embodiments of this application, a method for controlling the accuracy of photoelectric sensors in an industrial internet is provided, comprising: deploying photoelectric sensors in an industrial production environment, and constructing an industrial internet based on the photoelectric sensors, gateway devices, and processors; acquiring measurement data collected by the photoelectric sensors based on a preset data acquisition cycle; fitting the measurement data based on a preset data model to obtain a fitting curve corresponding to the measurement data; comparing the fitting curve with a preset calibration curve to determine the degree of difference between the two curves; and calibrating the accuracy of the photoelectric sensors based on the degree of difference; wherein, comparing the fitting curve with the preset calibration curve to determine the degree of difference between the two curves includes: calculating the curve difference between the fitting curve and the preset calibration curve; and determining the degree of difference between the fitting curve and the calibration curve based on the curve difference.
[0007] In some embodiments of this application, based on the foregoing scheme, the step of fitting the measurement data based on a preset data model to obtain a fitting curve corresponding to the measurement data includes: identifying abnormal data in the measurement data based on a set data range, deleting abnormal data in the measurement data to obtain remaining spare data; fitting the spare data based on the preset data model to determine the parameter values in the data model; and determining the fitting curve based on the parameter values.
[0008] In some embodiments of this application, based on the foregoing scheme, the step of fitting the backup data based on a preset data model to determine the parameter values in the data model includes: fitting the backup data using the least squares method based on the preset data model to determine the parameter values in the data model.
[0009] In some embodiments of this application, based on the foregoing scheme, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: calculating the difference between the fitting curve and the measurement data; if the difference is greater than or equal to a set threshold, then the measurement data is refitted.
[0010] In some embodiments of this application, based on the aforementioned scheme, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: calculating the difference between the fitting curve and the measurement data; if the difference is less than a set threshold, the fitting curve is determined to be a correct curve.
[0011] In some embodiments of this application, based on the foregoing scheme, the calculation of the curve difference between the fitted curve and the preset calibration curve includes: based on the fitted curve being f(x) and the preset calibration curve being g(x), calculating the curve difference between the two as f(x)-g(x);
[0012] Correspondingly, determining the difference between the fitted curve and the calibration curve based on the curve difference includes: determining the difference Deg_fg between the fitted curve and the calibration curve as follows: based on the curve difference f(x)-g(x):
[0013]
[0014] Where x represents the independent variable, t represents the length or maximum value of the independent variable, and α represents the preset difference parameter.
[0015] According to one aspect of the embodiments of this application, an industrial internet photoelectric sensor accuracy control system is provided, comprising:
[0016] The building unit is used to deploy photoelectric sensors in an industrial production environment and build an industrial Internet based on the photoelectric sensors, gateway devices, and processors.
[0017] The acquisition unit is used to acquire measurement data collected by the photoelectric sensor based on a preset data acquisition period;
[0018] The fitting unit is used to fit the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data.
[0019] The comparison unit is used to compare the fitted curve with a preset calibration curve to determine the degree of difference between the two curves.
[0020] A calibration unit is used to calibrate the accuracy of the photoelectric sensor based on the difference.
[0021] In some embodiments of this application, based on the foregoing scheme, the fitting unit includes:
[0022] The identification unit is used to identify abnormal data in the measurement data based on a set data range, and delete the abnormal data in the measurement data to obtain the remaining spare data.
[0023] A parameter fitting unit is used to fit the backup data based on a preset data model and determine the parameter values in the data model.
[0024] A curve unit is used to determine the fitted curve based on the parameter values.
[0025] In some embodiments of this application, based on the foregoing scheme, the step of fitting the backup data based on a preset data model to determine the parameter values in the data model includes: fitting the backup data using the least squares method based on the preset data model to determine the parameter values in the data model.
[0026] In some embodiments of this application, based on the foregoing scheme, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: calculating the difference between the fitting curve and the measurement data; if the difference is greater than or equal to a set threshold, then the measurement data is refitted.
[0027] In some embodiments of this application, based on the aforementioned scheme, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: calculating the difference between the fitting curve and the measurement data; if the difference is less than a set threshold, the fitting curve is determined to be a correct curve.
[0028] In some embodiments of this application, based on the foregoing scheme, the step of comparing the fitted curve with a preset calibration curve to determine the degree of difference between the two curves includes: calculating the curve difference between the fitted curve and the preset calibration curve; and determining the degree of difference between the fitted curve and the calibration curve based on the curve difference.
[0029] According to one aspect of the embodiments of this application, a computer-readable medium is provided having a computer program stored thereon, which, when executed by a processor, implements the industrial internet photoelectric sensor precision control method as described in the above embodiments.
[0030] According to one aspect of the embodiments of this application, an electronic device is provided, including: one or more processors; and a storage device for storing one or more programs, which, when executed by the one or more processors, cause the one or more processors to implement the industrial internet photoelectric sensor precision control method as described in the above embodiments.
[0031] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the industrial internet photoelectric sensor precision control method provided in the various optional implementations described above.
[0032] In some embodiments of this application, photoelectric sensors are deployed in an industrial production environment, and an industrial internet is constructed based on the photoelectric sensors, gateway devices, and processors. Measurement data collected by the photoelectric sensors is acquired based on a preset data acquisition cycle. The measurement data is then fitted using a preset data model to obtain a fitted curve corresponding to the measurement data. The fitted curve is then compared with a preset calibration curve to determine the degree of difference between the two curves. The accuracy of the photoelectric sensor is calibrated based on this degree of difference. The technical solutions of this application improve the working accuracy and efficiency of the photoelectric sensors by calibrating them based on their working data.
[0033] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0035] Figure 1 A flowchart illustrating a method for controlling the accuracy of photoelectric sensors in an industrial internet according to an embodiment of this application is shown.
[0036] Figure 2 A flowchart illustrating the generation of a fitted curve according to one embodiment of this application is shown schematically.
[0037] Figure 3 A schematic diagram of an industrial internet photoelectric sensor accuracy control system according to an embodiment of this application is shown.
[0038] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown. Detailed Implementation
[0039] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0040] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods and systems, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0041] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0042] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0043] The implementation details of the technical solutions in the embodiments of this application are described in detail below:
[0044] Figure 1 A flowchart illustrating an industrial internet photoelectric sensor accuracy control method according to an embodiment of this application is shown. This industrial internet photoelectric sensor accuracy control method can be executed by a server. (Refer to...) Figure 1 As shown, the industrial internet photoelectric sensor accuracy control method includes at least steps S110 to S150, which are detailed below:
[0045] In step S110, photoelectric sensors are deployed in the industrial production environment, and an industrial Internet is built based on the photoelectric sensors, gateway devices, and processors.
[0046] In one embodiment of this application, photoelectric sensors are deployed in an industrial production environment to collect and measure data. Simultaneously, an Industrial Internet is constructed based on the photoelectric sensors, gateway devices, and processors to achieve real-time monitoring of industrial production.
[0047] In one embodiment of this application, the industrial Internet of Things in this solution may include: a data sensing layer composed of photoelectric sensors, a network transmission layer communicating through gateway devices, and a data processing layer composed of processors.
[0048] In step S120, the measurement data collected by the photoelectric sensor is acquired based on a preset data acquisition period.
[0049] In one embodiment of this application, measurement data collected by the photoelectric sensor is acquired based on a preset data acquisition period. The data acquisition period in this embodiment can be one day, one month, etc. By acquiring the measurement data from the photoelectric sensor, we can have a good grasp of its operating status.
[0050] In step S130, the measurement data is fitted based on a preset data model to obtain the fitting curve corresponding to the measurement data.
[0051] In one embodiment of this application, various types or models of photoelectric sensors have their corresponding data models. For example, a data model is pre-determined based on the data output of a particular model of photoelectric sensor. This data model is then used to measure the output parameters of the photoelectric sensor and determine its corresponding data model parameters. In this embodiment, the measurement data is fitted based on the preset data model to obtain a fitting curve corresponding to the measurement data.
[0052] Optionally, we can use the least squares method to fit the backup data, determine the parameter values in the data model, and obtain the fitting curve corresponding to the measurement data.
[0053] In one embodiment of this application, fitting the measurement data based on a preset data model to obtain a fitting curve corresponding to the measurement data includes:
[0054] Based on the set data range, abnormal data in the measurement data is identified and deleted to obtain the remaining backup data;
[0055] Based on a preset data model, the backup data is fitted to determine the parameter values in the data model;
[0056] The fitted curve is determined based on the parameter values.
[0057] Specifically, in this embodiment, abnormal data in the measurement data is first identified based on a preset data range. Abnormal data refers to data that does not belong to the data range. This abnormal data is then deleted, resulting in the remaining backup data. By removing abnormal data, the error rate and noise of the data are reduced, thereby improving the accuracy and correctness of curve fitting. Then, the backup data is fitted based on a preset data model to determine the parameter values in the data model, and the fitted curve is determined based on these parameter values.
[0058] In one embodiment of this application, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes:
[0059] Based on the fitted curve and the measurement data, the degree of difference between the two is calculated;
[0060] If the difference is greater than or equal to a set threshold, the measurement data is refitted.
[0061] Specifically, based on the independent variable i, the fitted value Val_fit_i corresponding to the independent variable is obtained from the fitted curve, and the actual value Val_ace_i corresponding to the independent variable is obtained from the measurement data. The difference between the two is calculated as Val_ace_i - Val_fit_i. Then, based on the differences between the values corresponding to the k discrete independent variables, the degree of difference Dre_di between the fitted curve and the measurement data is calculated as follows:
[0062]
[0063] Where i represents the number of the independent variable, and β represents the data factor. The above method calculates the difference between discrete values to obtain the degree of difference between the fitted curve and the measured data, which is used to measure the consistency between the fitted curve and the measured data. If the degree of difference between the two is high, greater than or equal to a set threshold, it means that the fitted curve cannot accurately represent the measured data. If the difference between the two is too large, the measured data needs to be refitted.
[0064] After fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes:
[0065] Based on the fitted curve and the measurement data, the degree of difference between the two is calculated;
[0066] If the difference is less than a set threshold, the fitted curve is determined to be a correct curve.
[0067] Specifically, after calculating the difference between the fitted curve and the measured data, if the difference is less than a set threshold, the fitted curve is determined to be the correct curve. This method detects discrepancies between the fitted curve and the measured data, ensuring that the discrepancy is kept small.
[0068] In step S140, the fitted curve is compared with a preset calibration curve to determine the degree of difference between the two curves.
[0069] In one embodiment of this application, after the fitted curve is generated, the fitted curve is compared with a preset calibration curve to determine the difference between the two, and the accuracy of the actual measurement data is measured based on the difference.
[0070] In one embodiment of this application, comparing the fitted curve with a preset calibration curve to determine the degree of difference between the two curves includes:
[0071] Calculate the curve difference between the fitted curve and the preset calibration curve;
[0072] Based on the curve difference, the degree of difference between the fitted curve and the calibration curve is determined.
[0073] Specifically, the fitted curve is f(x) and the preset calibration curve is g(x). The curve difference between the two is calculated as f(x) - g(x). Then, based on the curve difference, the difference Deg_fg between the fitted curve and the calibration curve is determined as:
[0074]
[0075] Where x represents the independent variable, t represents the length or maximum value of the independent variable, and α represents the preset difference parameter. The above method calculates the difference between the fitted curve and the calibration curve to obtain the degree of difference between them. This degree of difference measures the deviation of the fitted curve from the calibration curve, thus reflecting the deviation between the measurement effect and the expected effect of the photoelectric sensor.
[0076] In step S150, the accuracy of the photoelectric sensor is calibrated based on the difference.
[0077] In one embodiment of this application, after determining the degree of difference between the fitted curve and the calibration curve, the accuracy of the photoelectric sensor is calibrated based on the degree of difference.
[0078] For example, calibration is performed when the difference is greater than or equal to the difference threshold. When the difference is less than the difference threshold, the photoelectric sensor is assumed to be working normally and no calibration is performed.
[0079] In some embodiments of this application, photoelectric sensors are deployed in an industrial production environment, and an industrial internet is constructed based on the photoelectric sensors, gateway devices, and processors. Measurement data collected by the photoelectric sensors is acquired based on a preset data acquisition cycle. The measurement data is then fitted using a preset data model to obtain a fitted curve corresponding to the measurement data. The fitted curve is then compared with a preset calibration curve to determine the degree of difference between the two curves. The accuracy of the photoelectric sensor is calibrated based on this degree of difference. The technical solutions of this application improve the working accuracy and efficiency of the photoelectric sensors by calibrating them based on their working data.
[0080] The following describes an embodiment of the apparatus described in this application, which can be used to execute the industrial internet photoelectric sensor precision control method described in the above embodiments of this application. It is understood that the apparatus may be a computer program (including program code) running on a computer device, for example, the apparatus may be application software; the apparatus may be used to execute the corresponding steps in the method provided in the embodiments of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the industrial internet photoelectric sensor precision control method described above in this application.
[0081] Figure 3 A block diagram of an industrial internet photoelectric sensor accuracy control system according to an embodiment of this application is shown.
[0082] Reference Figure 3 As shown, an industrial internet photoelectric sensor accuracy control system 300 according to an embodiment of this application includes:
[0083] The construction unit 310 is used to deploy photoelectric sensors in an industrial production environment and build an industrial Internet based on the photoelectric sensors, gateway devices, and processor.
[0084] The acquisition unit 320 is used to acquire the measurement data collected by the photoelectric sensor based on a preset data acquisition period;
[0085] The fitting unit 330 is used to fit the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data.
[0086] The comparison unit 340 is used to compare the fitted curve with a preset calibration curve to determine the degree of difference between the two curves.
[0087] The calibration unit 350 is used to calibrate the accuracy of the photoelectric sensor based on the difference.
[0088] In some embodiments of this application, based on the foregoing scheme, the fitting unit 330 includes:
[0089] The identification unit is used to identify abnormal data in the measurement data based on a set data range, and delete the abnormal data in the measurement data to obtain the remaining spare data.
[0090] A parameter fitting unit is used to fit the backup data based on a preset data model and determine the parameter values in the data model.
[0091] A curve unit is used to determine the fitted curve based on the parameter values.
[0092] In some embodiments of this application, based on the foregoing scheme, the step of fitting the backup data based on a preset data model to determine the parameter values in the data model includes: fitting the backup data using the least squares method based on the preset data model to determine the parameter values in the data model.
[0093] In some embodiments of this application, based on the foregoing scheme, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: calculating the difference between the fitting curve and the measurement data; if the difference is greater than or equal to a set threshold, then the measurement data is refitted.
[0094] In some embodiments of this application, based on the aforementioned scheme, after fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: calculating the difference between the fitting curve and the measurement data; if the difference is less than a set threshold, the fitting curve is determined to be a correct curve.
[0095] In some embodiments of this application, based on the foregoing scheme, the step of comparing the fitted curve with a preset calibration curve to determine the degree of difference between the two curves includes: calculating the curve difference between the fitted curve and the preset calibration curve; and determining the degree of difference between the fitted curve and the calibration curve based on the curve difference.
[0096] In some embodiments of this application, photoelectric sensors are deployed in an industrial production environment, and an industrial internet is constructed based on the photoelectric sensors, gateway devices, and processors. Measurement data collected by the photoelectric sensors is acquired based on a preset data acquisition cycle. The measurement data is then fitted using a preset data model to obtain a fitted curve corresponding to the measurement data. The fitted curve is then compared with a preset calibration curve to determine the degree of difference between the two curves. The accuracy of the photoelectric sensor is calibrated based on this degree of difference. The technical solutions of this application improve the working accuracy and efficiency of the photoelectric sensors by calibrating them based on their working data.
[0097] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing the electronic device of the present application is shown.
[0098] It should be noted that, Figure 4 The computer system 400 of the electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0099] like Figure 4As shown, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes based on programs stored in Read-Only Memory (ROM) 402 or programs loaded from storage portion 408 into Random Access Memory (RAM) 403, such as performing the methods described in the above embodiments. The RAM 403 also stores various programs and data required for system operation. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An Input / Output (I / O) interface 405 is also connected to the bus 404.
[0100] The following components are connected to I / O interface 405: an input section 406 including a keyboard, mouse, etc.; an output section 407 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to I / O interface 405 as needed. A removable medium 411, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 410 as needed so that computer programs read from it can be installed into storage section 408 as needed.
[0101] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program including a computer program for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by central processing unit (CPU) 401, it performs various functions defined in the system of this application.
[0102] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. The transmitted data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0103] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0104] The units described in the embodiments of this application can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0105] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative implementations described above.
[0106] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods described in the above embodiments.
[0107] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0108] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.
[0109] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0110] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for precision control of photoelectric sensors in the Industrial Internet, characterized in that, include: Photoelectric sensors are deployed in industrial production environments to collect and measure data, and an industrial internet is built based on the photoelectric sensors, gateway devices, and processors. The Industrial Internet includes: a data sensing layer composed of photoelectric sensors, a network transmission layer composed of gateway devices, and a data processing layer composed of processors. Based on a preset data acquisition cycle, the measurement data collected by the photoelectric sensor is acquired; The measurement data is fitted based on a preset data model to obtain a fitting curve corresponding to the measurement data; wherein, before fitting the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: determining the corresponding data model for the data output of a certain type of photoelectric sensor in advance, and measuring the output parameters of the photoelectric sensor based on the data model to determine the corresponding data model parameters; wherein, various types or models of photoelectric sensors have corresponding data models. The fitted curve is compared with a preset calibration curve to determine the degree of difference between the two curves. The accuracy of the photoelectric sensor is calibrated based on the difference. The step of comparing the fitted curve with a preset calibration curve to determine the degree of difference between the two curves includes: Calculate the curve difference between the fitted curve and the preset calibration curve; Based on the curve difference, the degree of difference between the fitted curve and the calibration curve is determined; The step of calculating the curve difference between the fitted curve and the preset calibration curve includes: Based on the fitted curve and the preset calibration curve are Calculate the curve difference between the two as follows: ; Correspondingly, determining the degree of difference between the fitted curve and the calibration curve based on the curve difference includes: based on the curve difference Determine the degree of difference between the fitted curve and the calibration curve. for: ; Where x represents the independent variable, and t represents the length or maximum value of the independent variable. Indicates the preset difference parameters; After determining the degree of difference between the fitted curve and the calibration curve, the accuracy of the photoelectric sensor is calibrated based on the degree of difference. Calibration is performed when the difference is greater than or equal to the difference threshold; no calibration is performed when the difference is less than the difference threshold. After fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: Based on the independent variable i, obtain the fitted values corresponding to the independent variable from the fitted curve. At the same time, the actual values corresponding to the independent variables are obtained from the measurement data. Based on the differences between the values corresponding to k discrete independent variables, the degree of difference between the fitted curve and the measured data is calculated. for: ; Where i represents the number of the independent variable, represents the data factor, and k represents the number of independent variables; If the difference is greater than or equal to the set threshold, the measurement data is refitted. If the difference is less than a set threshold, the fitted curve is determined to be a correct curve; The process of fitting the measurement data based on a preset data model to obtain a fitting curve corresponding to the measurement data includes: Based on the set data range, abnormal data in the measurement data is identified and deleted to obtain the remaining backup data; Based on a preset data model, the backup data is fitted to determine the parameter values in the data model; The fitted curve is determined based on the parameter values; The process includes fitting the backup data to a preset data model to determine the parameter values in the data model, including: Based on a preset data model, the spare data is fitted using the least squares method to determine the parameter values in the data model.
2. A precision control system for photoelectric sensors in the industrial internet, characterized in that, include: The building unit is used to deploy photoelectric sensors in an industrial production environment and build an industrial Internet based on the photoelectric sensors, gateway devices, and processors. The photoelectric sensor is used to collect and measure data; the industrial internet includes: a data sensing layer composed of photoelectric sensors, a network transmission layer composed of gateway devices, and a data processing layer composed of processors. The acquisition unit is used to acquire measurement data collected by the photoelectric sensor based on a preset data acquisition period; The fitting unit is used to fit the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data; it is also used to: determine the corresponding data model for the data output of a certain type of photoelectric sensor in advance, and measure the output parameters of the photoelectric sensor based on the data model to determine the corresponding data model parameters; wherein, various types or models of photoelectric sensors have corresponding data models. The comparison unit is used to compare the fitted curve with a preset calibration curve to determine the degree of difference between the two curves. A calibration unit is used to calibrate the accuracy of the photoelectric sensor based on the difference. The calculation of the curve difference between the fitted curve and the preset calibration curve includes: Based on the fitted curve and the preset calibration curve are Calculate the curve difference between the two as follows: ; Correspondingly, determining the degree of difference between the fitted curve and the calibration curve based on the curve difference includes: based on the curve difference Determine the degree of difference between the fitted curve and the calibration curve. for: ; Where x represents the independent variable, and t represents the length or maximum value of the independent variable. Indicates the preset difference parameters; After determining the degree of difference between the fitted curve and the calibration curve, the accuracy of the photoelectric sensor is calibrated based on the degree of difference. Calibration is performed when the difference is greater than or equal to the difference threshold; no calibration is performed when the difference is less than the difference threshold. After fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes: Based on the independent variable i, obtain the fitted values corresponding to the independent variable from the fitted curve. At the same time, the actual values corresponding to the independent variables are obtained from the measurement data. Based on the differences between the values corresponding to k discrete independent variables, the degree of difference between the fitted curve and the measured data is calculated. for: ; Where i represents the number of the independent variable, represents the data factor, and k represents the number of independent variables; If the difference is greater than or equal to the set threshold, the measurement data is refitted. If the difference is less than a set threshold, the fitted curve is determined to be a correct curve; The fitting unit is also used for: Based on the set data range, abnormal data in the measurement data is identified and deleted to obtain the remaining backup data; Based on a preset data model, the backup data is fitted to determine the parameter values in the data model; The fitted curve is determined based on the parameter values; The fitting unit is further used to: fit the spare data using the least squares method based on a preset data model to determine the parameter values in the data model.
3. A computer-readable medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the photoelectric sensor precision control method for the Industrial Internet as described in claim 1.
4. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the industrial internet photoelectric sensor precision control method as described in claim 1.