[go: up one dir, main page]

CN118608106A - An intelligent agricultural supply chain supervision method - Google Patents

An intelligent agricultural supply chain supervision method Download PDF

Info

Publication number
CN118608106A
CN118608106A CN202411085063.1A CN202411085063A CN118608106A CN 118608106 A CN118608106 A CN 118608106A CN 202411085063 A CN202411085063 A CN 202411085063A CN 118608106 A CN118608106 A CN 118608106A
Authority
CN
China
Prior art keywords
supply chain
data
model
agricultural supply
chain supervision
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411085063.1A
Other languages
Chinese (zh)
Other versions
CN118608106B (en
Inventor
张国栋
李霞
刘佳韵
宋涛
王平
王克响
米铁柱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Jiudian Intelligent Agriculture Group Co ltd
Original Assignee
Qingdao Jiudian Intelligent Agriculture Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Jiudian Intelligent Agriculture Group Co ltd filed Critical Qingdao Jiudian Intelligent Agriculture Group Co ltd
Priority to CN202411085063.1A priority Critical patent/CN118608106B/en
Publication of CN118608106A publication Critical patent/CN118608106A/en
Application granted granted Critical
Publication of CN118608106B publication Critical patent/CN118608106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/10Pre-processing; Data cleansing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/243Classification techniques relating to the number of classes
    • G06F18/2433Single-class perspective, e.g. one-against-all classification; Novelty detection; Outlier detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/086Learning methods using evolutionary algorithms, e.g. genetic algorithms or genetic programming
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Forestry; Mining

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Agronomy & Crop Science (AREA)
  • Computing Systems (AREA)
  • Marine Sciences & Fisheries (AREA)
  • Mining & Mineral Resources (AREA)
  • Animal Husbandry (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Molecular Biology (AREA)
  • Primary Health Care (AREA)
  • Physiology (AREA)
  • Computational Linguistics (AREA)
  • Biophysics (AREA)
  • Biomedical Technology (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了一种智能化农业供应链监管方法,方法包括数据采集、数据预处理、建立农业供应链监管模型、模型参数优化和农业供应链监管。本发明属于数据处理技术领域,具体是指一种智能化农业供应链监管方法,本方案引入基于两个拉普拉斯函数的凸组合定义鲁棒熵,进而定义鲁棒损失函数;将基于混合熵引导的损失函数转化为凸优化问题,并制定参数更新机制,处理约束优化问题,增加了模型优化的可靠性;利用镜头成像反向学习方法和优化的圆混沌图初始化优化个体位置;通过设计自适应非线性递减权重因子,动态调整搜索能力,控制搜索范围;高效、准确地优化农业供应链监管模型参数,提高供应链的监管能力和预测精度。

The present invention discloses an intelligent agricultural supply chain supervision method, which includes data collection, data preprocessing, establishing an agricultural supply chain supervision model, model parameter optimization and agricultural supply chain supervision. The present invention belongs to the field of data processing technology, and specifically refers to an intelligent agricultural supply chain supervision method. This scheme introduces a convex combination based on two Laplace functions to define a robust entropy, and then defines a robust loss function; the loss function guided by mixed entropy is converted into a convex optimization problem, and a parameter update mechanism is formulated to handle constrained optimization problems, thereby increasing the reliability of model optimization; the lens imaging reverse learning method and the optimized circular chaos map are used to initialize and optimize individual positions; by designing an adaptive nonlinear decreasing weight factor, the search capability is dynamically adjusted and the search range is controlled; the parameters of the agricultural supply chain supervision model are efficiently and accurately optimized to improve the supervision capability and prediction accuracy of the supply chain.

Description

一种智能化农业供应链监管方法An intelligent agricultural supply chain supervision method

技术领域Technical Field

本发明涉及数据处理技术领域,具体是指一种智能化农业供应链监管方法。The present invention relates to the technical field of data processing, and in particular to an intelligent agricultural supply chain supervision method.

背景技术Background Art

农业供应链监管方法的核心目的是确保农业产品从生产到销售的全过程都能顺利、高效地进行,帮助管理和优化农业供应链,以保证食品的安全、质量和供应的稳定性。但是一般农业供应链监管方法存在模型处理噪声数据能力差,对于偏离中心趋势的样本不敏感,导致模型稳定性差及模型过拟合风险严重的问题;一般农业供应链监管方法存在模型参数优化时种群初始化多样性和分布均匀性不足,导致全局搜索能力弱,搜索收敛速度慢及学习性弱导致无法快速实现准确优化的问题。The core purpose of agricultural supply chain supervision methods is to ensure that the entire process from production to sales of agricultural products can be carried out smoothly and efficiently, to help manage and optimize the agricultural supply chain, and to ensure food safety, quality and supply stability. However, general agricultural supply chain supervision methods have the problem that the model has poor ability to process noise data and is insensitive to samples that deviate from the central trend, resulting in poor model stability and serious risk of model overfitting; general agricultural supply chain supervision methods have the problem that the population initialization diversity and distribution uniformity are insufficient when optimizing model parameters, resulting in weak global search capabilities, slow search convergence speed and weak learning, which makes it impossible to quickly achieve accurate optimization.

发明内容Summary of the invention

针对上述情况,为克服现有技术的缺陷,本发明提供了一种智能化农业供应链监管方法,针对一般农业供应链监管方法存在模型处理噪声数据能力差,对于偏离中心趋势的样本不敏感,导致模型稳定性差及模型过拟合风险严重的问题,本方案引入基于两个拉普拉斯函数的凸组合定义鲁棒熵,进而定义鲁棒损失函数,能够对偏差灵活处理,使得模型更注重整体误差的减少,增强模型的泛化能力;通过定义鲁棒熵的上界和下界,提供对模型稳定性和收敛性的理论保证,高斯噪声的引入和边界条件的定义助于分析模型在不同噪声水平下的稳定性表现;将基于混合熵引导的损失函数转化为凸优化问题,并制定参数更新机制,处理约束优化问题,增加了模型优化的可靠性;针对一般农业供应链监管方法存在模型参数优化时种群初始化多样性和分布均匀性不足,导致全局搜索能力弱,搜索收敛速度慢及学习性弱导致无法快速实现准确优化的问题,本方案利用镜头成像反向学习方法和优化的圆混沌图初始化优化个体位置,使个体初始位置更接近潜在的全局最优解;通过设计自适应非线性递减权重因子,动态调整搜索能力,控制搜索范围,初期更侧重于探索,后期侧重于开发,更细致地在局部空间进行搜索;对适应度值低于种群平均适应度值的个体应用移动策略一提升劣质个体的适应度,对适应度值不低于平均适应度值的个体应用移动策略二,充分发挥优质个体的探索能力;高效、准确地优化农业供应链监管模型参数,提高供应链的监管能力和预测精度。In view of the above situation, in order to overcome the defects of the prior art, the present invention provides an intelligent agricultural supply chain supervision method. In view of the problems that the general agricultural supply chain supervision method has poor model processing noise data capability and is insensitive to samples that deviate from the central trend, resulting in poor model stability and serious risk of model overfitting, this scheme introduces a convex combination based on two Laplace functions to define a robust entropy, and then defines a robust loss function, which can flexibly handle deviations, so that the model pays more attention to reducing the overall error and enhances the generalization ability of the model; by defining the upper and lower bounds of the robust entropy, a theoretical guarantee for the stability and convergence of the model is provided, and the introduction of Gaussian noise and the definition of boundary conditions help to analyze the stability performance of the model under different noise levels; the loss function guided by mixed entropy is converted into a convex optimization problem, and a parameter update mechanism is formulated to handle constrained optimization problems, thereby increasing the reliability of model optimization; in view of the general The agricultural supply chain supervision method has the problem of insufficient population initialization diversity and distribution uniformity when optimizing model parameters, resulting in weak global search ability, slow search convergence speed and weak learning ability, which makes it impossible to quickly achieve accurate optimization. This scheme uses the lens imaging reverse learning method and the optimized circular chaos map to initialize and optimize the individual position, so that the individual initial position is closer to the potential global optimal solution; by designing an adaptive nonlinear decreasing weight factor, the search ability is dynamically adjusted and the search range is controlled. In the early stage, more emphasis is placed on exploration, and in the later stage, more emphasis is placed on development, and the search is conducted in the local space in a more detailed manner; for individuals whose fitness values are lower than the average fitness value of the population, mobile strategy one is applied to improve the fitness of inferior individuals, and mobile strategy two is applied to individuals whose fitness values are not lower than the average fitness value, giving full play to the exploration ability of high-quality individuals; efficiently and accurately optimize the parameters of the agricultural supply chain supervision model to improve the supervision ability and prediction accuracy of the supply chain.

本发明采取的技术方案如下:本发明提供的一种智能化农业供应链监管方法,该方法包括以下步骤:The technical solution adopted by the present invention is as follows: The present invention provides an intelligent agricultural supply chain supervision method, which includes the following steps:

步骤S1:数据采集;Step S1: data collection;

步骤S2:数据预处理;Step S2: data preprocessing;

步骤S3:建立农业供应链监管模型;Step S3: Establish an agricultural supply chain supervision model;

步骤S4:模型参数优化;Step S4: model parameter optimization;

步骤S5:农业供应链监管。Step S5: Agricultural supply chain monitoring.

进一步地,在步骤S1中,所述数据采集是采集历史农业供应链监管数据;所述历史农业供应链监管数据包括农产品生产数据、物流运输数据、环境数据、供应链管理数据和满意度反馈等级;将满意度反馈等级作为数据标签。Furthermore, in step S1, the data collection is to collect historical agricultural supply chain supervision data; the historical agricultural supply chain supervision data includes agricultural product production data, logistics and transportation data, environmental data, supply chain management data and satisfaction feedback level; the satisfaction feedback level is used as a data label.

进一步地,在步骤S2中,所述数据预处理是对采集的历史农业供应链监管数据进行数据清洗、数据转换和数据集划分;所述数据清洗是对历史农业供应链监管数据进行缺失值、重复值和异常值处理;所述数据转换是将清洗后的数据转换为向量形式并基于最大最小归一化法进行标准化处理;所述数据集划分是将数据转换后的历史农业供应链监管数据随机划分为训练集和测试集。Furthermore, in step S2, the data preprocessing is to clean the collected historical agricultural supply chain supervision data, convert the data and divide the data set; the data cleaning is to process missing values, duplicate values and outliers in the historical agricultural supply chain supervision data; the data conversion is to convert the cleaned data into a vector form and standardize it based on the maximum and minimum normalization method; the data set division is to randomly divide the historical agricultural supply chain supervision data after data conversion into a training set and a test set.

进一步地,在步骤S3中,所述建立农业供应链监管模型是基于对历史农业供应链监管数据预处理得到的训练集和测试集构建神经网络并进行优化,训练集用于训练农业供应链监管模型,测试集用于评估农业供应链监管模型性能;具体包括以下步骤:Further, in step S3, the agricultural supply chain supervision model is established by constructing a neural network and optimizing the training set and test set obtained by preprocessing the historical agricultural supply chain supervision data, wherein the training set is used to train the agricultural supply chain supervision model and the test set is used to evaluate the performance of the agricultural supply chain supervision model; specifically, the following steps are included:

步骤S31:定义鲁棒熵;基于两个拉普拉斯函数的凸组合作为核,诱导一种鲁棒熵,表示为:Step S31: define robust entropy; based on the convex combination of two Laplace functions as the kernel, induce a robust entropy, expressed as:

;

式中,U(·)是鲁棒熵;E[·]是期望;n是样本数量,i是样本索引;P是实际观测到 的农业供应链数据的概率分布;Q是模型预测的农业供应链数据的概率分布;是实际观测 数据与模型预测数据之间的偏差;是平衡权重参数;是形状参数; Where U(·) is the robust entropy; E[·] is the expectation; n is the number of samples, i is the sample index; P is the probability distribution of the actually observed agricultural supply chain data; Q is the probability distribution of the agricultural supply chain data predicted by the model; is the deviation between the actual observed data and the model predicted data; is the balance weight parameter; and is the shape parameter;

步骤S32:定义鲁棒损失函数;基于鲁棒熵,引导出一个鲁棒损失函数,表示为:Step S32: define a robust loss function; based on the robust entropy, a robust loss function is derived, which is expressed as:

;

式中,是鲁棒损失函数;In the formula, is the robust loss function;

步骤S33:定义上界;设是高斯噪声,满足;鲁棒熵的上界表示为:Step S33: define the upper bound; set ; is Gaussian noise, satisfying ; The upper bound of the robust entropy is expressed as:

;

步骤S34:定义下界;鲁棒熵的下界表示为:Step S34: define a lower bound; the lower bound of the robust entropy is expressed as:

;

步骤S35:优化损失函数;具体包括:Step S35: Optimizing the loss function; specifically including:

步骤S351:最小化损失函数,将鲁棒损失函数引入农业供应链监管模型,并进行最小化,表示为:Step S351: Minimize the loss function. The robust loss function is introduced into the agricultural supply chain supervision model and minimized, which is expressed as:

;

;

式中,M是特征矩阵,用于供应链数据的转换;b是模型的偏置项;是松弛变量;是弗罗贝尼乌斯范数的平方;C是正则化参数;是样本(i,j)的松弛变量;是样本(i,j)的标签;Where M is the feature matrix used for supply chain data transformation; b is the bias term of the model; is the slack variable; is the square of the Frobenius norm; C is the regularization parameter; is the slack variable of sample (i,j); is the label of sample (i, j);

步骤S352:通过混合熵引导损失凸共轭函数,将问题转化为:Step S352: By mixing the entropy guided loss convex conjugate function, the problem is transformed into:

;

;

;

式中,g(·)是凸共轭函数,v是内置参数;是辅助变量,用于将问题转化为凸优化问题;Where g(·) is a convex conjugate function and v is a built-in parameter; and is an auxiliary variable used to transform the problem into a convex optimization problem;

步骤S36:更新,具体包括:Step S36: Update, specifically including:

步骤S361:固定,优化M,b,;表示为:Step S361: Fixing and , optimize M,b, ; expressed as:

;

;

;

式中,是辅助拉格朗日乘数;G是梯度项;是输入特征矩阵;In the formula, is the auxiliary Lagrange multiplier; G is the gradient term; is the input feature matrix;

步骤S362:固定M,b,,优化;表示为:Step S362: Fix M, b, ,optimization and ; expressed as:

;

;

步骤S37:模型判定;基于BP神经网络架构,辅以步骤S31至步骤S36进行优化,当模型对训练集收敛时,农业供应链监管模型训练完成;预先设有正确率阈值,当训练完成的农业供应链监管模型对测试集的预测正确率高于正确率阈值时,农业供应链监管模型建立完成;否则调整农业供应链监管模型参数重新训练。Step S37: model determination; based on the BP neural network architecture, with the assistance of steps S31 to S36 for optimization, when the model converges on the training set, the agricultural supply chain supervision model training is completed; an accuracy threshold is set in advance, when the prediction accuracy of the trained agricultural supply chain supervision model for the test set is higher than the accuracy threshold, the agricultural supply chain supervision model is established; otherwise, the agricultural supply chain supervision model parameters are adjusted and retrained.

进一步地,在步骤S4中,所述模型参数优化是对农业供应链监管模型的参数进行调整;具体包括以下步骤:Furthermore, in step S4, the model parameter optimization is to adjust the parameters of the agricultural supply chain supervision model; specifically, the following steps are included:

步骤S41:初始化;基于形状参数、平衡权重参数、正则化参数、神经网络的架构参数和松弛变量构建参数优化空间;引入镜头成像反向学习,基于优化的圆混沌图初始化优化个体位置;将基于个体位置训练的农业供应链监管模型对测试集的预测正确率作为个体适应度值;初始化优化个体位置所用公式如下:Step S41: initialization; construct parameter optimization space based on shape parameters, balance weight parameters, regularization parameters, neural network architecture parameters and slack variables; introduce lens imaging reverse learning, and initialize and optimize individual positions based on optimized circular chaos diagrams; use the prediction accuracy of the test set of the agricultural supply chain supervision model trained based on individual positions as the individual fitness value; the formula used to initialize and optimize individual positions is as follows:

;

;

式中,分别是第I+1优化个体和第I优化个体第J维度的预备位置;mod(·,·)是取模运算;是优化个体第J维度的初始化位置;分别是种群第J维度的上界位置和下届位置;q是用于精细调整个体位置的超参数;In the formula, and are the preparatory positions of the Jth dimension of the I+1th optimized individual and the Ith optimized individual respectively; mod(·,·) is the modulo operation; is the initialization position of the optimized individual J-th dimension; and are the upper and lower bound positions of the Jth dimension of the population, respectively; q is a hyperparameter used to fine-tune the individual position;

步骤S42:设计权重因子;引入自适应非线性递减权重因子,表示如下:Step S42: Design a weight factor; introduce an adaptive nonlinear decreasing weight factor, which is expressed as follows:

;

式中,是第t次迭代时的权重因子;tmax是最大迭代次数;In the formula, is the weight factor at the tth iteration; tmax is the maximum number of iterations;

步骤S43:设计移动策略一;对于适应度值低于种群平均适应度值的个体,采用移动策略一进行位置更新;移动策略一表示如下:Step S43: Design a mobile strategy 1; for individuals whose fitness value is lower than the average fitness value of the population, use mobile strategy 1 to update their position; mobile strategy 1 is expressed as follows:

;

式中,分别是第I个体第J维度第t+1次迭代和第t次迭代时的位置;是种群第J维度的平均位置;r是0到1的随机数;是种群最优个体第J维度的位置;是衰减因子;In the formula, and are the positions of the I-th individual at the t+1-th iteration and the t-th iteration of the J-th dimension respectively; is the average position of the population in the Jth dimension; r is a random number between 0 and 1; is the position of the Jth dimension of the optimal individual in the population; is the attenuation factor;

步骤S44:设计移动策略二;对于适应度值不低于种群平均适应度值的个体,采用移动策略二进行位置更新;移动策略二表示如下:Step S44: Design a second movement strategy; for individuals whose fitness value is not lower than the average fitness value of the population, use the second movement strategy to update the position; the second movement strategy is expressed as follows:

;

式中,QI是个体适应度值;是种群最差个体第J维度的位置;是0到1的随机数,与r相互独立;M是调节因子;是个体历史最优第J维度的位置;In the formula, Q I is the individual fitness value; is the position of the worst individual in the population in the Jth dimension; is a random number between 0 and 1, independent of r; M is the adjustment factor; is the individual's historical optimal position in the Jth dimension;

步骤S45:搜索判定;预先设有适应度阈值,若存在个体适应度值高于适应度阈值时,基于个体位置建立农业供应链监管模型;若达到最大迭代次数,则重新初始化种群中优化个体位置;否则更新适应度值继续移动搜索。Step S45: search judgment; a fitness threshold is set in advance. If there is an individual fitness value higher than the fitness threshold, an agricultural supply chain supervision model is established based on the individual position; if the maximum number of iterations is reached, the optimized individual position in the population is reinitialized; otherwise, the fitness value is updated to continue the mobile search.

进一步地,在步骤S5中,所述农业供应链监管是基于建立完成的农业供应链监管模型,实时采集农产品生产数据、物流运输数据、环境数据和供应链管理数据;经预处理后输入至农业供应链监管模型中,预先设有等级阈值,当模型输出的满意度反馈等级低于等级阈值时,判定供应链异常,进行预警处理。Furthermore, in step S5, the agricultural supply chain supervision is based on the established agricultural supply chain supervision model, and real-time collection of agricultural product production data, logistics and transportation data, environmental data and supply chain management data; after pre-processing, the data is input into the agricultural supply chain supervision model, and a level threshold is set in advance. When the satisfaction feedback level output by the model is lower than the level threshold, the supply chain is judged to be abnormal, and early warning processing is performed.

采用上述方案本发明取得的有益效果如下:The beneficial effects achieved by the present invention using the above scheme are as follows:

(1)针对一般农业供应链监管方法存在模型处理噪声数据能力差,对于偏离中心趋势的样本不敏感,导致模型稳定性差及模型过拟合风险严重的问题,本方案引入基于两个拉普拉斯函数的凸组合定义鲁棒熵,进而定义鲁棒损失函数,能够对偏差灵活处理,使得模型更注重整体误差的减少,增强模型的泛化能力;通过定义鲁棒熵的上界和下界,提供对模型稳定性和收敛性的理论保证,高斯噪声的引入和边界条件的定义助于分析模型在不同噪声水平下的稳定性表现;将基于混合熵引导的损失函数转化为凸优化问题,并制定参数更新机制,处理约束优化问题,增加了模型优化的可靠性。(1) In view of the problems that general agricultural supply chain supervision methods have poor model processing ability for noisy data and are insensitive to samples that deviate from the central trend, resulting in poor model stability and serious risk of model overfitting, this scheme introduces a convex combination of two Laplace functions to define a robust entropy, and then defines a robust loss function, which can flexibly handle deviations, so that the model pays more attention to reducing the overall error and enhances the generalization ability of the model; by defining the upper and lower bounds of the robust entropy, a theoretical guarantee for the stability and convergence of the model is provided. The introduction of Gaussian noise and the definition of boundary conditions help to analyze the stability performance of the model under different noise levels; the loss function guided by mixed entropy is transformed into a convex optimization problem, and a parameter update mechanism is formulated to deal with constrained optimization problems, thereby increasing the reliability of model optimization.

(2)针对一般农业供应链监管方法存在模型参数优化时种群初始化多样性和分布均匀性不足,导致全局搜索能力弱,搜索收敛速度慢及学习性弱导致无法快速实现准确优化的问题,本方案利用镜头成像反向学习方法和优化的圆混沌图初始化优化个体位置,使个体初始位置更接近潜在的全局最优解;通过设计自适应非线性递减权重因子,动态调整搜索能力,控制搜索范围,初期更侧重于探索,后期侧重于开发,更细致地在局部空间进行搜索;对适应度值低于种群平均适应度值的个体应用移动策略一提升劣质个体的适应度,对适应度值不低于平均适应度值的个体应用移动策略二,充分发挥优质个体的探索能力;高效、准确地优化农业供应链监管模型参数,提高供应链的监管能力和预测精度。(2) In view of the problem that the general agricultural supply chain supervision method has insufficient population initialization diversity and distribution uniformity when optimizing model parameters, resulting in weak global search ability, slow search convergence speed and weak learning ability, which makes it impossible to quickly achieve accurate optimization, this scheme uses the lens imaging reverse learning method and the optimized circular chaos map to initialize and optimize the individual position, so that the individual initial position is closer to the potential global optimal solution; by designing an adaptive nonlinear decreasing weight factor, the search ability is dynamically adjusted and the search range is controlled. In the early stage, more emphasis is placed on exploration, and in the later stage, more emphasis is placed on development, and the search is conducted in the local space in a more detailed manner; for individuals whose fitness values are lower than the average fitness value of the population, the movement strategy one is applied to improve the fitness of inferior individuals, and for individuals whose fitness values are not lower than the average fitness value, the movement strategy two is applied to give full play to the exploration ability of high-quality individuals; the parameters of the agricultural supply chain supervision model are optimized efficiently and accurately, and the supervision ability and prediction accuracy of the supply chain are improved.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明提供的一种智能化农业供应链监管方法的流程示意图;FIG1 is a schematic diagram of a flow chart of an intelligent agricultural supply chain supervision method provided by the present invention;

图2为步骤S3的流程示意图;FIG2 is a schematic flow chart of step S3;

图3为步骤S4的流程示意图。FIG. 3 is a schematic flow chart of step S4 .

附图用来提供对本发明的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明,并不构成对本发明的限制。The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例;基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

在本发明的描述中,需要理解的是,术语“上”、“下”、“前”、“后”、“左”、“右”、“顶”、“底”、“内”、“外”等指示方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.

实施例一,参阅图1,本发明提供的一种智能化农业供应链监管方法,该方法包括以下步骤:Embodiment 1, referring to FIG1 , the present invention provides an intelligent agricultural supply chain supervision method, the method comprising the following steps:

步骤S1:数据采集,采集历史农业供应链监管数据;Step S1: Data collection, collecting historical agricultural supply chain supervision data;

步骤S2:数据预处理,对采集的历史农业供应链监管数据进行数据清洗、数据转换和数据集划分;Step S2: Data preprocessing, data cleaning, data conversion and data set division of the collected historical agricultural supply chain supervision data;

步骤S3:建立农业供应链监管模型,引入基于两个拉普拉斯函数的凸组合定义鲁棒熵,进而定义鲁棒损失函数;通过定义鲁棒熵的上界和下界、引入高斯噪声和定义边界条件,将基于混合熵引导的损失函数转化为凸优化问题,并制定参数更新机制;进而实现农业供应链监管模型的建立;Step S3: Establish an agricultural supply chain supervision model, introduce a convex combination based on two Laplace functions to define the robust entropy, and then define the robust loss function; by defining the upper and lower bounds of the robust entropy, introducing Gaussian noise and defining boundary conditions, the loss function guided by the mixed entropy is transformed into a convex optimization problem, and a parameter update mechanism is formulated; thereby realizing the establishment of the agricultural supply chain supervision model;

步骤S4:模型参数优化,利用镜头成像反向学习方法和优化的圆混沌图初始化优化个体位置;通过设计自适应非线性递减权重因子,对适应度值低于种群平均适应度值的个体应用移动策略一提升劣质个体的适应度,对适应度值不低于平均适应度值的个体应用移动策略二;最终实现农业供应链监管模型的参数优化;Step S4: Model parameter optimization, using the lens imaging reverse learning method and the optimized circular chaos map to initialize and optimize individual positions; by designing an adaptive nonlinear decreasing weight factor, applying movement strategy 1 to individuals whose fitness values are lower than the average fitness value of the population to improve the fitness of inferior individuals, and applying movement strategy 2 to individuals whose fitness values are not lower than the average fitness value; finally, the parameter optimization of the agricultural supply chain supervision model is achieved;

步骤S5:农业供应链监管。Step S5: Agricultural supply chain monitoring.

实施例二,参阅图1,该实施例基于上述实施例,在步骤S1中,历史农业供应链监管数据包括农产品生产数据、物流运输数据、环境数据、供应链管理数据和满意度反馈等级;将满意度反馈等级作为数据标签。Embodiment 2, referring to FIG. 1 , is based on the above embodiment. In step S1 , historical agricultural supply chain supervision data includes agricultural product production data, logistics and transportation data, environmental data, supply chain management data, and satisfaction feedback level; the satisfaction feedback level is used as a data label.

实施例三,参阅图1,该实施例基于上述实施例,在步骤S2中,数据清洗是对历史农业供应链监管数据进行缺失值、重复值和异常值处理;数据转换是将清洗后的数据转换为向量形式并基于最大最小归一化法进行标准化处理;数据集划分是将数据转换后的历史农业供应链监管数据随机划分为训练集和测试集。Embodiment 3, referring to FIG1 , this embodiment is based on the above embodiment. In step S2, data cleaning is to process missing values, duplicate values and outliers in historical agricultural supply chain supervision data; data conversion is to convert the cleaned data into vector form and perform standardization based on the maximum and minimum normalization method; data set partitioning is to randomly divide the historical agricultural supply chain supervision data after data conversion into a training set and a test set.

实施例四,参阅图1和图2,该实施例基于上述实施例,在步骤S3中,建立农业供应链监管模型是基于对历史农业供应链监管数据预处理得到的训练集和测试集构建神经网络并进行优化,训练集用于训练农业供应链监管模型,测试集用于评估农业供应链监管模型性能;具体包括以下步骤:Embodiment 4, referring to FIG. 1 and FIG. 2, this embodiment is based on the above embodiment. In step S3, the agricultural supply chain supervision model is established by constructing a neural network and optimizing the training set and test set obtained by preprocessing the historical agricultural supply chain supervision data. The training set is used to train the agricultural supply chain supervision model, and the test set is used to evaluate the performance of the agricultural supply chain supervision model. Specifically, the following steps are included:

步骤S31:定义鲁棒熵;基于两个拉普拉斯函数的凸组合作为核,诱导一种鲁棒熵,表示为:Step S31: define robust entropy; based on the convex combination of two Laplace functions as the kernel, induce a robust entropy, expressed as:

;

式中,U(·)是鲁棒熵;E[·]是期望;n是样本数量,i是样本索引;P是实际观测到 的农业供应链数据的概率分布;Q是模型预测的农业供应链数据的概率分布;是实际观测 数据与模型预测数据之间的偏差;是平衡权重参数;是形状参数; Where U(·) is the robust entropy; E[·] is the expectation; n is the number of samples, i is the sample index; P is the probability distribution of the actually observed agricultural supply chain data; Q is the probability distribution of the agricultural supply chain data predicted by the model; is the deviation between the actual observed data and the model predicted data; is the balance weight parameter; and is the shape parameter;

步骤S32:定义鲁棒损失函数;基于鲁棒熵,引导出一个鲁棒损失函数,表示为:Step S32: define a robust loss function; based on the robust entropy, a robust loss function is derived, which is expressed as:

;

式中,是鲁棒损失函数;In the formula, is the robust loss function;

步骤S33:定义上界;设是高斯噪声,满足;鲁棒熵的上界表示为:Step S33: define the upper bound; set ; is Gaussian noise, satisfying ; The upper bound of the robust entropy is expressed as:

;

步骤S34:定义下界;鲁棒熵的下界表示为:Step S34: define a lower bound; the lower bound of the robust entropy is expressed as:

;

步骤S35:优化损失函数;具体包括:Step S35: Optimizing the loss function; specifically including:

步骤S351:最小化损失函数,将鲁棒损失函数引入农业供应链监管模型,并进行最小化,表示为:Step S351: Minimize the loss function. The robust loss function is introduced into the agricultural supply chain supervision model and minimized, which is expressed as:

;

;

式中,M是特征矩阵,用于供应链数据的转换;b是模型的偏置项;是松弛变量;是弗罗贝尼乌斯范数的平方;C是正则化参数;是样本(i,j)的松弛变量;是样本(i,j)的标签;Where M is the feature matrix used for supply chain data transformation; b is the bias term of the model; is the slack variable; is the square of the Frobenius norm; C is the regularization parameter; is the slack variable of sample (i,j); is the label of sample (i, j);

步骤S352:通过混合熵引导损失凸共轭函数,将问题转化为:Step S352: By mixing the entropy guided loss convex conjugate function, the problem is transformed into:

;

;

;

式中,g(·)是凸共轭函数,v是内置参数;是辅助变量,用于将问题转化为凸优化问题;Where g(·) is a convex conjugate function and v is a built-in parameter; and is an auxiliary variable used to transform the problem into a convex optimization problem;

步骤S36:更新,具体包括:Step S36: Update, specifically including:

步骤S361:固定,优化M,b,;表示为:Step S361: Fixing and , optimize M,b, ; expressed as:

;

;

;

式中,是辅助拉格朗日乘数;G是梯度项;是输入特征矩阵;In the formula, is the auxiliary Lagrange multiplier; G is the gradient term; is the input feature matrix;

步骤S362:固定M,b,,优化;表示为:Step S362: Fix M, b, ,optimization and ; expressed as:

;

;

步骤S37:模型判定;基于BP神经网络架构,辅以步骤S31至步骤S36进行优化,当模型对训练集收敛时,农业供应链监管模型训练完成;预先设有正确率阈值,当训练完成的农业供应链监管模型对测试集的预测正确率高于正确率阈值时,农业供应链监管模型建立完成;否则调整农业供应链监管模型参数重新训练。Step S37: model determination; based on the BP neural network architecture, with the assistance of steps S31 to S36 for optimization, when the model converges on the training set, the agricultural supply chain supervision model training is completed; an accuracy threshold is set in advance, when the prediction accuracy of the trained agricultural supply chain supervision model for the test set is higher than the accuracy threshold, the agricultural supply chain supervision model is established; otherwise, the agricultural supply chain supervision model parameters are adjusted and retrained.

通过执行上述操作,针对一般农业供应链监管方法存在模型处理噪声数据能力差,对于偏离中心趋势的样本不敏感,导致模型稳定性差及模型过拟合风险严重的问题,本方案引入基于两个拉普拉斯函数的凸组合定义鲁棒熵,进而定义鲁棒损失函数,能够对偏差灵活处理,使得模型更注重整体误差的减少,增强模型的泛化能力;通过定义鲁棒熵的上界和下界,提供对模型稳定性和收敛性的理论保证,高斯噪声的引入和边界条件的定义助于分析模型在不同噪声水平下的稳定性表现;将基于混合熵引导的损失函数转化为凸优化问题,并制定参数更新机制,处理约束优化问题,增加了模型优化的可靠性。By performing the above operations, in view of the problems that general agricultural supply chain supervision methods have poor model processing noise data capabilities and are insensitive to samples that deviate from the central trend, resulting in poor model stability and serious model overfitting risks, this scheme introduces a convex combination based on two Laplace functions to define a robust entropy, and then defines a robust loss function, which can flexibly handle deviations, so that the model pays more attention to reducing the overall error and enhances the generalization ability of the model; by defining the upper and lower bounds of the robust entropy, a theoretical guarantee for the stability and convergence of the model is provided, and the introduction of Gaussian noise and the definition of boundary conditions help to analyze the stability performance of the model under different noise levels; the loss function guided by mixed entropy is transformed into a convex optimization problem, and a parameter update mechanism is formulated to deal with constrained optimization problems, thereby increasing the reliability of model optimization.

实施例五,参阅图1和图3,该实施例基于上述实施例,在步骤S4中,模型参数优化是对农业供应链监管模型的参数进行调整;具体包括以下步骤:Embodiment 5, referring to FIG. 1 and FIG. 3 , this embodiment is based on the above embodiment. In step S4, the model parameter optimization is to adjust the parameters of the agricultural supply chain supervision model; specifically, the following steps are included:

步骤S41:初始化;基于形状参数、平衡权重参数、正则化参数、神经网络的架构参数和松弛变量构建参数优化空间;引入镜头成像反向学习,基于优化的圆混沌图初始化优化个体位置;将基于个体位置训练的农业供应链监管模型对测试集的预测正确率作为个体适应度值;初始化优化个体位置所用公式如下:Step S41: initialization; construct parameter optimization space based on shape parameters, balance weight parameters, regularization parameters, neural network architecture parameters and slack variables; introduce lens imaging reverse learning, and initialize and optimize individual positions based on optimized circular chaos diagrams; use the prediction accuracy of the test set of the agricultural supply chain supervision model trained based on individual positions as the individual fitness value; the formula used to initialize and optimize individual positions is as follows:

;

;

式中,分别是第I+1优化个体和第I优化个体第J维度的预备位置;mod(·,·)是取模运算;是优化个体第J维度的初始化位置;分别是种群第J维度的上界位置和下届位置;q是用于精细调整个体位置的超参数;In the formula, and are the preparatory positions of the Jth dimension of the I+1th optimized individual and the Ith optimized individual respectively; mod(·,·) is the modulo operation; is the initialization position of the optimized individual J-th dimension; and are the upper and lower bound positions of the Jth dimension of the population, respectively; q is a hyperparameter used to fine-tune the individual position;

步骤S42:设计权重因子;引入自适应非线性递减权重因子,表示如下:Step S42: Design a weight factor; introduce an adaptive nonlinear decreasing weight factor, which is expressed as follows:

;

式中,是第t次迭代时的权重因子;tmax是最大迭代次数;In the formula, is the weight factor at the tth iteration; tmax is the maximum number of iterations;

步骤S43:设计移动策略一;对于适应度值低于种群平均适应度值的个体,采用移动策略一进行位置更新;移动策略一表示如下:Step S43: Design a mobile strategy 1; for individuals whose fitness value is lower than the average fitness value of the population, use mobile strategy 1 to update their position; mobile strategy 1 is expressed as follows:

;

式中,分别是第I个体第J维度第t+1次迭代和第t次迭代时的位置;是种群第J维度的平均位置;r是0到1的随机数;是种群最优个体第J维度的位置;是衰减因子;In the formula, and are the positions of the I-th individual at the t+1-th iteration and the t-th iteration of the J-th dimension respectively; is the average position of the population in the Jth dimension; r is a random number between 0 and 1; is the position of the Jth dimension of the optimal individual in the population; is the attenuation factor;

步骤S44:设计移动策略二;对于适应度值不低于种群平均适应度值的个体,采用移动策略二进行位置更新;移动策略二表示如下:Step S44: Design a second movement strategy; for individuals whose fitness value is not lower than the average fitness value of the population, use the second movement strategy to update the position; the second movement strategy is expressed as follows:

;

式中,QI是个体适应度值;是种群最差个体第J维度的位置;是0到1的随机数,与r相互独立;M是调节因子;是个体历史最优第J维度的位置;In the formula, Q I is the individual fitness value; is the position of the worst individual in the population in the Jth dimension; is a random number between 0 and 1, independent of r; M is the adjustment factor; is the individual's historical optimal position in the Jth dimension;

步骤S45:搜索判定;预先设有适应度阈值,若存在个体适应度值高于适应度阈值时,基于个体位置建立农业供应链监管模型;若达到最大迭代次数,则重新初始化种群中优化个体位置;否则更新适应度值继续移动搜索。Step S45: search judgment; a fitness threshold is set in advance. If there is an individual fitness value higher than the fitness threshold, an agricultural supply chain supervision model is established based on the individual position; if the maximum number of iterations is reached, the optimized individual position in the population is reinitialized; otherwise, the fitness value is updated to continue the mobile search.

通过执行上述操作,针对一般农业供应链监管方法存在模型参数优化时种群初始化多样性和分布均匀性不足,导致全局搜索能力弱,搜索收敛速度慢及学习性弱导致无法快速实现准确优化的问题,本方案利用镜头成像反向学习方法和优化的圆混沌图初始化优化个体位置,使个体初始位置更接近潜在的全局最优解;通过设计自适应非线性递减权重因子,动态调整搜索能力,控制搜索范围,初期更侧重于探索,后期侧重于开发,更细致地在局部空间进行搜索;对适应度值低于种群平均适应度值的个体应用移动策略一提升劣质个体的适应度,对适应度值不低于平均适应度值的个体应用移动策略二,充分发挥优质个体的探索能力;高效、准确地优化农业供应链监管模型参数,提高供应链的监管能力和预测精度。By performing the above operations, in view of the problem that the general agricultural supply chain supervision method has insufficient population initialization diversity and distribution uniformity when optimizing model parameters, resulting in weak global search ability, slow search convergence speed and weak learning ability, which makes it impossible to quickly achieve accurate optimization, this scheme uses the lens imaging reverse learning method and the optimized circular chaos map to initialize and optimize the individual position, so that the individual initial position is closer to the potential global optimal solution; by designing an adaptive nonlinear decreasing weight factor, the search ability is dynamically adjusted, and the search range is controlled, with more emphasis on exploration in the early stage and development in the later stage, and a more detailed search in the local space; for individuals with fitness values lower than the average fitness value of the population, mobile strategy one is applied to improve the fitness of inferior individuals, and mobile strategy two is applied to individuals with fitness values not lower than the average fitness value, giving full play to the exploration ability of high-quality individuals; efficiently and accurately optimize the parameters of the agricultural supply chain supervision model to improve the supervision ability and prediction accuracy of the supply chain.

实施例六,参阅图1,该实施例基于上述实施例,在步骤S5中,农业供应链监管是基于建立完成的农业供应链监管模型,实时采集农产品生产数据、物流运输数据、环境数据和供应链管理数据;经预处理后输入至农业供应链监管模型中,预先设有等级阈值,当模型输出的满意度反馈等级低于等级阈值时,判定供应链异常,进行预警处理。Embodiment 6, referring to FIG1, this embodiment is based on the above embodiment. In step S5, agricultural supply chain supervision is based on the established agricultural supply chain supervision model, and real-time collection of agricultural product production data, logistics and transportation data, environmental data and supply chain management data; after pre-processing, the data is input into the agricultural supply chain supervision model, and a level threshold is pre-set. When the satisfaction feedback level output by the model is lower than the level threshold, the supply chain is judged to be abnormal, and early warning processing is performed.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型。While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and alterations may be made to the embodiments without departing from the principles and spirit of the invention.

以上对本发明及其实施方式进行了描述,这种描述没有限制性,附图中所示的也只是本发明的实施方式之一,实际的结构并不局限于此。总而言之如果本领域的普通技术人员受其启示,在不脱离本发明创造宗旨的情况下,不经创造性的设计出与该技术方案相似的结构方式及实施例,均应属于本发明的保护范围。The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.

Claims (6)

1. An intelligent agricultural supply chain supervision method is characterized in that: the method comprises the following steps:
step S1: collecting data;
step S2: preprocessing data;
Step S3: establishing an agricultural supply chain supervision model, and introducing a convex combination definition Lu Bangshang based on two Laplacian functions to further define a robust loss function; the method comprises the steps of converting a loss function guided by mixed entropy into a convex optimization problem by defining an upper bound and a lower bound of a robust entropy, introducing Gaussian noise and defining boundary conditions, and formulating a parameter updating mechanism; thereby realizing the establishment of an agricultural supply chain supervision model;
Step S4: model parameter optimization, namely initializing and optimizing individual positions by using a lens imaging reverse learning method and an optimized round chaos map; by designing a self-adaptive nonlinear decrementing weight factor, a first movement strategy is applied to individuals with fitness values lower than the average fitness value of the population to improve the fitness of poor individuals, and a second movement strategy is applied to individuals with fitness values not lower than the average fitness value; finally, parameter optimization of an agricultural supply chain supervision model is realized;
step S5: agricultural supply chain supervision;
Step S3 includes step S31: definition Lu Bangshang; based on the convex combination of two laplace functions as a kernel, a robust entropy is induced, expressed as:
Wherein U (·) is Lu Bangshang; e is desired; n is the number of samples, i is the sample index; p is the probability distribution of the actual observed agricultural supply chain data; q is the probability distribution of model predicted agricultural supply chain data; is the deviation between the actual observed data and the model predicted data; Is a balance weight parameter; And Is a shape parameter.
2. An intelligent agricultural supply chain supervision method according to claim 1, wherein: in step S3, the building of the agricultural supply chain supervision model is to build a neural network and optimize the neural network based on a training set and a testing set obtained by preprocessing historical agricultural supply chain supervision data, wherein the training set is used for training the agricultural supply chain supervision model, and the testing set is used for evaluating the performance of the agricultural supply chain supervision model; the method specifically comprises the following steps:
Step S31: definition Lu Bangshang;
step S32: defining a robust loss function; based on the robust entropy, a robust loss function is guided out, expressed as:
In the method, in the process of the invention, Is a robust loss function;
Step S33: defining an upper bound; is provided with Is Gaussian noise, satisfy; The upper bound of the robust entropy is expressed as:
step S34: defining a lower bound; the lower bound of the robust entropy is expressed as:
Step S35: optimizing a loss function; the method specifically comprises the following steps:
step S351: minimizing the loss function, introducing the robust loss function into the agricultural supply chain supervision model, and minimizing, expressed as:
Wherein M is a feature matrix for conversion of supply chain data; b is a bias term for the model; Is a relaxation variable; is the square of the Fr Luo Beini Usne norm; c is a regularization parameter; Is the relaxation variable of sample (i, j); A tag that is sample (i, j);
Step S352: the problem is translated into a mixed entropy guided loss convex conjugate function:
wherein g (·) is a convex conjugate function and v is a built-in parameter; And Is an auxiliary variable for converting the problem into a convex optimization problem;
step S36: the updating specifically comprises the following steps:
Step S361: fixing AndOptimizing the values of M, b,; Expressed as:
In the method, in the process of the invention, Is an auxiliary lagrangian multiplier; g is a gradient term; Is an input feature matrix;
Step S362: the weight of the fixed M, b, OptimizingAnd; Expressed as:
Step S37: judging a model; based on BP neural network architecture, optimizing with the aid of step S31 to step S36, and finishing the training of the agricultural supply chain supervision model when the model converges to the training set; presetting a correct rate threshold, and finishing the establishment of the agricultural supply chain supervision model when the predicted correct rate of the trained agricultural supply chain supervision model to the test set is higher than the correct rate threshold; otherwise, adjusting the parameters of the supervision model of the agricultural supply chain to retrain.
3. An intelligent agricultural supply chain supervision method according to claim 1, wherein: in step S4, the model parameter optimization is to adjust parameters of an agricultural supply chain supervision model; the method specifically comprises the following steps:
Step S41: initializing; constructing a parameter optimization space based on the shape parameters, the balance weight parameters, the regularization parameters, the architecture parameters of the neural network and the relaxation variables; introducing lens imaging reverse learning, and initializing and optimizing individual positions based on an optimized round chaotic map; taking the prediction accuracy of the agricultural supply chain supervision model trained based on the individual position to the test set as an individual fitness value; the formula for initializing and optimizing the individual position is as follows:
In the method, in the process of the invention, AndThe preparation positions of the J dimension of the I+1st optimized individual and the I optimized individual are respectively; mod (·, ·) is a modulo operation; Is an initialization location that optimizes the J-th dimension of the individual; And The upper limit position and the lower limit position of the J dimension of the population are respectively; q is a hyper-parameter for fine-tuning the individual's position;
step S42: designing a weight factor; an adaptive nonlinear decrementing weight factor is introduced, expressed as follows:
In the method, in the process of the invention, Is the weight factor at the t-th iteration; tmax is the maximum number of iterations;
Step S43: designing a first movement strategy; for individuals with fitness values lower than the population average fitness value, carrying out position update by adopting a first movement strategy; the movement policy one is expressed as follows:
In the method, in the process of the invention, AndThe positions of the ith individual in the jth dimension at the time of the (t+1) th iteration and the (t) th iteration are respectively; is the average position of the J-th dimension of the population; r is a random number from 0 to 1; Is the position of the J dimension of the population optimal individuals; Is an attenuation factor;
step S44: designing a second movement strategy; for individuals with fitness values not lower than the population average fitness value, carrying out position update by adopting a second movement strategy; the movement policy two is expressed as follows:
wherein Q I is an individual fitness value; is the position of the J dimension of the worst individuals of the population; a random number of 0 to 1, independent of r; m is a regulatory factor; Is the location of the individual history optimal J dimension;
Step S45: searching and judging; presetting an fitness threshold, and if the individual fitness value is higher than the fitness threshold, establishing an agricultural supply chain supervision model based on the individual position; if the maximum iteration times are reached, the optimized individual positions in the population are reinitialized; otherwise, updating the fitness value and continuing the mobile search.
4. An intelligent agricultural supply chain supervision method according to claim 1, wherein: in step S1, the data collection is collection of historical agricultural supply chain regulatory data; the historical agricultural supply chain supervision data includes agricultural product production data, logistics transportation data, environmental data, supply chain management data, and satisfaction feedback levels; and taking the satisfaction feedback level as a data tag.
5. An intelligent agricultural supply chain supervision method according to claim 1, wherein: in step S5, the agricultural supply chain supervision is based on the established agricultural supply chain supervision model, and agricultural product production data, logistics transportation data, environmental data and supply chain management data are collected in real time; and inputting the processed result into an agricultural supply chain supervision model, presetting a grade threshold, and judging that the supply chain is abnormal when the satisfaction feedback grade output by the model is lower than the grade threshold, and performing early warning treatment.
6. An intelligent agricultural supply chain supervision method according to claim 1, wherein: in step S2, the data preprocessing is to perform data cleaning, data conversion and data set division on the collected historical agricultural supply chain supervision data; the data cleaning is to process missing values, repeated values and abnormal values of historical agricultural supply chain supervision data; the data conversion is to convert the cleaned data into a vector form and perform standardization processing based on a maximum and minimum normalization method; the data set division is to randomly divide the historical agricultural supply chain supervision data after data conversion into a training set and a testing set.
CN202411085063.1A 2024-08-08 2024-08-08 Intelligent agricultural supply chain supervision method Active CN118608106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411085063.1A CN118608106B (en) 2024-08-08 2024-08-08 Intelligent agricultural supply chain supervision method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411085063.1A CN118608106B (en) 2024-08-08 2024-08-08 Intelligent agricultural supply chain supervision method

Publications (2)

Publication Number Publication Date
CN118608106A true CN118608106A (en) 2024-09-06
CN118608106B CN118608106B (en) 2024-10-22

Family

ID=92550312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411085063.1A Active CN118608106B (en) 2024-08-08 2024-08-08 Intelligent agricultural supply chain supervision method

Country Status (1)

Country Link
CN (1) CN118608106B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118799344A (en) * 2024-09-14 2024-10-18 山东科发建设工程有限公司 Safety supervision method of construction projects based on artificial intelligence
CN119046801A (en) * 2024-11-01 2024-11-29 博创联动科技股份有限公司 Agricultural machinery operation state monitoring method and system based on Internet of things
CN119206513A (en) * 2024-11-26 2024-12-27 迪天环境技术南京股份有限公司 Environmental monitoring method and system based on remote sensing image processing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671673B1 (en) * 2000-03-24 2003-12-30 International Business Machines Corporation Method for integrated supply chain and financial management
WO2018072351A1 (en) * 2016-10-20 2018-04-26 北京工业大学 Method for optimizing support vector machine on basis of particle swarm optimization algorithm
CN115331065A (en) * 2022-10-13 2022-11-11 南京航空航天大学 Robust noise multi-label image learning method based on decoder iterative screening
CN116468938A (en) * 2023-04-03 2023-07-21 南京大学 Robust image classification method on label noisy data
CN117474257A (en) * 2023-11-03 2024-01-30 北京工商大学 Method, device and medium for selecting, protecting and distributing parts and accessories warehouse
CN118075032A (en) * 2024-04-19 2024-05-24 湖南天冠电子信息技术有限公司 Virtual local area network security risk prediction method based on artificial intelligence
CN118199078A (en) * 2024-03-22 2024-06-14 清华大学深圳国际研究生院 Robust reinforcement learning reactive power optimization method suitable for unobservable power distribution network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6671673B1 (en) * 2000-03-24 2003-12-30 International Business Machines Corporation Method for integrated supply chain and financial management
WO2018072351A1 (en) * 2016-10-20 2018-04-26 北京工业大学 Method for optimizing support vector machine on basis of particle swarm optimization algorithm
CN115331065A (en) * 2022-10-13 2022-11-11 南京航空航天大学 Robust noise multi-label image learning method based on decoder iterative screening
CN116468938A (en) * 2023-04-03 2023-07-21 南京大学 Robust image classification method on label noisy data
CN117474257A (en) * 2023-11-03 2024-01-30 北京工商大学 Method, device and medium for selecting, protecting and distributing parts and accessories warehouse
CN118199078A (en) * 2024-03-22 2024-06-14 清华大学深圳国际研究生院 Robust reinforcement learning reactive power optimization method suitable for unobservable power distribution network
CN118075032A (en) * 2024-04-19 2024-05-24 湖南天冠电子信息技术有限公司 Virtual local area network security risk prediction method based on artificial intelligence

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张萍;陈幼平;周祖德;倪龙宇;: "不确定条件下供应链设施决策的鲁棒优化", 武汉理工大学学报(信息与管理工程版), vol. 30, no. 05, 15 October 2008 (2008-10-15), pages 800 - 803 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118799344A (en) * 2024-09-14 2024-10-18 山东科发建设工程有限公司 Safety supervision method of construction projects based on artificial intelligence
CN119046801A (en) * 2024-11-01 2024-11-29 博创联动科技股份有限公司 Agricultural machinery operation state monitoring method and system based on Internet of things
CN119206513A (en) * 2024-11-26 2024-12-27 迪天环境技术南京股份有限公司 Environmental monitoring method and system based on remote sensing image processing

Also Published As

Publication number Publication date
CN118608106B (en) 2024-10-22

Similar Documents

Publication Publication Date Title
CN118608106B (en) Intelligent agricultural supply chain supervision method
Wu et al. Efficient hyperparameter optimization through model-based reinforcement learning
CN116957698A (en) Electricity price prediction method based on improved time sequence mode attention mechanism
Koryakovskiy et al. One-shot model for mixed-precision quantization
CN116316573A (en) Short-term power load prediction method based on nonstandard Bayesian algorithm optimization
Wong et al. Hybrid neural, genetic, and fuzzy systems
CN118968163B (en) Artificial intelligence visual detection method based on linear discrimination
CN113656707B (en) Financial product recommendation method, system, storage medium and equipment
CN118227877B (en) Intelligent recommendation method and system based on deep learning
CN117371550A (en) Method and system for solving QUBO problem using hybrid classical-quantum solver
CN113936219A (en) A Reinforcement Learning-Based Band Selection Method for Hyperspectral Images
Laguel et al. First-order optimization for superquantile-based supervised learning
CN115206444A (en) Optimal drug dosage prediction method based on FCM-ANFIS model
Rad et al. GP-RVM: Genetic programing-based symbolic regression using relevance vector machine
CN110837929A (en) Least square support vector machine electricity utilization prediction method based on adaptive genetic algorithm
CN118778734B (en) Carbon barbecue temperature control method and system based on machine learning
CN115984617A (en) Method for improving long-tail recognition group fairness based on generative countermeasure network
Kennamer et al. Design amortization for Bayesian optimal experimental design
CN118674001A (en) State action relation reinforcement learning method integrating graph convolution and large language model
Zhang et al. MDAEN: multi-dimensional attention-based ensemble network in deep reinforcement learning framework for portfolio management
Zhang et al. Simpo: Simultaneous prediction and optimization
CN116883042A (en) Multi-sequence electricity price probability prediction method and system based on blocking state pre-estimation
Iba et al. GP-RVM: Genetic programing-based symbolic regression using relevance vector machine
CN112950373A (en) Investment portfolio management method based on DDPG deep reinforcement learning algorithm
Mendula et al. Reservoir Computing in Real-World Environments: Optimizing the Cost of Offline and Online Training

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant