Moisture measurement resource scheduling method and system, electronic equipment and storage medium
By obtaining the connection relationship and historical data between moisture detection equipment and edge equipment, optimizing the equipment matching degree, solving the efficiency and accuracy problems of traditional moisture detection equipment under complex working conditions, and achieving more efficient and accurate moisture detection.
Patent Information
- Application Number
- CN202411135875.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-08-19
AI Technical Summary
Traditional moisture detection equipment is low in efficiency and low accuracy under complex working conditions, and cannot adapt to changes in various materials and environments, resulting in reduced production efficiency and inconsistent testing results.
By obtaining the connection relationship, historical data and resource information between moisture detection equipment and edge equipment, calculate new connection relationships, adjust the equipment matching degree, optimize moisture detection data correction, and improve detection accuracy and efficiency.
It improves the adaptability of moisture detection tasks and equipment, improves detection efficiency and accuracy, and adapts to various materials and environmental changes under complex working conditions.
Smart Images

Figure CN119202933A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sensor technology, and in particular to a method, system, electronic device and storage medium for scheduling moisture measurement resources. Background Art
[0002] In the process of industrial and agricultural production, storage, transportation and use, there are strict requirements for the moisture content of materials (medium). Materials that do not meet the moisture content may cause product functions and performance failures or production efficiency to fail to meet the requirements. Therefore, moisture detection equipment with sensors will be used to detect the moisture content of materials to ensure that the moisture content of the target material is within the preset requirements. However, other situations may occur in the actual application environment. On the one hand, there are many types of material mixing (up to hundreds or thousands of types), and the moisture calibration of moisture detection equipment (including sensors required for moisture detection) cannot cover all material mixing conditions, resulting in no corresponding moisture content detection model when using moisture detection equipment to detect some mixed materials. The moisture detection model that adapts to all material mixing conditions requires a lot of time for calibration, which is difficult to achieve in terms of time schedule. On the other hand, in the actual production process of the same material, changes in material temperature, thickness, and particle size will also affect the moisture calibration value, causing an increase in the error of the moisture measurement value, affecting the accuracy and consistency of moisture detection in the actual production process, and thus leading to delayed production progress and reduced production efficiency. Summary of the invention
[0003] The main technical problem solved by the implementation methods of the present application is that the moisture detection efficiency under traditional complex working conditions is low and the accuracy of the moisture detection results is not high.
[0004] In order to solve the above technical problems, the first technical solution adopted by the implementation method of the present application is: to provide a moisture measurement resource scheduling method, including: obtaining the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection device and the edge device; obtaining the detection history data of the moisture detection device and the current moisture detection task to be executed, and obtaining the historical identification information and historical resource occupancy information of the edge device; calculating according to the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information, to obtain a new second connection relationship between the moisture detection device and the edge device; according to the second connection relationship, correspondingly connecting the moisture detection device to the new edge device, and sending the detection history data and the moisture detection task to be executed to the newly connected edge device; obtaining the current moisture detection data of the moisture detection device, and calculating according to the current moisture detection data and the detection history data through the newly connected edge device to obtain the current moisture detection correction data; sending the current moisture detection correction data to the moisture detection device, and storing the current moisture detection correction data.
[0005] Optionally, the step of obtaining the detection history data of the moisture detection equipment and the current moisture detection task to be executed also includes: obtaining historical material characteristic data, historical detection environment data and historical material transmission speed corresponding to the detection history data; obtaining current material characteristic data, current detection environment data and current material transmission speed corresponding to the current moisture detection task to be executed.
[0006] Optionally, the step of calculating, based on the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information, to obtain a new second connection relationship between the moisture detection device and the edge device includes: traversing the moisture detection device to obtain the moisture detection task to be executed corresponding to the moisture detection device; calculating a first similarity between the moisture detection task to be executed and the historical detection data based on the historical material feature data and the current material feature data; calculating a second similarity between the moisture detection task to be executed and the historical detection data based on the historical detection environment data and the current detection environment data; calculating a second similarity between the moisture detection task to be executed and the historical detection data based on the historical material transmission speed and the current material transmission speed. a third similarity of the data; according to the first similarity, the second similarity, the third similarity, and the preset different similarity weights, a fourth similarity between the moisture detection task to be executed and the historical detection data is obtained; the associated edge device corresponding to the historical test data associated with the fourth similarity is obtained, and the matching value between the current moisture detection device being traversed and the associated edge device is obtained according to the historical identification information, the historical resource occupancy information, the current resource occupancy data and the fourth similarity calculation of the associated edge device is obtained; the second connection sub-relationship of the current moisture detection device being traversed connected to the associated edge device corresponding to the largest matching value is set; when the traversal is completed, the second connection relationship is generated according to the second sub-connection relationship.
[0007] Optionally, the step of obtaining a matching degree value between the current moisture detection device being traversed and the associated edge device based on the historical identification information, the historical resource occupancy information, the current resource occupancy data and the fourth similarity calculation of the associated edge device includes: traversing the associated edge devices corresponding to the associated historical detection data in order of the fourth similarity from high to low; calculating a first sub-matching degree between the current moisture detection device being traversed and the current associated edge device being traversed based on the historical identification information of the associated edge device and the device information data of the current moisture detection device being traversed; calculating a second sub-matching degree between the current moisture detection device being traversed and the current associated edge device being traversed based on the historical resource occupancy information and the current resource occupancy data corresponding to the associated edge device in the time period of the historical detection data; and obtaining the matching degree value based on the first sub-matching degree, the second sub-matching degree, and preset different matching degree weights.
[0008] Optionally, the step of obtaining current moisture detection correction data by calculating according to the current moisture detection data and the detection history data through the newly connected edge device includes: generating a corresponding detection history fitting curve according to the detection history data through the edge device; obtaining a corresponding moisture data adjustment function by integrating different detection history fitting curves; and processing the current moisture detection data through the moisture data adjustment function to obtain the corresponding current moisture detection correction data.
[0009] Optionally, before the step of setting the current moisture detection device being traversed to be connected to the second connection sub-relationship of the associated edge device corresponding to the maximum matching degree value, it includes: judging whether the maximum matching degree value is greater than a preset matching degree value threshold, and if otherwise setting the current moisture detection device being traversed to be connected to the second connection sub-relationship of the cloud.
[0010] Optionally, the step of calculating according to the current moisture detection data and the detection history data through the newly connected edge device also includes: monitoring current resource occupancy data of the newly connected edge device when performing data calculation; if the current resource occupancy data during the calculation is greater than a preset resource occupancy threshold, and the duration of being greater than the preset resource occupancy threshold exceeds a preset resource warning time, stopping the current calculation of the newly connected edge device; and forwarding the data associated with the current calculation to the cloud for data calculation.
[0011] In order to solve the above technical problems, the second technical solution adopted by the implementation method of the present application is: to provide a moisture measurement resource scheduling system, including: a first connection relationship module, used to obtain the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection device and the edge device; a data acquisition module, used to obtain the detection history data of the moisture detection device and the current moisture detection task to be executed, and obtain the historical identification information and historical resource occupancy information of the edge device; a second connection relationship module, used to calculate according to the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information, to obtain a new second connection relationship between the moisture detection device and the edge device; a connection relationship update module, used to connect the moisture detection device to the new edge device according to the second connection relationship, and send the detection history data and the moisture detection task to be executed to the newly connected edge device; a data calculation module, used to obtain the current moisture detection data of the moisture detection device, and calculate according to the current moisture detection data and the detection history data through the newly connected edge device to obtain the current moisture detection correction data; a data sending module, used to send the current moisture detection correction data to the moisture detection device, and store the current moisture detection correction data.
[0012] To solve the above technical problems, the third technical solution adopted in the implementation manner of the present application is: to provide an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the moisture measurement resource scheduling method as described above.
[0013] In order to solve the above technical problems, the fourth technical solution adopted in the implementation mode of the present application is: providing a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the moisture measurement resource scheduling method as described above.
[0014] Different from the related art, the present application improves the compatibility of moisture detection tasks in complex working conditions and the hardware equipment involved in the moisture detection tasks, and further improves the efficiency and accuracy of moisture detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.
[0016] Figure 1 It is a schematic diagram of the application environment of the moisture measurement resource scheduling method provided in the embodiment of the present application.
[0017] Figure 2 It is a schematic diagram of the execution flow of the moisture measurement resource scheduling method provided in an embodiment of the present application.
[0018] Figure 3 It is a schematic diagram of the execution flow of obtaining the second connection relationship in the moisture measurement resource scheduling method provided in an embodiment of the present application.
[0019] Figure 4 It is a schematic diagram of the execution flow of obtaining a matching degree value in the moisture measurement resource scheduling method provided in an embodiment of the present application.
[0020] Figure 5 It is a structural diagram of the moisture measurement resource scheduling system provided in an embodiment of the present application.
[0021] Figure 6 It is a hardware structure diagram of an electronic device for executing a moisture measurement resource scheduling method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0023] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the system schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the system schematic diagram or the order in the flow chart.
[0024] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0025] To facilitate understanding of this embodiment, a moisture measurement resource scheduling method disclosed in the embodiment of the present application is first described in detail. Figure 1 , Figure 1 This is a schematic diagram of the application environment of the moisture measurement resource scheduling method provided in the embodiment of the present application. As shown in the figure, each measured material 10 that needs to be measured for moisture is connected to at least one moisture measuring device 20. The moisture measuring device 20 is generally a moisture measurement sensor used in the production process. The moisture measuring device 20 is then connected to the edge device 30 or directly connected to the cloud 40 through the network. The edge device 30 is finally connected to the cloud 40 through the network. The cloud 40 is generally deployed with a management system for systematic management of moisture measurement-related production activities. Among them, the cloud 40 can be a server, and the server can be an independent server, or it can be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as basic cloud computing services such as big data and artificial intelligence platforms. It should be specially noted that, Figure 1 The numbers of the measured material 10, the moisture measuring device 20, the edge device 30 and the cloud 40 in the figure are only schematic, and the numbers can be increased or decreased arbitrarily in the actual implementation process.
[0026] Please continue reading Figure 2 , Figure 2 : is a schematic diagram of the execution flow of the moisture measurement resource scheduling method provided in an embodiment of the present application, as shown in the figure, which may include the following steps:
[0027] S10: Obtain the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection devices and the edge devices.
[0028] Among them, edge devices refer to devices located at the edge of the network or close to the data source. Edge devices can perform functions such as data collection, storage, computing and transmission, can communicate with the cloud, and also have certain processing capabilities, and can process and analyze data locally. Edge devices are mainly used to solve the problems of latency, bandwidth pressure and data privacy brought about by traditional centralized data processing methods. By processing and analyzing data on edge devices, events can be responded to quickly locally, the amount of data transmitted can be reduced, and the efficiency and security of the system can be improved. Edge computing is a computing model developed based on this concept, emphasizing data processing close to the data source to improve data processing efficiency and reduce latency.
[0029] S20: Obtain the detection history data of the moisture detection device and the current moisture detection task to be executed, and obtain the historical identification information and historical resource occupancy information of the edge device.
[0030] As an optional implementation, in the process of obtaining the detection history data of the moisture detection equipment and the current moisture detection task to be executed, the historical material characteristic data, historical detection environment data and historical material transmission speed corresponding to the detection history data can also be obtained. For example, each moisture detection device can obtain characteristic data such as material type, material thickness, material density, material particle size, etc. of the historical materials detected in the history of material detection. The historical detection environment data can be environmental data such as temperature, humidity, ventilation degree, etc. of the environment in which the historical materials detected were located at that time. The historical material transmission speed generally refers to the transmission speed when the material is generally transported by a traditional belt or other transmission system during the generation process. Furthermore, the current material characteristic data, current detection environment data and current material transmission speed corresponding to the current moisture detection task to be executed are obtained. Correspondingly, the current material characteristic data, current detection environment data and current material transmission speed can be further used to find the detection history data with high similarity to the current moisture detection task. It should be noted that the three data dimensions of material characteristic data, detection environment data and material transmission speed are only used as exemplary illustrations in the embodiments of the present application. The purpose is to find the correlation or similarity between the current moisture detection task and the detection history data. In the actual implementation process, data of other dimensions are also used in combination to obtain detection history data with higher correlation or similarity.
[0031] S30. Obtain a new second connection relationship between the moisture detection device and the edge device based on the detection history data, the moisture detection task to be executed, the historical identification information, and the historical resource occupancy information.
[0032] As a preferred implementation, please continue to refer to Figure 3 , Figure 3 This is a schematic diagram of an execution flow of obtaining a second connection relationship in the moisture measurement resource scheduling method provided in an embodiment of the present application. As shown in the figure, it may include the following steps:
[0033] S301, traverse the moisture detection equipment to obtain the moisture detection tasks to be executed corresponding to the moisture detection equipment.
[0034] S302: Calculate a first similarity between the moisture detection task to be executed and the historical detection data based on the historical material feature data and the current material feature data.
[0035] The material characteristic data may include material type, material thickness, material diameter, material density and other characteristic data.
[0036] S303: Calculate a second similarity between the moisture detection task to be executed and the historical detection data according to the historical detection environment data and the current detection environment data.
[0037] The detected environment data may include environment data such as environment temperature, environment humidity, and environment ventilation data.
[0038] S304. Calculate a third similarity between the moisture detection task to be executed and the historical detection data according to the historical material transmission speed and the current material transmission speed.
[0039] Among them, it is necessary to specially explain that there is a situation where the material transmission speed is 0, that is, the application scenario of measuring the moisture content of the target material in a static state.
[0040] S305 , obtaining a fourth similarity between the moisture detection task to be executed and the historical detection data according to the first similarity, the second similarity, the third similarity, and preset different similarity weights.
[0041] Among them, the preset similarity weight can be flexibly adjusted according to the actual implementation process, because different implementation scenarios may have different proportions of influencing factors. For example, if the moisture content of the target material is measured in a static state, the similarity weight of the third similarity can be reduced. In addition, different similarity weights can be set when measuring the moisture content of different target materials under the same test environment, and even different similarity weights can be set for the same target material under the same test environment in different moisture measurement tasks to obtain more accurate moisture measurement data.
[0042] S306. Obtain the associated edge device corresponding to the historical test data associated with the fourth similarity, and obtain the matching value between the traversed current moisture detection device and the associated edge device according to the historical identification information, historical resource occupancy information, current resource occupancy data and the fourth similarity calculation of the associated edge device.
[0043] As a preferred implementation, please continue to refer to Figure 4 , Figure 4 This is a schematic diagram of the execution flow of obtaining a matching degree value in the moisture measurement resource scheduling method provided in an embodiment of the present application. As shown in the figure, it may include the following steps:
[0044] S3061. Traverse the associated edge devices corresponding to the associated historical detection data in order of the fourth similarity from high to low.
[0045] Among them, if the data processing device corresponding to the historical detection data is not an edge device but a cloud device (that is, the data processing process is completed in the cloud), the corresponding historical detection data can be removed.
[0046] S3062. Calculate a first sub-matching degree between the traversed current moisture detection device and the traversed current associated edge device according to the historical identification information of the associated edge device and the device information data of the traversed current moisture detection device.
[0047] S3063. Calculate the second sub-matching degree between the traversed current moisture detection device and the traversed current associated edge device according to the historical resource occupancy information corresponding to the time period of the historical detection data and the current resource occupancy data of the associated edge device.
[0048] Among them, according to the historical resource occupancy information corresponding to the associated edge device, the resources required to execute the current moisture detection task to be executed can be roughly estimated. Combined with the current resource occupancy, it can be estimated whether the current associated edge device is suitable for executing the current moisture detection task to be executed.
[0049] S3064: Obtain a matching degree value by calculating according to the first sub-matching degree, the second sub-matching degree, and different preset matching degree weights.
[0050] Among them, the preset matching weight can be flexibly adjusted according to the actual implementation process, because the proportion of influencing factors may be different in different implementation scenarios.
[0051] S307 , setting the second connection sub-relationship of the current moisture detection device being traversed to be connected to the associated edge device corresponding to the maximum matching degree value.
[0052] As a preferred implementation, before executing the above step S307, it can also be determined whether the maximum matching degree value obtained is greater than a preset matching degree value threshold. If the maximum matching degree value is less than or equal to the preset matching degree value threshold, the second connection sub-relationship of the current moisture detection device being traversed connected to the cloud is set.
[0053] S308. When the traversal is finished, generate a second connection relationship according to the second sub-connection relationship.
[0054] S40. According to the second connection relationship, the moisture detection device is correspondingly connected to the new edge device, and the detection history data and the moisture detection task to be executed are sent to the newly connected edge device.
[0055] Among them, if there are other newly added edge devices in the system, the second connection sub-relationship of the traversed current moisture detection device connected to the newly added edge device can also be set according to the judgment result of the above matching degree value.
[0056] S50, obtaining the current moisture detection data of the moisture detection device, and obtaining the current moisture detection correction data through calculation based on the current moisture detection data and the detection history data by the newly connected edge device.
[0057] As a preferred embodiment, the above step S50 may specifically include: first, generating a corresponding detection history fitting curve according to the detection history data through the edge device. Then, synthesizing the different detection history fitting curves obtained, a corresponding moisture data calibration function is obtained. Finally, the current moisture detection data is processed by the moisture data calibration function to obtain the corresponding current moisture detection correction data.
[0058] As another preferred embodiment, the above step S50 may also include: first, monitoring the current resource occupancy data of the newly connected edge device during data calculation, if the current resource occupancy data of the newly connected edge device during calculation is greater than the preset resource occupancy threshold (causing the hardware resources of the edge device to be tight, on the one hand, the probability of errors in the software programs running on the edge device is increased, and on the other hand, the hardware devices of the edge device itself are easily damaged when running under high load conditions for a long time), and the duration greater than the preset resource occupancy threshold exceeds the preset resource warning time, then stop the current calculation of the newly connected edge device. Finally, forward the data associated with the current calculation to the cloud for data calculation.
[0059] S60, sending the current moisture detection correction data to the moisture detection device, and storing the current moisture detection correction data.
[0060] The moisture measurement resource scheduling method provided in the embodiment of the present application obtains the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection devices and the edge devices; obtains the detection history data of the moisture detection device and the current moisture detection task to be executed, and obtains the historical identification information and historical resource occupancy information of the edge device; calculates based on the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information to obtain a new second connection relationship between the moisture detection device and the edge device; connects the moisture detection device to the new edge device according to the second connection relationship; obtains the current moisture detection data of the moisture detection device, and calculates based on the current moisture detection data and the detection history data to obtain the current moisture detection correction data; sends the current moisture detection correction data to the moisture detection device, thereby improving the compatibility of the moisture detection task and the hardware equipment involved in the moisture detection task in complex working conditions application scenarios, and further improves the efficiency and accuracy of moisture detection.
[0061] Please continue reading Figure 5 , Figure 5It is a structural diagram of the moisture measurement resource scheduling system provided in an embodiment of the present application. As shown in the figure, the moisture measurement resource scheduling system 50 includes: a first connection relationship module 51, a data acquisition module 52, a second connection relationship module 53, a connection relationship update module 54, a data calculation module 55 and a data sending module 56.
[0062] The first connection relationship module 51 is used to obtain the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection device and the edge device;
[0063] The data acquisition module 52 is used to acquire the detection history data of the moisture detection device and the current moisture detection task to be executed, and to acquire the historical identification information and historical resource occupancy information of the edge device;
[0064] The second connection relationship module 53 is used to calculate, according to the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information, to obtain a new second connection relationship between the moisture detection device and the edge device;
[0065] The connection relationship updating module 54 is used to connect the moisture detection device to the new edge device according to the second connection relationship, and send the detection history data and the moisture detection task to be executed to the newly connected edge device;
[0066] The data calculation module 55 is used to obtain the current moisture detection data of the moisture detection device, and obtain the current moisture detection correction data by calculating according to the current moisture detection data and the detection history data through the newly connected edge device;
[0067] The data sending module 56 is used to send the current moisture detection correction data to the moisture detection device, and store the current moisture detection correction data.
[0068] As an optional implementation, the data acquisition module 52 is also used to obtain historical material characteristic data, historical detection environment data and historical material transmission speed corresponding to the detection history data; and obtain current material characteristic data, current detection environment data and current material transmission speed corresponding to the current moisture detection task to be executed.
[0069] As an optional implementation, the second connection relationship module 53 is specifically used to traverse the moisture detection equipment to obtain the moisture detection task to be executed corresponding to the moisture detection equipment; calculate the first similarity between the moisture detection task to be executed and the historical detection data according to the historical material feature data and the current material feature data; calculate the second similarity between the moisture detection task to be executed and the historical detection data according to the historical detection environment data and the current detection environment data; calculate the third similarity between the moisture detection task to be executed and the historical detection data according to the historical material transmission speed and the current material transmission speed; calculate the third similarity between the moisture detection task to be executed and the historical detection data according to the first similarity, the second similarity, The third similarity, as well as the preset different similarity weights are calculated to obtain the fourth similarity between the moisture detection task to be executed and the historical detection data; the associated edge device corresponding to the historical test data associated with the fourth similarity is obtained, and the matching value between the current moisture detection device being traversed and the associated edge device is obtained according to the historical identification information, the historical resource occupancy information, the current resource occupancy data and the fourth similarity calculation of the associated edge device; the second connection sub-relationship of the current moisture detection device being traversed connected to the associated edge device corresponding to the largest matching value is set; when the traversal is completed, the second connection relationship is generated according to the second sub-connection relationship.
[0070] As an optional implementation, the second connection relationship module 53 is also used to traverse the associated edge devices corresponding to the associated historical detection data in order from high to low according to the fourth similarity; calculate the first sub-matching degree between the current moisture detection device being traversed and the current associated edge device being traversed based on the historical identification information of the associated edge device and the device information data of the current moisture detection device being traversed; calculate the second sub-matching degree between the current moisture detection device being traversed and the current associated edge device being traversed based on the historical resource occupancy information corresponding to the associated edge device in the time period of the historical detection data and the current resource occupancy data; obtain the matching degree value based on the first sub-matching degree, the second sub-matching degree, and preset different matching degree weights.
[0071] As an optional implementation, the data calculation module 55 is specifically used to generate a corresponding detection history fitting curve according to the detection history data through the edge device; obtain a corresponding moisture data adjustment function by integrating the different detection history fitting curves obtained; and process the current moisture detection data through the moisture data adjustment function to obtain the corresponding current moisture detection correction data.
[0072] As an optional implementation, the second connection relationship module 53 is also used to determine whether the maximum matching degree value is greater than a preset matching degree value threshold. If not, the second connection sub-relationship of the current moisture detection device being traversed is set to be connected to the cloud.
[0073] As an optional implementation, the data calculation module 55 is also used to monitor the current resource occupancy data of the newly connected edge device when performing data calculation; if the current resource occupancy data during the calculation is greater than a preset resource occupancy threshold, and the duration of being greater than the preset resource occupancy threshold exceeds a preset resource warning time, the current calculation of the newly connected edge device is stopped; and the data associated with the current calculation is forwarded to the cloud for data calculation.
[0074] It should be noted that the above-mentioned moisture measurement resource scheduling system can execute the moisture measurement resource scheduling method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in the embodiment of the moisture measurement resource scheduling system, please refer to the moisture measurement resource scheduling method provided in the embodiment of the present application.
[0075] Figure 6 is a hardware structure diagram of an electronic device 600 for executing a method for scheduling water content measurement resources provided in an embodiment of the present application, such as Figure 6 As shown, the electronic device 600 includes:
[0076] One or more processors 610 and memory 620, Figure 6 A processor 610 is taken as an example.
[0077] The processor 610 and the memory 620 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.
[0078] The memory 620, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the moisture measurement resource scheduling method in the embodiment of the present application. The processor 610 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 620, that is, the moisture measurement resource scheduling method in the above method embodiment is implemented.
[0079] The memory 620 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the moisture measurement resource scheduling system, etc. In addition, the memory 620 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 620 may optionally include a memory remotely arranged relative to the processor 610, and these remote memories may be connected to the moisture measurement resource scheduling system via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0080] The one or more modules are stored in the memory 620, and when executed by the one or more processors 610, execute the moisture measurement resource scheduling method in any of the above method embodiments, for example, execute the above described Figure 2 Steps S10 to S60 of the method, Figure 3 Steps S301 to S308 of the method, Figure 4 Steps S3601 to S3604 of the method are implemented Figure 5 The functions of modules 51-56 in.
[0081] The above-mentioned product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not fully described in this embodiment, please refer to the method provided in the embodiment of the present application.
[0082] The embodiment of the present application provides a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, such as Figure 6 A processor 610 in the embodiment may enable the one or more processors to execute the moisture measurement resource scheduling method in any of the above method embodiments, for example, to execute the above described Figure 2 Steps S10 to S60 of the method, Figure 3 Steps S301 to S308 of the method, Figure 4 Steps S3601 to S3604 of the method are implemented Figure 5 The functions of modules 51-56 in.
[0083] The present application embodiment provides a computer program product, the computer program product includes a computer program stored on a non-volatile computer-readable storage medium, the computer program includes program instructions, when the program instructions are executed by the electronic device, the electronic device is enabled to execute the moisture measurement resource scheduling method in any of the above method embodiments, for example, execute the above described Figure 2 Steps S10 to S60 of the method, Figure 3 Steps S301 to S308 of the method, Figure 4 Steps S3601 to S3604 of the method are implemented Figure 5 The functions of modules 51-56 in.
[0084] The system embodiment described above is merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0085] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for scheduling moisture measurement resources, characterized in that: include: Acquire the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection devices and the edge devices; Acquire the detection history data of the moisture detection device and the current moisture detection task to be executed, and acquire the historical identification information and historical resource occupancy information of the edge device; Obtaining a new second connection relationship between the moisture detection device and the edge device by calculation according to the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information; According to the second connection relationship, the moisture detection device is correspondingly connected to the new edge device, and the detection history data and the moisture detection task to be executed are sent to the newly connected edge device; Acquire current moisture detection data of the moisture detection device, and obtain current moisture detection correction data by calculating according to the current moisture detection data and the detection history data through the newly connected edge device; The current moisture detection correction data is sent to the moisture detection device, and the current moisture detection correction data is stored.
2. The method for scheduling moisture measurement resources according to claim 1, characterized in that: The step of obtaining the detection history data of the moisture detection device and the current moisture detection task to be performed also includes: Obtaining historical material characteristic data, historical detection environment data, and historical material transmission speed corresponding to the detection historical data; The current material characteristic data, the current detection environment data and the current material transmission speed corresponding to the current moisture detection task to be executed are obtained.
3. The method for scheduling moisture measurement resources according to claim 2, characterized in that: The step of calculating, according to the detection history data, the moisture detection task to be performed, the historical identification information and the historical resource occupancy information, to obtain a new second connection relationship between the moisture detection device and the edge device comprises: Traversing the moisture detection devices, and obtaining the moisture detection tasks to be executed corresponding to the moisture detection devices; Calculating a first similarity between the moisture detection task to be performed and the historical detection data according to the historical material feature data and the current material feature data; Calculating a second similarity between the moisture detection task to be performed and the historical detection data according to the historical detection environment data and the current detection environment data; Calculating a third similarity between the moisture detection task to be performed and the historical detection data according to the historical material transmission speed and the current material transmission speed; Obtaining a fourth similarity between the moisture detection task to be executed and the historical detection data according to the first similarity, the second similarity, the third similarity, and preset different similarity weights; Obtain an associated edge device corresponding to the historical test data associated with the fourth similarity, and obtain a matching value between the traversed current moisture detection device and the associated edge device according to the historical identification information, the historical resource occupancy information, the current resource occupancy data and the fourth similarity calculation of the associated edge device; Setting the current moisture detection device being traversed to be connected to the second connection sub-relationship of the associated edge device corresponding to the largest matching degree value; When the traversal is finished, the second connection relationship is generated according to the second sub-connection relationship.
4. The method for scheduling moisture measurement resources according to claim 3, characterized in that: The step of obtaining a matching value between the traversed current moisture detection device and the associated edge device according to the historical identification information, the historical resource occupancy information, the current resource occupancy data and the fourth similarity calculation of the associated edge device comprises: Traversing the associated edge devices corresponding to the associated historical detection data in order from high to low according to the fourth similarity; Calculate, according to the historical identification information of the associated edge device and the device information data of the traversed current moisture detection device, a first sub-matching degree between the traversed current moisture detection device and the traversed current associated edge device; Calculate the second sub-matching degree between the traversed current moisture detection device and the traversed current associated edge device according to the historical resource occupancy information corresponding to the time period of the historical detection data and the current resource occupancy data of the associated edge device; The matching degree value is obtained by calculating according to the first sub-matching degree, the second sub-matching degree, and different preset matching degree weights.
5. The method for scheduling moisture measurement resources according to claim 1, characterized in that: The step of obtaining the current moisture detection correction data by calculating the current moisture detection data and the detection history data through the newly connected edge device includes: Generate a corresponding detection history fitting curve according to the detection history data by the edge device; The different detection history fitting curves are integrated to obtain the corresponding moisture data adjustment function; The current moisture detection data is processed by the moisture data adjustment function to obtain the corresponding current moisture detection correction data.
6. The method for scheduling moisture measurement resources according to claim 3, characterized in that: Before the step of setting the second connection sub-relationship of the current moisture detection device being traversed to be connected to the associated edge device corresponding to the maximum matching degree value, the step includes: It is determined whether the maximum matching degree value is greater than a preset matching degree value threshold; if not, the second connection sub-relationship of the traversed current moisture detection device connected to the cloud is set.
7. The method for scheduling moisture measurement resources according to claim 1, characterized in that: The step of calculating according to the current moisture detection data and the detection history data by the newly connected edge device also includes: Monitoring current resource occupancy data of the newly connected edge device when performing data calculation; If the current resource occupancy data during the calculation is greater than the preset resource occupancy threshold, and the duration of being greater than the preset resource occupancy threshold exceeds the preset resource warning time, then stop the current calculation of the newly connected edge device; Forward the data associated with the current calculation to the cloud for data calculation.
8. A moisture measurement resource scheduling system, characterized in that: include: A first connection relationship module, used to obtain the number of moisture detection devices and edge devices, and the current first connection relationship between the moisture detection devices and the edge devices; A data acquisition module, used to acquire the detection history data of the moisture detection device and the current moisture detection task to be executed, and to acquire the historical identification information and historical resource occupancy information of the edge device; A second connection relationship module, configured to obtain a new second connection relationship between the moisture detection device and the edge device by calculation according to the detection history data, the moisture detection task to be executed, the historical identification information and the historical resource occupancy information; A connection relationship updating module, configured to connect the moisture detection device to the new edge device according to the second connection relationship, and send the detection history data and the moisture detection task to be executed to the newly connected edge device; A data calculation module, used to obtain current moisture detection data of the moisture detection device, and obtain current moisture detection correction data by calculating according to the current moisture detection data and the detection history data through the newly connected edge device; The data sending module is used to send the current moisture detection correction data to the moisture detection device and store the current moisture detection correction data.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the moisture measurement resource scheduling method according to any one of claims 1 to 7.
10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by an electronic device, the electronic device executes the moisture measurement resource scheduling method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Water quality remote online detection method and device for water conservancy project and electronic equipment
CN111241214A
Server computing power management and distribution method and system, network equipment and storage medium
CN115658282A
Intelligent sampling moisture control system and method
CN116256203A
Multi-connection scene intelligent switching system and method based on edge calculation
CN116661968A
Grain drying system
JP2019190826A
