+

CN111726407B - A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment - Google Patents

A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment Download PDF

Info

Publication number
CN111726407B
CN111726407B CN202010552281.7A CN202010552281A CN111726407B CN 111726407 B CN111726407 B CN 111726407B CN 202010552281 A CN202010552281 A CN 202010552281A CN 111726407 B CN111726407 B CN 111726407B
Authority
CN
China
Prior art keywords
data
monitoring
model
plant
cultivation
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.)
Active
Application number
CN202010552281.7A
Other languages
Chinese (zh)
Other versions
CN111726407A (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.)
Hangzhou City University
Original Assignee
Hangzhou City University
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 Hangzhou City University filed Critical Hangzhou City University
Priority to CN202010552281.7A priority Critical patent/CN111726407B/en
Publication of CN111726407A publication Critical patent/CN111726407A/en
Application granted granted Critical
Publication of CN111726407B publication Critical patent/CN111726407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/05Agriculture
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y20/00Information sensed or collected by the things
    • G16Y20/10Information sensed or collected by the things relating to the environment, e.g. temperature; relating to location
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/20Analytics; Diagnosis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Agronomy & Crop Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Medical Informatics (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Biomedical Technology (AREA)
  • Environmental & Geological Engineering (AREA)
  • Toxicology (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

本发明涉及一种智能植物工厂环境下名优花卉及药用植物栽培的雾计算监控技术,包括:步骤1、搭建传感网络,对植物工厂进行区域划分,将采集的传感数据上传至雾采集模块;步骤2、每台本地设备采集到传感数据之后,在本地通过轻量级的数据规模估计模型估计后续的数据规模来调整转发量,同时通过本地的自适应采样模型和自适应滤波模型对传感数据进行处理,最后通过转发设备按调整后的转发量向云服务器转发处理后的传感数据。本发明的有益效果是:本发明对名优花卉生长过程中传感器收集的环境参数数据,基于轻量级估计模型估计传输流量,并通过自适应采样及自适应滤波技术过滤传感数据流,利用雾计算实现适量有效的传感数据的实时监控。

Figure 202010552281

The invention relates to a fog computing monitoring technology for the cultivation of famous flowers and medicinal plants under the environment of an intelligent plant factory. Module; Step 2. After each local device collects the sensor data, it estimates the subsequent data scale locally through a lightweight data scale estimation model to adjust the forwarding amount, and at the same time uses the local adaptive sampling model and adaptive filtering model. The sensor data is processed, and finally the processed sensor data is forwarded to the cloud server through the forwarding device according to the adjusted forwarding amount. The beneficial effects of the present invention are: the present invention estimates the transmission flow based on the lightweight estimation model for the environmental parameter data collected by the sensor during the growth process of the famous flowers, filters the sensing data flow through adaptive sampling and adaptive filtering technology, and uses fog The calculation enables real-time monitoring of the appropriate amount of effective sensor data.

Figure 202010552281

Description

一种智能植物工厂环境下名优花卉及药用植物栽培的雾计算 监控技术A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment

技术领域technical field

本发明涉及基于雾计算模式的监控技术领域,尤其包括一种智能植物工厂环境下名优花卉及药用植物栽培的雾计算监控技术;通过建立植物工厂环境下传感数据采集的低功耗近似估计模型、自适应采样模型以及自适应滤波模型,实现智能植物工厂环境下名优花卉及药用植物栽培的环境参数监控。The invention relates to the field of monitoring technology based on fog computing mode, and particularly includes a fog computing monitoring technology for cultivation of famous flowers and medicinal plants in an environment of an intelligent plant factory; an approximate estimation of low power consumption by establishing sensing data collection in the environment of a plant factory Model, adaptive sampling model and adaptive filtering model to realize the monitoring of environmental parameters for the cultivation of famous flowers and medicinal plants in the environment of intelligent plant factories.

背景技术Background technique

随着现代生物技术、种植技术和物联网技术的发展,植物工厂使用保温、不透光的材料作为围护结构,严格控制与外界环境的气体交换,并采用人工光源为植物提供光照,使系统内的能源与物质流动随着空气循环形成一个自循环再生系统,不仅有利于提高室内二氧化碳浓度,促进光合作用从而缩短植物栽培周期,还能防止细菌和虫害进入室内使得产品清洁程度更高。与传统人工栽培方式相比,植物工厂精细化栽培不受外界影响且能精准控制,可进行高密度植物栽培,实现高品质植物的周年稳定生产。此外,植物工厂选址所受限制较小,可因地制宜在都市进行生产,减少物流环节汽车运输所带来的环境污染和储存问题。With the development of modern biotechnology, planting technology and Internet of Things technology, plant factories use thermal insulation and opaque materials as the enclosure structure, strictly control the gas exchange with the external environment, and use artificial light sources to provide light for plants, making the system The internal energy and material flow form a self-circulating regeneration system with the air circulation, which not only helps to increase the indoor carbon dioxide concentration, promotes photosynthesis to shorten the plant cultivation cycle, but also prevents bacteria and insect pests from entering the room, making the product cleaner. Compared with the traditional artificial cultivation method, the fine cultivation of plant factories is not affected by the outside world and can be precisely controlled. It can carry out high-density plant cultivation and realize the annual and stable production of high-quality plants. In addition, the location of plant factories is less restricted, and production can be carried out in cities according to local conditions, reducing environmental pollution and storage problems caused by automobile transportation in the logistics link.

名优花卉及药用植物进行工厂化精细栽培关键在于为不同植物品种的不同生长阶段提供生长所需的特殊环境,加速植物的生长以缩短栽培周期。因此,监控植物工厂的各种环境对象信息(如温度、光照、水分和土壤酸碱度等)是实现名优花卉及药用植物进行工厂化精细栽培的前提和核心。现有的面向名优花卉及药用植物精细化工厂栽培的监控技术大体上可分为两个步骤:1)各种环境传感器根据预先设定的频率采集相关信息,如温度、光照、水分和土壤酸碱度等;2)以4G、WiFi或Zigbee等无线传输方式将采集信息传输到后台监控中心。然而,植物工厂内各种环境传感器每天产生的数据量急增,而植物精细化工厂栽培则对环境信息监控技术的响应时间和安全性提出了更高的要求。现有面向植物工厂精细化栽培的监控技术虽然为各种环境感知数据处理提供了高效的计算平台,但是目前网络带宽的增长速度远远赶不上数据的增长速度,网络带宽成本的下降速度要比CPU和内存这些硬件资源成本的下降速度慢很多,同时复杂的网络环境让网络延迟很难有突破性提升。因此,现有面向名优花卉及药用植物精细化工厂栽培的监控技术需要解决网络带宽和延迟这两大瓶颈。The key to the factory-based fine cultivation of famous flowers and medicinal plants is to provide the special environment required for the growth of different plant varieties at different growth stages, and to accelerate the growth of plants to shorten the cultivation period. Therefore, monitoring the information of various environmental objects in plant factories (such as temperature, light, water, and soil pH, etc.) is the premise and core of the factory-based fine cultivation of famous flowers and medicinal plants. The existing monitoring technology for the cultivation of famous flowers and medicinal plants in fine chemical plants can be roughly divided into two steps: 1) Various environmental sensors collect relevant information according to preset frequencies, such as temperature, light, moisture and soil. pH, etc.; 2) The collected information is transmitted to the background monitoring center by wireless transmission methods such as 4G, WiFi or Zigbee. However, the amount of data generated by various environmental sensors in plant factories has increased sharply every day, and plant fine chemical factory cultivation has put forward higher requirements for the response time and security of environmental information monitoring technology. Although the existing monitoring technology for fine cultivation in plant factories provides an efficient computing platform for various environmental perception data processing, the current growth rate of network bandwidth is far from keeping up with the growth rate of data, and the decline rate of network bandwidth cost is faster than that of CPU. The cost of hardware resources such as memory and memory declines at a much slower rate, and at the same time, the complex network environment makes it difficult to achieve a breakthrough in network latency. Therefore, the existing monitoring technology for the cultivation of famous flowers and medicinal plants in fine chemical plants needs to solve the two bottlenecks of network bandwidth and delay.

发明内容SUMMARY OF THE INVENTION

本发明的目的是克服现有技术中的不足,提供一种智能植物工厂环境下名优花卉及药用植物栽培的雾计算监控技术。The purpose of the present invention is to overcome the deficiencies in the prior art, and to provide a fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment.

