[go: up one dir, main page]

CN113099408A - Simulation-based data mechanism dual-drive sensor node deployment method and system - Google Patents

Simulation-based data mechanism dual-drive sensor node deployment method and system Download PDF

Info

Publication number
CN113099408A
CN113099408A CN202110277655.3A CN202110277655A CN113099408A CN 113099408 A CN113099408 A CN 113099408A CN 202110277655 A CN202110277655 A CN 202110277655A CN 113099408 A CN113099408 A CN 113099408A
Authority
CN
China
Prior art keywords
simulation
building
sensor
data
environment
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.)
Pending
Application number
CN202110277655.3A
Other languages
Chinese (zh)
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.)
Xian Jiaotong University
Original Assignee
Xian Jiaotong 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 Xian Jiaotong University filed Critical Xian Jiaotong University
Priority to CN202110277655.3A priority Critical patent/CN113099408A/en
Publication of CN113099408A publication Critical patent/CN113099408A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/22Traffic simulation tools or models

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Air Conditioning Control Device (AREA)
  • Feedback Control In General (AREA)

Abstract

The invention discloses a simulation-based data mechanism dual-drive sensor node deployment method and system, which take the sensor deployment problem of an actual building as a research background, consider multiple factors influencing building environment sensing, such as uncertainty of personnel behaviors in the building, incommunity of space interaction, variability of outdoor weather and the like, and efficiently search an optimal deployment strategy while effectively reducing the size of a feasible region by using a sequence optimization method in combination with data mechanism dual-drive. The invention fully considers the cost and the sensing precision of the sensor at the same time, and finally achieves the optimal balance of the precision and the cost to meet the problems of sensor deployment in practical buildings.

Description

基于仿真的数据机理双驱动的传感器节点部署方法和系统Simulation-based data mechanism dual-driven sensor node deployment method and system

技术领域technical field

本发明属于传感器网络节点部署及建筑节能技术领域,具体涉及一种基于仿真的数据机理 双驱动的传感器节点部署方法和系统。The invention belongs to the technical field of sensor network node deployment and building energy saving, and in particular relates to a method and system for deploying sensor nodes based on a simulation-based data mechanism and dual drives.

背景技术Background technique

近年来,随着社会的不断发展,世界总体能源消耗量逐年递增,这不但带来能源短缺问题, 还造成一系列环境问题,因此,在满足基本能源需求的前提下尽可能节能减排成为国内外产业 界和学术界关注的焦点和创新前沿。世界可持续发展委员会指出,目前在许多国家,建筑能耗 至少占社会总能耗的40%,额日期额将近40%的建筑能耗与供热、通风、空调系统(HVAC) 有关。因此,设计能优化HVAC运行的智能建筑系统来减少建筑能源消耗对于减缓世界能源 和环境问题来说都是具有重要意义的。In recent years, with the continuous development of society, the overall energy consumption in the world has been increasing year by year, which not only brings about the problem of energy shortage, but also causes a series of environmental problems. The focus and innovation frontier of foreign industry and academia. The World Council for Sustainable Development pointed out that in many countries, building energy consumption accounts for at least 40% of the total social energy consumption, and nearly 40% of the building energy consumption is related to heating, ventilation and air conditioning systems (HVAC). Therefore, designing intelligent building systems that optimize HVAC operation to reduce building energy consumption is of great significance to alleviating the world's energy and environmental problems.

为了实现建筑运行优化,使用传感器网络来采集建筑环境信息是十分必要的。并且传感器 的可靠性和有效性是智能建筑系统的稳定运行的保障。然而传感器的感知精度受到多重因素的 影响,而低精度感知将会影响到建筑系统的控制和决策,进而带来建筑系统的不稳定性和高能 耗等问题。In order to realize the optimization of building operation, it is necessary to use sensor network to collect building environment information. And the reliability and effectiveness of the sensor is the guarantee for the stable operation of the intelligent building system. However, the sensing accuracy of the sensor is affected by multiple factors, and low-precision sensing will affect the control and decision-making of the building system, which will lead to problems such as instability and high energy consumption of the building system.

传感器网络被广泛应用于各种领域。然而在建筑领域中,由于人员行为的不确定性高、分 散的房间之间交互少,因此传统的传感器部署方法很难用于生成提高建筑环境信息观测性能的 策略。同时,传统的传感器部署方案也未能详尽地考虑到保护人员隐私和降低经济成本的需求。 因此,需要对建筑传感器网络节点部署方法进行改进。Sensor networks are widely used in various fields. However, in the architectural field, traditional sensor deployment methods are difficult to generate strategies to improve the observation performance of building environmental information due to the high uncertainty of human behavior and the low interaction between scattered rooms. At the same time, traditional sensor deployment schemes also fail to fully consider the need to protect personnel privacy and reduce economic costs. Therefore, there is a need to improve the node deployment method for building sensor networks.

发明内容SUMMARY OF THE INVENTION

为了解决上述问题,本发明提供了基于仿真的数据机理双驱动的建筑传感器节点部署方法 和系统,能够同时考虑到传感精度和经济性需求,并找到二者达到平衡的最佳传感器部署方案。In order to solve the above problems, the present invention provides a method and system for the deployment of building sensor nodes based on simulation and data mechanism, which can take into account the requirements of sensing accuracy and economy at the same time, and find an optimal sensor deployment solution that achieves a balance between the two.

为达到上述目的,本发明采用如下技术方案:基于仿真的数据机理双驱动的传感器节点部 署方法,包括以下步骤:In order to achieve the above object, the present invention adopts the following technical scheme: a sensor node deployment method based on a simulated data mechanism dual drive, comprising the following steps:

S1、根据实际建筑物空间位置分布情况,将建筑划分为M个子区域,并由经济成本预算 确定需要部署的传感器个数ki、取值范围ki∈[a,b]及取值步长c;S1. Divide the building into M sub-regions according to the distribution of the actual building space, and determine the number of sensors k i to be deployed, the value range k i ∈[a,b] and the value step size according to the economic cost budget c;

S2、在传感器个数为ki的条件下,从全部部署方案的可行域Ω中生成大小为N的传感器 节点部署策略的可行域

Figure BDA0002977292210000021
S2. Under the condition that the number of sensors is k i , generate the feasible region of the sensor node deployment strategy of size N from the feasible region Ω of all deployment schemes
Figure BDA0002977292210000021

S3、根据S1确定的初始化的传感器个数ki,确定目标函数,所述目标函数使得传感器网络节点部署策略的传感误差最小;S3. Determine an objective function according to the number k i of the initialized sensors determined in S1, and the objective function minimizes the sensing error of the sensor network node deployment strategy;

S4、根据从实际建筑中获取的环境信息和气象信息,利用建筑能耗模拟引擎EnergyPlus 进行基于机理驱动的仿真,获得基于仿真的建筑环境数据,基于仿真的建筑环境数据包括环境 分布真实值和ki个传感器条件下的环境数据;S4. According to the environmental information and meteorological information obtained from the actual building, use the building energy consumption simulation engine EnergyPlus to perform mechanism-driven simulation to obtain simulation-based building environment data. The simulation-based building environment data includes the real value of environmental distribution and k environmental data under i sensor conditions;

S5、将S4获得的基于仿真的建筑环境数据输入神经网络进行训练和预测,结合序优化算 法S3求解目标函数,输出传感器节点部署策略的可行域

Figure BDA0002977292210000022
中的最优解;S5. Input the simulation-based building environment data obtained in S4 into the neural network for training and prediction, and combine the sequential optimization algorithm S3 to solve the objective function, and output the feasible region of the sensor node deployment strategy
Figure BDA0002977292210000022
the optimal solution in ;

S6、存储S5中输出的最优解,令ki=ki+c;S6, store the optimal solution output in S5, let k i =k i +c;

S7、令i=i+1,并判断ki>b是否成立;S7, let i=i+1, and judge whether k i >b is established;

S8、若ki>b不成立,则重复步骤S2~S7,直至S7的ki>b时,通过数据分析进行决策,输出经济成本和传感精度综合最优的传感器网络节点部署策略。S8. If k i >b does not hold, repeat steps S2 to S7 until k i >b in S7, make decisions through data analysis, and output a sensor network node deployment strategy that integrates the optimal economic cost and sensing accuracy.

