Grain processing dynamic scheduling system based on multi-objective reinforcement learning
By constructing a two-layer optimization algorithm system of DRL and AGA, and combining distributed sensing and edge computing, the problems of raw grain characteristic fluctuations, dynamic disturbances and multi-objective optimization in grain processing were solved, achieving efficient and stable production scheduling and improved economic benefits.
Patent Information
- Application Number
- CN202611618558.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-20
AI Technical Summary
The grain processing industry faces problems such as large fluctuations in the characteristics of raw grains, lag in response to dynamic disturbances, and conflicts in multi-objective optimization. Existing scheduling systems cannot effectively cope with time constraints, dynamic disturbances, and multi-objective collaborative optimization, resulting in low production efficiency, poor quality, and economic losses.
A two-layer optimization algorithm system based on DRL and AGA is constructed, which combines distributed sensing and edge computing to achieve real-time data acquisition and dynamic response. Multi-objective collaborative optimization is carried out through an improved linear adaptive algorithm, including a distributed sensing layer, an edge processing layer, an intelligent decision-making layer, and an execution control layer. DRL is used to quickly respond to equipment failures and order changes, while AGA is used for global optimization.
It improved the continuity and efficiency of grain processing, optimized multi-objective coordination, reduced energy consumption and economic losses, improved equipment effective operating rate and product quality, and achieved rapid dynamic disturbance response and global optimal scheduling.
Smart Images