这种智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统,包括:植物工厂数据采集模块、雾采集模块、云存储模块和监视系统可视化模块;所述植物工厂数据采集模块通过WiFi或蓝牙连接雾采集模块进行数据传输,所述雾采集模块上传数据至云存储模块,所述监视系统可视化模块从云存储模块读取数据。The monitoring system for the cultivation of famous flowers and medicinal plants in the intelligent plant factory environment includes: a plant factory data acquisition module, a fog acquisition module, a cloud storage module and a monitoring system visualization module; the plant factory data acquisition module is connected through WiFi or Bluetooth. The fog collecting module is connected for data transmission, the fog collecting module uploads data to the cloud storage module, and the monitoring system visualization module reads data from the cloud storage module.

作为优选,所述植物工厂数据采集模块内设有传感器,所述传感器包括温度传感器、二氧化碳传感器和湿度传感器;所述雾采集模块用于进行数据规模估计、自适应采样和自适应滤波;所述云存储模块用于将数据上传云端和数据本地备份;所述监视系统可视化模块用于进行环境数据可视化、植物生长可视化和营养液状况可视化。Preferably, the plant factory data collection module is provided with sensors, the sensors include a temperature sensor, a carbon dioxide sensor and a humidity sensor; the fog collection module is used for data scale estimation, adaptive sampling and adaptive filtering; the The cloud storage module is used for uploading data to the cloud and backing up the data locally; the monitoring system visualization module is used for environmental data visualization, plant growth visualization and nutrient solution status visualization.

这种智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,包括如下步骤:The fog computing monitoring technology of the monitoring system of the famous flower and medicinal plant cultivation factory in the intelligent plant factory environment includes the following steps:

步骤1、搭建传感网络,对植物工厂进行区域划分,为每个本地雾计算设备划分监控区域,植物工厂数据采集模块在每个区域部署若干本地设备进行温湿度、二氧化碳等传感数据的采集;将采集的传感数据上传至雾采集模块,如温湿度、二氧化碳和土壤酸碱度等;以待后续的转发;Step 1. Build a sensor network, divide the plant factory into areas, and divide the monitoring area for each local fog computing device. The plant factory data acquisition module deploys several local devices in each area to collect sensing data such as temperature, humidity, and carbon dioxide. ; Upload the collected sensor data to the fog collection module, such as temperature and humidity, carbon dioxide and soil pH, etc.; for subsequent forwarding;

步骤2、每台本地设备采集到传感数据之后,在本地通过轻量级的数据规模估计模型估计后续的数据规模来调整转发量,同时通过本地的自适应采样模型和自适应滤波模型对传感数据进行处理,最后通过转发设备按调整后的转发量向云服务器转发处理后的传感数据;Step 2. After each local device collects the sensor data, it estimates the subsequent data scale locally through the lightweight data scale estimation model to adjust the forwarding amount, and at the same time uses the local adaptive sampling model and adaptive filtering model to adjust the forwarding amount. The sensor data is processed, and finally the processed sensor data is forwarded to the cloud server through the forwarding device according to the adjusted forwarding amount;

步骤2.1、依据传感数据规模通过概率指数加权移动平均值模型和趋势检测估计后续数据规模,在线更新概率指数加权移动平均值模型并量调整数据转发量:Step 2.1. According to the scale of the sensing data, estimate the subsequent data scale through the probability exponentially weighted moving average model and trend detection, update the probability exponentially weighted moving average model online and adjust the amount of data forwarding:

在本地设备上部署轻量级的数据规模估计模型,利用特定环境监测设备过去一段时间的监测数据来预测其未来时刻的监测数据;将两个连续数据点vi和vi-1值之间的距离δi定义如下所示: Deploy a lightweight data scale estimation model on the local device, and use the monitoring data of a specific environmental monitoring device in the past period to predict its future monitoring data; The distance δ i is defined as follows:

δi=|vi-vi-1|δ i =|v i -v i-1 |

用距离δi更新传感数据流ρ(M)本地参考运行时间的变化,通过移动平均来计算当前传感数据流变化,表示为μi,将接下来的两个数据点的距离记为δi+1;两个连续值之间的距离表示传感数据流的变化;使用概率指数加权移动平均值模型进行监测传感数据的近似预测,引入加权因子(0<α<1)按指数变化模式降低较旧的传感数据的权重,如下式所示:Update the change of the local reference running time of the sensing data stream ρ(M) with the distance δ i , calculate the current change of the sensing data stream by moving average, denoted as μ i , and denote the distance of the next two data points as δ i+1 ; the distance between two consecutive values represents the change of the sensory data flow; the approximate prediction of the monitoring sensory data is carried out using the probability exponentially weighted moving average model, and the weighting factor (0<α<1) is introduced to change exponentially The mode downweights older sensory data as follows:

Figure BDA0002542992040000031
Figure BDA0002542992040000031

上式中,用δ1来初始化u1,后面迭代更新;虽然指数加权移动平均值模型更适合实际植物工厂的监测需求,但其对瞬态变化的响应是不稳定的,故不能总是假设只存在指数加权。具体而言,如果概率指数加权移动平均值模型在一个较长时间的稳定阶段之后遇到突然的峰值,并且这个突然的峰值之后又是一个稳定阶段,则概率指数加权移动平均值模型保留这个峰值;这将导致过高估计后续的δi,从而会影响近似数据规模估计模型的准确性;In the above formula, u 1 is initialized with δ 1 and updated iteratively later; although the exponentially weighted moving average model is more suitable for the monitoring needs of actual plant factories, its response to transient changes is unstable, so it cannot always be assumed Only exponential weighting exists. Specifically, if a probabilistic exponentially weighted moving average model encounters a sudden peak after a longer period of stabilization, and this abrupt peak is followed by a stabilization period, the probabilistic exponentially weighted moving average model retains the peak ; this will lead to overestimation of the subsequent δ i , which will affect the accuracy of the approximate data size estimation model;

步骤2.2、在本地设备上部署面向植物工厂精细化栽培监控的自适应采样模型,并依据传感数据规模计算置信度,与用户定义的不精确度对比后,调整采样周期并对传感数据采样;自适应采样的核心是基于植物工厂监测传感数据流的变化动态调整采样周期性Ti的过程,同时监测精度仍然满足用户给出的精确性要求;Step 2.2. Deploy the adaptive sampling model for fine cultivation monitoring of plant factories on the local device, and calculate the confidence level according to the scale of the sensor data. After comparing with the user-defined inaccuracy, adjust the sampling period and sample the sensor data. ; The core of adaptive sampling is the process of dynamically adjusting the sampling periodicity T i based on changes in the monitoring sensor data flow of the plant factory, while the monitoring accuracy still meets the accuracy requirements given by the user;

此外,与仅基于阶跃函数(例如,Ti+1←Ti±Tstep,Tstep为置信区间半径)调整采样率的逐步技术相比;提出的自适应算法可以基于置信度对快速变化的度量流在合适范围[Tmin,Tmax]内进行高效响应;步骤2.3、在本地设备上部署面向植物工厂精细化栽培监控的自适应滤波模型,对经过采样的传感数据进行滤波:将滤波范围表示为R,如果值vi∈[vi-1-R,vi-1+R],则过滤vi的当前数据点di;并根据Fano因子根据监测传感数据流变化动态调整滤波范围R,根据滤波结果调整采样周期;Furthermore, compared to the stepwise technique that adjusts the sampling rate only based on a step function (eg, T i+1 ←T i ±T step , where T step is the confidence interval radius); the proposed adaptive algorithm can The metric flow of the plant responds efficiently within the appropriate range [T min , T max ]; step 2.3, deploy the adaptive filtering model for fine cultivation monitoring of plant factories on the local device, and filter the sampled sensor data: The filtering range is expressed as R, if the value v i ∈ [v i-1 -R,v i-1 +R], the current data point d i of v i is filtered; and the monitoring sensor data flow changes dynamically according to the Fano factor Adjust the filtering range R, and adjust the sampling period according to the filtering results;

步骤2.4、在本地设备上部署面向植物工厂精细化栽培监控的自适应转发模型,对经过采样或滤波的数据按数据规模估计模型估计得到的转发量进行转发,将数据传输至云服务器;Step 2.4, deploying an adaptive forwarding model for fine cultivation monitoring of plant factories on the local device, forwarding the sampled or filtered data according to the forwarding amount estimated by the data scale estimation model, and transmitting the data to the cloud server;

步骤3、云服务器接收并解析由本地设备转发的传感数据,将不同类型的传感数据保存至本地数据库,同时在设备上通过可视化图表显示植物生长状况数据或植物生长环境数据,向管理人员提供实时数据监控。Step 3. The cloud server receives and parses the sensory data forwarded by the local device, saves different types of sensory data to the local database, and displays the plant growth status data or plant growth environment data on the device through a visual chart, to the management personnel. Provides real-time data monitoring.