进一步的,S4中,利用建筑物能耗模拟引擎EnergyPlus获得基于仿真的建筑环境数据的 过程包括以下步骤:Further, in S4, the process of utilizing the building energy consumption simulation engine EnergyPlus to obtain simulation-based building environment data includes the following steps:

S401、获取建筑周边环境、天气情况、建筑围护结构信息、建筑负载信息、HVAC控制信 息,并输入建筑能耗模拟引擎EnergyPlus;S401. Acquire building surrounding environment, weather conditions, building envelope information, building load information, and HVAC control information, and input the building energy consumption simulation engine EnergyPlus;

S402、通过建筑能耗模拟引擎EnergyPlus输出模块定义输出为温度与相对湿度,得到基 于仿真的建筑环境数据,所述基于仿真的建筑环境数据包括建筑环境分布真实值和ki个传感器 采集到的建筑环境数据。S402. Define the output as temperature and relative humidity through the building energy simulation engine EnergyPlus output module, and obtain simulation-based building environment data, where the simulation-based building environment data includes the real value of the building environment distribution and the buildings collected by k i sensors environmental data.

进一步的,S5中包括以下步骤:Further, S5 includes the following steps:

S501、将S4得到的基于仿真的建筑环境分布真实值,按照划分好的M个建筑子 区域处理为大小为M×x的矩阵,x表示维度,所述矩阵作为训练集输入全连接BP神经 网络,进行训练,得到建筑环境分布模型;S501. Process the real value of the simulation-based building environment distribution obtained in S4 into a matrix of size M×x according to the divided M building sub-regions, where x represents the dimension, and the matrix is input into the fully connected BP neural network as a training set , to train to get the building environment distribution model;

S502、将S4中得到的基于仿真的ki个传感器条件下的建筑环境数据处理为大小为M×x的矩阵,并将所述矩阵作为测试集输入S501得到的建筑环境分布模型中进行 预测,得到ki个传感器条件下的环境分布输出,即建筑环境分布的预测值;S502, processing the building environment data obtained in S4 based on the simulation-based k i sensor conditions into a matrix of size M×x, and inputting the matrix as a test set into the building environment distribution model obtained in S501 for prediction, Obtain the environmental distribution output under the condition of k i sensors, that is, the predicted value of the building environment distribution;

S503、根据S502中神经网络输出的建筑环境分布的预测值以及与之对应的部署策略下 基于仿真的环境分布真实值,绘制序优化性能曲线;S503, according to the predicted value of the building environment distribution output by the neural network in S502 and the actual value of the environment distribution based on simulation under the corresponding deployment strategy, draw a sequential optimization performance curve;

S504、根据S503中所得序优化性能曲线的类型,确定序优化粗选模型的可行解 集S;S504, according to the type of the sequence optimization performance curve obtained in S503, determine the feasible solution set S of the sequence optimization rough selection model;

S505、基于S504获得的粗选模型的可行解集S,分别计算可行解集S中每个环境 分布预测值与S4中得到的基于仿真的建筑环境数据的均方根误差,并对误差进行从小 到大的排序,确定误差最小的可行解为ki个传感器条件下最优的传感器网络阶段部署 方案。S505. Based on the feasible solution set S of the rough selection model obtained in S504, calculate the root mean square error of each predicted value of the environmental distribution in the feasible solution set S and the simulation-based building environment data obtained in S4, and calculate the error from the smallest To the largest order, the feasible solution with the smallest error is determined as the optimal sensor network stage deployment scheme under the condition of k i sensors.

进一步的,S502中,所述的神经网络的输出层每个节点所代表的环境分布预测值是P维 向量。Further, in S502, the predicted value of the environment distribution represented by each node of the output layer of the neural network is a P-dimensional vector.

进一步的,S503中,所述的序优化性能曲线的绘制步骤包括:Further, in S503, the step of drawing the sequence optimization performance curve includes:

S5031、分别计算S502中神经网络输出的环境分布预测值以及与之对应的部署策略下基 于仿真的环境分布真实值之间的均方根误差;S5031, calculate respectively the root mean square error between the environment distribution predicted value of neural network output in S502 and the actual value of environment distribution based on simulation under the deployment strategy corresponding to it;

S5032、对S5031所得的误差按照从小到大的顺序进行排序,将可行解的序号作为横坐标, 将与该可行解对应的误差作为纵坐标,绘制曲线图即为序优化性能曲线。S5032: Sort the errors obtained in S5031 in ascending order, take the serial number of the feasible solution as the abscissa, take the error corresponding to the feasible solution as the ordinate, and draw a curve graph is the sequential optimization performance curve.

进一步的,S504中所述的得到序优化粗选的可行解集S的步骤包括:Further, the step of obtaining the feasible solution set S of the sequential optimization and rough selection described in S504 includes:

S5041、根据序优化性能曲线的类型确定优化问题类型;S5041. Determine the optimization problem type according to the type of the sequential optimization performance curve;

S5042、由S5041得到的优化问题类型确定可行解集大小s,

Figure BDA0002977292210000041
从而得到可 行解集S即由可行域中误差最小的前s项构成,其中k和g是能以比较高的概率p包含不少于 k个较优解的自定义的参数,Z0、ρ、γ和η是根据该文献中的非线性回归表得到的参数,e是 自然常数。S5042. Determine the feasible solution set size s from the optimization problem type obtained in S5041,
Figure BDA0002977292210000041
Therefore, the feasible solution set S is formed by the first s items with the smallest error in the feasible domain, where k and g are self-defined parameters that can contain no less than k better solutions with a relatively high probability p, Z 0 , ρ , γ and η are parameters obtained according to the nonlinear regression table in the literature, and e is a natural constant.

进一步的,S3中,目标函数为:

Figure BDA0002977292210000042
Further, in S3, the objective function is:
Figure BDA0002977292210000042

其中,

Figure RE-GDA0003051366050000043
是对于给定ki个传感器条件下的传感器部署方案的可行域,j表示其中第j个 子区域(j∈[1,M]),
Figure RE-GDA0003051366050000044
表示ki个传感器条件下第j个子区域的环境估计误差的评估函数,
Figure RE-GDA0003051366050000045
in,
Figure RE-GDA0003051366050000043
is the feasible region of the sensor deployment scheme for a given k i sensor condition, where j denotes the jth sub-region (j∈[1,M]),
Figure RE-GDA0003051366050000044
represents the evaluation function of the environmental estimation error of the jth sub-region under k i sensor conditions,
Figure RE-GDA0003051366050000045

其中,

Figure RE-GDA0003051366050000046
是第j个区域的Rj个房间下的基于机理仿真的整体环境值矩阵,
Figure RE-GDA0003051366050000047
表示第j 个区域的Rj个房间下的基于数据驱动的环境预测值矩阵,
Figure RE-GDA0003051366050000048
是基于机理仿真的整体 环境值矩阵和基于数据驱动的环境预测值矩阵之间的欧氏距离。in,
Figure RE-GDA0003051366050000046
is the overall environment value matrix based on the mechanism simulation under the R j rooms in the j th area,
Figure RE-GDA0003051366050000047
represents the matrix of data-driven environmental predictions under R j rooms in the j th area,
Figure RE-GDA0003051366050000048
is the Euclidean distance between the overall environmental value matrix based on the mechanism simulation and the data-driven environmental prediction value matrix.

进一步的,S4中基于仿真的建筑环境数据是2维的,分别是环境温度和相对湿度。Further, the simulation-based building environment data in S4 is 2-dimensional, which are ambient temperature and relative humidity.

一种基于仿真的数据机理双驱动的传感器节点部署系统,包括策略生成模块、机理驱动模 块、数据驱动模块以及分析决策模块;A simulation-based data mechanism dual-driven sensor node deployment system includes a strategy generation module, a mechanism-driven module, a data-driven module, and an analysis and decision-making module;

所述策略生成模块根据实际建筑结构分布情况和传感器成本预算,输入初始传感器个数ki和初始可行域大小N,用于生成ki个传感器预算条件下和不考虑传感器预算成本情况下的大小 为N的可行域

