Industrial internet photoelectric sensor precision control method and system, and electronic device
By building a photoelectric sensor system in the Industrial Internet, acquiring and fitting measurement data, and calibrating sensor accuracy, the problem of inaccurate data caused by sensor failure is solved, and the working accuracy and efficiency of the sensors are improved.
Patent Information
- Application Number
- CN202211315723.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2042-08-16
AI Technical Summary
In industrial production, sensor devices are prone to failure due to complex environments and high workloads, resulting in inaccurate and insufficient precision in working data. Existing technologies cannot detect faults in a timely and effective manner, affecting the working efficiency and accuracy of sensors.
In industrial production environments, photoelectric sensors are deployed to build an industrial internet. Measurement data is acquired through gateway devices and processors, curves are fitted based on preset data models, sensor accuracy is calibrated, abnormal data is identified and deleted, parameter values are fitted using the least squares method, and the difference between the fitted curve and the calibration curve is calculated for 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 CN115687877B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention application with the application date of August 16, 2022, the Chinese application number of 202210977813.0, and the invention name of "Photoelectric sensor precision control method and system of industrial internet". TECHNICAL FIELD
[0002] The present application relates to the technical field of computers, in particular to a photoelectric sensor precision control method and system of industrial internet, a computer readable medium and an electronic device. BACKGROUND
[0003] In industrial production, there are many sensor devices for collecting industrial data in the industrial production process. However, due to the complexity of the industrial production environment and the large amount of work, it is easy to cause the working failure of the sensor, and thus cause the problem of inaccurate working data and insufficient working precision. The existing technology cannot effectively detect the failure of the sensor in time, and thus affects the working efficiency and accuracy of the sensor. SUMMARY
[0004] Embodiments of the present application provide a photoelectric sensor precision control method and system of industrial internet, a computer readable medium and an electronic device, which can at least improve the working precision and efficiency of the photoelectric sensor to some extent.
[0005] Other characteristics and advantages of the present application will become apparent from the following detailed description, or will be learned by practice of the present application.
[0006] According to an aspect of an embodiment of the present application, a photoelectric sensor precision control method of industrial internet is provided, comprising: deploying a photoelectric sensor in an industrial production environment, and constructing an industrial internet based on the photoelectric sensor, a gateway device and a processor; acquiring measurement data collected by the photoelectric sensor based on a preset data acquisition period; 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 a difference degree between the two curves; calibrating the precision of the photoelectric sensor based on the difference degree; after fitting the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, further comprising: based on an independent variable i, acquiring a fitting value Val_fit_i corresponding to the independent variable from the fitting curve, acquiring an actual value Val_ace_i corresponding to the independent variable from the measurement data, and calculating the difference degree Dre_di between the fitting curve and the measurement data based on the difference between the values corresponding to the k independent variables.
[0007]
[0008] wherein, i represents the number of independent variables, β represents data factors, and k represents the number of independent variables; if the difference degree is less than a set threshold, the fitting curve is determined as a correct curve.
[0009] In some embodiments of the present application, based on the foregoing scheme, the fitting of the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data comprises: identifying abnormal data in the measurement data based on a set data range, and deleting the abnormal data in the measurement data to obtain remaining backup data; fitting the backup data based on the preset data model to determine the parameter value in the data model; and determining the fitting curve based on the parameter value.
[0010] In some embodiments of the present application, based on the foregoing scheme, the fitting of the backup data based on the preset data model to determine the parameter value in the data model comprises: fitting the backup data based on the preset data model by the least square method to determine the parameter value in the data model.
[0011] In some embodiments of the present application, based on the foregoing scheme, after the fitting of the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, the method further comprises: calculating the difference degree between the fitting curve and the measurement data; and if the difference degree is greater than or equal to a set threshold, re-fitting the measurement data.
[0012] In some embodiments of the present application, based on the foregoing scheme, the comparison of the fitting curve with the preset calibration curve to determine the difference degree between the two curves comprises: calculating the curve difference between the fitting curve and the preset calibration curve; and determining the difference degree between the fitting curve and the calibration curve based on the curve difference.
[0013] According to an aspect of an embodiment of the present application, an optical-electric sensor precision control system of an industrial internet is provided, comprising:
[0014] A construction unit is configured to deploy an optical-electric sensor in an industrial production environment, and construct an industrial internet based on the optical-electric sensor, a gateway device, and a processor.
[0015] An acquisition unit is configured to acquire measurement data collected by the optical-electric sensor based on a preset data acquisition period.
[0016] A fitting unit is configured to fit the measurement data based on a preset data model to obtain a fitting curve corresponding to the measurement data.
[0017] a comparison unit configured to compare the fitting curve with a preset calibration curve, and determine a difference degree between the two curves;
[0018] a calibration unit configured to calibrate the accuracy of the photoelectric sensor based on the difference degree;
[0019] after fitting the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, the method further comprises:
[0020] based on the independent variable i, obtaining a fitting value Val_fit_i corresponding to the independent variable from the fitting curve, and obtaining an actual value Val_ace_i corresponding to the independent variable from the measurement data, and calculating the difference degree Dre_di between the fitting curve and the measurement data based on the difference between the values corresponding to the k independent variables, as follows:
[0021]
[0022] wherein i represents the number of the independent variable, β represents a data factor, and k represents the number of the independent variables;
[0023] if the difference degree is less than a set threshold, it is determined that the fitting curve is a correct curve.
[0024] In some embodiments of the present application, based on the foregoing scheme, the fitting unit comprises:
[0025] a recognition unit configured to recognize abnormal data in the measurement data based on a set data range, and delete the abnormal data in the measurement data to obtain remaining backup data;
[0026] a parameter fitting unit configured to fit the backup data based on a preset data model, and determine a parameter value in the data model;
[0027] a curve unit configured to determine the fitting curve based on the parameter value.
[0028] In some embodiments of the present application, based on the foregoing scheme, fitting the backup data based on the preset data model to determine the parameter value in the data model comprises fitting the backup data based on the preset data model by least square method to determine the parameter value in the data model.
[0029] In some embodiments of the present application, based on the foregoing scheme, after fitting the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, the method further comprises: calculating a difference degree between the fitting curve and the measurement data; and if the difference degree is greater than or equal to a set threshold, fitting the measurement data again.
[0030] In some embodiments of the present application, based on the foregoing scheme, the comparison of the fitting curve and the preset calibration curve to determine the difference between the two curves includes: calculating the curve difference between the fitting curve and the preset calibration curve; and determining the difference between the fitting curve and the calibration curve based on the curve difference.
[0031] According to an aspect of an embodiment of the present application, a computer readable medium having a computer program stored thereon is provided, the computer program, when executed by a processor, implements the method for controlling the accuracy of the photoelectric sensor of the industrial internet as described in the above embodiments.
[0032] According to an aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling the accuracy of the photoelectric sensor of the industrial internet as described in the above embodiments.
[0033] According to an aspect of an embodiment of the present application, a computer program product or computer program is provided, the computer program product or computer program 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 the processor executes the computer instructions, so that the computer device executes the method for controlling the accuracy of the photoelectric sensor of the industrial internet provided in the various optional implementation manners described above.
[0034] In the technical scheme provided in some embodiments of the present application, the photoelectric sensor is arranged in an industrial production environment, and the industrial internet is constructed based on the photoelectric sensor, a gateway device and a processor; based on a preset data acquisition period, the measurement data collected by the photoelectric sensor is acquired, and the measurement data is fitted based on a preset data model to obtain a fitting curve corresponding to the measurement data, then the fitting curve is compared with a preset calibration curve to determine the difference between the two curves, and the accuracy of the photoelectric sensor is calibrated based on the difference. The technical scheme of the embodiments of the present application calibrates the photoelectric sensor based on the working data of the photoelectric sensor, thereby improving the working accuracy and working efficiency of the photoelectric sensor.
[0035] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF DRAWINGS
[0036] The accompanying drawings, which are incorporated herein and constitute part of this specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application. It is apparent that the drawing in the following description is only some embodiments of the application, and other drawings can be obtained by those of ordinary skill in the art without creative effort based on these drawings.
[0037] Figure 1 A flowchart of a photoelectric sensor precision control method of an industrial internet according to an embodiment of the application is schematically shown.
[0038] Figure 2 A flowchart of generating a fitting curve according to an embodiment of the application is schematically shown.
[0039] Figure 3 A schematic diagram of a photoelectric sensor precision control system of an industrial internet according to an embodiment of the application is schematically shown.
[0040] Figure 4 A structural schematic diagram of a computer system of an electronic device suitable for implementing embodiments of the application is shown. DETAILED DESCRIPTION
[0041] Example implementations will now be described more fully with reference to the accompanying drawings. Example implementations may, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of example implementations to those skilled in the art.
[0042] Moreover, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the
[0043] The block diagrams in the drawings show only the functionality of the embodiments and do not imply any particular physical or architectural arrangement of the devices. No inference should be made regarding the architecture or configuration of a device implementing functionality depicted in the drawings from the manner in which the functionality is depicted in the drawings. In some embodiments, the functionality of the blocks can be implemented by software, by hardware, or by a combination of hardware and software. In some embodiments, the blocks can be implemented by one or more processors executing software.
[0044] The flowchart shown in the drawing is only an exemplary illustration, and is not necessarily to include all contents and operations / steps, nor is it necessarily to be executed in the order described. For example, some operations / steps can be further decomposed, and some operations / steps can be combined or partially combined, so that the actual execution order can be changed according to actual conditions.
[0045] The implementation details of the technical solutions of the embodiments of the present application are described in detail as follows:
[0046] Figure 1 A flowchart of an optical-electrical sensor precision control method of an industrial internet according to an embodiment of the present application is shown, which can be executed by a server. Referring to Figure 1 The optical-electrical sensor precision control method of the industrial internet includes at least steps S110 to S150, which are described in detail as follows:
[0047] In step S110, an optical-electrical sensor is arranged in an industrial production environment, and an industrial internet is constructed based on the optical-electrical sensor, a gateway device and a processor.
[0048] In an embodiment of the present application, an optical-electrical sensor is arranged in an industrial production environment for collecting and measuring data. Meanwhile, an industrial internet is constructed based on the optical-electrical sensor, a gateway device and a processor, so as to realize real-time monitoring of industrial production through the industrial internet.
[0049] In an embodiment of the present application, the industrial internet in the present solution can include a data sensing layer composed of optical-electrical sensors, a network transmission layer communicated through a gateway device, and a data processing layer composed of a processor.
[0050] In step S120, measurement data collected by the optical-electrical sensor is acquired based on a preset data acquisition period.
[0051] In an embodiment of the present application, measurement data collected by the optical-electrical sensor is acquired based on a preset data acquisition period. The data acquisition period in the present embodiment can be one day, one month, etc. By collecting the measurement data of the optical-electrical sensor, the working condition of the optical-electrical sensor can be well controlled.
[0052] In step S130, the measurement data is fitted based on a preset data model to obtain a fitting curve corresponding to the measurement data.
[0053] In an embodiment of the present application, based on various types or models of photoelectric sensors, there are corresponding data models, for example, the data output of a model of photoelectric sensor is determined in advance, and the corresponding data model is determined to measure the output parameters of the photoelectric sensor based on the data model, and the corresponding data model parameters are determined. In the present embodiment, the measurement data is fitted based on the preset data model to obtain the fitting curve corresponding to the measurement data.
[0054] Alternatively, the parameter values in the data model can be determined by fitting the backup data by least squares method to obtain the fitting curve corresponding to the measurement data.
[0055] In an embodiment of the present application, the measurement data is fitted based on the preset data model to obtain the fitting curve corresponding to the measurement data, comprising:
[0056] Based on the set data range, the abnormal data in the measurement data is identified and deleted to obtain the remaining backup data;
[0057] Based on the preset data model, the backup data is fitted to determine the parameter values in the data model;
[0058] The fitting curve is determined based on the parameter values.
[0059] Specifically, in the present embodiment, the abnormal data in the measurement data is first determined based on the preset data range, wherein the abnormal data is the data not belonging to the data range, and the abnormal data is deleted to obtain the remaining backup data. In this way, the error rate and noise of the data are reduced by deleting the abnormal data, thereby improving the accuracy and correctness of the curve fitting. Then, the backup data is fitted based on the preset data model to determine the parameter values in the data model, and the fitting curve is determined based on the parameter values.
[0060] In an embodiment of the present application, after the measurement data is fitted based on the preset data model to obtain the fitting curve corresponding to the measurement data, it further comprises:
[0061] Based on the fitting curve and the measurement data, the difference between them is calculated;
[0062] If the difference is greater than or equal to a set threshold, the measurement data is fitted again.
[0063] Specifically, based on the independent variable i, the fitting value Val_fit_i corresponding to the independent variable is obtained from the fitting curve, and the actual value Val_ace_i corresponding to the independent variable is obtained from the measurement data, and the difference between the two is calculated as Val_ace_i-Val_fit_i. Then, based on the difference between the values corresponding to the k discrete independent variables, the difference degree Dre_di between the fitting curve and the measurement data is calculated as:
[0064]
[0065] Where i represents the number of independent variables, and β represents the data factor. The above method calculates the difference between the discrete values to obtain the difference degree between the fitting curve and the measurement data, which is used to measure the consistency between the fitting curve and the measurement data. If the difference degree between the two is high, the difference degree is greater than or equal to a set threshold, which indicates that the fitting curve cannot accurately represent the measurement data, and the difference between the two is too large, so the measurement data needs to be fitted again.
[0066] After fitting the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, the method further includes:
[0067] Based on the fitting curve and the measurement data, the difference degree between the two is calculated.
[0068] If the difference degree is less than a set threshold, the fitting curve is determined to be a correct curve.
[0069] Specifically, after calculating the difference degree between the fitting curve and the measurement data, if the difference degree is less than a set threshold, the fitting curve is determined to be a correct curve. Through the above method, the difference between the fitting curve and the measurement data is detected, and the difference between the two is kept small.
[0070] In step S140, the fitting curve is compared with the preset calibration curve to determine the difference degree between the two curves.
[0071] In an embodiment of the present application, after the fitting curve is generated, the fitting curve and the preset calibration curve are compared to determine the difference between the two, and the accuracy of the actual measurement data is measured according to the difference.
[0072] In an embodiment of the present application, the fitting curve is compared with the preset calibration curve to determine the difference degree between the two curves, including:
[0073] The curve difference between the fitting curve and the preset calibration curve is calculated.
[0074] Based on the curve difference, a degree of difference between the fitting curve and the calibration curve is determined.
[0075] Specifically, the fitting curve is f(x) and the preset calibration curve is g(x), and the curve difference between the two is f(x)-g(x). Then, based on the curve difference, a degree of difference Deg_fg between the fitting curve and the calibration curve is determined as:
[0076]
[0077] Wherein, x represents the independent variable, t represents the length or maximum value of the independent variable, and a represents a preset difference parameter. The above method obtains the degree of difference between the fitting curve and the calibration curve by calculating the curve difference between the two, so as to measure the deviation of the fitting curve from the calibration curve through the degree of difference, and then reflect the deviation between the measurement effect and the expected effect of the photoelectric sensor.
[0078] In step S150, the accuracy of the photoelectric sensor is calibrated based on the degree of difference.
[0079] In an embodiment of the present application, after the degree of difference between the fitting curve and the calibration curve is determined, the accuracy of the photoelectric sensor is calibrated based on the degree of difference.
[0080] For example, when the degree of difference is greater than or equal to a degree of difference threshold, calibration is performed. When the degree of difference is less than the degree of difference threshold, it is defaulted that the photoelectric sensor works normally, and no calibration is performed.
[0081] In some embodiments of the technical solutions provided in the present application, the photoelectric sensor is arranged in an industrial production environment, and an industrial internet is constructed based on the photoelectric sensor, a gateway device and a processor; based on a preset data acquisition period, measurement data collected by the photoelectric sensor is acquired, and the measurement data is fitted based on a preset data model to obtain a fitting curve corresponding to the measurement data, then the fitting curve is compared with a preset calibration curve to determine a degree of difference between the two curves, and the accuracy of the photoelectric sensor is calibrated based on the degree of difference. The technical solutions of the embodiments of the present application calibrate the photoelectric sensor based on its working data, thereby improving the working accuracy and efficiency of the photoelectric sensor.
[0082] The device embodiments of the present application are introduced below, which can be used to execute the photoelectric sensor precision control method of the industrial internet in the above-mentioned embodiments of the present application. It can be understood that the device can be a computer program (including program code) running in a computer device, for example, the device is an application software; the device can be used to execute the corresponding steps in the method provided by the embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the above-mentioned embodiments of the photoelectric sensor precision control method of the industrial internet.
[0083] Figure 3 A block diagram of a photoelectric sensor precision control system of the industrial internet according to an embodiment of the present application is shown.
[0084] Referring to Figure 3 The photoelectric sensor precision control system 300 of the industrial internet according to an embodiment of the present application is shown, which includes:
[0085] The construction unit 310 is configured to deploy photoelectric sensors in an industrial production environment, and construct an industrial internet based on the photoelectric sensors, gateway devices, and processors;
[0086] The acquisition unit 320 is configured to acquire measurement data collected by the photoelectric sensors based on a preset data acquisition period;
[0087] The fitting unit 330 is configured to fit the measurement data based on a preset data model, to obtain a fitting curve corresponding to the measurement data;
[0088] The comparison unit 340 is configured to compare the fitting curve with a preset calibration curve, to determine a difference degree between the two curves;
[0089] The calibration unit 350 is configured to calibrate the precision of the photoelectric sensors based on the difference degree.
[0090] In some embodiments of the present application, based on the foregoing scheme, the fitting unit 330 includes:
[0091] The identification unit is configured 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 remaining backup data;
[0092] The parameter fitting unit is configured to fit the backup data based on a preset data model, to determine a parameter value in the data model;
[0093] The curve unit is configured to determine the fitting curve based on the parameter value.
[0094] In some embodiments of the present application, based on the foregoing scheme, the fitting of the backup data based on the preset data model, the determination of the parameter value in the data model comprises: fitting the backup data based on the preset data model by the least square method, and determining the parameter value in the data model.
[0095] In some embodiments of the present application, based on the foregoing scheme, after the fitting of the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, it further comprises: calculating the difference degree between the fitting curve and the measurement data; if the difference degree is greater than or equal to a set threshold, the measurement data is fitted again.
[0096] In some embodiments of the present application, based on the foregoing scheme, after the fitting of the measurement data based on the preset data model to obtain the fitting curve corresponding to the measurement data, it further comprises: calculating the difference degree between the fitting curve and the measurement data; if the difference degree is less than a set threshold, the fitting curve is determined as a correct curve.
[0097] In some embodiments of the present application, based on the foregoing scheme, the comparison of the fitting curve with the preset calibration curve to determine the difference degree between the two curves comprises: calculating the curve difference between the fitting curve and the preset calibration curve; based on the curve difference, determining the difference degree between the fitting curve and the calibration curve.
[0098] In some embodiments of the present application, the technical scheme provided in the technical scheme comprises: arranging a photoelectric sensor in an industrial production environment, and constructing an industrial internet based on the photoelectric sensor, a gateway device and a processor; based on a preset data acquisition period, acquiring measurement data collected by the photoelectric sensor, fitting the measurement data based on a preset data model to obtain a fitting curve corresponding to the measurement data, then comparing the fitting curve with a preset calibration curve to determine the difference degree between the two curves, and calibrating the accuracy of the photoelectric sensor based on the difference degree. The technical scheme of the embodiments of the present application calibrates the photoelectric sensor based on the working data of the photoelectric sensor, and improves the working accuracy and efficiency of the photoelectric sensor.
[0099] Figure 4 The structure schematic diagram of the computer system of the electronic device suitable for realizing the embodiments of the present application is shown.
[0100] It should be noted that, Figure 4 The computer system 400 of the electronic device shown is only an example, and should not impose any limitation on the functions and use range of the embodiments of the present application.
[0101] As Figure 4As shown, the computer system 400 includes a central processing unit (CPU) 401 which can perform various suitable actions and processes in accordance with programs stored in a read-only memory (ROM) 402 or loaded from a storage section 408 into a random access memory (RAM) 403, such as performing the methods described in the above embodiments. Various programs and data required for the operation of the system are also stored in the RAM 403. The CPU 401, the ROM 402, and the RAM 403 are connected to each other through a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0102] Connected to the I / O interface 405 are an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, 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, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as necessary. A removable recording medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 410 as necessary, so that a computer program read therefrom is installed into the storage section 408 as necessary.
[0103] In particular, in accordance with embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing computer programs for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 409, and / or installed from the removable recording medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are performed.
[0104] It should be noted that the computer-readable medium in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, the 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, device or apparatus. In the present application, the computer-readable signal medium can include a data signal carrying computer-readable computer programs in a baseband or as a part of a carrier wave. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, which can send, propagate or transmit programs for use by or in conjunction with an instruction execution system, device or apparatus. The computer programs contained in the computer-readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, or the like, or any suitable combination thereof.
[0105] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In the flowcharts or block diagrams, each block can represent a module, a program segment or a part of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than that shown in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams or flowcharts, and the combination of blocks in the block diagrams or flowcharts, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0106] The units described in the embodiments of the present application can be implemented by software, or by hardware, or by a combination of software and hardware. The units described can also be located in a single processor. In some cases, the names of the units do not limit the units themselves.
[0107] According to an aspect of the present 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 the processor executes the computer instructions, so that the computer device performs the method provided in the various optional implementation manners described above.
[0108] As another aspect, the present application also provides a computer readable medium, which can be included in the electronic device described in the above embodiments, or can exist separately without being 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 implement the method described in the above embodiments.
[0109] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, the division is not mandatory. In fact, according to the embodiments of the present 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 into several modules or units.
[0110] From the above description of the embodiments, those skilled in the art will readily appreciate that the example embodiments described herein can be implemented by software and / or by hardware. Accordingly, the technical solutions of the embodiments of the present application can be embodied in the form of a software product. The software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, or the like) or on a network, and includes a number of instructions for causing a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to perform the methods according to the embodiments of the present application.
[0111] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the application following the general principles thereof and including such departures from the present disclosure as come within known use or custom in the art.
[0112] It is to be understood that the application is not limited to the precise construction herein described and as shown in the drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope thereof. The scope of the application is limited only by the claims appended hereto.
Claims
1. A method for precision control of photoelectric sensors in the Industrial Internet, characterized in that, include: Deploy photoelectric sensors in industrial production environments, and build an industrial internet based on the photoelectric sensors, gateway devices, and 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 process of fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data further includes: Based on the fitted curve and the measurement data, the degree of difference between the two is calculated; 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. 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. Obtain the actual value corresponding to the independent variable from the measurement data. Based on the differences between the values corresponding to k 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 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. 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 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. 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. 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. Obtain the actual value corresponding to the independent variable from the measurement data. Based on the differences between the values corresponding to k 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 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; The fitting unit includes: 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. 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. A curve unit, used to determine the fitted curve based on the parameter values; Before fitting the measurement data to obtain the fitting curve corresponding to the measurement data based on the preset data model, the method further includes: determining the corresponding data model for the data output of a certain type of photoelectric sensor, 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 process of fitting the measurement data based on a preset data model to obtain the fitting curve corresponding to the measurement data further includes: Based on the fitted curve and the measurement data, the degree of difference between the two is calculated; 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. 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.
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.
Citation Information
Patent Citations
Photoelectric sensor calibration method and device, air conditioner and readable storage medium
CN109059181A
An improved shapley value based wind power convergence trend state quantization method
CN109193791A
Optical fiber test data processing method and device, computer device and storage medium
CN110149143A
Calibration and calibration method and system of gas sensor
CN113533641A