作为优选,所述步骤1中本地设备包括传感器。Preferably, in the step 1, the local device includes a sensor.

作为优选,所述步骤2.1为了解决概率指数加权移动平均值模型遭遇一个突然的数据峰值变化的问题,概率指数加权移动平均值模型通过概率加权和趋势检测两个步骤进行解决,在每个本地设备部署概率指数加权移动平均值模型。不断地根据传感数据流对后续数据规模进行估计,在线更新模型并调整转发量;具体包括以下步骤:Preferably, in step 2.1, in order to solve the problem that the probability exponentially weighted moving average model encounters a sudden data peak change, the probability exponentially weighted moving average model is solved by two steps of probability weighting and trend detection. Deploy a probability exponentially weighted moving average model. Continuously estimate the subsequent data scale according to the sensor data flow, update the model online and adjust the forwarding amount; it includes the following steps:

步骤2.1.1、基于传感器数据利用概率指数加权方法计算后续的数据量变化:使用可变化的加权因子来适应数据突然的瞬态变化产生的影响:Step 2.1.1. Calculate the subsequent data volume changes based on the sensor data using the probability exponential weighting method: use a variable weighting factor to adapt to the impact of sudden and transient changes in the data:

Figure BDA0002542992040000041
Figure BDA0002542992040000041

上式中,u1为当前传感数据流变化,δi为两个连续数据点vi和vi-1值之间的距离;

Figure BDA0002542992040000042
为概率上可变化的加权因子,
Figure BDA0002542992040000043
Pi为第i次迭代的权重;
Figure BDA0002542992040000044
值是当前δi的概率;β是Pi的权重;α为加权因子,0<α<1;概率指数加权移动平均值模型的原理是当前δi对估计过程有概率为p的贡献。因此,将权重更新为1-βPi,以便在估计过程中考虑突然却对后续估计几乎没有影响的意外峰值,从而限制模型过高估计后续δi;如果意外峰值之后是传感数据流的持续变化,则随后的意外峰值会被赋予更大的p值,从而允许它们对估计过程产生更大影响;In the above formula, u 1 is the current sensor data flow change, and δ i is the distance between two consecutive data points vi and vi -1 ;
Figure BDA0002542992040000042
is a probabilistically variable weighting factor,
Figure BDA0002542992040000043
P i is the weight of the ith iteration;
Figure BDA0002542992040000044
The value is the probability of the current δ i ; β is the weight of P i ; α is the weighting factor, 0<α<1; the principle of the probability exponentially weighted moving average model is that the current δ i contributes to the estimation process with probability p. Therefore, the weights are updated to 1-βP i to account for unexpected peaks that are abrupt but have little effect on subsequent estimates during the estimation process, thereby limiting the model to overestimate subsequent δ i ; if the unexpected peak is followed by a continuous stream of sensory data changes, subsequent unexpected peaks are assigned larger p-values, allowing them to have a greater impact on the estimation process;

步骤2.1.2、虽然概率指数加权移动平均值模型避免了模型对意外峰值的过度估计,但它没有考虑到向上和向下趋势的单调阶段,这往往会在估计过程中引入时间滞后效应。因此,使用Holt等人提出的模型来估算传感数据流变化中的单调增长或单调衰减:Step 2.1.2. Although the probabilistic exponentially weighted moving average model avoids the model's overestimation of unexpected peaks, it does not take into account the monotonic phases of the upward and downward trends, which tend to introduce time lag effects in the estimation process. Therefore, the model proposed by Holt et al. is used to estimate monotonic growth or monotonic decay in sensory data flow changes:

Figure BDA0002542992040000045
Figure BDA0002542992040000045

上式中,xi为当前传感数据流;u1为当前传感数据流变化;δi为两个连续数据点vi和vi-1值之间的距离;ξ是[0,1]范围内的平滑权重,ξ的值接近1表示一种对近期趋势的偏好;为了初始化计算X1,将i的初值取2;估算过程中通过将概率指数加权移动平均值模型的移动平均值提高到适当的数值基数来减少滞后效应

Figure BDA0002542992040000046
In the above formula, x i is the current sensing data flow; u 1 is the current sensing data flow change; δ i is the distance between two consecutive data points vi and v i -1 ; ξ is [0,1 ] in the range of smoothing weights, a value of ξ close to 1 indicates a preference for recent trends; in order to initialize the calculation of X 1 , the initial value of i is set to 2; during the estimation process, the moving average of the probability exponentially weighted moving average model is used. value is raised to an appropriate numerical base to reduce hysteresis
Figure BDA0002542992040000046

步骤2.1.3、根据上述计算结果在每个本地设备部署数据规模估计模型,根据传感数据流对后续传感数据规模进行估计,在线更新概率指数加权移动平均值模型并调整数据转发量。Step 2.1.3: Deploy a data scale estimation model on each local device according to the above calculation results, estimate the subsequent sensing data scale according to the sensing data flow, update the probability exponentially weighted moving average model online and adjust the data forwarding amount.

作为优选,所述步骤2.2具体包括如下步骤:Preferably, the step 2.2 specifically includes the following steps:

步骤2.2.1、根据当前采样周期Ti监测下一个数据点的估计采样周期Ti+1:如果负载减小则增加下一个数据点的估计采样周期Ti+1,如果负载增加则减小下一个数据点估计采样周期Ti+1;所述下一个数据点估计采样周期Ti+1增加或减小的幅度取决于置信度ci,表示自适应采样模型估计并且遵循传感数据流目前变化的置信度ci,当传感数据流置信度ci较大时,自适应采样模型采用更大的采样周期;Step 2.2.1 . Monitor the estimated sampling period Ti +1 of the next data point according to the current sampling period Ti: increase the estimated sampling period Ti +1 of the next data point if the load decreases, and decrease if the load increases The next data point estimates the sampling period T i+1 ; the magnitude of the increase or decrease of the next data point estimated sampling period T i+1 depends on the confidence level c i , indicating that the adaptive sampling model estimates and follows the sensory data flow The current changing confidence c i , when the sensing data flow confidence c i is larger, the adaptive sampling model adopts a larger sampling period;

步骤2.2.2、在更新数据规模估计模型和计算传感数据流置信度ci后,将其与用户定义的不精确度γ进行比较,γ∈[0,1];同时计算新的采样周期Ti+1Step 2.2.2. After updating the data scale estimation model and calculating the sensory data flow confidence ci, compare it with the user-defined imprecision γ, γ∈ [0,1]; meanwhile, calculate the new sampling period T i+1 :

Figure BDA0002542992040000051
Figure BDA0002542992040000051

上式中,λ为权重系数,ci为置信度;γ为不精确度,如果γ→0,上式将收敛到周期性采样方法;如果γ→1,即使无法做出可靠的估计,将每个采样间隔进行调整;因此,如果数据规模估计模型在某个置信区间内无法提供估计,则自适应采样模型将在下一个数据估计点di+1回滚到默认采样周期TminIn the above formula, λ is the weight coefficient, c i is the confidence level; γ is the imprecision, if γ→0, the above formula will converge to the periodic sampling method; if γ→1, even if a reliable estimate cannot be made, the Adjustments are made every sampling interval; therefore, if the data size estimation model fails to provide an estimate within a certain confidence interval, the adaptive sampling model will roll back to the default sampling period Tmin at the next data estimation point di +1 .

作为优选,所述步骤2.3具体包括如下步骤:Preferably, the step 2.3 specifically includes the following steps:

步骤2.3.1、在一段时间窗口上进行计算Fano因子:Step 2.3.1. Calculate the Fano factor over a period of time window:

Figure BDA0002542992040000052
Figure BDA0002542992040000052

上式中,σ2为方差,μ为均值,σi和μi都由数据规模估计模型提供的变化概率P加权计算得到;所述Fano因子表示为W,作为方差σ2与均值μ的比率;In the above formula, σ 2 is the variance, μ is the mean value, both σ i and μ i are weighted and calculated by the change probability P provided by the data scale estimation model; the Fano factor is expressed as W, as the ratio of the variance σ 2 to the mean value μ ;