Figure BDA0002977292210000051
与Ω;The strategy generation module inputs the initial number of sensors k i and the initial feasible region size N according to the actual building structure distribution and sensor cost budget, and is used to generate the size of k i sensors under budget conditions and without considering the sensor budget cost. is the feasible region of N
Figure BDA0002977292210000051
with Ω;

所述机理驱动模块收集实际建筑的各种相关参数,并输入建筑模拟引擎EnergyPlus进行基 于机理的建模仿真,将分别得到基于仿真的ki个传感器预算条件下和不考虑传感器预算成本情 况下的建筑环境数据,并将所述建筑环境数据输送到数据驱动模块;The mechanism-driven module collects various relevant parameters of the actual building, and inputs it into the building simulation engine EnergyPlus to perform mechanism-based modeling and simulation. building environment data, and delivering the building environment data to a data-driven module;

所述数据驱动模块包括用于通过序优化结合神经网络生成ki个传感器预算条件下的最优 传感器节点部署策略,即

Figure BDA0002977292210000052
的最优解,并输入到分析决策模块;The data-driven module includes an optimal sensor node deployment strategy for generating k i sensor budgets through sequential optimization combined with a neural network, that is,
Figure BDA0002977292210000052
The optimal solution is input to the analysis decision module;

所述分析决策模块用于存储每次由最优解生成子模块生成的

Figure BDA0002977292210000053
的最优解,并进行综合分 析,最终输出经济成本和传感精度综合最优的传感器部署策略。The analysis and decision-making module is used to store the data generated by the optimal solution generation sub-module every time.
Figure BDA0002977292210000053
The optimal solution is obtained, and comprehensive analysis is carried out to finally output the comprehensive optimal sensor deployment strategy for economic cost and sensing accuracy.

一种基于仿真的数据机理双驱动的传感器节点部署系统,包括存储器和处理器,所述存储 器上存储有可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时,实现权利要 求上述方法的步骤。A dual-driven sensor node deployment system based on a simulation data mechanism, comprising a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor executes the computer program, the right The steps of the above method are required.

与现有技术相比,本发明至少具有以下有益的技术效果:Compared with the prior art, the present invention has at least the following beneficial technical effects:

本发明的传感器的部署方法以实际建筑的传感器部署问题为研究背景,考虑到建筑内人员 行为的不确定性、空间交互的不连通性、室外天气的多变性等影响建筑环境传感的多重因素, 利用序优化方法结合数据机理双驱动在有效约简可行域大小的同时高效地寻找最优部署策略, 一方面通过建筑模拟引擎进行基于机理驱动的建筑环境的模拟仿真,在保证精度的前提下很大 程度地降低了实验成本;另一方面通过神经网络进行基于数据驱动的序优化粗选可行解集的生 成,提高最优解搜寻的效率。原始样本空间的规模过于庞大,其他优化算法会导致求解时间长 和维数灾难,而序优化能避免以上缺点,从而提升效率,大大提高了生成传感器最优部署策略 的效率。The sensor deployment method of the present invention takes the sensor deployment problem of the actual building as the research background, and takes into account the uncertainty of the behavior of people in the building, the disconnection of spatial interaction, the variability of outdoor weather, and other factors that affect the sensing of the building environment. , using the sequential optimization method combined with the data mechanism dual drive to effectively reduce the size of the feasible region and efficiently find the optimal deployment strategy. On the one hand, the building simulation engine is used to simulate the mechanism-driven building environment. The experiment cost is greatly reduced; on the other hand, the data-driven order optimization based rough selection feasible solution set is generated through the neural network, and the efficiency of the optimal solution search is improved. The size of the original sample space is too large, and other optimization algorithms will lead to long solution time and dimensional disaster, while sequential optimization can avoid the above shortcomings, thereby improving efficiency and greatly improving the efficiency of generating optimal sensor deployment strategies.

进一步的,本发明以使得该传感器网络节点部署策略的传感误差最小为目标,计算不同的 传感器数量下的最优部署策略,通过数据分析进行决策,最终得到经济成本和传感精度综合最 优的传感器网络节点部署策略,同时充分地考虑了传感器成本和传感精度,最后达到精度和成 本的最优权衡以满足实际建筑中传感器部署面临的问题,进而对建筑系统的节能减排和优化控 制产生积极作用。Further, the present invention aims to minimize the sensing error of the sensor network node deployment strategy, calculates the optimal deployment strategy under different sensor numbers, makes decisions through data analysis, and finally obtains the comprehensive optimal economic cost and sensing accuracy. At the same time, the sensor cost and sensing accuracy are fully considered, and finally the optimal trade-off between accuracy and cost is achieved to meet the problems faced by sensor deployment in actual buildings, and then the energy saving and emission reduction and optimal control of building systems are achieved. produce a positive effect.

本发明所述的系统,包括策略生成模块、机理驱动模块、数据驱动模块以及分析决策模块, 能够同时考虑到传感精度和经济性需求,得到最优的传感器部署方案。The system of the present invention includes a strategy generation module, a mechanism driving module, a data driving module and an analysis decision module, and can obtain an optimal sensor deployment scheme considering both sensing accuracy and economic requirements.

附图说明Description of drawings

图1为本发明提供的一种基于仿真的数据机理双驱动的传感器节点部署方法的流程示意 图;1 is a schematic flowchart of a method for deploying sensor nodes based on a simulation-based dual-driven sensor node provided by the present invention;

图2为本发明提供的一种基于仿真的数据机理双驱动的传感器节点部署系统的结构框图;2 is a structural block diagram of a sensor node deployment system based on a simulation-based dual-drive sensor node provided by the present invention;

图3为本发明提供的一种基于仿真的数据机理双驱动的传感器节点部署系统的神经网络 子模块的一种结构图;Fig. 3 is a kind of structure diagram of the neural network sub-module of the sensor node deployment system based on the simulation data mechanism dual drive provided by the present invention;

图4为西安某办公楼基于上述方案的目标函数值和约束的传感精度和传感成本的关系曲线;Figure 4 shows the relationship curve between the sensing accuracy and sensing cost of an office building in Xi'an based on the objective function value and constraints of the above scheme;

图5为西安某办公楼基于上述方案的传感器最优部署策略示意图,(a)为一楼传感器最优 部署策略示意图,(b)为一楼传感器最优部署策略示意图;Figure 5 is a schematic diagram of the optimal deployment strategy of sensors based on the above scheme in an office building in Xi'an, (a) is a schematic diagram of the optimal deployment strategy of sensors on the first floor, (b) is a schematic diagram of the optimal deployment strategy of sensors on the first floor;

图6为一种基于仿真的数据机理双驱动的传感器节点部署系统示意图。FIG. 6 is a schematic diagram of a sensor node deployment system based on a simulation-based data mechanism dual-driven.

具体实施方式Detailed ways

下面将结合附图,对本发明的具体实施方式进行详细的说明。The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

图1为本发明所述方法的流程示意图,如图所示,本发明提供的一种基于仿真的数据机 理双驱动的传感器节点部署方法包括以下步骤:Fig. 1 is the schematic flow chart of the method of the present invention, as shown in the figure, a kind of sensor node deployment method based on simulation data mechanism dual drive provided by the present invention comprises the following steps:

S1、根据实际建筑物空间位置分布情况,将建筑划分为M个子区域,并由经济成本预算 确定需要部署的传感器个数的取值范围ki∈[a,b]及取值步长c。S1. Divide the building into M sub-regions according to the distribution of the actual building space, and determine the value range k i ∈ [a, b] and the value step c of the number of sensors to be deployed according to the economic cost budget.