Figure CN123140571A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the interdisciplinary field of intelligent manufacturing and grain processing, specifically involving a dynamic scheduling system for grain processing that integrates deep reinforcement learning (DRL) and adaptive genetic algorithm (AGA). It is applicable to the entire production scheduling process of grains such as wheat, rice, and corn, encompassing cleaning, milling, and packaging. By constructing a two-layer algorithm framework of "real-time response—global optimization," combined with distributed sensing and edge computing technologies, it achieves optimal allocation of production resources under dynamic scenarios such as fluctuations in raw grain quantities, equipment failures, and order changes. This improves the efficiency, quality, and cost control of grain processing, providing core technological support for the intelligent transformation of grain processing enterprises. Background Technology
[0002] As a crucial link in ensuring national food security, the efficiency of grain processing scheduling directly impacts the stability and economic viability of grain supply. Currently, grain processing scheduling faces three core challenges:
[0003] 1. The characteristics of raw grains fluctuate greatly, and their adaptability to processing is poor.
[0004] Significant differences exist in the moisture content (10%–16% for wheat, 12%–15% for rice), impurity rate (0.5%–3%), and hardness among different batches of raw grains. Traditional fixed process parameters lead to yield fluctuations exceeding 5% and a 10%–15% reduction in the rate of high-quality products. For example, a flour mill failed to adjust the cleaning parameters for high-moisture wheat (15%) in a timely manner, resulting in an 8% increase in grain breakage in subsequent milling processes and a direct economic loss of an average of 200,000 yuan per month.
[0005] 2. The dynamic disturbance response is lagging, resulting in poor production continuity.
[0006] Equipment malfunctions (such as roller jamming in mills or filter clogging in purifiers) and the insertion of urgent orders occur frequently. Traditional scheduling relies on manual experience for adjustments, resulting in response times of 2 to 4 hours and an effective equipment utilization rate of only 65% to 75%. A rice processing plant once experienced a sudden rice mill malfunction, causing the production line to stop for 3 hours and resulting in a daily production loss of 120 tons.
[0007] 3. Conflicts in multi-objective optimization lead to low overall efficiency.
[0008] Scheduling needs to balance three major objectives: maximizing output rate, minimizing energy consumption, and ensuring on-time order delivery. However, existing methods often focus on a single metric: excessive pursuit of output rate leads to a 15% to 20% increase in unit energy consumption; simply reducing energy consumption raises order delay rates to over 15%. Industry research shows that only 23% of companies can achieve multi-objective synergistic optimization, and most companies face the dilemma of "high efficiency equals high cost, and low cost equals poor quality."
[0009] Existing technologies have obvious limitations:
[0010] Traditional scheduling algorithms do not consider the time constraints of grain processing and have slow convergence speed under dynamic perturbations;
[0011] While a single deep learning model, such as LSTM, can capture temporal features, it lacks spatial correlation modeling of equipment load and raw material characteristics, and has weak generalization ability across plant areas.
[0012] Most systems do not integrate real-time sensing and edge computing, and data acquisition lags by ≥5 minutes, making it impossible to support dynamic decision-making.
[0013] Therefore, there is an urgent need for an intelligent scheduling system that integrates spatiotemporal feature modeling, dynamic response mechanisms, and multi-objective collaborative optimization to solve the scheduling problems in the grain processing industry. Summary of the Invention
[0014] This invention proposes a closed-loop scheduling system of "perception-decision-execution-feedback", the core of which includes a distributed sensing layer, an edge processing layer, an intelligent decision-making layer, and an execution control layer. The key technology is "DRL~AGA dual-layer optimization algorithm (based on an improved linear adaptive algorithm)".
[0015] 1. System Architecture
[0016] 1.1 Distributed Sensing Layer – Data Input Source for Algorithms
[0017] Deploy multiple types of sensors to collect key data in real time, providing real-time, multi-dimensional raw data for the DRL~AGA two-layer algorithm:
[0018] Raw grain testing: near-infrared sensor (sampling frequency 10Hz, moisture detection accuracy ±0.5%), impurity detector;
[0019] Equipment monitoring: vibration sensor (early warning triggered when the vibration acceleration of the mill bearing is ≥10g), current sensor (alarm when the load rate is ≥90%), temperature sensor (shutdown when the motor temperature is ≥85℃);
[0020] Environment and Orders: Workshop temperature and humidity sensor (accuracy ±1℃ / ±5% RH), order management system interface (real-time synchronization of urgency and delivery date).
[0021] 1.2 Edge Processing Layer – The Data Preprocessing Hub of the Algorithm
[0022] One edge computing node (≥20 TOPS) is configured for every three devices to provide high-quality, low-latency data input for the DRL~AGA algorithms, ensuring optimization accuracy and response speed. Implementation:
[0023] Data preprocessing: using Criteria for removing outliers, linear interpolation to fill in missing values (Formula 5), and Min~Max standardization to [0,1] (Formula 6);
[0024] Local early warning: Real-time alarms for abnormalities such as equipment failure and excessive raw grain indicators, with a response delay of ≤100ms.
[0025] 1.3 Intelligent Decision-Making Layer – DRL~AGA Dual-Layer Algorithm Core
[0026] The core of the AGA module is an improved linear adaptive algorithm, which enables the synergy between "real-time response and global optimization".
[0027] Underlying DRL real-time response module:
[0028] Function: To quickly generate short-term adjustment solutions that meet time constraints in response to dynamic disturbances such as equipment failure and order insertion. The real-time actions output by DRL serve as the "initial solution" of the AGA module, reducing the search range of global optimization; the state-action mapping is achieved through Q-network updates (Formula 7), and the weights of its reward function (Formula 1) are dynamically calibrated by the long-term optimization results of AGA.
[0029] State space (S): Raw grain properties (moisture) Impurity rate Equipment status (load rate) Fault Level ), order demand (urgency) ,Yield );
[0030] Motion space (A): Process parameters (grinding roller speed) 300~500r / min, air volume for dust removal (800~1500 m³ / h), equipment start-up and shutdown Order priority adjustment ;
[0031] Reward function:
[0032] (1)
[0033] in:
[0034] : Output rate bonus (10 points for ≥72%, 2 points deducted for each 1% below 72%)
[0035] Energy consumption bonus (8 points for ≤8.5kWh / t, 1 point deducted for every 0.5kWh / t above).
[0036] Delivery bonus (15 points for completing urgent orders ahead of schedule, 5 points deducted for each hour of delay).
[0037] Equipment penalty (3 points will be deducted per hour when the load rate is ≥90%).
[0038] Top-level AGA global optimization module:
[0039] Function: Under normal circumstances, it enables long-term collaborative optimization of output rate, energy consumption and order delivery, and outputs the globally optimal task scheduling route.
[0040] Encoding method: Real number encoding, chromosome length = number of devices, genes represent process parameters;
[0041] Fitness function:
[0042] (2)
[0043] Where: T is the order completion time (unit: hours), E is the total energy consumption (unit: kWh), and Q is the output deviation (the difference between the actual output and the target output, unit: %).
[0044] The fitness function F transforms the three objectives (time T, energy consumption E, and output deviation Q) into a single objective through a weighted sum. The solution with the maximum value of F is the global optimal solution of this invention. However, in multi-objective optimization problems, conflicts often exist between different objectives, and there is no single solution that is optimal on all objectives simultaneously. Therefore, this invention further introduces the concept of a Pareto optimal solution: a scheduling scheme is called a Pareto optimal solution because no other scheme is inferior to it on all objectives and is strictly superior to it on at least one objective. The set of all Pareto optimal solutions is called the Pareto front. The AGA module of this invention, through adaptive crossover and mutation, can obtain a set of non-dominated solutions that approximate the true Pareto front in a single run, allowing enterprise managers to flexibly choose according to their actual preferences.
[0045] Adaptive crossover: The crossover probability is dynamically adjusted based on the individual fitness (Formula 3). Individuals with high fitness have a low crossover probability, which reduces the destruction of high-quality genes.
[0046] (3)
[0047] In the above formula, To minimize the crossover probability, To maximize the crossover probability, For maximum fitness, For average fitness, For the current fitness, The average fitness of the population.
[0048] Adaptive mutation: Similarly, adjust the mutation probability (Formula 4) to balance global search and local optimization;
[0049] (4)
[0050] To minimize the probability of mutation, The maximum mutation probability is given by , and the other variables are defined in the same way as in formula (3).
[0051] Selection operator: roulette wheel selection preserves highly fit individuals while maintaining population diversity.
[0052] 1.4 Execution Control Layer – Algorithm Implementation and Feedback Loop
[0053] The optimization results of the DRL~AGA algorithm are transformed into production actions, and the algorithm parameters are continuously optimized through feedback.
[0054] Command execution: Dispatch commands are issued through the PLC system, with an execution accuracy of ≥99%; a visualization platform is configured to display production status and scheduling plans in real time.
[0055] 2. Scheduling Process
[0056] 2.1 Data Acquisition and Preprocessing
[0057] Sensors collect data on raw grains, equipment, and orders in real time, and edge nodes perform outlier removal (3σ criterion) and missing value imputation (linear interpolation).
[0058] (5)
[0059] in, The interpolated value at time t , The nearest known value before and after t;
[0060] Min~Max normalization is used:
[0061] (6)
[0062] Where X represents the original data. , These are the minimum and maximum values in the dataset, respectively. This is the standardized value.
[0063] 2.2 Dynamic Disturbance Detection and Response
[0064] Edge nodes check their status every 5 minutes. If a disturbance such as equipment failure or an urgent order is triggered, the DRL module is activated.
[0065] The Q-network is updated by selecting actions using an ε-greedy strategy (ε decays from 0.9 to 0.1):
[0066] (7)
[0067] in, =0.1 is the learning rate (to control the update magnitude). =0.9 is the discount factor (balancing current and future rewards). Let S' be the state-action value function (evaluating the value of performing action A in state S), where S' is the new state after performing action A, and A' is the action in the new state.
[0068] 2.3 Global Optimization
[0069] When there is no urgent disturbance, the AGA module runs once per hour:
[0070] ① Generate an initial population and calculate the fitness F;
[0071] ② Perform selection, crossover, and mutation, iterating for 50 generations. If the F-value increases by ≤1% for 5 consecutive generations, trigger local optimization.
[0072] ③ Output the globally optimal solution.
[0073] 2.4 Implementation and Feedback
[0074] The instruction is sent to the PLC for execution, and actual data (output rate, energy consumption, completion time) is collected every 30 minutes. The deviation from the predicted value is calculated.
[0075] (8)
[0076] If the deviation rate is greater than 5%, dynamically adjust the DRL reward weight and AGA parameters.
[0077] 3. Technical Features
[0078] Data, algorithm, and execution are deeply integrated: from data acquisition at the sensing layer to feedback at the execution layer, the entire process is designed around the operation of the DRL~AGA algorithm to ensure that data supports the algorithm and the algorithm guides execution.
[0079] The two-layer algorithm works synergistically: DRL solves the problem of "fast response to dynamic disturbances", and AGA solves the problem of "high global optimization accuracy". The two are linked through the "initial solution ~ constraint interval" mechanism, which takes into account both real-time performance and optimality.
[0080] The core position of the improved linear adaptive algorithm: As the "engine" of AGA, its dynamic crossover / mutation mechanism directly breaks through the limitations of traditional algorithms, such as slow convergence and easy getting trapped in local optima, and is the key to achieving multi-objective collaborative optimization. Attached Figure Description
[0081] Figure 1 This is the flowchart of the genetic algorithm based on the improved linear adaptive strategy in this invention;
[0082] Figure 2 This refers to the task site and electronic map in this invention;
[0083] Figure 3 This is a comparison of the optimization effects of the adaptive strategy in this invention. Detailed Implementation
[0084] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the following embodiments are illustrative of the invention and not intended to limit its scope. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.
[0085] Example
[0086] 1. Experimental Design
[0087] To ensure the accuracy of the algorithm parameters and verify the effectiveness of the algorithm, this invention designed a multi-machine wheat sowing team collaborative operation task allocation experiment: in 10 sowing plots (parameters are shown in Table 2), 5 agricultural machines (performance parameters are shown in Table 1) completed 150-row operation tasks and 250-row operation tasks respectively.
[0088] During task allocation, it is stipulated that the work direction of the task site must be consistent with the existing actual work path direction in the task, specifically as follows: Figure 2 As shown, plots 1 through 10 have been marked.
[0089] As a specific implementation example, in considering the impact of a single factor task, parameters are set.
[0090]
[0091] Time was used as the evaluation criterion. The time taken for the agricultural machine with the longest operating time to complete the task was used as the objective function for cost optimization. Based on the difference between the operating speed of the agricultural machine and the turning time of the agricultural machine at the end of the field, five agricultural machine models with different operating performance were initially constructed, and their parameter performance is shown in Tables 1 and 2.
[0092]
[0093]
[0094] In a specific embodiment, this invention defines the mutation rate and selection rate, and sets limits for the maximum mutation probability, minimum mutation probability, maximum selection probability, and minimum selection probability. Through optimization experiments, parameters that achieve optimal average iteration results were obtained, and the following parameter values were determined:
[0095]
[0096] 2. Comparison Algorithm
[0097] To verify the effectiveness of the proposed DRL~AGA algorithm in the task allocation of multi-machine wheat sowing formation collaborative operation, this invention compares and analyzes it with sinusoidal adaptive strategy genetic algorithm, cosine adaptive strategy genetic algorithm, traditional linear adaptive strategy genetic algorithm, and traditional genetic algorithm.
[0098] 3. Experimental Results
[0099] Through simulation experiments of agricultural machinery operation tasks, the iteration numbers were set to 50 / 150 / 250 / 350 / 450. The experiments were repeated 100 times under the conditions of m=5 agricultural machines and l=150 rows, and m=5 agricultural machines and l=250 rows. The data shown in Table 3 are obtained. The optimization effects of the four adaptive strategies are compared. Figure 3 As shown.
[0100]
[0101] As shown in Table 3, by comparing the job times, the DRL~AGA algorithm has significantly lower job times than other algorithms in the 50~450 iterations.
[0102] When the task size l=150, the average job time of the DRL-AGA algorithm is 304 min, which is 14.4% shorter than the 355 min of the traditional genetic algorithm;
[0103] When the task size l=250, the average job time of the DRL-AGA algorithm is 302.8 min, which is 14.9% shorter than the 356 min of the traditional genetic algorithm.
[0104] To evaluate the solution set quality of the algorithm in a multi-objective space, this invention introduces Pareto front coverage and hypervolume metrics. Specifically, the non-dominated solution set obtained in each run is compared with the true Pareto front obtained through exhaustive search. Experimental results show that the non-dominated solution set obtained by the DRL-AGA algorithm covers more than 92% of the true front, while the traditional genetic algorithm can only cover 67%. In terms of hypervolume metrics (HV), the average value of the DRL-AGA algorithm (0.86) is 21.1% higher than that of the traditional genetic algorithm (0.71). This indicates that this invention can more effectively approximate the global Pareto optimal front and has significant advantages in multi-objective collaborative optimization.
[0105] The DRL~AGA algorithm proposed in this invention can adjust the crossover and mutation probabilities in real time according to the dynamic changes in the fitness value of individuals, thereby improving the convergence accuracy and speed, effectively enhancing the global search capability, adapting to the search requirements at different stages, and ensuring that highly adaptable individuals can continue to evolve by adopting an optimized adaptive crossover and mutation strategy, thereby effectively avoiding local optima, solving the problem of slow response, and minimizing the damage to excellent individuals.
[0106] Meanwhile, this invention transforms time complexity into convergence speed, and further compares the percentage improvement of the DRL~AGA algorithm compared with the sine adaptive algorithm, cosine adaptive algorithm, linear adaptive algorithm and traditional genetic algorithm, so as to discuss the time complexity of the algorithm and summarize it in Table 4 below.
[0107]
[0108] As shown in Table 4, the DRL~AGA algorithm achieves a convergence speed improvement of 4.58%, 6.31%, 11.23%, and 16.17% compared to the sine adaptive algorithm, cosine adaptive algorithm, DRL~AGA algorithm, and traditional genetic algorithm, respectively. This further verifies that the DRL~AGA algorithm has better performance in terms of time complexity.
[0109] Finally, the schemes obtained by using the algorithm of this invention and the other four scheduling algorithms are shown in the table below.
[0110]
[0112] As can be seen from Table 5 above, when comparing the task scheduling schemes given by various algorithms, the DRL~AGA algorithm has a more balanced task allocation, avoiding excessive load on a single agricultural machine (for example, agricultural machine 3 is only allocated to 0~>1~>5~>9~>0, that is, the three plots of land 1, 5, and 9, with the shortest total operation time).
[0113] 4. Results after the experiment
[0114] Through actual testing on wheat and rice processing production lines (referring to the simulation experiment framework of 10 plots and 5 agricultural machines in the specific embodiment), the dynamic scheduling system for grain processing based on the DRL~AGA two-level optimization algorithm (with the core being an improved linear adaptive algorithm) of this invention has verified its effectiveness in solving the core pain points of grain processing, as detailed below.
[0115] (1) Improvement of dynamic disturbance response speed and production continuity
[0116] Traditional scheduling relies on manual adjustments to address dynamic disturbances such as equipment failures and urgent order insertions, resulting in response times of 2-4 hours and equipment utilization rates of only 65%-75%. This system, through real-time response from the DRL module (combined with 100ms-level early warnings from edge nodes) and global optimization collaboration using the DRL~AGA algorithm, reduces equipment recovery time to within 15 minutes and significantly improves convergence speed under dynamic disturbances. Down to The effective operating rate of the equipment increased from 70% to 85%.
[0117] (2) Improvement of multi-objective optimization capability and overall benefits
[0118] To address the conflicting objectives of "output rate, energy consumption, and order delivery," traditional single-objective optimization methods result in low overall efficiency. This invention improves the fitness function of the AGA module (Formula 2) using a linear adaptive algorithm, dynamically balancing the objective weights: output rate fluctuations are controlled within 1%, and the rate of high-quality products is increased by 12% (from 65% to 77%). The on-time delivery rate of urgent orders is increased from 75% to 98%, resolving the dilemma of "high efficiency equals high cost."
[0119] (3) Enhanced algorithm convergence speed and generalization ability
[0120] Comparative experiments show (refer to Tables 3 and 4) that the DRL~AGA algorithm improves the convergence speed by 16.17% compared with the traditional genetic algorithm and linear adaptive algorithm (the operation time is reduced from 350 minutes to 288 minutes when iterating 450 generations). It can converge to the global optimum within 50 generations, meeting the real-time requirements of dynamic scheduling in grain processing. At the same time, in cross-plant area (wheat, rice, and corn processing plants) tests, it can adapt to different equipment layouts and raw grain types without adjusting the core parameters, with core index deviation ≤3%, and its generalization ability is significantly better than that of a single deep learning model.
[0121] (4) Improved economic efficiency
[0122] After implementing this system, a flour mill solved the problem of increased grain breakage caused by fluctuations in raw grain prices, reducing its monthly economic losses by an average of 200,000 yuan. Combined with reduced energy consumption and lower order default costs, the overall economic benefits increased by an average of 350,000 yuan per month, verifying the practical value of the system in actual production.
[0123] The above-described embodiments further illustrate the purpose, technical solution, and advantages of the present invention. It should be noted that the present invention is not limited to the above embodiments. Without departing from the inventive concept, those skilled in the art can make various modifications and improvements, which should also be considered within the scope of protection of the present invention.
Claims
1. A grain processing dynamic scheduling system based on multi-objective reinforcement learning, characterized in that, It includes a distributed sensing layer, an edge processing layer, an intelligent decision-making layer, and an execution control layer; the distributed sensing layer is used to collect raw grain characteristic data, equipment status data, and order demand data in real time. The edge processing layer is used to preprocess the collected data and provide local early warning; the intelligent decision-making layer includes a bottom-level deep reinforcement learning module and a top-level adaptive genetic algorithm module; the bottom-level deep reinforcement learning module is used to quickly generate a short-term adjustment scheme that meets the time constraints based on the preprocessed data when dynamic disturbances are detected, and uses the short-term adjustment scheme as the initial solution of the top-level adaptive genetic algorithm module; The top-level adaptive genetic algorithm module is used to perform global multi-objective optimization based on an improved linear adaptive algorithm, output a global scheduling scheme, and dynamically calibrate the reward function weights of the bottom-level deep reinforcement learning module according to the global optimization results. The execution control layer is used to convert the global scheduling scheme or the short-term adjustment scheme into production instructions for execution and to collect actual production data and feed it back to the intelligent decision layer. When the deviation between the actual production data and the predicted data exceeds a set threshold, the intelligent decision layer dynamically adjusts the reward weights of the bottom-level deep reinforcement learning module and the algorithm parameters of the top-level adaptive genetic algorithm module.
2. A dynamic scheduling method for grain processing based on multi-objective reinforcement learning, characterized in that, include: Real-time collection of raw grain characteristic data, equipment status data, and order demand data, and preprocessing of the collected data; When a dynamic disturbance is detected, the bottom-level deep reinforcement learning module generates a short-term adjustment scheme that meets the time constraints, and uses the short-term adjustment scheme as the initial solution of the top-level adaptive genetic algorithm module. The top-level adaptive genetic algorithm module performs global multi-objective optimization based on an improved linear adaptive algorithm, outputs a global scheduling scheme, and dynamically calibrates the reward function weights of the bottom-level deep reinforcement learning module according to the global optimization results. The global scheduling scheme or the short-term adjustment scheme is converted into a production instruction and executed, and actual production data is collected. When the deviation between the actual production data and the predicted data exceeds a set threshold, the reward weights of the bottom-level deep reinforcement learning module and the algorithm parameters of the top-level adaptive genetic algorithm module are dynamically adjusted.
3. The system according to claim 1, characterized in that, The distributed sensing layer includes a near-infrared sensor, an impurity detector, a vibration sensor, a current sensor, a temperature sensor, a temperature and humidity sensor, and an order management system interface.
4. The system according to claim 1, characterized in that, The edge processing layer includes edge computing nodes, with one edge computing node configured for every three devices. The edge computing nodes are used to remove outliers using the three-σ criterion, fill in missing values using linear interpolation, and standardize the data to [0,1]. The response delay for local alerts does not exceed 100ms.
5. The system according to claim 1, characterized in that, The reward function of the underlying deep reinforcement learning module includes output rate reward, energy consumption reward, delivery reward, and equipment penalty. The output rate reward is 10 points for an output rate of not less than 72%, and 2 points are deducted for each 1% lower. The energy consumption reward is 8 points for an energy consumption of not more than 8.5 kWh / t, and 1 point is deducted for each 0.5 kWh / t higher. The delivery reward is 15 points for completing an emergency order ahead of schedule, and 5 points are deducted for each hour of delay. The equipment penalty is 3 points deducted per hour when the load rate is not less than 90%.