步骤2.3.2、计算完Fi后,将错误方差σerr与用户提供的最大不精确度γ进行比较:如果Fi表示当前传感数据流未分散且σerr小于γ,则过滤范围变大,过滤掉附近的值,同时仍使数据整体保持在用户定义的精度需求中;如果Fi表示当前传感数据流过度分散,则缩短过滤范围或将其恢复为默认值并报告数据中的异常。Step 2.3.2. After calculating F i , compare the error variance σ err with the maximum imprecision γ provided by the user: if F i indicates that the current sensing data stream is not scattered and σ err is less than γ, the filtering range becomes larger , filter out nearby values, while still keeping the data as a whole within the user-defined accuracy requirement; if Fi indicates that the current flow of sensory data is overly dispersed, shorten the filter range or restore it to the default value and report anomalies in the data .

作为优选,所述步骤2.2.2中不精确参数γ用于设置灵敏度。Preferably, the imprecise parameter γ in the step 2.2.2 is used to set the sensitivity.

作为优选,所述步骤2.2中自适应采样模型的自适应采样方法的时间复杂性为常数时间,因为所有计算都基于预先收集的值,并且不需要整个传感数据流信息。Preferably, the time complexity of the adaptive sampling method of the adaptive sampling model in step 2.2 is constant time, because all calculations are based on pre-collected values and the entire sensory data flow information is not required.

本发明的有益效果是:本发明对名优花卉生长过程中传感器收集的环境参数数据,基于轻量级估计模型估计传输流量,并通过自适应采样及自适应滤波技术过滤传感数据流,利用雾计算实现适量有效的传感数据的实时监控。The beneficial effects of the invention are as follows: the invention estimates the transmission flow based on the lightweight estimation model for the environmental parameter data collected by the sensor during the growth process of the famous flower, filters the sensing data flow through adaptive sampling and adaptive filtering technology, and uses fog The calculation enables real-time monitoring of the appropriate amount of effective sensor data.

附图说明Description of drawings

图1为名优花卉及珍贵药用植物的精细化栽培工厂传感网络拓扑示意图;Figure 1 is a schematic diagram of the sensor network topology of the fine cultivation factory of famous flowers and precious medicinal plants;

图2为植物工厂雾计算监控技术的流程图;Fig. 2 is the flow chart of the fog computing monitoring technology of the plant factory;

图3为轻量级近似传感流数值估计模型的流程图;Figure 3 is a flowchart of a lightweight approximate sensor flow numerical estimation model;

图4为自适应采样及自适应过滤流程图。FIG. 4 is a flowchart of adaptive sampling and adaptive filtering.

具体实施方式Detailed ways

下面结合实施例对本发明做进一步描述。下述实施例的说明只是用于帮助理解本发明。应当指出,对于本技术领域的普通人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干修饰,这些改进和修饰也落入本发明权利要求的保护范围内。The present invention will be further described below in conjunction with the embodiments. The following examples are illustrative only to aid in the understanding of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, the present invention can also be modified several times, and these improvements and modifications also fall within the protection scope of the claims of the present invention.

本发明基于雾计算模式处理花卉及药材植物的传感器数据,将目前植物工厂监控系统云端的计算、网络、存储能力向网络边缘延伸和扩展。The invention processes the sensor data of flowers and medicinal plants based on the fog computing mode, and extends and expands the computing, network and storage capabilities of the cloud of the current plant factory monitoring system to the edge of the network.

一、本发明的整体思想:1. The overall idea of the present invention:

本发明主要解决以下问题:如何解决植物工厂名优花卉及药用植物精细化栽培环境参数监控面临的网络带宽和延迟瓶颈,为此本发明提出基于雾计算模式的植物工厂监控技术。该技术一方面在本地进行数据处理,使得数据预处理的计算时间更短且所需带宽更少,从而降低了对监控系统对网络的需求。应用雾计算模式的监控系统本地端,需要有选择地对传感数据进行筛选、采样、滤波与转发。传感数据经过上述处理传输到云服务器端,所需要的存储空间更小,也能更方便地进行数据的监控可视化。The present invention mainly solves the following problems: how to solve the network bandwidth and delay bottleneck faced by the monitoring of environmental parameters of fine cultivation of famous flowers and medicinal plants in plant factories. On the one hand, this technology performs data processing locally, so that the computing time for data preprocessing is shorter and the bandwidth required is less, thereby reducing the network requirements for the monitoring system. The local end of the monitoring system using the fog computing mode needs to selectively filter, sample, filter and forward the sensor data. The sensor data is transmitted to the cloud server through the above processing, which requires less storage space and can more conveniently monitor and visualize the data.

二、实施例2. Example

实施例1Example 1

一种智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统,包括:植物工厂数据采集模块、雾采集模块、云存储模块和监视系统可视化模块;所述植物工厂数据采集模块通过WiFi或蓝牙连接雾采集模块进行数据传输,所述雾采集模块上传数据至云存储模块,所述监视系统可视化模块从云存储模块读取数据。所述植物工厂数据采集模块内设有传感器,所述传感器包括温度传感器、二氧化碳传感器和湿度传感器;所述雾采集模块用于进行数据规模估计、自适应采样和自适应滤波;所述云存储模块用于将数据上传云端和数据本地备份;所述监视系统可视化模块用于进行环境数据可视化、植物生长可视化和营养液状况可视化。A monitoring system for a famous flower and medicinal plant cultivation factory in an intelligent plant factory environment, comprising: a plant factory data acquisition module, a fog acquisition module, a cloud storage module and a monitoring system visualization module; the plant factory data acquisition module is connected through WiFi or Bluetooth The fog collecting module is connected for data transmission, the fog collecting module uploads data to the cloud storage module, and the monitoring system visualization module reads data from the cloud storage module. The plant factory data collection module is provided with sensors, and the sensors include a temperature sensor, a carbon dioxide sensor and a humidity sensor; the fog collection module is used for data scale estimation, adaptive sampling and adaptive filtering; the cloud storage module It is used for uploading data to the cloud and backing up the data locally; the monitoring system visualization module is used for environmental data visualization, plant growth visualization and nutrient solution status visualization.

实施例2Example 2

本发明所述的智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术包括以下步骤,如图1所示:The fog computing monitoring technology of the monitoring system for famous flowers and medicinal plants cultivation factory under the intelligent plant factory environment of the present invention comprises the following steps, as shown in Figure 1:

A、对植物工厂进行区域划分,在每个区域部署若干本地设备进行温湿度、二氧化碳等传感数据的采集:A. Divide the plant factory into regions, and deploy several local devices in each region to collect sensing data such as temperature, humidity, carbon dioxide, etc.:

步骤A包括以下步骤:Step A includes the following steps:

搭建传感网络,根据雾计算模块的监控策略采集相关信息,如温湿度、二氧化碳和土壤酸碱度等。为每个本地雾计算设备划分监控区域,监控区域所有传感器采集的相关数据传输至本地设备以待后续的转发。Build a sensor network and collect relevant information, such as temperature and humidity, carbon dioxide, and soil pH, according to the monitoring strategy of the fog computing module. The monitoring area is divided for each local fog computing device, and the relevant data collected by all sensors in the monitoring area is transmitted to the local device for subsequent forwarding.

B、每台本地设备采集到传感数据之后,在本地通过轻量级的数据规模估计模型估计后续的数据规模以调整转发量,同时通过本地的自适应采样、滤波模型对传感数据进行自适应滤波,最后通过转发设备以调整后的转发量向云服务器转发处理后的传感数据,如图2所示:B. After each local device collects the sensing data, it estimates the subsequent data scale locally through a lightweight data scale estimation model to adjust the forwarding amount, and at the same time, the sensing data is automatically processed through the local adaptive sampling and filtering model. Adaptive filtering, and finally forward the processed sensor data to the cloud server with the adjusted forwarding amount through the forwarding device, as shown in Figure 2:

步骤B包括以下步骤:Step B includes the following steps:

B11、在本地设备上部署轻量级的传感数据规模估计模型,利用特定环境监测设备过去一段时间的监测数据来预测其未来时刻的监测数据。B11. Deploy a lightweight sensing data scale estimation model on a local device, and use the monitoring data of a specific environmental monitoring device in the past period of time to predict its monitoring data in the future.

将两个连续数据点vi和vi-1值之间的距离δi定义如下所示:The distance δ i between two consecutive data points v i and v i-1 values is defined as follows:

δi=|vi-vi-1|δ i =|v i -v i-1 |