在本实施例中,实际建筑空间位置分布情况包括建筑内房间的楼层分布、朝向分布、太 阳辐射情况和通风情况,如某栋办公建筑位于二楼且窗户朝北的所有房间可被划分为一个区 域,二楼且窗户朝南的所有房间可被划分为另一个区域;同样地,一楼且窗户朝北的所有房间 也可被划分为一个区域,以此类推此外,各子区域安装的传感器个数小于等于该区域可安装传 感器的点位数。经济成本预算是指购买和安装传感器所需的成本。传感器个数的取值范围 ki∈[a,b]和取值步长c,其中a<b,c≤b-a且a∈N*,b∈N*,c∈N*,ki∈N*,N*为正整数集。In this embodiment, the actual building space location distribution includes floor distribution, orientation distribution, solar radiation, and ventilation of rooms in the building. For example, all rooms in an office building on the second floor with windows facing north can be divided into one Zone, all rooms on the second floor with windows facing south can be divided into another zone; similarly, all rooms on the first floor with windows facing north can also be divided into one zone, and so on. In addition, the sensors installed in each sub-zone The number is less than or equal to the number of points that can be installed with sensors in this area. The economic cost budget refers to the cost of purchasing and installing the sensor. The value range of the number of sensors k i ∈[a,b] and the value step c, where a<b, c≤ba and a∈N * ,b∈N * ,c∈N * , ki ∈N * , N * is the set of positive integers.

S2、在传感器个数为ki的条件下,通过随机采样的方法从全部部署方案的可行域Ω中生成 大小为N,N为正整数,的传感器节点部署策略的可行域

Figure BDA0002977292210000071
其中可行域Ω是所有可能的部 署方案的全集,即可行解全集,理论上Ω包含无穷个可行的部署方案。S2. Under the condition that the number of sensors is k i , the feasible region of the sensor node deployment strategy of size N, N is a positive integer, is generated from the feasible region Ω of all deployment schemes by random sampling.
Figure BDA0002977292210000071
The feasible region Ω is the complete set of all possible deployment schemes, that is, the complete set of feasible solutions. In theory, Ω contains infinite feasible deployment schemes.

在本步骤中约简可行域的方法众多,本实施例采用随机抽样的方法。There are many methods for reducing the feasible region in this step, and a random sampling method is adopted in this embodiment.

S3、根据传感器个数ki,确定目标函数及约束条件,目标函数使得该传感器网络节点部署策略的传感误差最小。S3. Determine an objective function and constraint conditions according to the number of sensors k i , and the objective function minimizes the sensing error of the node deployment strategy of the sensor network.

本步骤中,目标函数为:

Figure BDA0002977292210000072
In this step, the objective function is:
Figure BDA0002977292210000072

其中,M是S1中按照建筑空间位置分布情况将建筑划分为M个子区域,j表示其中第j 个子区域(j∈[1,M]),

Figure RE-GDA0003051366050000073
表示ki个传感器条件下第j个子区域的环境估计误差的评估函数,
Figure RE-GDA0003051366050000074
Among them, M is the division of the building into M sub-areas in S1 according to the spatial distribution of the building, and j represents the j-th sub-area (j∈[1,M]),
Figure RE-GDA0003051366050000073
represents the evaluation function of the environmental estimation error of the jth sub-region under k i sensor conditions,
Figure RE-GDA0003051366050000074

其中,j表示第j个子区域,Rj为第j个子区域中包含的房间个数,则

Figure RE-GDA0003051366050000075
表示第j个子 区域中的Rj个房间下的基于机理仿真的整体环境值矩阵,通过EnergyPlus仿真得到的,
Figure RE-GDA0003051366050000076
表 示第j个子区域的Rj个房间下的基于数据驱动的环境预测值矩阵,
Figure RE-GDA0003051366050000077
是两者之间的 欧氏距离。Among them, j represents the j-th sub-area, and R j is the number of rooms contained in the j-th sub-area, then
Figure RE-GDA0003051366050000075
represents the overall environment value matrix based on the mechanism simulation under the R j rooms in the jth sub-region, obtained through EnergyPlus simulation,
Figure RE-GDA0003051366050000076
represents the matrix of data-driven environmental predictions under R j rooms in the j th subregion,
Figure RE-GDA0003051366050000077
is the Euclidean distance between the two.

约束条件为:

Figure BDA0002977292210000081
其中Ω是不限制传感器个数的情况下所有传感器部署方案的可 行域,
Figure BDA0002977292210000082
是ki个传感器条件下的传感器部署方案的可行域。The constraints are:
Figure BDA0002977292210000081
where Ω is the feasible region of all sensor deployment schemes without limiting the number of sensors,
Figure BDA0002977292210000082
is the feasible region of the sensor deployment scheme under the condition of k i sensors.

S4、根据从实际建筑中通过实验、调研获取的参数输入EnergyPlus,利用建筑能耗模拟引 擎EnergyPlus进行基于机理驱动的仿真,获得基于仿真的建筑环境数据,基于仿真的建筑环境 数据包括环境分布真实值和ki个传感器采集到的建筑环境数据,环境分布真实值是建筑本身真 实的环境数据,包括温度和相对湿度。S4. Input EnergyPlus according to the parameters obtained through experiments and investigations in the actual building, use the building energy consumption simulation engine EnergyPlus to perform mechanism-driven simulation, and obtain simulation-based building environment data. The simulation-based building environment data includes the real value of environmental distribution and the building environment data collected by k i sensors, the real value of the environment distribution is the real environment data of the building itself, including temperature and relative humidity.

在本实施例中,输入EnergyPlus的参数包括:建筑周边环境信息、气象信息、建筑围护结 构、建筑几何结构、冷热负载信息、HVAC信息和控制流信息;In this embodiment, the parameters input to EnergyPlus include: building surrounding environment information, weather information, building envelope, building geometry, cooling and heating load information, HVAC information and control flow information;

建筑周边环境信息包括:周边的建筑分布情况、建筑地理位置等;Information on the surrounding environment of the building includes: the distribution of surrounding buildings, the location of the building, etc.;

气象信息包括:建筑所在地的室外温度、室外相对湿度、室外风速等;Meteorological information includes: outdoor temperature, outdoor relative humidity, outdoor wind speed, etc. where the building is located;

HVAC信息包括:建筑内暖通空调及新风设备的分布情况;HVAC information includes: the distribution of HVAC and fresh air equipment in the building;

控制流信息包括建筑负载和空调设备的控制运行策略。Control flow information includes building loads and control operation strategies for air conditioning equipment.

本实施例中,主要考虑室内温度与室外相对湿度,因此生成的基于仿真的建筑环境数据是 2维的,分别是环境温度和相对湿度;此外,只要可以给定相应参数输入EnergyPlus,环境分 布真实值和ki个传感器条件下的环境数据都能够通过EnergyPlus被模拟仿真出来。In this embodiment, indoor temperature and outdoor relative humidity are mainly considered, so the generated building environment data based on simulation is 2-dimensional, which are ambient temperature and relative humidity respectively; in addition, as long as the corresponding parameters can be input into EnergyPlus, the environment distribution is real Values and environmental data under k i sensor conditions can be simulated by EnergyPlus.

S5、对S4获得的基于仿真的建筑环境数据进行处理,输入神经网络进行训练和预测,结 合序优化方法进行基于数据驱动的可行解优化选择,输出

Figure BDA0002977292210000083
中的最优策略解,具体包括以下 步骤:S5. Process the simulation-based building environment data obtained in S4, input the neural network for training and prediction, and combine the sequential optimization method to perform data-driven optimization selection of feasible solutions, and output
Figure BDA0002977292210000083
The optimal policy solution in , specifically includes the following steps:

S501、将S4中得到的基于仿真的建筑环境分布真实值按照S1划分好的M个建 筑子区域用python的pandas库处理为大小为M×2的矩阵,2代表温度和湿度两个特 征,并将其作为训练集输入全连接BP神经网络,进行训练,得到建筑环境分布模型;S501. Process the M building sub-regions divided according to S1 to the real value of the simulation-based building environment distribution obtained in S4 into a matrix with a size of M×2 using the pandas library of python, where 2 represents two characteristics of temperature and humidity, and Input it as a training set into a fully connected BP neural network for training to obtain a building environment distribution model;

本实施例中,神经网络输入层节点个数与建筑划分的子区域个数相同为M,每个输入节 点均是2维的,分别代表各子区域的环境分布,包括环境温度和相对湿度;神经网络输出层节 点个数与输入层相同,也是M个,每个节点代表各子区域的环境分布,具体是将温度和湿度 作为二维坐标系,将基于仿真的该子区域每个可部署传感器的节点位置的温度和湿度信息绘制 于该坐标系,并根据温度和湿度的取值范围将坐标系划分为P等份,计算每等份中节点占全 部节点的百分比,即每个输出层节点都是P维向量。In this embodiment, the number of nodes in the input layer of the neural network is the same as the number of sub-areas divided by the building, which is M, and each input node is 2-dimensional, representing the environmental distribution of each sub-area, including ambient temperature and relative humidity; The number of nodes in the output layer of the neural network is the same as that of the input layer, which is also M. Each node represents the environmental distribution of each sub-region. Specifically, the temperature and humidity are used as a two-dimensional coordinate system. The temperature and humidity information of the node position of the sensor is drawn in this coordinate system, and the coordinate system is divided into P equal parts according to the value range of temperature and humidity, and the percentage of nodes in each equal part to all nodes is calculated, that is, each output layer. The nodes are all P-dimensional vectors.

在本实施例中,通过训练集对神经网络的各项参数进行训练和调参,各项参数包括神经网络的层数、每层神经元的个数、损失函数的选择、梯度下降法的选择、正则 化参数、激励函数的选择、weight和biases、学习率、mini-batch等。最终训练得到 性能良好的神经网络模型,其中评价神经网络性能的指标包括召回率、准确率、ROC 等。该神经网络模型属于预测回归模型,反应建筑内各子区域温湿度值和对应的环境 分布的映射关系。In this embodiment, various parameters of the neural network are trained and adjusted through the training set, and each parameter includes the number of layers of the neural network, the number of neurons in each layer, the selection of the loss function, and the selection of the gradient descent method. , regularization parameters, choice of excitation function, weights and biases, learning rate, mini-batch, etc. Finally, a neural network model with good performance is obtained by training, and the indicators for evaluating the performance of neural network include recall rate, accuracy rate, ROC and so on. The neural network model belongs to the prediction regression model, which reflects the mapping relationship between the temperature and humidity values of each sub-region in the building and the corresponding environmental distribution.

S502、将S4中得到的基于仿真的ki个传感器条件下的建筑环境数据处理为大小为M×2的矩阵,2代表温度和湿度两个特征;并输入S501中训练好的神经网络预测 回归模型中去进行预测,得到ki个传感器条件下的环境分布输出,即建筑环境分布预 测值。S502: Process the building environment data obtained in S4 based on the simulation-based k i sensors into a matrix of size M×2, where 2 represents two features of temperature and humidity; and input the neural network trained in S501 to predict regression The model is used for prediction, and the environmental distribution output under the condition of k i sensors is obtained, that is, the predicted value of the building environment distribution.

在本实步骤中,将S4中得到的基于仿真的ki个传感器条件下的环境数据采用相同的处理方法处理成同S501训练集输入相同的结构,即测试集也是M个输入节点, 且每个节点包括温度和湿度两维;神经网络模型的输出则是与输入对应的ki个传感器 条件下的M个子区域的环境分布预测值。In this actual step, the environmental data obtained in S4 under the condition of k i sensors based on the simulation is processed into the same structure as the input of the training set in S501 by using the same processing method, that is, the test set is also M input nodes, and each Each node includes two dimensions of temperature and humidity; the output of the neural network model is the predicted value of the environmental distribution of M sub-regions under the conditions of k i sensors corresponding to the input.

S503、根据S502中神经网络预测回归输出的环境分布预测值以及与之对应的传感器部 署策略下基于仿真的环境分布真实值,绘制序优化性能曲线;S503, according to the environment distribution predicted value of the neural network prediction regression output in S502 and the real value of the environment distribution based on simulation under the corresponding sensor deployment strategy, draw the sequential optimization performance curve;

本步骤中,所述的序优化性能曲线的绘制步骤包括:In this step, the step of drawing the sequence optimization performance curve includes:

S5031、分别计算S502中神经网络模型训练得到的环境分布预测值和与之对应的传感器 部署策略下由EnergyPlus仿真得到的环境分布真实值之间的均方根误差;S5031, calculate respectively the root mean square error between the environmental distribution predicted value obtained by the neural network model training in S502 and the actual value of the environmental distribution obtained by EnergyPlus simulation under the corresponding sensor deployment strategy;

S5032、对S5031所得的均方根误差按照从小到大的顺序进行排序,将S2中从可行域全 集Ω随机采样得到的可行域

Figure BDA0002977292210000102
中的N个可行解的序号作为横坐标(序号从1到N),将与该 可行解对应的误差作为纵坐标,绘制曲线图得到序优化性能曲线;S5032 , sort the root mean square errors obtained in S5031 in ascending order, and randomly sample the feasible regions obtained from the complete set of feasible regions Ω in S2
Figure BDA0002977292210000102
The sequence number of the N feasible solutions in the abscissa is used as the abscissa (the sequence number is from 1 to N), and the error corresponding to the feasible solution is used as the ordinate, and a graph is drawn to obtain the sequence optimization performance curve;

S504、查阅相关资料文献,如何毓琦教授的论文《Universal alignmentprobabilities and subset selection for ordinal optimization》确定S503中所得序优化性能曲线的类型,从而确 定序优化粗选模型的可行解集S;S504, consult relevant data and literature, how to determine the type of the order optimization performance curve obtained in S503 by Professor Yu Qi's paper "Universal alignmentprobabilities and subset selection for ordinal optimization", thereby determining the feasible solution set S of the order optimization rough selection model;

本步骤中,所述的序优化性能曲线的类型包括:陡峭型、一般型、中性型、平缓型。In this step, the types of the sequence optimization performance curve include: steep type, general type, neutral type, and gentle type.

本实施例中,所述的得到序优化粗选的可行解集S的步骤包括:In this embodiment, the step of obtaining the feasible solution set S of the sequence optimization and rough selection includes:

S5041、确定序优化性能曲线的类型从而确定优化问题类型;S5041. Determine the type of the sequential optimization performance curve to determine the optimization problem type;

S5042、由S5041得到的优化问题类型确定可行解集规模s,

Figure BDA0002977292210000101
其中k和g 是能以比较高的概率p包含不少于k个较优解的自定义的参数,Z0、ρ、γ和η是根据该文献中 的非线性回归表得到的参数,e是自然常数,从而得到可行解集S即由可行域中误差最小的前 s项构成。S5042. Determine the feasible solution set size s from the optimization problem type obtained in S5041,
Figure BDA0002977292210000101
where k and g are self-defined parameters that can contain no less than k better solutions with a relatively high probability p, Z 0 , ρ, γ and η are parameters obtained according to the nonlinear regression table in this document, e is a natural constant, so the feasible solution set S is composed of the first s items with the smallest error in the feasible region.

S505、基于S504获得的粗选的可行解集S,分别计算粗选的可行解集S中每个由 神经网络模型输出的建筑环境分布预测值与S4中得到的基于仿真的整体环境分布数据 的均方根误差,并对误差进行从小到大的排序,确定误差最小的可行解为ki个传感器 条件下最优的传感器网络阶段部署方案。S505. Based on the rough-selected feasible solution set S obtained in S504, calculate the difference between each predicted value of the building environment distribution output by the neural network model in the rough-selected feasible solution set S and the simulation-based overall environment distribution data obtained in S4. The root mean square error is calculated, and the errors are sorted from small to large, and the feasible solution with the smallest error is determined as the optimal sensor network stage deployment scheme under the condition of k i sensors.

S6、存储S5中输出的最优策略解,并以步长c增加传感器个数,即令ki=ki+c;S6. Store the optimal policy solution output in S5, and increase the number of sensors with a step c, that is, k i = ki +c;

S7、令i=i+1并判断当前ki是否大于预算成本上限,即判断ki>b;S7, set i=i+1 and judge whether the current ki is greater than the upper limit of the budget cost, that is, judge that ki >b;

S8、若S7的判断结果为“否”,则重复步骤S2~S7。直到S7的判断结果为“是”时,通过数 据分析进行决策,输出经济成本和传感精度综合最优的传感器网络节点部署策略。数据分析过 程为:绘制成本ki与误差的关系曲线,利用数据分析中帕累托分析法得到最优的部署策略。S8. If the judgment result of S7 is "No", repeat steps S2-S7. Until the judgment result of S7 is "Yes", the decision is made through data analysis, and the comprehensive optimal sensor network node deployment strategy of economic cost and sensing accuracy is output. The data analysis process is as follows: draw the relationship curve between cost ki and error, and use the Pareto analysis method in data analysis to obtain the optimal deployment strategy.