距离δi用于更新传感数据流ρ(M)本地参考运行时间的变化,通过移动平均来计算当前传感数据流变化,表示为μi。将接下来的两个数据点的距离记为δi+1。直观地,两个连续值之间的距离表示传感数据流的变化。使用指数加权移动平均值模型进行监测传感数据的近似预测,引入加权因子(0<α<1)以指数变化模式降低较旧的传感数据的权重,如下式所示:The distance δ i is used to update the change of the local reference running time of the sensor data stream ρ(M), and the current sensor data stream change is calculated by moving average, which is expressed as μ i . Denote the distance of the next two data points as δ i+1 . Intuitively, the distance between two consecutive values represents a change in the sensory data stream. An exponentially weighted moving average model is used for approximate prediction of monitoring sensor data, and a weighting factor (0 < α < 1) is introduced to reduce the weight of older sensor data in an exponential change pattern, as shown in the following formula:

Figure BDA0002542992040000071
Figure BDA0002542992040000071

上式中,用δ1来初始化u1,后面迭代更新。虽然指数加权移动平均值模型更适合实际植物工厂的监测需求,但其对瞬态变化的响应是不稳定的,故不能总是假设只存在指数加权。具体而言,如果指数加权移动平均值模型在一个较长时间的稳定阶段之后遇到突然的峰值,并且如果这个突然的峰值之后又是一个稳定阶段,则模型会保留这个峰值。这将导致过高估计后续的δi,从而会影响近似估计模型的准确性。In the above formula, u 1 is initialized with δ 1 and updated iteratively later. Although the exponentially weighted moving average model is more suitable for the monitoring needs of actual plant factories, its response to transient changes is unstable, so it cannot always be assumed that only exponential weighting exists. Specifically, if an exponentially weighted moving average model encounters a sudden peak after a longer period of stabilization, and if this abrupt peak is followed by a stabilization period, the model retains the peak. This will lead to overestimation of the subsequent δ i , which will affect the accuracy of the approximate estimation model.

为了解决上述模型遭遇一个突然的数据峰值变化的问题,模型通过概率加权和趋势检测两个步骤进行解决,在每个本地设备部署模型。不断地根据传感数据流对后续数据规模进行估计,在线更新模型并调整转发量。步骤B11具体包括下面三个步骤:In order to solve the problem that the above model encounters a sudden data peak change, the model is solved by two steps of probability weighting and trend detection, and the model is deployed on each local device. The subsequent data scale is continuously estimated based on the sensor data flow, the model is updated online and the forwarding amount is adjusted. Step B11 specifically includes the following three steps:

B111、使用可变化的加权因子以适应数据突然的瞬态变化产生的影响,如下所示:B111. Use a variable weighting factor to adapt to the effects of sudden transient changes in the data, as follows:

Figure BDA0002542992040000072
Figure BDA0002542992040000072

概率指数加权移动平均值模型引入了概率上可变化的加权因子

Figure BDA0002542992040000073
在上式中,Pi为第i次迭代的权重,
Figure BDA0002542992040000074
值是当前δi的概率,遵循传感数据流变化的建模分布,β是Pi的权重。概率指数加权移动平均值模型的原理是当前δi对估计过程有概率为p的贡献。因此,将权重更新为1-βPi,以便在估计过程中考虑突然却对后续估计几乎没有影响的“意外”峰值,从而限制模型过高估计后续δi。如果“意外”峰值之后是传感数据流的持续变化,则随后的“意外”峰值会被赋予更大的p值,从而允许它们对估计过程产生更大影响。The probabilistic exponentially weighted moving average model introduces probabilistically variable weighting factors
Figure BDA0002542992040000073
In the above formula, Pi is the weight of the ith iteration,
Figure BDA0002542992040000074
The value is the probability of the current δ i , following the modeled distribution of sensory data flow changes, and β is the weight of P i . The principle of the probability exponentially weighted moving average model is that the current δ i has a probability p contribution to the estimation process. Therefore, the weights are updated to 1-βP i to account for sudden "unexpected" peaks in the estimation process that have little effect on subsequent estimates, thereby limiting the model to overestimate subsequent δ i . If the "unexpected" peak is followed by a persistent change in the sensory data stream, subsequent "unexpected" peaks are assigned larger p-values, allowing them to have a greater impact on the estimation process.

B112、虽然概率指数加权移动平均值模型避免了模型对意外峰值的过度估计,但它没有考虑到向上和向下趋势的单调阶段,这往往会在估计过程中引入时间滞后效应。因此,使用Holt等人提出的模型估计度量流变化中的单调增长/衰减,如下式所示:B112. Although the probability exponentially weighted moving average model avoids the model's overestimation of unexpected peaks, it does not take into account the monotonic phases of up and down trends, which tend to introduce time lag effects in the estimation process. Therefore, the monotonic growth/decay in metric flow variation is estimated using the model proposed by Holt et al. as follows:

Figure BDA0002542992040000081
Figure BDA0002542992040000081

其中ξ是[0,1]范围内的平滑权重,其中值接近1表示一种对近期趋势的偏好。i的初值取2是为了初始化计算X1,因此,估算过程中通过将概率指数加权移动平均值模型的移动平均值提高到适当的数值基数来减少滞后效应

Figure BDA0002542992040000082
where ξ is a smoothing weight in the range [0,1], where values close to 1 indicate a preference for recent trends. The initial value of i is set to 2 to initialize the calculation of X 1 . Therefore, in the estimation process, the hysteresis effect is reduced by raising the moving average of the probability exponentially weighted moving average model to an appropriate numerical base.
Figure BDA0002542992040000082

B113、综合上述两个步骤,在每个本地设备部署模型。不断地根据传感数据流对后续数据规模进行估计,在线更新模型并调整转发量。B113. Combine the above two steps, and deploy the model on each local device. The subsequent data scale is continuously estimated based on the sensor data flow, the model is updated online and the forwarding amount is adjusted.

B12、在本地设备上部署面向植物工厂精细化栽培监控的自适应采样模型,对传感数据进行采样并调整采样周期,如图3所示。自适应采样的核心是基于植物工厂监测传感数据流的变化动态调整采样周期性Ti的过程,同时监测精度仍然满足用户给出的精确性要求。B12. Deploy an adaptive sampling model for fine cultivation monitoring in a plant factory on a local device, sample sensor data and adjust the sampling period, as shown in Figure 3. The core of adaptive sampling is the process of dynamically adjusting the sampling periodicity T i based on changes in the monitoring sensor data flow of the plant factory, while the monitoring accuracy still meets the accuracy requirements given by the user.

监测下一个数据点的估计采样周期Ti+1取决于当前采样周期Ti,如果负载减小则增加下一个数据点的估计采样周期,如果负载增加则反过来减小下一个数据点估计采样周期。需要增加或者减少的幅度取决于置信度ci,表示模型估计并且遵循度量流目前变化的置信度。当传感数据流估计模型比较“自信”(置信度ci较大)时,自适应采样将采用更大的采样周期。因此,与仅基于数据点值vi调整采样率的阈值采样技术相比,所提出的自适应采样同时考虑传感数据流变化情况和模型估计的置信度。The estimated sampling period Ti +1 for monitoring the next data point depends on the current sampling period Ti . If the load decreases, the estimated sampling period for the next data point is increased, and if the load increases, the estimated sampling period for the next data point is decreased in turn. cycle. The magnitude of the need to increase or decrease depends on the confidence ci , which represents the confidence that the model estimates and follows the current change in the metric flow. When the sensory data flow estimation model is more "confident" (confidence c i is larger), adaptive sampling will use a larger sampling period. Therefore, compared to the threshold sampling technique that adjusts the sampling rate only based on the data point values vi , the proposed adaptive sampling considers both the sensory data flow variation and the confidence of the model estimation.

在更新估计模型和计算估计置信度后,将其与可接受的用户定义的不精确度(记为γ)进行比较。不精确参数(γ∈[0,1])用于设置灵敏度,同时计算新的采样周期Ti+1,如下所示:After updating the estimated model and computing the estimated confidence, it is compared to an acceptable user-defined imprecision (denoted γ). The imprecise parameter (γ∈[0,1]) is used to set the sensitivity while calculating the new sampling period T i+1 as follows:

Figure BDA0002542992040000083
Figure BDA0002542992040000083