参照图2所示,是本发明提供的一种系统示意图:一种基于仿真的数据机理双驱动的传感 器节点部署系统包括策略生成模块101、机理驱动模块102、数据驱动模块103与分析决策模 块104;Referring to FIG. 2 , it is a schematic diagram of a system provided by the present invention: a dual-driven sensor node deployment system based on simulation data mechanism includes a strategy generation module 101 , a mechanism driving module 102 , a data driving module 103 and an analysis decision module 104 ;

所述策略生成模块101根据实际建筑结构分布情况和传感器成本预算情况,即根据所给的 可行域规模N以及传感器取值范围ki∈[a,b],最开始输入初始传感器个数k1和初始可行域规模 N,用于生成ki个传感器预算条件下的大小为N的可行域

Figure BDA0002977292210000111
和不考虑传感器预算成本情况下 的大小为N的可行域Ωi;The strategy generation module 101 initially inputs the initial number of sensors k 1 according to the actual building structure distribution and sensor cost budget, that is, according to the given feasible domain size N and the sensor value range k i ∈ [a, b] and the initial feasible region size N for generating a feasible region of size N under ki sensor budgets
Figure BDA0002977292210000111
and the feasible region Ω i of size N without considering the sensor budget cost;

机理驱动模块102收集实际建筑的各种相关参数(包括建筑周边环境信息、气象信息、建 筑围护结构、建筑几何结构、冷热负载信息、HVAC信息和控制流信息),并输入建筑模拟引 擎EnergyPlus进行基于机理的建模仿真,将分别得到基于仿真的ki个传感器预算条件下和不考 虑传感器预算成本情况下的建筑环境数据,并将它们输送到数据驱动模块;The mechanism driving module 102 collects various related parameters of the actual building (including building surrounding environment information, weather information, building envelope, building geometry, cooling and heating load information, HVAC information and control flow information), and input it into the building simulation engine EnergyPlus Carry out mechanism-based modeling and simulation, and obtain the building environment data under the condition of simulation-based k i sensor budget and without considering the sensor budget cost, and send them to the data-driven module;

数据驱动模块103包括数据处理子模块、神经网络子模块和最优解生成子模块。将基于仿 真的建筑环境数据经过数据处理子模块,将不考虑传感器预算成本的建筑环境数据处理成训练 集的输入为M×2维的矩阵,其中M代表建筑划分的子区域,2代表温度和湿度两维环境指 标;训练集的输出为M×P维矩阵,其中M代表建筑划分的子区域,P代表将温度和湿度作为 二维坐标系,将基于仿真的该子区域每个可部署传感器的节点位置的温度和湿度信息绘制于该 坐标系,并根据取值范围将坐标系划分为P等份,计算每等份中节点占全部节点的百分比。 同样地,将基于仿真的ki个传感器预算条件下建筑环境数据处理成测试集的输入,也为M×2 维的矩阵,其中M代表建筑划分的子区域,2代表温度和湿度两维环境指标。将测试集输入 训练好的神经网络子模块,输出M×P维的ki个传感器预算条件下建筑环境分布预测值。将所 得预测值输入最优解生成子模块,通过序优化算法,生成ki个传感器预算条件下的最优传感器 节点部署策略,即

Figure BDA0002977292210000121
的最优解,并输入到分析决策模块;The data-driven module 103 includes a data processing sub-module, a neural network sub-module and an optimal solution generation sub-module. The simulation-based building environment data is processed through the data processing sub-module, and the building environment data without considering the sensor budget cost is processed into a training set. The input is an M×2-dimensional matrix, where M represents the sub-area of the building, 2 represents the temperature and Humidity two-dimensional environmental index; the output of the training set is an M×P-dimensional matrix, where M represents the sub-area divided by the building, and P represents the temperature and humidity as a two-dimensional coordinate system, and each deployable sensor in this sub-area based on the simulation The temperature and humidity information of the position of the node is drawn in this coordinate system, and the coordinate system is divided into P equal parts according to the value range, and the percentage of nodes in each equal part to all nodes is calculated. Similarly, the building environment data under the simulation-based ki sensor budget conditions are processed into the input of the test set, which is also an M×2-dimensional matrix, where M represents the sub-regions of the building, and 2 represents the two-dimensional environment of temperature and humidity. index. Input the test set into the trained neural network sub-module, and output the predicted value of the building environment distribution under the condition of ki sensor budget of M×P dimension. Input the obtained predicted value into the optimal solution generation sub-module, and generate the optimal sensor node deployment strategy under the condition of k i sensor budgets through the sequential optimization algorithm, namely
Figure BDA0002977292210000121
The optimal solution is input to the analysis decision module;

参照图3为所述的神经网络子模块的神经网络结构示意图。其中 {T,H}1,{T,H}2,......,{T,H}M表示神经网络输入层节点个数是M,每个输入层节点均是2维的, 分别代表各子区域的环境温度T和相对湿度H,;Y1,Y2,......,YM表示神经网络模型预测值,神经网络输出层节点个数是M,每个输出层节点都是P维向量;3 is a schematic diagram of the neural network structure of the neural network sub-module. where {T,H} 1 ,{T,H} 2 ,...,{T,H} M indicates that the number of input layer nodes of the neural network is M, and each input layer node is 2-dimensional, respectively represent the ambient temperature T and relative humidity H of each sub-region; Y 1 , Y 2 ,..., Y M represent the predicted value of the neural network model, the number of nodes in the output layer of the neural network is M, and each output Layer nodes are all P-dimensional vectors;

分析决策模块104包括存储子模块、数据分析子模块和优化决策子模块,存储子模块存储 每次由最优解生成子模块生成的

Figure BDA0002977292210000122
的最优解,将存储内容输入到数据分析子模块进行综合数 理统计分析,将分析结果输入到优化决策子模块,分析的目的是最终输出经济成本和传感精度 综合最优的传感器部署策略。The analysis and decision-making module 104 includes a storage sub-module, a data analysis sub-module and an optimization decision-making sub-module, and the storage sub-module stores the data generated by the optimal solution generation sub-module each time.
Figure BDA0002977292210000122
The storage content is input into the data analysis sub-module for comprehensive mathematical statistical analysis, and the analysis results are input into the optimization decision-making sub-module. The purpose of the analysis is to finally output the comprehensive optimal sensor deployment strategy for economic cost and sensing accuracy.

如图4为西安某办公楼基于上述方案的目标函数值和约束的传感精度和传感成本的关系曲线,其中传感器个数取值范围为ki∈[30,80],步长c=5。由本关系图可以 看出当ki=50时达到传感精度和成本的最优权衡。如图5为上述条件下的综合最优的 传感器部署策略,其中四种不同图案代表不同的建筑朝向,不同的线框代表不同的建 筑子区域,由图可知,本例中将建筑划分为7个子区域,即M=7。填充了不同图案的 地方代表相应子区域中部署了传感器的房间节点,其中的数字代表该房间节点部署的 传感器个数。Figure 4 shows the relationship curve between the sensing accuracy and sensing cost of an office building in Xi'an based on the objective function value and constraints of the above scheme, where the number of sensors ranges from k i ∈ [30, 80], and the step size c = 5. It can be seen from this relationship diagram that the optimal trade-off between sensing accuracy and cost is achieved when k i =50. Figure 5 shows the comprehensive optimal sensor deployment strategy under the above conditions, in which four different patterns represent different building orientations, and different wireframes represent different building sub-areas. As can be seen from the figure, in this example, the building is divided into 7 sub-regions, that is, M=7. Places filled with different patterns represent room nodes where sensors are deployed in the corresponding sub-area, and the numbers in them represent the number of sensors deployed in that room node.

本发明的实施例提供一种基于仿真的数据机理双驱动的传感器节点部署系统,用于执行上 述基于种基于仿真的数据机理双驱动的传感器节点部署方法。可以根据上述方法示例对数据 驱动模块和分析决策模块进行功能模块的划分,例如,可以对应各个功能划分各个功能模块, 也可以将两个功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可 以采用软件功能模块的形式实现例如图6所示的一种组成,包括存储器和处理器,存储器上存 储有可在处理器上运行的计算机程序,处理器执行所述计算机程序时,实现上述的基于仿真的 数据机理双驱动的传感器节点部署方法的步骤。The embodiment of the present invention provides a sensor node deployment system based on a simulation-based dual-drive of data mechanism, which is used for implementing the above-mentioned method for deploying a sensor node based on the simulation-based dual-drive of the data mechanism. The data driving module and the analysis decision module can be divided into functional modules according to the above method examples. For example, each functional module can be divided corresponding to each function, or the two functions can be integrated into one processing module. The above-mentioned integrated modules can be realized in the form of hardware, or can be realized in the form of software function modules, such as a composition shown in FIG. 6, including a memory and a processor, and the memory is stored with a computer program that can run on the processor. , when the processor executes the computer program, it implements the steps of the above-mentioned method for deploying sensor nodes based on a simulation-based dual-driven data mechanism.

需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式。It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and another division manner may be used in actual implementation.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当 使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品 包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按 照本发明实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其 他可编程系统。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介 质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务 器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)) 或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行 传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以 用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬 盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD)) 等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present invention result in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable system. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc., that can be integrated with the media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中, 本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的 其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一 个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互 不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效 果。Although the invention is described herein in conjunction with various embodiments, those skilled in the art can understand and implement the disclosure by reviewing the drawings, the disclosure, and the appended claims in practicing the claimed invention. Other variations of the embodiment. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神 和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求 所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或 等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和 范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则 本发明也意图包含这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely illustrative of the invention as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (10)

1. A simulation-based dual-drive sensor node deployment method based on a data mechanism is characterized by comprising the following steps:
s1, dividing the building into M sub-areas according to the distribution situation of the space position of the actual building, and determining the number k of the sensors to be deployed according to the economic cost budgetiAnd a value range ki∈[a,b]And a value step length c;
s2, when the number of sensors is kiUnder the condition of (2), generating a feasible domain of a sensor node deployment strategy with the size of N from the feasible domains omega of all deployment schemes
Figure FDA0002977292200000011
S3, number k of initialized sensors determined according to S1iDetermining an objective function, wherein the objective function enables the sensing error of the sensor network node deployment strategy to be minimum;
s4, according to the environmental information and weather information obtained from the actual building, utilizing the building energy consumption simulation engine EnergyPlus to perform simulation based on mechanism driving, and obtaining the building environment data based on simulation, wherein the building environment data based on simulation comprises the real value of environment distribution and kiEnvironmental data under individual sensor conditions;
s5, inputting the simulation-based building environment data obtained in S4 into a neural network for training and prediction, solving an objective function by combining an order optimization algorithm S3, and outputting a feasible domain of a sensor node deployment strategy
Figure FDA0002977292200000012
The optimal solution of (1);
s6, storing the optimal solution output in S5 and making ki=ki+c;
S7, let i equal i +1, and judge ki>b is true or not;
s8, if ki>If b is not true, repeating the steps S2-S7 until k of S7i>b, making decisions by data analysisAnd outputting a sensor network node deployment strategy with comprehensive and optimal economic cost and sensing precision.
2. The simulation-based data mechanism dual-drive sensor node deployment method of claim 1, wherein in S4, the process of obtaining simulation-based building environment data by using a building energy consumption simulation engine energy pyplus comprises the following steps:
s401, acquiring building surrounding environment, weather conditions, building envelope information, building load information and HVAC control information, and inputting a building energy consumption simulation engine EnergyPlus;
s402, defining and outputting temperature and relative humidity through an energy plus output module of a building energy consumption simulation engine to obtain simulation-based building environment data, wherein the simulation-based building environment data comprises a real value and k of building environment distributioniBuilding environment data collected by each sensor.
3. The method for deploying the sensor nodes based on the simulation of the double driving of the data mechanism according to claim 1, wherein the step of S5 is as follows:
s501, processing the real values of the simulation-based building environment distribution obtained in the S4 into an M x matrix according to the divided M building sub-regions, wherein x represents the dimension, and the matrix is used as a training set and input into a full-connection BP neural network for training to obtain a building environment distribution model;
s502, simulating k obtained in S4iProcessing the building environment data under the condition of each sensor into a matrix with the size of M x, inputting the matrix into the building environment distribution model obtained in the step S501 as a test set for prediction to obtain kiOutputting environment distribution under the condition of each sensor, namely predicting values of building environment distribution;
s503, drawing a sequence optimization performance curve according to the predicted value of the building environment distribution output by the neural network in the S502 and the real value of the environment distribution based on simulation under the deployment strategy corresponding to the predicted value;
s504, determining a feasible solution set S of the sequence optimization roughing model according to the type of the sequence optimization performance curve obtained in the S503;
s505, respectively calculating the root mean square error of each environment distribution predicted value in the feasible solution set S and the simulation-based building environment data obtained in the S4 based on the feasible solution set S of the rough selection model obtained in the S504, sequencing the errors from small to large, and determining the feasible solution with the minimum error as kiAnd (3) an optimal sensor network stage deployment scheme under the condition of each sensor.
4. The method for deploying sensor nodes according to claim 3, wherein in step S502, the predicted value of the environment distribution represented by each node in the output layer of the neural network is a P-dimensional vector.
5. The simulation-based data mechanism dual-drive sensor node deployment method of claim 3, wherein in S503, the step of drawing the sequence optimization performance curve includes:
s5031, respectively calculating a root mean square error between the environment distribution predicted value output by the neural network in the S502 and the simulation-based environment distribution true value under the deployment strategy corresponding to the environment distribution predicted value;
s5032, sequencing the errors obtained in the S5031 from small to large, taking the serial number of the feasible solution as an abscissa, taking the error corresponding to the feasible solution as an ordinate, and drawing a curve graph, namely a sequence optimization performance curve.
6. The simulation-based data mechanism dual-drive sensor node deployment method of claim 3, wherein the step of obtaining the order-optimized rough-selected feasible solution set S in S504 comprises:
s5041, determining the type of an optimization problem according to the type of the sequence optimization performance curve;
s5042, determining the size S of the feasible solution set according to the optimization problem type obtained in S5041,
Figure FDA0002977292200000031
so as to obtain a feasible solution set S, namely the feasible solution set S is composed of the first S items with the minimum error in a feasible domain, wherein k and g are self-defined parameters which can contain not less than k better solutions with a higher probability p, and Z0ρ, γ, and η are parameters obtained from the nonlinear regression table in this document, and e is a natural constant.
7. The simulation-based data mechanism dual-drive sensor node deployment method of claim 1, wherein in S3, the objective function is:
Figure RE-FDA0003051366040000032
wherein,
Figure RE-FDA0003051366040000033
is for a given kiThe feasible domain of the sensor deployment scenario under sensor conditions, j denotes the jth sub-domain (j ∈ [1, M) therein]),
Figure RE-FDA0003051366040000034
Represents kiAn evaluation function of the environmental estimation error of the jth sub-region under the sensor condition,
Figure RE-FDA0003051366040000035
wherein,
Figure RE-FDA0003051366040000036
is R of the jth regionjAn overall environment value matrix based on mechanism simulation under each room,
Figure RE-FDA0003051366040000037
r representing the jth regionjA data-driven environment predictor matrix under each room,
Figure RE-FDA0003051366040000038
the Euclidean distance between an overall environment value matrix based on mechanism simulation and an environment prediction value matrix based on data driving.
8. The dual-drive sensor node deployment method based on simulation data mechanism according to claim 1, wherein the simulation-based building environment data in S4 is 2-dimensional, and is respectively ambient temperature and relative humidity.
9. A simulation-based dual-drive sensor node deployment system for a data mechanism is characterized by comprising a strategy generation module, a mechanism driving module, a data driving module and an analysis decision module;
the strategy generation module inputs the initial sensor number k according to the actual building structure distribution condition and the sensor cost budgetiAnd an initial feasible domain size N for generating kiFeasible domain of size N under individual sensor budget conditions and without consideration of sensor budget cost
Figure FDA0002977292200000041
And Ω;
the mechanism driving module collects various relevant parameters of an actual building, inputs the parameters into a building simulation engine EnergyPlus to carry out mechanism-based modeling simulation, and respectively obtains k based on simulationiBuilding environment data under the condition of sensor budget and without considering sensor budget cost and transmitting the building environment data to a data driving module;
the data driven module includes logic for generating k by combining order optimization with neural networkiOptimal sensor node deployment strategy under individual sensor budget conditions, i.e.
Figure FDA0002977292200000042
And inputting the optimal solution to an analysis decision module;
the analysis decision module is used for storing the optimal solution generated by the optimal solution generation submodule each time
Figure FDA0002977292200000043
And performing comprehensive analysis, and finally outputting a sensor deployment strategy with comprehensive optimal economic cost and sensing precision.
10. A dual drive sensor node deployment system based on simulated data mechanisms, comprising a memory and a processor, wherein the memory has stored thereon a computer program operable on the processor, and wherein the processor, when executing the computer program, performs the steps of the method of any one of claims 1 to 8.
CN202110277655.3A 2021-03-15 2021-03-15 Simulation-based data mechanism dual-drive sensor node deployment method and system Pending CN113099408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110277655.3A CN113099408A (en) 2021-03-15 2021-03-15 Simulation-based data mechanism dual-drive sensor node deployment method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110277655.3A CN113099408A (en) 2021-03-15 2021-03-15 Simulation-based data mechanism dual-drive sensor node deployment method and system