上式中,λ为权重系数,如果γ→0,上式将会收敛到周期性采样方法。反过来,如果γ→1,即使无法做出可靠的估计每个采样间隔也会产生调整。因此,如果传感流数据估计模型不能在某个置信区间内提供估计,则自适应采样算法将在下一个数据估计点di+1回滚到默认采样周期Tmin。此外,与仅基于阶跃函数(例如,Ti+1←Ti±Tstep)调整采样率的逐步技术相比,Tstep为置信区间半径;提出的自适应算法可以基于置信度对快速变化的度量流在合适范围[Tmin,Tmax]内进行高效响应。In the above formula, λ is the weight coefficient. If γ→0, the above formula will converge to the periodic sampling method. Conversely, if γ→1, every sampling interval produces an adjustment even if a reliable estimate cannot be made. Therefore, if the sensor flow data estimation model cannot provide an estimate within a certain confidence interval, the adaptive sampling algorithm will roll back to the default sampling period Tmin at the next data estimation point d i+1 . Furthermore, compared to the stepwise technique that adjusts the sampling rate only based on a step function (eg, T i+1 ←T i ±T step ), T step is the confidence interval radius; the proposed adaptive algorithm can The metric flow of , within the appropriate range [T min , T max ], responds efficiently.

所提出的自适应采样方法的时间复杂性是常数时间的,因为所有计算都基于预先收集的值,并且不需要整个传感数据流信息。不精确度γ是在估计过程中是自行定义的唯一参数。The time complexity of the proposed adaptive sampling method is constant time because all computations are based on pre-collected values and the entire sensory data flow information is not required. The imprecision γ is the only parameter that is self-defined in the estimation process.

B13、在本地设备上部署面向植物工厂精细化栽培监控的自适应滤波模型,对经过采样的传感数据进行滤波,并根据滤波结果调整采样周期,如图4所示。植物工厂监测传感数据流过滤是当连续数据点值小于一个范围时抑制数据点的过程,将抑制范围表示为R。因此,如果vi∈[vi-1-R,vi-1+R],则过滤值vi的当前数据点di。但是,这需要用户先前已知道数据点值分布,并且这一分布不会改变,否则无法保证任何值都将被过滤。B13. Deploy an adaptive filtering model for fine cultivation monitoring of plant factories on the local device, filter the sampled sensor data, and adjust the sampling period according to the filtering results, as shown in Figure 4. Plant factory monitoring sensing data stream filtering is the process of suppressing data points when the continuous data point value is less than a range, denoting the suppression range as R. Therefore, if v i ∈ [v i-1 -R,v i-1 +R], then filter the current data point d i of value v i . However, this requires that the user previously know the data point value distribution and that this distribution will not change, otherwise there is no guarantee that any values will be filtered.

通过自适应滤波技术,根据监测传感数据流变化动态调整滤波范围R,同时仍然满足用户定义的精度要求。过滤范围R取决于监测传感流数据的变化,此时仅有小部分数据需要进行精度限制,基于先前过滤的数据点的数量逐步调整R。Through adaptive filtering technology, the filtering range R is dynamically adjusted according to changes in the monitored sensor data stream, while still meeting user-defined accuracy requirements. The filtering range R is determined by monitoring changes in the sensory stream data. At this time, only a small part of the data needs to be limited in accuracy, and R is gradually adjusted based on the number of previously filtered data points.

利用Fano因子显示与监测传感数据流的当前变化相关的变化程度。Fano因子(F≥0)与分散指数一样,是概率分布的离差的归一化度量,用于量化一组数据点与统计模型相比是否聚类(F<1)或分散。Fano因子在一段时间窗口上进行计算,表示为W,作为方差σ2与均值μ的比率,如下式所示:The Fano factor is used to show the degree of change associated with the current change in the monitored sensory data stream. The Fano factor (F ≥ 0), like the dispersion index, is a normalized measure of the dispersion of a probability distribution that quantifies whether a set of data points is clustered (F < 1) or dispersed compared to a statistical model. The Fano factor is computed over a window of time, denoted W, as the ratio of the variance σ to the mean μ, as follows:

Figure BDA0002542992040000091
Figure BDA0002542992040000091

上式的方差σ2和均值μ不需要额外的计算,因为σi和μi都由传感数据流估计模型提供的变化概率P加权计算得到;同时也不需要使用数据点窗口,因为σi和μi都根据先前的值通过加权来相应地调整每个数据点的贡献。直观地,当σi减小时,Fano因子Fi跟随变化,表明数据流规模的降低。计算完Fi后,将σerr(错误方差)与用户提供的最大可容忍不精确度进行比较,表示为γ。如果Fi表示传感数据流未分散且σerr小于γ,则过滤范围变大,尝试过滤掉附近的值,同时仍使数据整体保持在用户定义的精度需求中。否则,如果Fi说明当前传感数据流过度分散,则缩短过滤范围或将其恢复为默认值并报告数据中的异常。The variance σ 2 and mean μ of the above formula do not require additional calculations, because σ i and μ i are both weighted by the change probability P provided by the sensor data flow estimation model; at the same time, there is no need to use the data point window, because σ i and μi are weighted according to previous values to adjust the contribution of each data point accordingly. Intuitively, when σ i decreases , the Fano factor Fi follows the change, indicating a decrease in the size of the data stream. After Fi is calculated, σ err ( error variance) is compared to the user-supplied maximum tolerable imprecision, denoted γ. If Fi indicates that the sensory data stream is not scattered and σ err is less than γ, the filtering range becomes larger, trying to filter out nearby values, while still keeping the data as a whole within the user-defined accuracy requirement. Otherwise, if Fi indicates that the current flow of sensory data is excessively scattered, shorten the filtering range or restore it to the default value and report anomalies in the data.

与自适应采样一样,自适应滤波算法具有O(1)的时间和空间复杂度,因为Ri+1是从其先前值计算的,而μi,σi和σerr是运行时估计模型由前所述的输出。Like adaptive sampling, the adaptive filtering algorithm has a time and space complexity of O(1) because R i+1 is computed from its previous value, while μ i , σ i and σ err are run-time estimates of the model by output as previously described.

B14、在本地设备上部署面向植物工厂精细化栽培监控的自适应转发模型,对经过采样、滤波的传感数据根据传感数据规模估计模型估计得到的转发量进行转发,将数据传输至云服务器。通过雾计算的模式,转发过程需要的带宽更少从而降低了对网络的需求。B14. Deploy an adaptive forwarding model for fine cultivation monitoring of plant factories on the local device, forward the sampled and filtered sensor data according to the forwarding amount estimated by the sensor data scale estimation model, and transmit the data to the cloud server . Through the fog computing model, the forwarding process requires less bandwidth and thus reduces the demand on the network.

C、云服务器接收并储存传感数据,同时在设备上显示如植物生长状况数据、植物生长环境数据等重要数据,向管理人员提供实时的数据监控:C. The cloud server receives and stores the sensor data, and at the same time displays important data such as plant growth status data, plant growth environment data and other important data on the device, providing real-time data monitoring to managers:

步骤C包括以下步骤:Step C includes the following steps:

通过云服务器接收并解析由本地设备转发的植物工厂传感数据,将不同类型的传感数据保存至本地数据库。Receive and parse the plant factory sensor data forwarded by the local device through the cloud server, and save different types of sensor data to the local database.

通过合适的可视化图表,实时展示植物工厂的各种传感数据信息。Through suitable visualization charts, various sensor data information of the plant factory can be displayed in real time.

三、实验结论:3. Experimental conclusion:

可以看出本系统能够通过传感器采集的数据规模对后续数据规模进行估计从而调整转发量,并根据当前的数据进行自适应的采样、滤波,从而向云服务器转发规模适量的、噪声小的传感器数据。云服务器在进行数据存储的同时,也能够实现实时的植物生长状况数据、植物生长环境数据的显示。这样,培育人员在远程监控的情况下,也可以实现对温室环境较准确的了解,而且方法具有普适性,可以推广应用到多种作物上。It can be seen that the system can estimate the subsequent data scale according to the data scale collected by the sensor to adjust the forwarding amount, and perform adaptive sampling and filtering according to the current data, so as to forward the sensor data with an appropriate scale and low noise to the cloud server. . While storing data, the cloud server can also display real-time plant growth status data and plant growth environment data. In this way, cultivators can also achieve a more accurate understanding of the greenhouse environment under the condition of remote monitoring, and the method is universal and can be applied to a variety of crops.

Claims (7)