Publications (1)

Publication Number Publication Date
CN113099408A true CN113099408A (en) 2021-07-09

Family

ID=76667172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110277655.3A Pending CN113099408A (en) 2021-03-15 2021-03-15 Simulation-based data mechanism dual-drive sensor node deployment method and system

Country Status (1)

Country Link
CN (1) CN113099408A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114757398A (en) * 2022-03-25 2022-07-15 西南科技大学 Minimum usage deployment method and system for iron tower inclination sensor nodes

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609416A (en) * 2009-07-13 2009-12-23 清华大学 A method to improve the performance tuning speed of distributed system
US20130179373A1 (en) * 2012-01-06 2013-07-11 Trane International Inc. Systems and Methods for Estimating HVAC Operation Cost
CN107704875A (en) * 2017-09-30 2018-02-16 山东建筑大学 Based on the building load Forecasting Methodology and device for improving IHCMAC neutral nets
CN108984830A (en) * 2018-06-07 2018-12-11 湖北大学 A kind of building efficiency evaluation method and device based on FUZZY NETWORK analysis
CN109756861A (en) * 2019-01-31 2019-05-14 北京理工大学 A Node Deployment Method for Heterogeneous Sensor Networks in Urban Environment
CN111308181A (en) * 2018-12-11 2020-06-19 湖南博弘节能科技有限公司 Real-time energy consumption simulation system
EP3699825A2 (en) * 2019-02-22 2020-08-26 Ubotica Technologies Ltd. Systems and methods for deploying and updating neural networks at the edge of a network
CN112152840A (en) * 2020-08-27 2020-12-29 西安交通大学 A sensor deployment method and system based on BIM and simulation
CN112419726A (en) * 2020-11-20 2021-02-26 华南理工大学 Urban traffic signal control system based on traffic flow prediction

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609416A (en) * 2009-07-13 2009-12-23 清华大学 A method to improve the performance tuning speed of distributed system
US20130179373A1 (en) * 2012-01-06 2013-07-11 Trane International Inc. Systems and Methods for Estimating HVAC Operation Cost
CN107704875A (en) * 2017-09-30 2018-02-16 山东建筑大学 Based on the building load Forecasting Methodology and device for improving IHCMAC neutral nets
CN108984830A (en) * 2018-06-07 2018-12-11 湖北大学 A kind of building efficiency evaluation method and device based on FUZZY NETWORK analysis
CN111308181A (en) * 2018-12-11 2020-06-19 湖南博弘节能科技有限公司 Real-time energy consumption simulation system
CN109756861A (en) * 2019-01-31 2019-05-14 北京理工大学 A Node Deployment Method for Heterogeneous Sensor Networks in Urban Environment
EP3699825A2 (en) * 2019-02-22 2020-08-26 Ubotica Technologies Ltd. Systems and methods for deploying and updating neural networks at the edge of a network
CN112152840A (en) * 2020-08-27 2020-12-29 西安交通大学 A sensor deployment method and system based on BIM and simulation
CN112419726A (en) * 2020-11-20 2021-02-26 华南理工大学 Urban traffic signal control system based on traffic flow prediction

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
LEI LIU: "Hierarchical Agglomerative Clustering and LSTM-based Load Prediction for Dynamic Spectrum Allocation", 《2021 IEEE 18TH ANNUAL CONSUMER COMMUNICATIONS & NETWORKING CONFERENCE (CCNC)》 *
YAPING LIU: "Simulation-based Sensor Allocation for Dynamic Environment Estimation in Cyber-Physical Building System", 《2019 IEEE 15TH INTERNATIONAL CONFERENCE ON AUTOMATION SCIENCE AND ENGINEERING (CASE)》 *
周德云: "基于两级序优化模型的火控攻击配置方案寻优", 《系统工程与电子技术》 *
李璐: "大型公共建筑能耗模型与管理信息系统研究", 《中国优秀硕士论文全文数据库》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114757398A (en) * 2022-03-25 2022-07-15 西南科技大学 Minimum usage deployment method and system for iron tower inclination sensor nodes

Similar Documents

Publication Publication Date Title
Ye et al. Predicting electricity consumption in a building using an optimized back-propagation and Levenberg–Marquardt back-propagation neural network: Case study of a shopping mall in China
Bamdad et al. Building energy optimization using surrogate model and active sampling
Jihad et al. Forecasting the heating and cooling load of residential buildings by using a learning algorithm “gradient descent”, Morocco
Banihashemi et al. Developing a hybrid model of prediction and classification algorithms for building energy consumption
CN112183826B (en) Building Energy Consumption Prediction Method and Related Products Based on Deep Cascade Generative Adversarial Network
CN106502799A (en) A kind of host load prediction method based on long memory network in short-term
Abediniangerabi et al. A data-driven framework for energy-conscious design of building facade systems
CN115310727B (en) Building cooling, heating and power load prediction method and system based on transfer learning
Lu et al. Graph convolutional networks-based method for estimating design loads of complex buildings in the preliminary design stage
CN110264012A (en) Renewable energy power combination prediction technique and system based on empirical mode decomposition
CN112152840B (en) A sensor deployment method and system based on BIM and simulation
Hwang et al. CC-GAIN: Clustering and classification-based generative adversarial imputation network for missing electricity consumption data imputation
Palermo et al. Optimization of a feedforward neural network’s architecture for an HVAC system problem
CN114065646A (en) Energy consumption prediction method based on hybrid optimization algorithm, cloud computing platform and system
Gao et al. Hybrid forecasting model of building cooling load based on combined neural network
CN112883651A (en) System-level testability design multi-objective optimization method based on improved PBI method
CN113099408A (en) Simulation-based data mechanism dual-drive sensor node deployment method and system
CN110908897A (en) System-level testability design multi-objective optimization method based on self-adaptive search direction
CN117853269B (en) Heating data optimization method, device and equipment based on machine learning
CN113868916B (en) LFVPSO-BPNN-based multi-loop groove cabling temperature rise prediction method
CN115879190B (en) Model construction method and device and building load prediction method and device
Zheng et al. Estimating residential buildings’ energy usage utilising a combination of Teaching–Learning–Based Optimization (TLBO) method with conventional prediction techniques
Liu et al. Deep learning-based multi-scale modeling of thermal conductivity in polyurethane with phase change materials via neural operators
CN116451569A (en) Indoor dynamic temperature field prediction method, system and equipment based on deep learning
CN117077514A (en) Photovoltaic power generation power prediction method and system based on weather self-correction

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210709

RJ01 Rejection of invention patent application after publication