1.一种智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,监控系统包括:植物工厂数据采集模块、雾采集模块、云存储模块和监视系统可视化模块;所述植物工厂数据采集模块通过WiFi或蓝牙连接雾采集模块进行数据传输,所述雾采集模块上传数据至云存储模块,所述监视系统可视化模块从云存储模块读取数据;其特征在于,雾计算监控技术包括如下步骤:1. A fog computing monitoring technology for a monitoring system for famous flowers and medicinal plants cultivation factories in an intelligent plant factory environment, the monitoring system comprising: a plant factory data acquisition module, a fog acquisition module, a cloud storage module and a monitoring system visualization module; the The plant factory data collection module is connected to the fog collection module through WiFi or Bluetooth for data transmission, the fog collection module uploads data to the cloud storage module, and the monitoring system visualization module reads data from the cloud storage module; it is characterized in that the fog computing monitoring The technique includes the following steps: 步骤1、搭建传感网络,对植物工厂进行区域划分,为每个本地雾计算设备划分监控区域,植物工厂数据采集模块在每个区域部署若干本地设备进行传感数据的采集;将采集的传感数据上传至雾采集模块;Step 1. Build a sensor network, divide the plant factory into areas, and divide the monitoring area for each local fog computing device. The plant factory data acquisition module deploys several local devices in each area to collect sensory data; The sensor data is uploaded to the fog collection module; 步骤2、每台本地设备采集到传感数据之后,在本地通过轻量级的数据规模估计模型估计后续的数据规模来调整转发量,同时通过本地的自适应采样模型和自适应滤波模型对传感数据进行处理,最后通过转发设备按调整后的转发量向云服务器转发处理后的传感数据;Step 2. After each local device collects the sensor data, it estimates the subsequent data scale locally through the lightweight data scale estimation model to adjust the forwarding amount, and at the same time uses the local adaptive sampling model and adaptive filtering model to adjust the forwarding amount. The sensor data is processed, and finally the processed sensor data is forwarded to the cloud server through the forwarding device according to the adjusted forwarding amount; 步骤2.1、依据传感数据规模通过概率指数加权移动平均值模型和趋势检测估计后续数据规模,在线更新概率指数加权移动平均值模型并量调整数据转发量:Step 2.1. According to the scale of the sensing data, estimate the subsequent data scale through the probability exponentially weighted moving average model and trend detection, update the probability exponentially weighted moving average model online and adjust the amount of data forwarding: 在本地设备上部署轻量级的数据规模估计模型,利用特定环境监测设备过去一段时间的监测数据来预测其未来时刻的监测数据;将两个连续数据点vi和vi-1值之间的距离δi定义如下所示: Deploy a lightweight data scale estimation model on the local device, and use the monitoring data of a specific environmental monitoring device in the past period to predict its future monitoring data; The distance δ i is defined as follows: δi=|vi-vi-1|δ i =|v i -v i-1 | 用距离δi更新传感数据流ρ(M)本地参考运行时间的变化,通过移动平均来计算当前传感数据流变化,表示为μi,将接下来的两个数据点的距离记为δi+1;使用概率指数加权移动平均值模型进行监测传感数据的近似预测,引入加权因子(0<α<1)按指数变化模式降低传感数据的权重,如下式所示:Update the change of the local reference running time of the sensing data stream ρ(M) with the distance δ i , calculate the current change of the sensing data stream by moving average, denoted as μ i , and denote the distance of the next two data points as δ i+1 ; use the probability exponential weighted moving average model to approximate the monitoring sensor data, and introduce a weighting factor (0<α<1) to reduce the weight of the sensor data according to the exponential change mode, as shown in the following formula:
Figure FDA0003620813370000011
Figure FDA0003620813370000011
上式中,用δ1来初始化u1In the above formula, use δ 1 to initialize u 1 ; 步骤2.2、在本地设备上部署面向植物工厂精细化栽培监控的自适应采样模型,并依据传感数据规模计算置信度,与用户定义的不精确度对比后,调整采样周期并对传感数据采样;Step 2.2. Deploy the adaptive sampling model for fine cultivation monitoring of plant factories on the local device, and calculate the confidence level according to the scale of the sensor data. After comparing with the imprecision defined by the user, adjust the sampling period and sample the sensor data. ; 步骤2.3、在本地设备上部署面向植物工厂精细化栽培监控的自适应滤波模型,对经过采样的传感数据进行滤波:将滤波范围表示为R,如果值vi∈[vi-1-R,vi-1+R],则过滤vi的当前数据点di;并根据Fano因子根据监测传感数据流变化动态调整滤波范围R,根据滤波结果调整采样周期;Step 2.3. Deploy the adaptive filtering model for fine cultivation monitoring of plant factories on the local device, and filter the sampled sensor data: denote the filtering range as R, if the value v i ∈ [v i-1 -R ,v i-1 +R], then filter the current data point d i of v i ; And according to Fano factor, according to monitoring sensor data flow change, dynamically adjust filtering range R, adjust sampling period according to filtering result; 步骤2.4、在本地设备上部署面向植物工厂精细化栽培监控的自适应转发模型,对经过采样或滤波的数据按数据规模估计模型估计得到的转发量进行转发,将数据传输至云服务器;Step 2.4, deploying an adaptive forwarding model for fine cultivation monitoring of plant factories on the local device, forwarding the sampled or filtered data according to the forwarding amount estimated by the data scale estimation model, and transmitting the data to the cloud server; 步骤3、云服务器接收并解析由本地设备转发的传感数据,将不同类型的传感数据保存至本地数据库,同时在设备上通过可视化图表显示植物生长状况数据或植物生长环境数据,向管理人员提供实时数据监控。Step 3. The cloud server receives and parses the sensory data forwarded by the local device, saves different types of sensory data to the local database, and displays the plant growth status data or plant growth environment data on the device through a visual chart, to the management personnel. Provides real-time data monitoring.
2.根据权利要求1所述智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,其特征在于:所述步骤1中本地设备包括传感器。2. The fog computing monitoring technology of the monitoring system for famous flowers and medicinal plants cultivation factory under the intelligent plant factory environment according to claim 1, is characterized in that: in the described step 1, the local device comprises a sensor. 3.根据权利要求1所述智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,其特征在于,所述步骤2.1具体包括以下步骤:3. according to the fog computing monitoring technology of famous flower and medicinal plant cultivation factory monitoring system under the intelligent plant factory environment of claim 1, it is characterized in that, described step 2.1 specifically comprises the following steps: 步骤2.1.1、基于传感器数据利用概率指数加权方法计算后续的数据量变化:使用加权因子来适应数据突然的瞬态变化产生的影响:Step 2.1.1. Calculate subsequent data volume changes based on the sensor data using the probability exponential weighting method: Use weighting factors to adapt to the impact of sudden transient changes in data:
Figure FDA0003620813370000021
Figure FDA0003620813370000021
上式中,u1为当前传感数据流变化,δi为两个连续数据点vi和vi-1值之间的距离;
Figure FDA0003620813370000022
为加权因子,
Figure FDA0003620813370000023
Pi为第i次迭代的权重;
Figure FDA0003620813370000024
值是当前δi的概率;β是Pi的权重;α为加权因子,0<α<1;将权重更新为1-βPi
In the above formula, u 1 is the current sensor data flow change, and δ i is the distance between two consecutive data points vi and vi -1 ;
Figure FDA0003620813370000022
is the weighting factor,
Figure FDA0003620813370000023
P i is the weight of the ith iteration;
Figure FDA0003620813370000024
The value is the probability of the current δ i ; β is the weight of P i ; α is the weighting factor, 0<α<1; update the weight to 1-βP i ;
步骤2.1.2、使用Holt提出的模型来估算传感数据流变化中的单调增长或单调衰减:Step 2.1.2. Use the model proposed by Holt to estimate the monotonic growth or monotonic decay in the sensory data flow change:
Figure FDA0003620813370000025
Figure FDA0003620813370000025
上式中,xi为当前传感数据流;u1为当前传感数据流变化;δi为两个连续数据点vi和vi-1值之间的距离;ξ是[0,1]范围内的平滑权重;将i的初值取2;In the above formula, x i is the current sensing data flow; u 1 is the current sensing data flow change; δ i is the distance between two consecutive data points vi and v i -1 ; ξ is [0,1 ] The smoothing weight in the range; the initial value of i is set to 2; 步骤2.1.3、根据上述计算结果在每个本地设备部署数据规模估计模型,根据传感数据流对后续传感数据规模进行估计,在线更新概率指数加权移动平均值模型并调整数据转发量。Step 2.1.3: Deploy a data scale estimation model on each local device according to the above calculation results, estimate the subsequent sensing data scale according to the sensing data flow, update the probability exponentially weighted moving average model online and adjust the data forwarding amount.
4.根据权利要求1所述智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,其特征在于,所述步骤2.2具体包括如下步骤:4. according to the fog computing monitoring technology of famous flower and medicinal plant cultivation factory monitoring system under the intelligent plant factory environment of claim 1, it is characterized in that, described step 2.2 specifically comprises the steps: 步骤2.2.1、根据当前采样周期Ti监测下一个数据点的估计采样周期Ti+1:如果负载减小则增加下一个数据点的估计采样周期Ti+1,如果负载增加则减小下一个数据点估计采样周期Ti+1;所述下一个数据点估计采样周期Ti+1增加或减小的幅度取决于置信度ci,当传感数据流置信度ci较大时,自适应采样模型采用更大的采样周期;Step 2.2.1 . Monitor the estimated sampling period Ti +1 of the next data point according to the current sampling period Ti: increase the estimated sampling period Ti +1 of the next data point if the load decreases, and decrease if the load increases The next data point estimated sampling period T i+1 ; the magnitude of the increase or decrease of the next data point estimated sampling period T i+1 depends on the confidence c i , when the sensing data flow confidence c i is large , the adaptive sampling model adopts a larger sampling period; 步骤2.2.2、在更新数据规模估计模型和计算传感数据流置信度ci后,将其与用户定义的不精确度γ进行比较,γ∈[0,1];同时计算新的采样周期Ti+1Step 2.2.2. After updating the data scale estimation model and calculating the sensory data flow confidence ci, compare it with the user-defined imprecision γ, γ∈ [0,1]; meanwhile, calculate the new sampling period T i+1 :
Figure FDA0003620813370000031
Figure FDA0003620813370000031
上式中,λ为权重系数,ci为置信度;γ为不精确度,如果γ→0,上式将收敛到周期性采样方法;如果γ→1,将每个采样间隔进行调整;如果数据规模估计模型在某个置信区间内无法提供估计,则自适应采样模型将在下一个数据估计点di+1回滚到默认采样周期TminIn the above formula, λ is the weight coefficient, ci is the confidence level; γ is the imprecision, if γ→0, the above formula will converge to the periodic sampling method; if γ→1, adjust each sampling interval; if If the data size estimation model cannot provide an estimate within a certain confidence interval, the adaptive sampling model will roll back to the default sampling period T min at the next data estimation point d i+1 .
5.根据权利要求1所述智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,其特征在于,所述步骤2.3具体包括如下步骤:5. according to the fog computing monitoring technology of famous flower and medicinal plant cultivation factory monitoring system under the intelligent plant factory environment of claim 1, it is characterized in that, described step 2.3 specifically comprises the steps: 步骤2.3.1、在一段时间窗口上进行计算Fano因子:Step 2.3.1. Calculate the Fano factor over a period of time window:
Figure FDA0003620813370000032
Figure FDA0003620813370000032
上式中,σ2为方差,μ为均值,σi和μi都由数据规模估计模型提供的变化概率P加权计算得到;所述Fano因子表示为W,作为方差σ2与均值μ的比率;In the above formula, σ 2 is the variance, μ is the mean value, both σ i and μ i are weighted and calculated by the change probability P provided by the data scale estimation model; the Fano factor is expressed as W, as the ratio of the variance σ 2 to the mean value μ ; 步骤2.3.2、计算完Fi后,将错误方差σerr与用户提供的最大不精确度γ进行比较:如果Fi表示当前传感数据流未分散且σerr小于γ,则过滤范围变大,过滤掉附近的值;如果Fi表示当前传感数据流过度分散,则缩短过滤范围或将其恢复为默认值并报告数据中的异常。Step 2.3.2. After calculating F i , compare the error variance σ err with the maximum imprecision γ provided by the user: if F i indicates that the current sensing data stream is not scattered and σ err is less than γ, the filtering range becomes larger , filter out nearby values; if Fi indicates that the current flow of sensory data is excessively scattered, shorten the filtering range or restore it to the default value and report anomalies in the data.
6.根据权利要求4所述智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,其特征在于:所述步骤2.2.2中不精确参数γ用于设置灵敏度。6. The fog computing monitoring technology of the monitoring system for famous flowers and medicinal plants cultivation factory under the environment of the intelligent plant factory according to claim 4, characterized in that: in the step 2.2.2, the imprecise parameter γ is used to set the sensitivity. 7.根据权利要求1所述智能植物工厂环境下名优花卉及药用植物栽培工厂监控系统的雾计算监控技术,其特征在于:所述步骤2.2中自适应采样模型的自适应采样方法的时间复杂性为常数时间。7. according to the fog computing monitoring technology of famous flowers and medicinal plant cultivation factory monitoring system under the intelligent plant factory environment of claim 1, it is characterized in that: the time complexity of the self-adaptive sampling method of self-adaptive sampling model in described step 2.2 is constant time.
CN202010552281.7A 2020-06-17 2020-06-17 A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment Active CN111726407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010552281.7A CN111726407B (en) 2020-06-17 2020-06-17 A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010552281.7A CN111726407B (en) 2020-06-17 2020-06-17 A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment

Publications (2)

Publication Number Publication Date
CN111726407A CN111726407A (en) 2020-09-29
CN111726407B true CN111726407B (en) 2022-08-02

Family

ID=72567002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010552281.7A Active CN111726407B (en) 2020-06-17 2020-06-17 A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment

Country Status (1)

Country Link
CN (1) CN111726407B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112527829B (en) * 2020-12-17 2022-05-10 浙江经贸职业技术学院 IoT-based industrial data transmission and visualization system
CN114913029B (en) * 2022-04-29 2023-05-02 云铂(宁夏)科技有限公司 Intelligent agricultural monitoring platform based on Internet of things

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170048308A1 (en) * 2015-08-13 2017-02-16 Saad Bin Qaisar System and Apparatus for Network Conscious Edge to Cloud Sensing, Analytics, Actuation and Virtualization
CN105610944B (en) * 2015-12-29 2019-03-05 北京物联远信息技术有限公司 A kind of mist computing architecture of internet of things oriented
CN106647514A (en) * 2016-12-28 2017-05-10 安徽工程大学 Cement enterprise carbon emission real-time on-line monitoring management system
CN107172166B (en) * 2017-05-27 2021-03-23 电子科技大学 Cloud and mist computing system for industrial intelligent service
CN108198439B (en) * 2018-01-24 2021-05-14 浪潮集团有限公司 Urban intelligent traffic control method based on fog calculation
CN109862011B (en) * 2019-02-01 2021-03-30 华南理工大学 Real-time monitoring system for environment of Internet of things based on fog calculation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Maximum Data-Resolution Efficiency for Fog-Computing Supported Spatial Big Data Processing in Disaster Scenarios";JunBo Wang;《 IEEE Transactions on Parallel and Distributed Systems 》;20190130;全文 *

Also Published As

Publication number Publication date
CN111726407A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
Somov et al. Pervasive agriculture: IoT-enabled greenhouse for plant growth control
CN111726407B (en) A fog computing monitoring technology for the cultivation of famous flowers and medicinal plants in an intelligent plant factory environment
CN104904569A (en) Intelligent irrigation regulation and control system and method based on dynamic water content estimation
CN112465109A (en) Green house controlling means based on cloud limit is in coordination
CN114489200A (en) Warmhouse booth environmental control system
CN116360331B (en) Universal irrigation automation control system and control method
CN109116827B (en) Solar greenhouse water and fertilizer integrated irrigation control method and device based on Internet of things
CN115907366A (en) A method and device for optimal regulation and control of the growth environment of agricultural products based on the flamingo algorithm
CN108111627A (en) Distributed intelligence flower cultivation management system based on NB-IOT
CN117911187A (en) Intelligent supervision system based on agricultural Internet of Things
CN115442405A (en) Wisdom agricultural production management service system
CN114092776A (en) Multi-sensor data fusion method applied to intelligent agriculture
CN114626010A (en) Irrigation quantity calculation method and system based on Catboost
CN113841593A (en) Intelligent farmland irrigation system and irrigation method based on Internet of things
CN114418368A (en) Agricultural greenhouse tomato planting intelligent management system and management method
JP7437061B2 (en) Growth environment prediction device, growth environment control system, and growth environment prediction method
CN119987273A (en) A soil moisture intelligent monitoring and control method and system
WO2020255678A1 (en) Information processing device and method
JP6785902B2 (en) Crop activity index-based facility Horticulture complex environmental control system and method
CN120066169A (en) Intelligent greenhouse temperature control method based on multi-source sensor
Walczuch et al. Overview of closed-loop control systems and artificial intelligence utilization in greenhouse farming
CN119645171A (en) Greenhouse intelligent gateway control method and system
CN118843122A (en) Intelligent agricultural sensor network optimization method based on reinforcement learning
CN117470306B (en) Mushroom shed growth environment monitoring and analyzing method and system
CN117256455A (en) Water-saving irrigation system for grape cultivation

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
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载